华为S2352P-EI交换机,怎么以每个端口配置一个vlan,然后设置所有的vlan都可以从48端口通信?

如题所述

第1个回答  2012-05-16
>system-view
创建vlan
vlan 1
port g1/0/1 说明:创建vlan1,并且g1/0/1属于vlan 1
后面创建的方式都一样,省略。。。
最后一个端口设置为trunk
interface g1/0/48
port link-type trunk
port trunk permit vlan 1 to 47 说明:设置端口类型为trunk,允许vlan 1到47的流量通过。追问

命令执行错误。。
然后我用的是这个命令
interface ethernet0/0/35
port link-type access
port default vlan 36
bpdu enable
ntdp enable
ndp enable

现在的问题是我执行 port link-type trunk 提示错误。

第2个回答  2012-05-15
................................
interface Ethernet1/0/1
port access vlan 1
loopback-detection enable
#
interface Ethernet1/0/2
port access vlan 2
loopback-detection enable
#
interface Ethernet1/0/3
port access vlan 3
loopback-detection enable
.............................................
interface Ethernet1/0/48
port link-type trunk
port trunk permit vlan 1 to XX */* VLAN 的范围
loopback-detection enable

........................................追问

明天上班测试下,看代码好像可以。。这款交换机我找的华为命令都用不了

命令执行错误。。
然后我用的是这个命令
interface ethernet0/0/35
port link-type access
port default vlan 36
bpdu enable
ntdp enable
ndp enable

现在的问题是我执行 port link-type trunk 提示错误。

本回答被提问者采纳
第3个回答  2012-05-15
使用主从VLAN技术即可实现。具体配置命令可以在H3C的配置命令手册上找到,也可以在网络中找到。