我们有一个设置,总共有 4 个站点全部连接回一个,2 个通过光纤连接,一个通过无线链路连接。与无线网桥的链接也需要来自我们主站点的 vlan (269),因此我们将其设置为中继而不是链接。
4507-2 ^ | WAN -> Sonicwall -> 4507 -> 3560 | v 4507-3
无法从 3560 ping 到 Sonicwall 或外部。可以从 3560 ping 所有 4507 交换机。可以从防火墙 ping 到 3560。
4507 配置
interface GigabitEthernet1/1
description *SONICWALL*
switchport access vlan 100
switchport mode access
switchport nonegotiate
spanning-tree portfast
interface GigabitEthernet2/46
description **Trunk to 3560**
switchport trunk allowed vlan 269,300
switchport mode trunk
interface Vlan100
ip address 10.1.100.1 255.255.252.0
ip helper-address 10.1.104.10
interface Vlan269
no ip address
shutdown
interface Vlan300
ip address 172.20.20.9 255.255.255.252
ip default-gateway 10.1.100.254
ip route 0.0.0.0 0.0.0.0 10.1.100.254
ip route 10.4.100.0 255.255.252.0 172.20.20.10
3560配置ip路由
interface GigabitEthernet0/24
description Trunk to 4507
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 269,300
switchport mode trunk
interface Vlan100
ip address 10.4.100.1 255.255.252.0
ip helper-address 10.1.104.10
interface Vlan300
ip address 172.20.20.10 255.255.255.252
ip classless
ip route 0.0.0.0 0.0.0.0 172.20.20.9
ip route 10.1.100.0 255.255.252.0 172.20.20.9
4507条路线
4507#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is 10.1.100.254 to network 0.0.0.0
S 192.168.110.0/24 [1/0] via 10.1.104.180
172.20.0.0/30 is subnetted, 3 subnets
C 172.20.20.8 is directly connected, Vlan300
10.0.0.0/22 is subnetted, 20 subnets
S 10.4.100.0 [1/0] via 172.20.20.10
C 10.1.100.0 is directly connected, Vlan100
S* 0.0.0.0/0 [1/0] via 10.1.100.254
3560条路线
3560#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is 172.20.20.9 to network 0.0.0.0
172.20.0.0/30 is subnetted, 1 subnets
C 172.20.20.8 is directly connected, Vlan300
10.0.0.0/22 is subnetted, 10 subnets
C 10.4.100.0 is directly connected, Vlan100
S 10.1.100.0 [1/0] via 172.20.20.9
S* 0.0.0.0/0 [1/0] via 172.20.20.9
Sonicwall 也有 10.4.100.0/22 到 10.4.100.1 的路由