华为S3552的vlan设置及步骤

2024-12-27 00:06:05
推荐回答(1个)
回答1:

脚本如下:
#
system
#
vlan 10 20 30
#
interface Ethernet 0/1
Port link-type access
#
interface Ethernet 0/2
Port link-type access
#
interface Ethernet 0/3
Port link-type access
#
vlan 10
Port Ethernet 0/1
#
vlan 20
Port Ethernet 0/2
#
vlan 30
Port Ethernet 0/3
#
interface Ethernet 0/24
Port link-type trunk
port trunk permit vlan 10 20 30
#
interface vlan 10
ip address 10.61.118.1 255.255.255.240
#
interface vlan 20
ip address 10.61.118.17 255.255.255.240
#
interface vlan 30
ip address 10.61.118.33 255.255.255.240
#
quit
#
save//备注:24口为上行口