admin 发表于 2021-11-4 14:07:49

15 三层动态链路聚合

15 三层动态链路聚合                              基本配置<H3C>system-viewsysname sw1vlan 10 name pcdescription pcvlanquitinterface vlan-interface 10ip address 192.168.10.1 24quitinterface gigabitethernet 1/0/48port link-type accessport access vlan 10quit配置交换机链路聚合控制协议的优先级(值越小优先级越高使SW1成为主动端)lacp system-priority 100//配置LACP系统优先级100link-aggregation global load-sharing mode source-ipdestination-ip source-mac destination-mac //配置链路聚合全局负载分担模式创建三层路由链路聚合组interface route-aggregation 1//创建三层链路聚合组link-aggregation mode dynamic//配置链路聚合模式为动态ip address 172.16.100.1 24//为聚合接口配置IP地址link-aggregation selected-portmaximum 2//配置链路聚合最大选择两个端口(未选中的会成为备份链路)quit将二层端口转换成三层接口并划入链路聚合组interface range gigabitethernet 1/0/1 togigabitethernet 1/0/3//进入端口范围port link-mode route//端口类型改为路由接口port link-aggregation group 1//将端口划入链路聚合组quitinterface range GigabitEthernet 1/0/1 toGigabitEthernet 1/0/2link-aggregation port-priority 100//配置链路聚合接口的优先级(高优先级会被选中为主动接口)quit配置静态路由ip route-static 192.168.20.0 255.255.255.0172.16.100.2 <H3C>system-viewsysname sw2interface gigabitethernet 1/0/48port link-mode routeip address 192.168.20.1 24quit link-aggregation global load-sharing modedestination-mac source-mac destination-ip source-ip link-aggregation mode dynamicinterface route-aggregation 1ip address 172.16.100.2 24link-aggregation selected-portmaximum 2quit interface range GigabitEthernet 1/0/1 toGigabitEthernet 1/0/3port link-mode routeport link-aggregation group 1quitdisplay link-aggregation summary display link-aggregation verbose ip route-static 192.168.10.0 255.255.255.0172.16.100.1 将SW1的G 1/0/2接口掉电shutdowndisplay link-aggregation verbose 此时G 1/0/3备份链路成为选中链路继续代替G 1/0/2接口工作。
页: [1]
查看完整版本: 15 三层动态链路聚合

公司网站