LSW3配置:vlan batch 2 3 20 30 int g0/0/1 port link-type access port default vlan 2 int g0/0/2 port link-type access port default vlan 3 int g0/0/3 port link-type trunk port trunk allow-pass vlan 2 3 20 30 int g0/0/4 port link-type trunk port trunk allow-pass vlan 2 3 20 30 stp enable stp mode mstp stp region-configuration region-name aa revision-level 100 instance 1 vlan 2 3 instance 2 vlan 20 30 active region-configuration int g0/0/1 stp edged-port enable int g0/0/2 stp edged-port enableLSW4配置:vlan batch 2 3 20 30 int g0/0/1 port link-type access port default vlan 20 int g0/0/2 port link-type access port default vlan 30 int g0/0/3 port link-type trunk port trunk allow-pass vlan 2 3 20 30 int g0/0/4 port link-type trunk port trunk allow-pass vlan 2 3 20 30 stp enable stp mode mstp stp region-configuration region-name aa revision-level 100 instance 1 vlan 2 to 3 instance 2 vlan 20 30 active region-configuration int g0/0/1 stp edged-port enable int g0/0/2 stp edged-port enableLSW1配置vlan batch 2 3 20 30 interface Eth-Trunk 0 trunkport GigabitEthernet 0/0/1 to 0/0/2 port link-type trunk port trunk allow-pass vlan 2 3 20 30 int g0/0/3 port link-type trunk port trunk allow-pass vlan 2 3 20 30 int g0/0/4 port link-type trunk port trunk allow-pass vlan 2 3 20 30 stp enable stp mode mstp stp region-configuration region-name aa revision-level 100 instance 1 vlan 2 to 3 instance 2 vlan 20 30 active region-configuration stp instance 1 root primary stp instance 2 root secondary interface vlanif 2 ip address 10.0.2.1 24 vrrp vrid 1 virtual-ip 10.0.2.254 vrrp vrid 1 priority 120 vrrp vrid 1 preempt-mode timer delay 20 vrrp vrid 1 track interface GigabitEthernet 0/0/5 reduced 30 interface vlanif 3 ip address 10.0.3.1 24 vrrp vrid 1 virtual-ip 10.0.3.254 vrrp vrid 1 preempt-mode timer delay 20 vrrp vrid 1 track interface GigabitEthernet 0/0/5 reduced 30 interface vlanif 20 ip address 10.0.20.1 24 vrrp vrid 1 virtual-ip 10.0.20.254 interface vlanif 30 ip address 10.0.30.1 24 vrrp vrid 1 virtual-ip 10.0.30.254 vlan 11 int g0/0/5 port link-type access port default vlan 11 int vlanif 11 ip address 10.0.11.1 30 ospf 1 area 0 network 10.0.2.1 0.0.0.0 network 10.0.3.1 0.0.0.0 network 10.0.11.1 0.0.0.0 network 10.0.20.1 0.0.0.0 network 10.0.30.1 0.0.0.0 silent-interface vlanif 2 silent-interface vlanif 3 silent-interface vlanif 20 silent-interface vlanif 30 vlan 13 interface Eth-Trunk 0 port trunk allow-pass vlan 13 interface vlanif 13 ip address 10.0.13.1 30 ospf 1 area 0 network 10.0.13.1 0.0.0.0LSW2配置vlan batch 2 3 20 30 interface Eth-Trunk 0 trunkport GigabitEthernet 0/0/1 to 0/0/2 port link-type trunk port trunk allow-pass vlan 2 3 20 30 int g0/0/3 port link-type trunk port trunk allow-pass vlan 2 3 20 30 int g0/0/4 port link-type trunk port trunk allow-pass vlan 2 3 20 30 stp enable stp mode mstp stp region-configuration region-name aa revision-level 100 instance 1 vlan 2 to 3 instance 2 vlan 20 30 active region-configuration stp instance 2 root primary stp instance 1 root secondary interface vlanif 20 ip address 10.0.20.2 24 vrrp vrid 1 virtual-ip 10.0.20.254 vrrp vrid 1 priority 120 vrrp vrid 1 preempt-mode timer delay 20 vrrp vrid 1 track interface GigabitEthernet 0/0/5 reduced 30 interface vlanif 30 ip address 10.0.30.2 24 vrrp vrid 1 virtual-ip 10.0.30.254 vrrp vrid 1 priority 120 vrrp vrid 1 preempt-mode timer delay 20 vrrp vrid 1 track interface GigabitEthernet 0/0/5 reduced 30 interface vlanif 2 ip address 10.0.2.2 24 vrrp vrid 1 virtual-ip 10.0.2.254 interface vlanif 3 ip address 10.0.3.2 24 vrrp vrid 1 virtual-ip 10.0.3.254 vlan 12 int g0/0/5 port link-type access port default vlan 12 interface vlanif 12 ip address 10.0.12.1 30 ospf 1 area 0 network 10.0.2.2 0.0.0.0 network 10.0.3.2 0.0.0.0 network 10.0.20.2 0.0.0.0 network 10.0.30.2 0.0.0.0 network 10.0.12.1 0.0.0.0 silent-interface vlanif 2 silent-interface vlanif 3 silent-interface vlanif 20 silent-interface vlanif 30 vlan 13 interface Eth-Trunk 0 port trunk allow-pass vlan 13 interface vlanif 13 ip address 10.0.13.2 30 ospf 1 area 0 network 10.0.13.2 0.0.0.0AR1配置int g0/0/0 ip address 202.1.1.1 30 int g0/0/1 ip address 10.0.11.2 30 int g0/0/2 ip address 10.0.12.2 30 ospf 1 area 0 network 10.0.11.2 0.0.0.0 network 10.0.12.2 0.0.0.0 default-route-advertise ip route-static 0.0.0.0 0 202.1.1.2 acl 2000 rule permit source 10.0.0.0 0.0.255.255 int g0/0/0 nat outbound 2000ISP配置int g0/0/0 ip address 202.1.1.2 30 int LoopBack 0 ip address 100.100.100.100 32