h3c3600交换机三层交换机关于VLAN划分的 配置实例

2024年11月02日 19:57
有1个网友回答
网友(1):

system-view
#
创建vlan100
[switcha]
vlan
100
,分配ethernet
1/0/1给vlan100
[switcha-vlan100]
description
vlan_100
[switcha-vlan100]
port
ethernet
1/0/1
[switcha-vlan100]
quit
#
创建vlan200
[switcha]
vlan
200
,分配ethernet
1/0/2给vlan200
[switcha-vlan200]
description
vlan_200
[switcha-vlan100]
port
ethernet
1/0/2
[switcha-vlan200]
quit
#
创建vlan300,分配ethernet
1/0/3给vlan300
[switcha]
vlan
300
[switcha-vlan300]
description
vlan_300
[switcha-vlan300]
port
ethernet
1/0/3
[switcha-vlan300]
quit
#
创建vlan接口,ip
地址分别配置为192.168.10.1

192.168.20.1,192.168.30.1
[switcha]
interface
vlan-interface
100
[switcha-vlan-interface100]
ip
address
192.168.10.1
24
[switcha-vlan-interface100]
quit
[switcha]
interface
vlan-interface
200
[switcha-vlan-interface200]
ip
address
192.168.20.1
24
[switcha-vlan-interface200]
quit
[switcha]
interface
vlan-interface
300
[switcha-vlan-interface300]
ip
address
192.168.30.1
24
[switcha-vlan-interface300]
quit
交换机默认开启路由功能,vlan之间不能直接通信需要通过vlan接口地址进行三层转发。各vlan中的电脑网关地址可以设为相应的vlan接口地址。
把配置文件删了,重新写一遍试试。