您好,登录后才能下订单哦!
1.
配置步骤
(1)配置Device A
<DeviceA> 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 查看配置
2
配置思路
<DeviceC> 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
显示与验证
3
配置思路
配置DeviceB
<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配置
4
配置思路
<Sysname> 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配置
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。