小型园区网(ESPN)
实验配置1.sw3[SW3]vlan batch 2 3 20 30 [SW3]int g0/0/1 [SW3-GigabitEthernet0/0/1]port link-type access [SW3-GigabitEthernet0/0/1]port default vlan 2 [SW3]int g0/0/2 [SW3-GigabitEthernet0/0/2]port link-type access [SW3-GigabitEthernet0/0/2]port default vlan 3 [SW3]int g0/0/3 [SW3-GigabitEthernet0/0/3]port link-type trunk [SW3-GigabitEthernet0/0/3]port trunk allow-pass vlan 2 3 20 30 [SW3]int g0/0/4 [SW3-GigabitEthernet0/0/4]port link-type trunk [SW3-GigabitEthernet0/0/4]port trunk allow-pass vlan 2 3 20 30 [SW3]stp enable [SW3]stp mode mstp [SW3]stp region-configuration [SW3-mst-region] region-name aa [SW3-mst-region] revision-level 100 [SW3-mst-region] instance 1 vlan 2 to 3 [SW3-mst-region] instance 2 vlan 20 30 [SW3-mst-region] active region-configuration2.sw4[SW4]vlan batch 2 3 20 30 [SW4]int g0/0/1 [SW4-GigabitEthernet0/0/1]port link-type access [SW4-GigabitEthernet0/0/1]port default vlan 20 [SW4]int g0/0/2 [SW4-GigabitEthernet0/0/2]port link-type access [SW4-GigabitEthernet0/0/2]port default vlan 30 [SW4]int g0/0/3 [SW4-GigabitEthernet0/0/3]port link-type trunk [SW4-GigabitEthernet0/0/3]port trunk allow-pass vlan 2 3 20 30 [SW4]int g0/0/4 [SW4-GigabitEthernet0/0/4]port link-type trunk [SW4-GigabitEthernet0/0/4]port trunk allow-pass vlan 2 3 20 30 [SW4]stp enable [SW4]stp mode mstp [SW4]stp region-configuration [SW4-mst-region] region-name aa [SW4-mst-region] revision-level 100 [SW4-mst-region] instance 1 vlan 2 to 3 [SW4-mst-region] instance 2 vlan 20 30 [SW4-mst-region] active region-configuration3.sw1[SW1]vlan batch 2 3 20 30 [SW1]int g0/0/3 [SW1-GigabitEthernet0/0/3]port link-type trunk [SW1-GigabitEthernet0/0/3]port trunk allow-pass vlan 2 3 20 30 [SW1-GigabitEthernet0/0/3]int g0/0/4 [SW1-GigabitEthernet0/0/4]port link-type trunk [SW1-GigabitEthernet0/0/4]port trunk allow-pass vlan 2 3 20 30 [SW1]interface Eth-Trunk 0 [SW1-Eth-Trunk0]trunkport GigabitEthernet 0/0/1 to 0/0/2 [SW1-Eth-Trunk0]port link-type trunk [SW1-Eth-Trunk0]port trunk allow-pass vlan 2 3 20 30 [SW1]stp enable [SW1]stp mode mstp [SW1]stp region-configuration [SW1-mst-region] region-name aa [SW1-mst-region] revision-level 100 [SW1-mst-region] instance 1 vlan 2 to 3 [SW1-mst-region] instance 2 vlan 20 30 [SW1-mst-region] active region-configuration [SW1]stp instance 1 root primary [SW1]stp instance 2 root secondary [SW1]int Vlanif 2 [SW1-Vlanif2]ip ad 10.0.2.1 24 [SW1-Vlanif2]vrrp vrid 1 virtual-ip 10.0.2.254 [SW1-Vlanif2]vrrp vrid 1 priority 120 [SW1-Vlanif2]vrrp vrid 1 preempt-mode timer delay 20 [SW1-Vlanif2]vrrp vrid 1 track interface GigabitEthernet 0/0/5 reduced 30 [SW1]int Vlanif 3 [SW1-Vlanif3]ip ad 10.0.3.1 24 [SW1-Vlanif3]vrrp vrid 1 virtual-ip 10.0.3.254 [SW1-Vlanif3]vrrp vrid 1 priority 120 [SW1-Vlanif3]vrrp vrid 1 preempt-mode timer delay 20 [SW1-Vlanif3]vrrp vrid 1 track interface GigabitEthernet 0/0/5 reduced 30 [SW1]interface Vlanif 20 [SW1-Vlanif20]ip address 10.0.20.1 24 [SW1-Vlanif20]vrrp vrid 1 virtual-ip 10.0.20.254 [SW1]int Vlanif 30 [SW1-Vlanif30]ip address 10.0.30.1 24 [SW1-Vlanif30]vrrp vrid 1 virtual-ip 10.0.30.254 [SW1]vlan 11 [SW1]int GigabitEthernet 0/0/5 [SW1-GigabitEthernet0/0/5]port link-type access [SW1-GigabitEthernet0/0/5]port default vlan 11 [SW1]int Vlanif 11 [SW1-Vlanif11]ip address 10.0.0.1 30 [SW1]ospf 1 [SW1-ospf-1]area 0 [SW1-ospf-1-area-0.0.0.0]network 10.0.2.1 0.0.0.0 [SW1-ospf-1-area-0.0.0.0]network 10.0.3.1 0.0.0.0 [SW1-ospf-1-area-0.0.0.0]network 10.0.0.1 0.0.0.0 [SW1-ospf-1-area-0.0.0.0]network 10.0.20.1 0.0.0.0 [SW1-ospf-1-area-0.0.0.0]network 10.0.30.1 0.0.0.0 [SW1]ospf 1 [SW1-ospf-1]silent-interface Vlanif 2 [SW1-ospf-1]silent-interface Vlanif 3 [SW1-ospf-1]silent-interface Vlanif 20 [SW1-ospf-1]silent-interface Vlanif 30 [SW1]vlan 13 [SW1]interface Eth-Trunk 0 [SW1-Eth-Trunk0]port trunk allow-pass vlan 13 [SW1]int Vlanif 13 [SW1-Vlanif13]ip address 10.0.13.1 30 [SW1]ospf 1 [SW1-ospf-1]a 0 [SW1-ospf-1-area-0.0.0.0]network 10.0.13.1 0.0.0.04.sw2[SW2]vlan batch 2 3 20 30 [SW2]int g0/0/3 [SW2-GigabitEthernet0/0/3]port link-type trunk [SW2-GigabitEthernet0/0/3]port trunk allow-pass vlan 2 3 20 30 [SW2-GigabitEthernet0/0/3]int g0/0/4 [SW2-GigabitEthernet0/0/4]port link-type trunk [SW2-GigabitEthernet0/0/4]port trunk allow-pass vlan 2 3 20 30 [SW2]interface Eth-Trunk 0 [SW2-Eth-Trunk0]trunkport GigabitEthernet 0/0/1 to 0/0/2 [SW2-Eth-Trunk0]port link-type trunk [SW2-Eth-Trunk0]port trunk allow-pass vlan 2 3 20 30 [SW2]stp enable [SW2]stp mode mstp [SW2]stp region-configuration [SW2-mst-region] region-name aa [SW2-mst-region] revision-level 100 [SW2-mst-region] instance 1 vlan 2 to 3 [SW2-mst-region] instance 2 vlan 20 30 [SW2-mst-region] active region-configuration [SW2]stp instance 1 root secondary [SW2]stp instance 2 root primary [SW2]interface Vlanif 20 [SW2-Vlanif20]ip address 10.0.20.2 24 [SW2-Vlanif20]vrrp vrid 1 virtual-ip 10.0.20.254 [SW2-Vlanif20]vrrp vrid 1 priority 120 [SW2-Vlanif20]vrrp vrid 1 preempt-mode timer delay 20 [SW2-Vlanif20]vrrp vrid 1 track interface GigabitEthernet 0/0/5 reduced 30 [SW2]int Vlanif 30 [SW2-Vlanif30]ip address 10.0.30.2 24 [SW2-Vlanif30]vrrp vrid 1 virtual-ip 10.0.30.254 [SW2-Vlanif30]vrrp vrid 1 priority 120 [SW2-Vlanif30]vrrp vrid 1 preempt-mode timer delay 20 [SW2-Vlanif30]vrrp vrid 1 track interface GigabitEthernet 0/0/5 reduced 30 [SW2]int Vlanif 2 设置其ip地址 [SW2-Vlanif2]ip ad 10.0.2.2 24 配置虚拟IP [SW2-Vlanif2]vrrp vrid 1 virtual-ip 10.0.2.254 [SW2]int Vlanif 3 [SW2-Vlanif3]ip ad 10.0.3.2 24 [SW2-Vlanif3]vrrp vrid 1 virtual-ip 10.0.3.254 [SW2]vlan 12 [SW2]int GigabitEthernet 0/0/5 [SW2-GigabitEthernet0/0/5]port link-type access [SW2-GigabitEthernet0/0/5]port default vlan 12 [SW2]int Vlanif 12 [SW2-Vlanif11]ip address 10.0.0.5 30 [SW2]ospf 1 [SW2-ospf-1]area 0 [SW2-ospf-1-area-0.0.0.0]network 10.0.2.2 0.0.0.0 [SW2-ospf-1-area-0.0.0.0]network 10.0.3.2 0.0.0.0 [SW2-ospf-1-area-0.0.0.0]network 10.0.0.5 0.0.0.0 [SW2-ospf-1-area-0.0.0.0]network 10.0.20.2 0.0.0.0 [SW2-ospf-1-area-0.0.0.0]network 10.0.30.2 0.0.0.0 [SW2]ospf 1 [SW2-ospf-1]silent-interface Vlanif 2 [SW2-ospf-1]silent-interface Vlanif 3 [SW2-ospf-1]silent-interface Vlanif 20 [SW2-ospf-1]silent-interface Vlanif 30 [SW2]vlan 13 [SW2]interface Eth-Trunk 0 [SW2-Eth-Trunk0]port trunk allow-pass vlan 13 [SW2]int Vlanif 13 [SW2-Vlanif13]ip ad 10.0.13.2 30 [SW2]ospf 1 [SW2-ospf-1]area 0 [SW2-ospf-1-area-0.0.0.0]network 10.0.13.2 0.0.0.05.r1[r1]int g0/0/1 [r1-GigabitEthernet0/0/1]ip address 10.0.0.2 30 [r1-GigabitEthernet0/0/0]int g0/0/2 [r1-GigabitEthernet0/0/2]ip ad 10.0.0.6 30 [r1]int g0/0/0 [r1-GigabitEthernet0/0/0]ip ad 202.1.1.1 30 [AR1]ospf 1 [AR1-ospf-1]area 0 [AR1-ospf-1-area-0.0.0.0]network 10.0.0.2 0.0.0.0 [AR1-ospf-1-area-0.0.0.0]network 10.0.0.6 0.0.0.0 [AR1]ip route-static 0.0.0.0 0 202.1.1.2 [AR1]ospf 1 [AR1-ospf-1]default-route-advertise [AR1]acl 2000 [AR1-acl-basic-2000]rule permit source 10.0.0.0 0.0.255.255 [AR1]int g0/0/0 [AR1-GigabitEthernet0/0/0]nat outbound 20006.isp[ISP]int g0/0/0 [ISP-GigabitEthernet0/0/0]ip ad 202.1.1.2 30 [ISP]int l 0 [ISP-LoopBack0]ip ad 100.100.100.100 24
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2560406.html
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!