华三二层交换机(S5110)作主备链路接到三层交换机(S5560)的配置过程
三层交换机(S5560)
1、先创建汇聚端口,更改端口类型,允许所以VLAN通过
[S5560-Center]interface Bridge-Aggregation 10 //创建汇聚端口10,并进入汇聚端口10
[S5560-Center-Bridge-Aggregation10]port link-type trunk //把端口类型改为trunk
[S5560-Center-Bridge-Aggregation10]port trunk permit vlan all //将该类型的端口允许所以的VLAN通过
2、在三层交换机(S5560) 上找到2个空闲端口(例:15、16端口空闲),将与二层交换机(S5110) 2个空闲端口(例:47、48端口空闲)做链路汇聚
[S5560-Center-GigabitEthernet1/0/15]port link-type trunk //更改端口类型为trunk
[S5560-Center-GigabitEthernet1/0/15]port trunk permit vlan all //将该类型的端口允许所以的VLAN通过
[S5560-Center-GigabitEthernet1/0/15]port link-aggregation group 10 //将汇聚端口10运用到物理端口15
同理,16端口也是做同样配置
[S5560-Center-GigabitEthernet1/0/16]port link-type trunk //更改端口类型为trunk
[S5560-Center-GigabitEthernet1/0/16]port trunk permit vlan all //将该类型的端口允许所以的VLAN通过
[S5560-Center-GigabitEthernet1/0/16]port link-aggregation group 10 //将汇聚端口10运用到物理端口16
二层交换机(S5110)
1、先创建汇聚端口,更改端口类型,允许所以VLAN通过
[S5110-01]interface Bridge-Aggregation 1 //创建汇聚端口1,并进入汇聚端口1
[S5110-01-Bridge-Aggregation1]port link-type trunk //把端口类型改为trunk
[S5110-01-Bridge-Aggregation1]port trunk permit vlan all //将该类型的端口允许所以的VLAN通过
2、分别进入二层交换机(S5110) 的47、48端口
[S5110-01-GigabitEthernet1/0/47]port link-type trunk //更改端口类型为trunk
[S5110-01-GigabitEthernet1/0/47]port trunk permit vlan all //将该类型的端口允许所以的VLAN通过
[S5110-01-GigabitEthernet1/0/47]port link-aggregation group 1 //将汇聚端口1运用到物理端口47
同理,48端口也是做同样配置
[S5110-01-GigabitEthernet1/0/48]port link-type trunk //更改端口类型为trunk
[S5110-01-GigabitEthernet1/0/48]port trunk permit vlan all //将该类型的端口允许所以的VLAN通过
[S5110-01-GigabitEthernet1/0/48]port link-aggregation group 1 //将汇聚端口1运用到物理端口48
3、将二层交换机(S5110)48口关闭
[S5110-01-GigabitEthernet1/0/48]shutdown
将二层交换机的47口和48口分别与三层交换机的15口和16口用网线连接起来,然后ping该交换机的管理IP,看链路是否通。可以正常ping通的情况下,将二层交换机的48口开启。
[S5110-01-GigabitEthernet1/0/48]undo shutdown
继续观察链路是否能正常ping通,可以正常ping通,证明汇聚链路已经实现了。
另:使用display interface Brie可以查看端口的状态,来确认是否有双链路