一、网络拓扑
二、需求描述:
1、在二层交换机S5120V2-28P-LI划分相应的vlan
2、使划分的vlan和其它网段之间正常通讯。
三、操作配置:
# 配置95段地址
Int vlan 1
Ip add 192.168.95.254 24
#划分vlan
Vlan 200
Vlan 210
Vlan 220
#接口划入对应的vlan
Int range g1/0/1 to g1/0/4
Port access vlan 200
Int range g1/0/5 to g1/0/8
Port access vlan 210
Int range g1/0/9 to g1/0/12
Port access vlan 220
#配置vlan的网关地址
Int vlan 200
Ip add 192.168.200.1 24
Int vlan 210
Ip add 192.168.210.1 24
Int vlan 220
Ip add 192.168.220.1 24
#开启dhcp
Dhcp enable
#配置200的地址池
Dhcp server ip-pool 200
Network 192.168.200.0 24
Gateway-list 192.168.200.1
Dns-list 114.114.114.114
#配置220的地址池以及限定下放的地址范围
Dhcp server ip-pool 220
Network 192.168.220.0 24
Gateway-list 192.168.220.1
Address range 192.168.220.101 192.168.220.254
Dns-list 114.114.114.114
#配置静态路由
Ip route-static 0.0.0.0 0 192.168.95.1
#
华为核心交换机(有192.168.95.1地址的交换机)
#配置回指路由
Ip route-static 192.168.200.0 24 192.168.95.254
Ip route-static 192.168.210.0 24 192.168.95.254
Ip route-static 192.168.220.0 24 192.168.95.254
#
网友评论