一个接入交换机,配置一个网段,划分再一个vlan下。需要另外两个不同的vlan下的不同网段进行访问互相通信
(0)
参考以下:
<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
方法一:在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的方式也如是,此处不在赘述
[H3C]save force
(0)
您好,请知:
关于同一台交换机不同3个VLAN互通,只需要创建VLAN,配置VLAN IP,将VLAN划分到端口就可以了,参考命令如下:
vlan 10
quit
vlan 20
quit
vlan 30
quit
int gi 1/0/1
port link-type access
port access vlan 10
quit
int gi 1/0/2
port link-type access
port access vlan 20
quit
int gi 1/0/3
port link-type access
port access vlan 30
quit
int vlan 10
ip address 192.168.10.1 24
quit
int vlan 20
ip address 192.168.20.1 24
quit
int vlan 30
ip address 192.168.30.1 24
quit
由于有接入交换机,需要和接入交换机开启trunk,并允许VLAN通过,核心侧配置如下:
int gi 1/0/4
port link-type trunk
port trunk permit vlan all
quit
接入侧配置如下:
vlan 10
quit
vlan 20
quit
vlan 30
quit
int gi 1/0/1
port link-type access
port access vlan 10
quit
int gi 1/0/2
port link-type access
port access vlan 20
quit
int gi 1/0/3
port link-type access
port access vlan 30
quit
int gi 1/0/4
port link-type trunk
port trunk permit vlan all
quit
(1)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论