Enter system view, return user view with Ctrl+Z.
[zx]vlan 1 定义vlan
[zx-vlan1]port Ethernet 0/2 将接口e0/2 加入vlan1
[zx]vlan 2
[zx-vlan2]port Ethernet 0/3
[zx]vlan 3
[zx-vlan3]port Ethernet 0/4
port Ethernet 0/8
[zx-vlan3]qu 返回系统配置
[zx]interface Vlanif 1 进入接口
[zx-Vlanif1]ip add 192.168.10.1 255.255.255.0 这块的192.168.10.1就是你pcA的网关
[zx]interface Vlanif 2
[zx-Vlanif1]ip add 192.168.20.1 255.255.255.0
[zx]interface Vlanif 3
[zx-Vlanif1]ip add 192.168.30.1 255.255.255.0
[zx]int e0/8
[zx-e0/8] port link-type trunk 定义trunk
pc可以互通啦 这些配置完以后都能上网啦
至于对c的限制:
[zx]int Ethernet0/4
[zx-Ethernet0/4]port-isolate enable
[zx]int Ethernet0/8
[zx-Ethernet0/8]port-isolate enable
对两个端口进行端口隔离
大哥,我学的是cisco,所以,也帮不了忙。谢谢。