系统集成论坛

标题: h3c基于端口的VLAN典型配置 [打印本页]

作者: huangban    时间: 2018-8-15 17:08
标题: h3c基于端口的VLAN典型配置
基于端口的VLAN典型配置

配置 Device A
# 创建 VLAN 100,并将 Ten-GigabitEthernet1/0/1 加入 VLAN 100。
[DeviceA] vlan 100
[DeviceA-vlan100] port ten-gigabitethernet 1/0/1
[DeviceA-vlan100] quit
# 创建 VLAN 200,并将 Ten-GigabitEthernet1/0/2 加入 VLAN 200。
[DeviceA] vlan 200
2
[DeviceA-vlan200] port ten-gigabitethernet 1/0/2
[DeviceA-vlan200] quit
# 为了使 Device A 上 VLAN 100 和 VLAN 200 的报文能发送给 Device B , 将
Ten-GigabitEthernet1/0/3 的链路类型配置为 Trunk,并允许 VLAN 100 和 VLAN 200 的报文通过。
[DeviceA] interface ten-gigabitethernet 1/0/3
[DeviceA-Ten-GigabitEthernet1/0/3] port link-type trunk
[DeviceA-Ten-GigabitEthernet1/0/3] port trunk permit vlan 100 200
(2) Device B 上的配置与 Device A 上的配置相同,不再赘述。
(3) 将 Host A 和 Host C 配置在一个网段,例如 192.168.100.0/24;将 Host B 和 Host D 配置在
一个网段,比如 192.168.200.0/24。







欢迎光临 系统集成论坛 (http://bbs.xtjc.com/) Powered by Discuz! X3.1