en
conf t
vlan xx
interface port-channel1
switchport mode access
switchport access vlan xx
interface FastEthernet0/4
switchport mode access
switchport access vlan xx
channel-group 1 mode on
interface FastEthernet0/5
switchport mode access
switchport access vlan xx
channel-group 1 mode on
vlan xx
interface port-channel2
switchport mode access
switchport access vlan xx
interface FastEthernet0/8
switchport mode access
switchport access vlan xx
channel-group 2 mode on
interface FastEthernet0/18
switchport mode access
switchport access vlan xx
channel-group 2 mode on
vlan 7
interface FastEthernet0/9
switchport mode access
switchport access vlan 7
no shutdown
vlan 8
interface FastEthernet0/10
switchport mode access
switchport access vlan 8
no shutdown
end
write
配置完成后使用
#show ip int brief //查看接口状态
#show vlan brief //查看vlan数据库信息
#show etherchannel summary //查看聚合端口状态
#show run interface gigabitEthernet 1/1 //查看该接口配置信息
# show run interface port-channel 1 //查看该聚合接口配置信息
----------------------------------------------------------------------------------------------------------------------------
system-view
vlan 348
interface GigabitEthernet1/0/4
port link-mode bridge
port access vlan 348
undo shutdown
vlan 350
interface GigabitEthernet1/0/5
port link-mode bridge
port access vlan 350
undo shutdown
vlan 360
interface GigabitEthernet1/0/6
port link-mode bridge
port access vlan 360
undo shutdown
Quit
save
配置完成后使用
>display interface brief //查看接口状态
>display vlan 或者>display vlan all //查看vlan数据库信息
>display link-aggregation verbose Bridge-Aggregation 1 //查看聚合端口状态
>display current-configuration interface GigabitEthernet 1/0/1 //查看该接口配置信息
>display current-configuration interface Bridge-Aggregation1 //查看该聚合接口配置信息