创建三层聚合组
然后进入端口范围
port link-mode route 设置成为路由口
将端口聚合进入三层聚合组
然后设置IP地址
检查三层聚合接口配置
[sw2]interface Route-Aggregation 1
[sw2-Route-Aggregation1]exit
[sw2]interface range GigabitEthernet 1/0/1 to GigabitEthernet 1/0/3
[sw2-if-range]port link-mode route
[sw2-if-range]port link-aggregation group 1
[sw2-if-range]exit
[sw2]interface Route-Aggregation 1
[sw2-Route-Aggregation1]ip address 192.168.1.2 24
[sw2-Route-Aggregation1]undo shutdown
[sw2-Route-Aggregation1]ping 192.168.1.1
Ping 192.168.1.1 (192.168.1.1): 56 data bytes, press CTRL_C to break
56 bytes from 192.168.1.1: icmp_seq=0 ttl=255 time=1.000 ms
56 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=2.000 ms
验证:
display interface Route-Aggregation 1