一、路由器和路由器聚合
负载均衡+冗余,断掉任何一条线缆,通信不受影响
[R1]int Eth-Trunk 1
[R1-Eth-Trunk1]undo portswitch
[R1-Eth-Trunk1]ip add 12.1.1.1 24
[R1-Eth-Trunk1]int g0/0/0
[R1-GigabitEthernet0/0/0]eth-trunk 1
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]eth-trunk 1
[R1-Eth-Trunk1]undo portswitch #将二层逻辑接口提升为三层接口
调式命令:
[R1]dis ip int brief
同样的配置R2
[R2]int Eth-Trunk 1
[R2-Eth-Trunk1]undo portswitch
[R2-Eth-Trunk1]ip add 12.1.1.2 24
[R2-Eth-Trunk1]int g0/0/0
[R2-GigabitEthernet0/0/0]eth-trunk 1
[R2-GigabitEthernet0/0/0]int g0/0/1
[R2-GigabitEthernet0/0/1]eth-trunk 1
验证测试
<R1>ping -c 10000 12.1.1.2 #路由器不能ping -t,-c 包数量
ping测试的同时断开一条线缆,网络不受影响
二、多层交换机与多层交换机聚合
SW1配置命令:
[SW1]vlan 10
[SW1-vlan10]qu
[SW1]int Eth-Trunk 1
[SW1-Eth-Trunk1]port link-ty access
[SW1-Eth-Trunk1]port default vlan 10
[SW1-Eth-Trunk1]int g0/0/1
[SW1-GigabitEthernet0/0/1]eth-trunk 1
[SW1-GigabitEthernet0/0/1]int g0/0/2
[SW1-GigabitEthernet0/0/2]eth-trunk 1
[SW1-GigabitEthernet0/0/2]int vlan 10
[SW1-Vlanif10]ip add 12.1.1.1 24
同样的配置SW2,略
测试验证:
[SW1]ping -c 10000 12.1.1.2
三、路由器和多层交换机聚合
路由器R1配置:
[R1]int Eth-Trunk 1
[R1-Eth-Trunk1]undo portswitch
[R1-Eth-Trunk1]ip add 12.1.1.1 24
[R1-Eth-Trunk1]int g0/0/0
[R1-GigabitEthernet0/0/0]e 1
[R1-GigabitEthernet0/0/0]int g0/0/1
[R1-GigabitEthernet0/0/1]e 1
交换机SW1配置:
[SW1]vlan 10
[SW1-vlan10]qu
[SW1]int Eth-Trunk 1
[SW1-Eth-Trunk1]port link-type access
[SW1-Eth-Trunk1]port default vlan 10
[SW1-Eth-Trunk1]int g0/0/1
[SW1-GigabitEthernet0/0/1]eth-trunk 1
[SW1-GigabitEthernet0/0/1]int g0/0/2
[SW1-GigabitEthernet0/0/2]eth-trunk 1
[SW1-GigabitEthernet0/0/2]int vlan 10
[SW1-Vlanif10]ip add 12.1.1.2 24
测试验证:
[R1]ping -c 10000 12.1.1.2
*链路聚合成功完成后,任意断开任何一条线缆网络都不会中断
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)