ensp基礎實驗(VRRP+MSTP+ETH-TRUNK+NAT+DHCP中繼)中小型企業(yè)網(wǎng)

AR1
sys
sys AR1
int g0/0/0
ip add 100.1.1.2 24
int g0/0/1
ip add 101.1.1.2 24
int g0/0/2
ip add 12.1.1.1 24
dhcp enable
ip pool vlan10
gateway-list 192.168.10.254
network 192.168.10.0 mask 255.255.255.0
excluded-ip-address 192.168.10.252 192.168.10.253
ip pool vlan20
gateway-list 192.168.20.254
network 192.168.20.0 mask 255.255.255.0
excluded-ip-address 192.168.20.252 192.168.20.253
ip pool vlan30
gateway-list 192.168.30.254
network 192.168.30.0 mask 255.255.255.0
excluded-ip-address 192.168.30.252 192.168.30.253
ip pool vlan40
gateway-list 192.168.40.254
network 192.168.40.0 mask 255.255.255.0
excluded-ip-address 192.168.40.252 192.168.40.253
ip pool vlan50
gateway-list 192.168.50.254
network 192.168.50.0 mask 255.255.255.0
excluded-ip-address 192.168.50.252 192.168.50.253
int g0/0/0
dhcp select global
int g0/0/1
dhcp select global
ip route-static 192.168.10.0 255.255.255.0 100.1.1.1
ip route-static 192.168.20.0 255.255.255.0 100.1.1.1
ip route-static 192.168.30.0 255.255.255.0 100.1.1.1
ip route-static 192.168.40.0 255.255.255.0 100.1.1.1
ip route-static 192.168.50.0 255.255.255.0 100.1.1.1
ip route-static 192.168.10.0 255.255.255.0 101.1.1.1
ip route-static 192.168.20.0 255.255.255.0 101.1.1.1
ip route-static 192.168.30.0 255.255.255.0 101.1.1.1
ip route-static 192.168.40.0 255.255.255.0 101.1.1.1
ip route-static 192.168.50.0 255.255.255.0 101.1.1.1
ip route-static 0.0.0.0 0 12.1.1.2
acl number 2000??
?rule? permit source 192.168.10.0 0.0.0.255?
?rule? permit source 192.168.20.0 0.0.0.255?
?rule? permit source 192.168.30.0 0.0.0.255?
?rule? permit source 192.168.40.0 0.0.0.255?
int g0/0/2
nat outbound 2000
LSW1
sys
sys LSW1
vlan batch 10 20 30 40 50 100
dhcp enable
int vlan 10
ip add 192.168.10.253 24
vrrp vrid 10 virtual-ip 192.168.10.254
vrrp vrid 10 priority 120
dhcp select relay
dhcp relay server-ip 100.1.1.2
int vlan 20
ip add 192.168.20.253 24
vrrp vrid 20 virtual-ip 192.168.20.254
dhcp select relay
dhcp relay server-ip 100.1.1.2
int vlan 30
ip add 192.168.30.253 24
vrrp vrid 30 virtual-ip 192.168.30.254
vrrp vrid 30 priority 120
dhcp select relay
dhcp relay server-ip 100.1.1.2
int vlan 40
ip add 192.168.40.253 24
vrrp vrid 40 virtual-ip 192.168.40.254
dhcp select relay
dhcp relay server-ip 100.1.1.2
int vlan 50
ip add 192.168.50.253 24
vrrp vrid 50 virtual-ip 192.168.50.254
vrrp vrid 50 priority 120
dhcp select relay
dhcp relay server-ip 100.1.1.2
int eth-trunk 1
int g0/0/5
eth-trunk 1
int g0/0/6
eth-trunk 1
int eth-trunk 1
port link-type trunk
port trunk allow-pass vlan all
int vlan 100
ip add 100.1.1.1 24
int g0/0/1
port link-ty acc
port defa vlan 100
int g0/0/2?
port link-ty trunk
port trunk all vlan all
int g0/0/3
port link-ty trunk
port trunk all vlan all
int g0/0/4
port link-ty trunk
port trunk all vlan all
stp root primary
stp region-configuration
?region-name mstp
?instance 1 vlan 10 30 50
?instance 2 vlan 20 40
?active region-configuration
quit
stp instance 1 root primary??
stp instance 2 root secondary??
ip route-static 0.0.0.0 0 100.1.1.2
LSW2
sys
sys LSW2
vlan batch 10 20 30 40 50 101
dhcp enable
int vlan 10
ip add 192.168.10.252 24
vrrp vrid 10 virtual-ip 192.168.10.254
dhcp select relay
dhcp relay server-ip 101.1.1.2
int vlan 20
ip add 192.168.20.252 24
vrrp vrid 20 virtual-ip 192.168.20.254
vrrp vrid 20 priority 120
dhcp select relay
dhcp relay server-ip 101.1.1.2
int vlan 30
ip add 192.168.30.252 24
vrrp vrid 30 virtual-ip 192.168.30.254
dhcp select relay
dhcp relay server-ip 101.1.1.2
int vlan 40
ip add 192.168.40.252 24
vrrp vrid 40 virtual-ip 192.168.40.254
vrrp vrid 40 priority 120
dhcp select relay
dhcp relay server-ip 101.1.1.2
int vlan 50
ip add 192.168.50.252 24
vrrp vrid 50 virtual-ip 192.168.50.254
dhcp select relay
dhcp relay server-ip 101.1.1.2
int eth-trunk 1
int g0/0/5
eth-trunk 1
int g0/0/6
eth-trunk 1
int eth-trunk 1
port link-type trunk
port trunk allow-pass vlan all
int vlan 101
ip add 101.1.1.1 24
int g0/0/1
port link-ty acc
port defa vlan 101
int g0/0/2?
port link-ty trunk
port trunk all vlan all
int g0/0/3
port link-ty trunk
port trunk all vlan all
int g0/0/4
port link-ty trunk
port trunk all vlan all
stp root? secondary
stp region-configuration
?region-name mstp
?instance 1 vlan 10 30 50
?instance 2 vlan 20 40
?active region-configuration
quit
stp instance 2 root primary??
stp instance 1 root secondary??
ip route-static 0.0.0.0 0 101.1.1.2
LSW3
sys
sys LSW3
vlan batch 10 20
int g0/0/1
port link-ty trunk
port trunk all vlan all
int g0/0/2
port link-ty trunk
port trunk all vlan all
int g0/0/24
port link-ty trunk
port trunk all vlan all
stp region-configuration
?region-name mstp
?instance 1 vlan 10
?instance 2 vlan 20?
?active region-configuration
LSW4
sys
sys LSW4
vlan batch 30 40
int g0/0/1
port link-ty trunk
port trunk all vlan all
int g0/0/2
port link-ty trunk
port trunk all vlan all
int g0/0/24
port link-ty trunk
port trunk all vlan all
stp region-configuration
?region-name mstp
?instance 1 vlan? 30
?instance 2 vlan? 40
?active region-configuration
LSW5
sys
sys LSW5
vlan batch 50
int g0/0/1
port link-ty trunk
port trunk all vlan all
int g0/0/2
port link-ty trunk
port trunk all vlan all
int g0/0/24
port link-ty trunk
port trunk all vlan all
stp region-configuration
?region-name mstp
?instance 1 vlan 50
?active region-configuration
LSW6
sys
sys LSW6
vlan batch 10 20
int g0/0/1
port link-ty access
port defa vlan 10
int g0/0/2
port link-ty access
port defa vlan 20
int g0/0/24
port link-ty trunk
port trunk all vlan all
LSW7
sys
sys LSW7
vlan batch 30 40
int g0/0/1
port link-ty access
port defa vlan 30
int g0/0/2
port link-ty access
port defa vlan 40
int g0/0/24
port link-ty trunk
port trunk all vlan all
LSW8
sys
sys LSW8
vlan batch 50
int g0/0/1
port link-ty access
port defa vlan 50
int g0/0/24
port link-ty trunk
port trunk all vlan all
AR2
sys
sys AR2
int g0/0/0
ip add 12.1.1.2 24
int g0/0/1
ip add 200.1.1.254 24