最佳答案
进入命令行,创建VLAN 5、VLAN6、VLAN7
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C]vlan 5
[H3C-vlan5]quit
[H3C]vlan 6
[H3C-vlan6]quit
[H3C]vlan 7
[H3C-vlan7]quit
3.2 将接口分别加入VLAN 中,有以下2种方法
方法一:在VLAN 5视图里面将GigabitEthernet1/0/5口加入VLAN 5中:
[H3C-vlan5]port GigabitEthernet1/0/5
[H3C-vlan5]quit
方法二:在GigabitEthernet1/0/5的接口视图下,将PVID属性改为VLAN 5:
[H3C]interface GigabitEthernet1/0/5
[H3C-GigabitEthernet1/0/5]port access vlan 5
[H3C-GigabitEthernet1/0/5]quit
GigabitEthernet1/0/6 、GigabitEthernet1/0/7口以及加入VLAN6、VLAN7的方式也如是,此处不在赘述
3.3 保存配置
[H3C]save force
(0)
您好,请知:
以下是VLAN划分的方法,请参考:
方法一举例:
[H3C]vlan 10 //创建VLAN
[H3C-vlan10]port gi 1/0/1 to gi 1/0/10 //直接划分到1口到10口
[H3C-vlan10]quit
[H3C]dis vlan 10 //查看VLAN的信息
VLAN ID: 10
VLAN type: Static
Route interface: Not configured
Description: VLAN 0010
Name: VLAN 0010
Tagged ports: None
Untagged ports:
GigabitEthernet1/0/1 GigabitEthernet1/0/2
GigabitEthernet1/0/3 GigabitEthernet1/0/4
GigabitEthernet1/0/5 GigabitEthernet1/0/6
GigabitEthernet1/0/7 GigabitEthernet1/0/8
GigabitEthernet1/0/9 GigabitEthernet1/0/10
方法二举例:
[H3C]vlan 20 //创建VLAN 20
[H3C-vlan20]quit
[H3C]int range gi 1/0/20 to gi 1/0/30 //批量进入20口到30口
[H3C-if-range]port link-type access //将端口配置为access模式
[H3C-if-range]port access vlan 20 //将VLAN 20划分到20口到30口
[H3C-if-range]quit
[H3C]dis vlan 20 //查看VLAN信息
VLAN ID: 20
VLAN type: Static
Route interface: Not configured
Description: VLAN 0020
Name: VLAN 0020
Tagged ports: None
Untagged ports:
GigabitEthernet1/0/20 GigabitEthernet1/0/21
GigabitEthernet1/0/22 GigabitEthernet1/0/23
GigabitEthernet1/0/24 GigabitEthernet1/0/25
GigabitEthernet1/0/26 GigabitEthernet1/0/27
GigabitEthernet1/0/28 GigabitEthernet1/0/29
GigabitEthernet1/0/30
(0)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论