只见华小阮老师走上讲台,将目光落在了华小智身上,亲切的说道...
只见华小阮老师走上讲台,将目光落在了华小智身上,亲切的说道:“前面我们已经对IRF及MAD多主检测的相关理论进行了充分的了解,接下来让我们请华小智同学为我们进行IRF配置示例的演示。”今天我们主要关注IRF配置及通过BFD MAD实现多主检测,配置示例需要用到的环境如图1所示。SWA-1和SWA-2组成IRF堆叠系统,其接口XGE1/0/50和XG1/0/51为物理堆叠口,G1/0/9接口为BFD MAD检测接口;IRF堆叠系统通过三层聚合接口上联RT1,通过二层聚合接口下联SWB。
图1接下来,我们完成相关的配置示例。第一步:完成SWA-1和SWA-2的IRF配置。在SWA-1上的配置:[SWA-1]irf member 1 priority 32 //修改member 1设备上的优先级为32(使其角色竞选时胜出)[SWA-1]interface range Ten-GigabitEthernet 1/0/50 Ten-GigabitEthernet 1/0/51[SWA-1-if-range]shutdown //关闭物理堆叠口[SWA-1-if-range]quit[SWA-1]irf-port 1/2 //创建逻辑堆叠口[SWA-1-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/50 //将物理堆叠口绑定到逻辑堆叠口[SWA-1-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/51[SWA-1-irf-port1/2]quit [SWA-1]interface range Ten-GigabitEthernet 1/0/50 Ten-GigabitEthernet 1/0/51[SWA-1-if-range]undo shutdown //开启物理堆叠口[SWA-1-if-range]quit[SWA-1]save f //保存配置[SWA-1]irf-port-configuration active //激活IRF堆叠口配置--------------------------------------------------------------------------------------------------------------------------[SWA-2]irf member 1 renumber 2 //为设备指定新的设备编号Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:yPlease reboot the device for the new member ID to take effect. //提示重启设备新编号才生效[SWA-2]quit<SWA-2>reboot //重启设备,记得保存配置[SWA-2]interface range Ten-GigabitEthernet 2/0/50 Ten-GigabitEthernet 2/0/51[SWA-2-if-range]shutdown //关闭物理堆叠口[SWA-2-if-range]quit[SWA-2]irf-port 2/1[SWA-2-irf-port2/1]port group interface Ten-GigabitEthernet 2/0/50 //将物理堆叠口绑定到逻辑堆叠口[SWA-2-irf-port2/1]port group interface Ten-GigabitEthernet 2/0/51[SWA-2-irf-port2/1]quit[SWA-2]interface range Ten-GigabitEthernet 2/0/50 Ten-GigabitEthernet 2/0/51[SWA-2-if-range]undo shutdown //开启物理堆叠口[SWA-2-if-range]quit[SWA-2]save f //保存配置[SWA-2]irf-port-configuration active //激活IRF堆叠口配置此时,因为SWA-1的irf优先级为32且先配置完成,SWA-2的irf优先级1,所以当在SWA-2上激活IRF堆叠口的配置,由于竞选失败,SWA-2会自动重启并以从设备的角色加入到IRF中。在SWA-1上通过命令“display irf”可以查询到IRF堆叠系统已经组建成功。<SWA-1>display irfMemberID Role Priority CPU-Mac Description *+1 Master 32 688f-b95d-0204 --- 2 Standby 1 688f-becc-0304 ----------------------------------------------------- * indicates the device is the master. //“*”在哪个成员ID前则表示该设备为主设备 + indicates the device through which the user logs in. //“+”在哪个成员ID前则表示此次是通过该设备登录管理IRF系统。 The bridge MAC of the IRF is: 688f-b95d-0200 Auto upgrade : yes Mac persistent : 6 min Domain ID : 0第二步:实现BFD MAD检测。通过IRF堆叠系统并进行相关的配置如下:[SWA-1]vlan 4094 //创建BFD MAD检测vlan[SWA-1-vlan4094]port GigabitEthernet 1/0/9 //向vlan4094中添加端口[SWA-1-vlan4094]port GigabitEthernet 2/0/9[SWA-1-vlan4094]quit[SWA-1]interface range GigabitEthernet 1/0/9 GigabitEthernet 2/0/9[SWA-1-if-range]undo stp enable //关闭BFD MAD检测接口stp功能[SWA-1-if-range]quit[SWA-1]interface Vlan-interface 4094[SWA-1-Vlan-interface4094]mad bfd enable //使能BFD MAD检测[SWA-1-Vlan-interface4094]mad ip address 172.16.10.1 24 member 1 //为Master配置bfd mad地址[SWA-1-Vlan-interface4094]mad ip address 172.16.10.2 24 member 2 //为Standby配置bfd mad地址[SWA-1-Vlan-interface4094]quit第三步:完成IRF堆叠系统通过三层聚合接口上联RT1。在IRF堆叠系统上的配置:[SWA-1]interface range GigabitEthernet 1/0/1 GigabitEthernet 2/0/1[SWA-1-if-range]port link-mode route //将接口模式有bridge(二层)修改为route(三层)[SWA-1-if-range]quit[SWA-1]interface Route-Aggregation 1[SWA-1-Route-Aggregation1]link-aggregation mode dynamic //配置为动态链路聚合[SWA-1-Route-Aggregation1]quit[SWA-1]interface range GigabitEthernet 1/0/1 GigabitEthernet 2/0/1[SWA-1-if-range]port link-aggregation group 1 //将成员接口添加到聚合组[SWA-1-if-range]quit------------------------------------------------在RT1上的配置:[RT1]interface Route-Aggregation 1[RT1-Route-Aggregation1]link-aggregation mode dynamic [RT1-Route-Aggregation1]quit[RT1]interface range GigabitEthernet 0/0 GigabitEthernet 0/1[RT1-if-range]port link-aggregation group 1[RT1-if-range]quit//通过命令“display link-aggregation verbose”查看链路聚合信息。[RT1]display link-aggregation verbose Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing Port Status: S -- Selected, U -- Unselected, I -- Individual Port: A -- Auto port Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, D -- Synchronization, E -- Collecting, F -- Distributing, G -- Defaulted, H -- ExpiredAggregate Interface: Route-Aggregation1Creation Mode: ManualAggregation Mode: DynamicLoadsharing Type: SharSystem ID: 0x8000, 688f-a41b-0100Local: Port Status Priority Oper-Key Flag-------------------------------------------------------------------------------- GE0/0 S 32768 1 {ACDEF} GE0/1 S 32768 1 {ACDEF}Remote: Actor Partner Priority Oper-Key SystemID Flag -------------------------------------------------------------------------------- GE0/0 1 32768 1 0x8000, 688f-b95d-0200 {ACDEF} GE0/1 2 32768 1 0x8000, 688f-b95d-0200 {ACDEF}第四步:完成IRF堆叠系统通过二层聚合接口下联SWB。在IRF堆叠系统上的配置:[SWA-1]interface Bridge-Aggregation 10[SWA-1-Bridge-Aggregation10]link-aggregation mode dynamic //配置为动态链路聚合[SWA-1-Bridge-Aggregation10]quit[SWA-1]interface range GigabitEthernet 1/0/2 GigabitEthernet 2/0/2[SWA-1-if-range]port link-aggregation group 10 //将成员接口添加到聚合组[SWA-1-if-range]quit------------------------------------------------[SWB]interface Bridge-Aggregation 1[SWB-Bridge-Aggregation1]link-aggregation mode dynamic //配置为动态链路聚合[SWB-Bridge-Aggregation1]quit[SWB]interface range GigabitEthernet 1/0/1 GigabitEthernet 1/0/2[SWB-if-range]port link-aggregation group 1 //将成员接口添加到聚合组[SWB-if-range]quit//通过命令“display link-aggregation verbose”查看链路聚合信息。[SWB]display link-aggregation verbose Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing Port Status: S -- Selected, U -- Unselected, I -- Individual Port: A -- Auto port, M -- Management port, R -- Reference port Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, D -- Synchronization, E -- Collecting, F -- Distributing, G -- Defaulted, H -- Expired Aggregate Interface: Bridge-Aggregation1Creation Mode: ManualAggregation Mode: DynamicLoadsharing Type: SharManagement VLANs: NoneSystem ID: 0x8000, 688f-cfa6-0400Local: Port Status Priority Index Oper-Key Flag GE1/0/1 S 32768 1 1 {ACDEF} GE1/0/2 S 32768 2 1 {ACDEF}Remote: Actor Priority Index Oper-Key SystemID Flag GE1/0/1(R) 32768 3 2 0x8000, 688f-b95d-0200 {ACDEF} GE1/0/2 32768 4 2 0x8000, 688f-b95d-0200 {ACDEF}在IRF堆叠系统上通过命令“display link-aggregation verbose” 查看链路聚合。<SWA-1>display link-aggregation verbose Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing Port Status: S -- Selected, U -- Unselected, I -- Individual Port: A -- Auto port, M -- Management port, R -- Reference port Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, D -- Synchronization, E -- Collecting, F -- Distributing, G -- Defaulted, H -- Expired Aggregate Interface: Bridge-Aggregation10Creation Mode: ManualAggregation Mode: DynamicLoadsharing Type: SharManagement VLANs: NoneSystem ID: 0x8000, 688f-b95d-0200Local: Port Status Priority Index Oper-Key Flag GE1/0/2(R) S 32768 3 2 {ACDEF} GE2/0/2 S 32768 4 2 {ACDEF}Remote: Actor Priority Index Oper-Key SystemID Flag GE1/0/2 32768 1 1 0x8000, 688f-cfa6-0400 {ACDEF} GE2/0/2 32768 2 1 0x8000, 688f-cfa6-0400 {ACDEF}Aggregate Interface: Route-Aggregation1Creation Mode: ManualAggregation Mode: DynamicLoadsharing Type: SharManagement VLANs: NoneSystem ID: 0x8000, 688f-b95d-0200Local: Port Status Priority Index Oper-Key Flag GE1/0/1 S 32768 1 1 {ACDEF} GE2/0/1 S 32768 2 1 {ACDEF}Remote: Actor Priority Index Oper-Key SystemID Flag GE1/0/1(R) 32768 1 1 0x8000, 688f-a41b-0100 {ACDEF} GE2/0/1 32768 2 1 0x8000, 688f-a41b-0100 {ACDEF}闻道有先后,术业有专攻,扫描下方二维码,添加好友,让我们一起进步吧!
图片|王在礼文字|王在礼排版|张坚审核|姜明哲@新媒体中心