出口路由只有一台,然后是两台核心交换机,两台汇聚交换机,下面十几台接入层交换机,电脑、门禁、监控、电力、暖通、动环……设备一大堆。
据说是辛苦配置了一整天,却换来一个无法上网的结局,同行搞得自己头昏脑涨,所以来找我一起看看,正所谓旁观者清,排除完故障,我笑他也笑。
请原谅这个丑到爆的拓扑图,模拟器截图就是这个样子了,重在展示,不在美观,勿喷。
一、汇聚交换机1的配置:
vlan batch 8 to 11 100 //创建vlan8 9 10 11 100
#
stp instance 1 root primary //配置交换机的首选root桥
stp instance 2 root secondary //配置交换机的备选root桥
#
dhcp enable //dhcp服务器启用
#
stp region-configuration //进入mstp配置模式
region-name nc //设置域名为nc,同一个域内的交换机域名必须相同
revision-level 1 //设置mstp的版本等级为1,一个域内必须相同
instance 1 vlan 8 to 9 //创建实例1,并将vlan8、9放入实例1中
instance 2 vlan 10 to 11 //创建实例2,并将vlan10、11放入实例2中
active region-configuration //激活配置
#
ip pool vlan8 //定义VLAN8的DHCP地址池
gateway-list 192.168.8.254
network 192.168.8.0 mask 255.255.255.0
excluded-ip-address 192.168.8.1 192.168.8.2 //排除交换机自己用的IP
dns-list 114.114.114.114
#
ip pool vlan9
gateway-list 192.168.9.254
network 192.168.9.0 mask 255.255.255.0
excluded-ip-address 192.168.9.1 192.168.9.2
dns-list 114.114.114.114
#
interface Vlanif8 //为VLAN8配置VRRP
ip address 192.168.8.1 255.255.255.0
vrrp vrid 1 virtual-ip 192.168.8.254
vrrp vrid 1 priority 120
vrrp vrid 1 preempt-mode timer delay 20
vrrp vrid 1 track interface GigabitEthernet0/0/1 reduced 30
vrrp vrid 1 authentication-mode md5 Wv%1Er6E-7`S/0Rb{DzNszg#
dhcp select global
#
interface Vlanif9 //为VLAN8配置VRRP
ip address 192.168.9.1 255.255.255.0
vrrp vrid 2 virtual-ip 192.168.9.254
vrrp vrid 2 priority 120
vrrp vrid 2 preempt-mode timer delay 20
vrrp vrid 2 track interface GigabitEthernet0/0/1 reduced 30
vrrp vrid 2 authentication-mode md5 Pi0q#\K$=Q`S/0Rb{DzN4zg#
dhcp select global
#
interface Vlanif10
ip address 192.168.10.1 255.255.255.0
vrrp vrid 3 virtual-ip 192.168.10.254
vrrp vrid 3 authentication-mode md5 9FW}IH{@o4y~t+Byca8Yizh#
#
interface Vlanif11
ip address 192.168.11.1 255.255.255.0
vrrp vrid 4 virtual-ip 192.168.11.254
vrrp vrid 4 authentication-mode md5 aIA@R\:PoGu:
关键词:几台华为交换机设置了一整天(一台新的华为交换机如何设置)