1.创建vlan 原则:所有交换机创建一模一样的vlan
2.把接口类型做好 原则:只在交换机的接口配置,交换机之间一定是trunk,交换机与 其他设备一定是aceess(单臂路由和无线设备除外)
3.做MSTP 原则:所有MSTP配置必须一模一样(优先级的命令除外)
4.网关
5.路由
6.DHCP 全局:网关和DHCP服务器是同一台设备
网关处开全局模式,创建地址池
接口:几乎不用
中继:网关和DHCP服务器不是同一台设备且不是同一个网段
中继:网关在哪里,哪里做中继命令(2条命令)
服务器:服务器IP地指处开全局,创建地址池
租约: 50% 发的是单播 默认3天,剩余1.5,发一个更新租约 的request报文,续约后变为1.5+3=4.5
87.5% 发的广播,发给网络中的所有DHCP服务器一个光 的request报文
SW1
u t m
system-view
sys SW1
dhcp enable
vlan batch 6 10 20 30 40
port-group group-member g0/0/1 to g0/0/5
port link-type trunk
port trunk allow-pass vlan all
quit
stp region-configuration
region-name 1
instance 1 vlan 10 20
instance 2 vlan 30 40
active region-configuration
quit
stp instance 1 priority 0
stp instance 2 priority 4096
interface vlanif 10
ip add 192.168.10.254 24
dhcp select relay
dhcp relay server-ip 192.168.6.2
interface vlanif 20
ip add 192.168.20.254 24
dhcp select relay
dhcp relay server-ip 192.168.6.2
return
SW2
u t m
system-view
dhcp enable
sys SW2
vlan batch 6 10 20 30 40
port-group group-member g0/0/1 to g0/0/5
port link-type trunk
port trunk allow-pass vlan all
quit
int g0/0/6
port link-type access
port default vlan 6
quit
stp region-configuration
region-name 1
instance 1 vlan 10 20
instance 2 vlan 30 40
active region-configuration
quit
stp instance 1 priority 4096
stp instance 2 priority 0
interface vlanif 30
ip add 192.168.30.254 24
dhcp select relay
dhcp relay server-ip 192.168.6.2
interface vlanif 40
ip add 192.168.40.254 24
dhcp select relay
dhcp relay server-ip 192.168.6.2
interface vlanif 6
ip add 192.168.6.1 24
return
SW3
u t m
system-view
sys SW3
vlan batch 6 10 20 30 40
port-group group-member e0/0/1 e0/0/2
port link-type trunk
port trunk allow-pass vlan all
quit
int e0/0/3
port link-type access
port default vlan 10
int e0/0/4
port link-type access
port default vlan 20
quit
stp region-configuration
region-name 1
instance 1 vlan 10 20
instance 2 vlan 30 40
active region-configuration
SW4
u t m
system-view
sys SW4
vlan batch 6 10 20 30 40
port-group group-member e0/0/1 e0/0/2
port link-type trunk
port trunk allow-pass vlan all
quit
int e0/0/3
port link-type access
port default vlan 10
int e0/0/4
port link-type access
port default vlan 30
quit
stp region-configuration
region-name 1
instance 1 vlan 10 20
instance 2 vlan 30 40
active region-configuration
SW5
u t m
system-view
sys SW5
vlan batch 6 10 20 30 40
port-group group-member e0/0/1 e0/0/2
port link-type trunk
port trunk allow-pass vlan all
quit
int e0/0/3
port link-type access
port default vlan 20
int e0/0/4
port link-type access
port default vlan 40
quit
stp region-configuration
region-name 1
instance 1 vlan 10 20
instance 2 vlan 30 40
active region-configuration
SW6
u t m
system-view
sys SW6
vlan batch 6 10 20 30 40
port-group group-member e0/0/1 e0/0/2
port link-type trunk
port trunk allow-pass vlan all
quit
int e0/0/3
port link-type access
port default vlan 40
int e0/0/4
port link-type access
port default vlan 30
quit
stp region-configuration
region-name 1
instance 1 vlan 10 20
instance 2 vlan 30 40
active region-configuration
DHCP
u t m
sys
sys DHCP
dhcp enable
interface g0/0/0
ip add 192.168.6.2 24
dhcp select global
quit
ip pool p10
network 192.168.10.0 mask 24
gateway-list 192.168.10.254
ip pool p20
network 192.168.20.0 mask 24
gateway-list 192.168.20.254
ip pool p30
network 192.168.30.0 mask 24
gateway-list 192.168.30.254
ip pool p40
network 192.168.40.0 mask 24
gateway-list 192.168.40.254
quit
ip route-static 192.168.0.0 16 192.168.6.1
return