VLAN划分:
思科交换机:
show ip interface brief 查看接口状态
show vlan brief 查看vlan数据库信息
show etherchannel summary 查看聚合端口状态
show run interface gigabitEthernet 1/1 查看该接口配置信息
show run interface port-channel 1 查看该聚合接口配置信息
access:
enable
Switch#configure terminal 配置模式
Switch(config)#vlan 100 新建100VLAN
Switch(config-vlan)#exit 退出
Switch(config)#interface fastEthernet 0/5 进入5口
Switch(config-if)#switchport mode access 定义端口模式
Switch(config-if)#switchport access vlan 100 给5口划100
Switch(config-if)#end
Switch#write
bond + access:
configure terminal
vlan 100
exit
interface port-channel 1
switchport mode access
switchport access vlan 100
spanning-tree portfast
interface fastEthernet 0/11
switchport mode access
switchport access vlan 100
channel-group 1 mode on
interface fastEthernet 0/12
switchport mode access
switchport access vlan 100
channel-group 1 mode on
exit
end
write
H3C交换机
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 查看该聚合接口配置信息
access:
system-view vlan 10 exit interface GigabitEthernet 1/0/1 port link-mode bridge port access vlan 10 quit interface GigabitEthernet 1/0/2 port link-mode bridge port access vlan 10 quit save y
bond + access:
system-view
vlan 100
quit
interface Bridge-Aggregation 1
port access vlan 100
quit
interface GigabitEthernet 1/0/1
port link-mode bridge
port access vlan 100
port link-aggregation group 1
interface GigabitEthernet 1/0/2
port link-mode bridge
port access vlan 100
port link-aggregation group 1
qu save y