技术交流群:494504654 新盟教育-ThinkMo
3SW1:
spanning-tree vlan 10 priority 8192 (pri) spanning-tree vlan 20 priority 16384 (secondary) ! interface Port-channel1 switchport mode trunk ! interface FastEthernet0/0 noswitchport ipaddress 100.1.1.2 255.255.255.0 ipnat outside ipvirtual-reassembly ! interface FastEthernet0/1 switchport mode trunk ! interface FastEthernet0/2 switchport mode trunk ! interface FastEthernet0/4 switchport mode trunk channel-group 1 mode on ! interface FastEthernet0/5 switchport mode trunk channel-group 1 mode on ! interface Vlan10 ipaddress 192.168.10.1 255.255.255.0 ipnat inside ipvirtual-reassembly standby 10 ip 192.168.10.254 standby 10 priority 150 standby 10 preempt standby 10 track FastEthernet0/0 70 ! interface Vlan20 ipaddress 192.168.20.1 255.255.255.0 ipnat inside ipvirtual-reassembly standby 20 ip 192.168.20.254 standby 20 preempt ! ip route 0.0.0.0 0.0.0.0 100.1.1.1 ! ip nat inside source list 1 interfaceFastEthernet0/0 overload ! access-list 1 permit any 3SW2: spanning-tree vlan 10 priority 16384 spanning-tree vlan 20 priority 8192 ! interface Port-channel1 switchport mode trunk ! interface FastEthernet0/0 noswitchport ipaddress 200.1.1.2 255.255.255.0 ipnat outside ipvirtual-reassembly ! interface FastEthernet0/1 switchport mode trunk ! interface FastEthernet0/2 switchport mode trunk ! interface FastEthernet0/4 switchport mode trunk channel-group 1 mode on ! interface FastEthernet0/5 switchport mode trunk channel-group 1 mode on ! interface Vlan10 ipaddress 192.168.10.2 255.255.255.0 ipnat inside ipvirtual-reassembly standby 10 ip 192.168.10.254 standby 10 preempt ! interface Vlan20 ipaddress 192.168.20.2 255.255.255.0 ipnat inside ipvirtual-reassembly standby 20 ip 192.168.20.24 standby 20 priority 150 standby 20 preempt standby 20 track FastEthernet0/0 70 ! ip route 0.0.0.0 0.0.0.0 200.1.1.1 ! ip nat inside source list 1 interfaceFastEthernet0/0 overload ! access-list 1 permit any ! SW1: interface FastEthernet0/1 switchport mode trunk ! interface FastEthernet0/2 switchport mode trunk ! interface FastEthernet0/15 switchport access vlan 10 ! SW2: interface FastEthernet0/1 switchport mode trunk ! interface FastEthernet0/2 switchport mode trunk ! interface FastEthernet0/15 switchport access vlan 20 !
|