H3C CR16006-F Configuration Examples

H3C CR16006-F Configuration Examples

Irf configuration examples

Advertisement

Quick Links

H3C IRF Configuration Examples
Software version: Release 7951P01
Document version: 6W100-20200625
Copyright © 2020 New H3C Technologies Co., Ltd. All rights reserved.
No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of
New H3C Technologies Co., Ltd.
Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document
are the property of their respective owners.
The information in this document is subject to change without notice.

Advertisement

Table of Contents
loading

Summary of Contents for H3C CR16006-F

  • Page 1 No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd. Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.
  • Page 2: Table Of Contents

    Contents Introduction ···································································································· 1 Prerequisites ·································································································· 1 General restrictions and guidelines ································································ 1 MPU requirements for IRF ································································································································· 1 Software requirements for IRF ··························································································································· 2 IRF fabric size ···················································································································································· 2 IRF port connection ············································································································································ 2 Example: Setting up a LACP MAD-enabled IRF fabric ·································· 2 Network configuration ········································································································································...
  • Page 3: Introduction

    When you are working on a live network, make sure you understand the potential impact of every command on your network. This document assumes that you have basic knowledge of H3C IRF. General restrictions and guidelines When you set up and configure an IRF fabric, follow the restrictions and guidelines in this section.
  • Page 4: Software Requirements For Irf

    Software requirements for IRF All IRF member devices must run the same software image version. Make sure the software auto- update feature is enabled on all member devices. IRF fabric size An CR16000-F IRF fabric supports a maximum of two member devices. IRF port connection When you connect neighboring IRF members, connect the physical interfaces of IRF-port 1 on one member to the physical interfaces of IRF-port 2 on the other (see...
  • Page 5 Figure 2 Network diagram XGE4/0/3 XGE4/0/3 VLAN30 Vlan-int50 Vlan-int50 XGE4/0/2 XGE4/0/2 Vlan-int30 Vlan-int30 Router A Router B XGE2/0/2 XGE2/0/2 Vlan-int30 Vlan-int30 XGE4/0/1 XGE2/0/1 XGE2/0/1 XGE4/0/1 Vlan-int40 Vlan-int40 Vlan-int41 Vlan-int41 XGE1/3/0/7 XGE1/3/0/8 XGE2/3/0/7 XGE2/3/0/8 Vlan-int40 Vlan-int41 Vlan-int40 Vlan-int41 XGE1/3/0/1 XGE2/3/0/1 Device A Device B XGE1/3/0/2 XGE2/3/0/2...
  • Page 6: Analysis

    Device VLAN interface IP address VLAN-interface 40 172.24.40.254/24 VLAN-interface 41 172.24.41.254/24 Analysis For LACP MAD to run correctly, ensure that the intermediate device (SW 1 in this example) supports extended LACPDUs for LACP MAD. To avoid single points of failure, use multichassis link aggregations to connect the IRF fabric to the downstream and upstream devices.
  • Page 7: Configuring Software Features

    irf.cfg to make it available in stack mode? [Y/N]:y Now rebooting, please wait... Configure Device B: # Assign member ID 2 to Device B. <DeviceB> system-view [DeviceB] irf member 2 # Bind Ten-GigabitEthernet 3/0/1 and Ten-GigabitEthernet 3/0/2 to IRF-port 1. [DeviceB] interface ten-gigabitethernet 3/0/1 [DeviceB-Ten-GigabitEthernet3/0/1] port link-mode bridge [DeviceB-Ten-GigabitEthernet3/0/1] quit...
  • Page 8 # Assign the downlink ports that connect to SW 1 to the aggregation group of Bridge- Aggregation 1. [DeviceA] interface ten-gigabitethernet 1/3/0/3 [DeviceA-Ten-GigabitEthernet1/3/0/3] port link-mode bridge [DeviceA-Ten-GigabitEthernet1/3/0/3] port link-aggregation group 1 [DeviceA-Ten-GigabitEthernet1/3/0/3] quit [DeviceA] interface ten-gigabitethernet 2/3/0/3 [DeviceA-Ten-GigabitEthernet2/3/0/3] port link-mode bridge [DeviceA-Ten-GigabitEthernet2/3/0/3] port link-aggregation group 1 [DeviceA-Ten-GigabitEthernet2/3/0/3] quit # Create Bridge-Aggregation 2 and assign the downlink ports that connect to SW 2 to the...
  • Page 9 [DeviceA] vlan 10 [DeviceA-vlan10] quit [DeviceA] interface vlan-interface 10 [DeviceA-Vlan-interface10] ip address 172.24.10.254 24 [DeviceA-Vlan-interface10] quit [DeviceA] interface bridge-aggregation 1 [DeviceA-Bridge-Aggregation1] port link-type trunk [DeviceA-Bridge-Aggregation1] undo port trunk permit vlan 1 [DeviceA-Bridge-Aggregation1] port trunk permit vlan 10 [DeviceA-Bridge-Aggregation1] quit # Create VLAN 20, assign an IP address to VLAN-interface 20, and assign Bridge- Aggregation 2 (the interface connected to SW 2) to VLAN 20.
  • Page 10 [DeviceA-ospf-1] quit Configuring SW 1 Configure a link aggregation: # Create Bridge-Aggregation 1 and enable the dynamic aggregation mode. You must enable the dynamic aggregation mode because this link aggregation will be used for LACP MAD. <SW1> system-view [SW1] interface bridge-aggregation 1 [SW1-Bridge-Aggregation1] link-aggregation mode dynamic [SW1-Bridge-Aggregation1] quit # Assign the uplink ports that connect to the IRF fabric to Bridge-Aggregation 1.
  • Page 11 [SW2] vlan all # Configure VLAN settings on the uplink aggregate interface that connects to the IRF fabric. [SW2] interface bridge-aggregation 1 [SW2-Bridge-Aggregation1] port link-type trunk [SW2-Bridge-Aggregation1] undo port trunk permit vlan 1 [SW2-Bridge-Aggregation1] port trunk permit vlan 20 [SW2-Bridge-Aggregation1] quit # Configure VLAN settings on the port that connects to Server Group 2.
  • Page 12 [RouterA-vlan-interface40] ip address 172.24.40.2 24 [RouterA-vlan-interface40] quit [RouterA] interface bridge-aggregation 1 [RouterA-Bridge-Aggregation1] port access vlan 40 [RouterA-Bridge-Aggregation1] quit # Create VLAN 30, assign an IP address to VLAN-interface 30, and assign Bridge- Aggregation 2 (the interface connected to Router B) to VLAN 30. [RouterA] vlan 30 [RouterA-vlan30] quit [RouterA] interface vlan-interface 30...
  • Page 13 [RouterB] interface ten-gigabitethernet 2/0/1 [RouterB-Ten-GigabitEthernet2/0/1] port link-mode bridge [RouterB-Ten-GigabitEthernet2/0/1] port link-aggregation group 1 [RouterB-Ten-GigabitEthernet2/0/1] quit # Create Bridge-Aggregation 2 and assign the ports that connect to Router A to Bridge- Aggregation 2. [RouterB] interface bridge-aggregation 2 [RouterB-Bridge-Aggregation2] quit [RouterB] interface ten-gigabitethernet 4/0/2 [RouterB-Ten-GigabitEthernet4/0/2] port link-mode bridge [RouterB-Ten-GigabitEthernet4/0/2] port link-aggregation group 2 [RouterB-Ten-GigabitEthernet4/0/2] quit...
  • Page 14: Verifying The Configuration

    Configure OSPF between Router B and the IRF fabric. [RouterB] ospf [RouterB-ospf-1] import-route direct [RouterB-ospf-1] area 0 [RouterB-ospf-1-area-0.0.0.0] network 172.24.41.0 0.0.0.255 [RouterB-ospf-1-area-0.0.0.0] network 172.24.2.0 0.0.0.255 [RouterB-ospf-1-area-0.0.0.0] quit [RouterB-ospf-1] quit Verifying the configuration Verifying the IRF function # Verify that the IRF fabric has been established. [DeviceA] display irf MemberID Slot...
  • Page 15: Verifying The Link Backup Function Of Irf Connections

    Reply from 202.108.22.5: bytes=32 time<1ms TTL=122 The output shows that the address can be pinged after transient traffic disruption. # Bring up Ten-GigabitEthernet 1/3/0/8 and shut down Ten-GigabitEthernet 2/3/0/8. [DeviceA-Ten-GigabitEthernet1/3/0/8] undo shutdown [DeviceA-Ten-GigabitEthernet1/3/0/8] quit [DeviceA] interface ten-gigabitethernet 2/3/0/8 [DeviceA-Ten-GigabitEthernet2/3/0/8] shutdown # Ping the IP address on the public network from the PC.
  • Page 16 vlan 20 vlan 40 vlan 41 irf-port 1/2 port group interface Ten-GigabitEthernet1/3/0/1 mode enhanced port group interface Ten-GigabitEthernet1/3/0/2 mode enhanced irf-port 2/1 port group interface Ten-GigabitEthernet2/3/0/1 mode enhanced port group interface Ten-GigabitEthernet2/3/0/2 mode enhanced interface bridge-aggregation 1 port link-type trunk undo port trunk permit vlan 1 port trunk permit vlan 10 link-aggregation mode dynamic...
  • Page 17 port trunk permit vlan 10 port link-aggregation group 1 interface Ten-GigabitEthernet 1/3/0/4 port link-mode bridge port link-type trunk undo port trunk permit vlan 1 port trunk permit vlan 20 port link-aggregation group 2 interface Ten-GigabitEthernet 1/3/0/7 port link-mode bridge port access vlan 40 port link-aggregation group 1023 interface Ten-GigabitEthernet 1/3/0/8 port link-mode bridge...
  • Page 18 interface Bridge-Aggregation 1 port link-type trunk undo port trunk permit vlan 1 port trunk permit vlan 10 link-aggregation mode dynamic interface GigabitEthernet 3/0/1 port link-mode bridge port link-type trunk undo port trunk permit vlan 1 port trunk permit vlan 2 to 4093 interface Ten-GigabitEthernet 4/0/1 port link-mode bridge port link-type trunk...
  • Page 19 interface Ten-GigabitEthernet 4/0/2 port link-mode bridge port link-type trunk undo port trunk permit vlan 1 port trunk permit vlan 20 port link-aggregation group 1 • Router A: ospf 1 import-route direct area 0.0.0.0 network 172.24.2.0 0.0.0.255 network 172.24.40.0 0.0.0.255 vlan 30 vlan 40 vlan 50 interface bridge-aggregation 1...
  • Page 20 port access vlan 40 port link-aggregation group 1 interface Ten-GigabitEthernet 4/0/2 port link-mode bridge port access vlan 30 port link-aggregation group 2 interface Ten-GigabitEthernet 4/0/3 port link-mode bridge port access vlan 50 • Router B: ospf 1 import-route direct area 0.0.0.0 network 172.24.2.0 0.0.0.255 network 172.24.41.0 0.0.0.255 vlan 30...
  • Page 21: Related Documentation

    Ten-GigabitEthernet 4/0/2 port link-mode bridge port access vlan 30 port link-aggregation group 2 interface Ten-GigabitEthernet 4/0/3 port link-mode bridge port access vlan 50 Related documentation • H3C CR16000-F Routers Virtual Technologies Command Reference-R7951P01 • H3C CR16000-F Routers Virtual Technologies Configuration Guide-R7951P01...

This manual is also suitable for:

Cr16010-fCr16014-fCr16010h-fCr16018-f

Table of Contents