快上网专注成都网站设计 成都网站制作 成都网站建设
成都网站建设公司服务热线:028-86922220

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

华三模拟器vlan配置实例

1.华三模拟器vlan配置实例

创新互联建站坚持“要么做到,要么别承诺”的工作理念,服务领域包括:成都网站制作、网站建设、外贸网站建设、企业官网、英文网站、手机端网站、网站推广等服务,满足客户于互联网时代的墨江网站设计、移动媒体设计的需求,帮助企业找到有效的互联网解决方案。努力成为您成熟可靠的网络建设合作伙伴!

配置步骤
(1)配置Device A
system-view
[DeviceA] vlan 100
[DeviceA-vlan100] port gigabitethernet 1/0/1
[DeviceA-vlan100] quit
[DeviceA] vlan 200
[DeviceA-vlan100] port gigabitethernet 1/0/2
[DeviceA-vlan100] quit
[DeviceA] interface gigabitethernet 1/0/3
[DeviceA-GigabitEthernet1/0/3] port link-type trunk
[DeviceA-GigabitEthernet1/0/3] port trunk permit vlan 100 200
配置deviceB与deviceA相同
(2)输入display vlan 100 和display vlan200 查看配置
华三模拟器vlan配置实例

2
华三模拟器vlan配置实例

配置思路
system-view
[DeviceC] vlan 100
[DeviceC-vlan100] ip-subnet-vlan ip 192.168.5.0 255.255.255.0
[DeviceC-vlan100] quit
[DeviceC] vlan 200
[DeviceC -vlan200] ip-subnet-vlan ip 192.168.50.0 255.255.255.0
[DeviceC -vlan200] quit
[DeviceC] interface ten-gigabitethernet 1/0/11 [DeviceC·Ten-GigabitEthernet1/0/11] port link-type hybrid
[DeviceC-Ten-G igabitEthernet1/0/11] port hybrid vlan 100 tagged
[DeviceC-Ten-GigabitEthernet1/0/1] quit
[DeviceC] interface ten-gigabitethernet 1/0/12
[DeviceC-Ten-GigabitEthernet1/0/12] port link-type hybrid
[DeviceC-Ten-GigabitEthernet1/012] port hybrid vlan 200 tagged[DeviceC-Ten-G igabitEthernet1/0/12] quit
[DeviceC] interface ten-gigabitethernet 1/0/1 [DeviceC-Ten-GigabitEthernet101 port link-type hybrid
[DeviceC-Ten-GigabitEthernet101] port hybrid vlan 100 200 untagged
[DeviceC-Ten-GigabitEthernet10/1] port hybrid ip-subnet-vlan vlan 100
[DeviceC-Ten-GigabitEthernet101 port hybrid ip-subnet-vlan vlan 200
[DeviceC-Ten-GigabitEthernet101 quit
配置deviceA和deviceB允许对应vlan通过
[DeviceA] interface gigabitethernet 1/0/11
[DeviceA-GigabitEthernet1/0/11] port link-type trunk
[DeviceA-GigabitEthernet1/0/11] port trunk permit vlan 100

[DeviceB] interface gigabitethernet 1/0/2
[DeviceB-GigabitEthernet1/0/12] port link-type trunk
[DeviceB-GigabitEthernet1/0/12] port trunk permit vlan 200

显示与验证
华三模拟器vlan配置实例

3
华三模拟器vlan配置实例

配置思路
配置DeviceB
system-view
[DeviceB] vlan 5
[DeviceB-vlan5] private-vlan primary
[DeviceB-vlan5] quit[DeviceB] vlan 10
[DeviceB-vlan10] private-vlan primary
[DeviceB-vlan10] quit

[DeviceB] vlan2 to 3
[DeviceB] vlan 6
[DeviceB-vlan6] quit
[DeviceB] vlan 8
[DeviceB-vlan8] quit

[DeviceB] interface gigabitethernet 1/0/1
[DeviceB- GigabitEthernet1/0/1] port private-vlan 5 10 trunk promiscuous
[D eviceB- Giaabit Ethernet1 /0/1 ]quit
[DeviceB] interface gigabitethernet 1/0/2
[DeviceB· GigabitEthernet1/0/2] port access vlan 2
[DeviceB- GigabitEthernet1/0/2] port private-vlan host
[DeviceB- GigabitEthernet1/0/2] quit
[DeviceB] interface ten-gigabitethernet 1/0/3
[DeviceB- GigabitEthernet1/0/3] port access vlan 3
[DeviceB· GigabitEthernet1/0/3] port private-vlan host[DeviceB- GigabitEthernet1/03] quit
[DeviceB] interface gigabitethernet 1/0/6
[DeviceB- GigabitEthernet1/0/6] port access vlan 6
[DeviceB- GigabitEthernet1/0/6] port private-vlan host
[DeviceB- GigabitEthernet1/0/6] quit
[DeviceB] interface gigabitethernet 1/0/8
[DeviceB- GigabitEthernet1/0/8] port access vlan 8
[DeviceB- GigabitEthernet1/0/8] port private-vlan host
[DeviceB- GigabitEthernet1/0/8] quit
[DeviceB] vlan 10
[DeviceB-vlan10] private-vlan secondary 6 8
[DeviceB-vlan10] quit
配置DeviceA
[DeviceA] vlan 5
[DeviceA-vlan5] quit
[DeviceA] vlan 10
[DeviceA-vlan10] quit
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA- GigabitEthernet1/0/1] port link-type hybrid
[DeviceA- GigabitEthernet1/0/1] port hybrid vlan 5 10 tagged
[DeviceA- GigabitEthernet1/0/1] quit

查看DeviceB上面Primary vlan5配置
华三模拟器vlan配置实例

4
华三模拟器vlan配置实例

配置思路
system-view
[Sysname] vlan 10
[Sysname-vlan10] quit
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ip address 10.0.0.1 255.255.255.0
[Sysname-Vlan-interface10] local-proxy-arp enable
[Sysname-Vlan-interface10] quit
[Sysname] vlan 2
[Sysname-vlan2] port gigabitethernet 1/0/1 gigabitethernet 1/0/2
[Sysname-vlan2] quit
[Sysname] vlan 3
[Sysname-vlan3] port gigabitethernet 1/0/3 gigabitethernet 1/0/4
[Sysname-vlan3] quit
[Sysname] vlan 5
[Sysname-vlan5] port gigabitethernet 1/0/5 gigabitethernet 1/0/6
[Sysname-vlan5] quit
[Sysname] vlan 10
[Sysname-vlan10] supervlan
[Sysname-vlan10] subvlan 235[Sysname-vlan10] quit
[Sysname] quit

查看supvlan配置

华三模拟器vlan配置实例


文章标题:华三模拟器vlan配置实例
新闻来源:http://6mz.cn/article/ggpsgi.html

其他资讯