路由器配置静态以太链路聚合组
网络需求
R1和Device2之间配置静态聚合组,以实现增加带宽、负载均衡和业务备份。
网络拓扑
配置步骤
步骤1:
创建静态以太链路聚合组。
#在R1上创建静态聚合组0。
R1#configure terminal
R1(config)#interface route-aggregation 0
R1(config-if-route-aggregation0)#ip add 192.168.1.1 24
R1(config-if-route-aggregation0)#exit
#在R2上创建静态聚合组0。
R2#configure terminal
R2(config)#interface route-aggregation 0
R2(config-if-route-aggregation0)#ip add 192.168.1.2 24
R2(config-if-route-aggregation0)#exit
步骤2:
配置接口加入聚合组。
#在R1上分别将接口gigabitethernet 0/3/0、gigabitethernet 0/3/1加入聚合组0中。
R1(config)#interface gigabitethernet 0/3/0
R1(config-if-gigabitethernet0/3/0)#route-aggregation group 0
R1(config-if-gigabitethernet0/3/0)#exit
R1(config)#interface gigabitethernet 0/3/1
R1(config-if-gigabitethernet0/3/1)#route-aggregation group 0
R1(config-if-gigabitethernet0/3/1)#exit
#在R2上分别将接口gigabitethernet 0/4/0、gigabitethernet 0/4/1加入聚合组0中。
R2(config)#interface gigabitethernet 0/4/0
R2(config-if-gigabitethernet0/4/0)#route-aggregation group 0
R2(config-if-gigabitethernet0/4/0)#exit
R2(config)#interface gigabitethernet 0/4/1
R2(config-if-gigabitethernet0/4/1)#route-aggregation group 0
R2(config-if-gigabitethernet0/4/1)#exit
#配置完成后,在设备上查看聚合组0和成员口的信息。
以R1为例:
R1#show interface route-aggregation 0
route-aggregation0:
line protocol is up
Flags: (0xc008063) BROADCAST MULTICAST ARP RUNNING
Type: ETHERNET_CSMACD
Internet address: 192.168.1.1/24
Broadcast address: 192.168.1.255
Metric: 0, MTU: 1500, BW: 2000000 Kbps, DLY: 100 usec, VRF: global
Reliability 255/255, Txload 1/255, Rxload 1/255
Ethernet address is 5002.cdd5.ce2a
Last clearing of "show interface" counters never
input peak rate 48 bits/sec, 0 hour 5 minutes 27 seconds ago
output peak rate 67 bits/sec, 0 hour 10 minutes 7 seconds ago
5 minutes input rate 0 bit/sec, 0 packet/sec, bandwidth utilization -
5 minutes output rate 0 bit/sec, 0 packet/sec, bandwidth utilization -
2 packets received; 2 packets sent
120 bytes received; 84 bytes sent
0 multicast packets received
0 multicast packets sent
0 input errors; 0 output errors
0 collisions; 0 dropped
Unknown protocol 0
Members(counts:2):
gi0/3/1(up)
gi0/3/0(up)
R1#show route-aggregation member summary
IfIndex Slot Agg Flag State Sync location Ifname
---------- ---- --- -------- ----- ---- ---------- --------------------
50331698 0 0 1 UP F 50 |333 gigabitethernet0/3/0
50331699 0 0 1 UP F 51 |334 gigabitethernet0/3/1
可以看到,R1上的接口gigabitethernet0/3/0、gigabitethernet0/3/1已成功加入聚合组0且为up状态,聚合组0链路总带宽为2000Mbps。