配置思路
-PC配置IP
-交换机初始化
-设备取名字
-创建vlan
-交换机和pc机用access模式
-并且允许相应的vlan通过
-交换机之间进行捆绑起来
*创建链路聚合口
*端口设置模式
*端口添加成员
*端口模式为trunk模式
*允许所有vlan通过
脚本
undo terminal monitor
system-view
sysname AR1
vlan batch 10 20
interface GigabitEthernet 0/0/1
port link-type access
port default vlan 10
quit
interface GigabitEthernet 0/0/2
port link-type access
port default vlan 20
quit
interface Eth-Trunk 1
mode manual load-balance
trunkport GigabitEthernet 0/0/9
trunkport GigabitEthernet 0/0/10
port link-type trunk
port trunk allow-pass vlan all
quit
undo terminal monitor
system-view
sysname AR2
vlan batch 10 20
interface GigabitEthernet 0/0/1
port link-type access
port default vlan 10
quit
interface GigabitEthernet 0/0/2
port link-type access
port default vlan 20
quit
interface Eth-Trunk 2
mode manual load-balance
trunkport GigabitEthernet 0/0/9
trunkport GigabitEthernet 0/0/10
port link-type trunk
port trunk allow-pass vlan all
quit
display eth-trunk