最佳答案
您好,您可以参考如下配置:
//进入系统视图
<H3C>sys
//创建vlan
[H3C]vlan 2 to 4
//创建vlan虚接口做各个vlan的网关,做完成转发
[H3C]interface Vlan-interface 1
[H3C-Vlan-interface1]ip address 192.168.1.1 255.255.255.0
[H3C-Vlan-interface1]quit
[H3C]interface Vlan-interface 2
[H3C-Vlan-interface2]ip address 192.168.2.1 255.255.255.0
[H3C-Vlan-interface2]quit
[H3C]interface Vlan-interface 3
[H3C-Vlan-interface3]ip address 192.168.3.1 255.255.255.0
[H3C-Vlan-interface3]quit
[H3C]interface Vlan-interface 4
[H3C-Vlan-interface4]ip address 192.168.4.1 255.255.255.0
[H3C-Vlan-interface4]quit
//配置连接二层交换机的接口加入对应vlan
[H3C]int g1/0/2
[H3C-GigabitEthernet1/0/2]port access vlan 2
[H3C-GigabitEthernet1/0/2]quit
[H3C]int g1/0/3
[H3C-GigabitEthernet1/0/3]port access vlan 3
[H3C-GigabitEthernet1/0/3]quit
[H3C]int g1/0/4
[H3C-GigabitEthernet1/0/4]port access vlan 4
[H3C-GigabitEthernet1/0/4]quit
配置完以上配置后,vlan之间就能互访了
具体您可以参考:
http://www.h3c.com/cn/Service/Document_Software/Document_Center/Switches/Catalog/S5130/S5130S-EI/Configure/Operation_Manual/H3C_S5130S-HI[EI]_S5110V2_R612x-CG-6W102/03/
(0)
#创建vlan命令
vlan 100
#设置ip
interface Vlan-interface 100
ip add 192.168.11.230 24
quit
#端口设trunk
interface GigabitEthernet1/0/24
port link-type trunk port trunk permit vlan all
端口设acess vlan
interface GigabitEthernet1/0/1
port access vlan 100
(1)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论