download
>

Table of Contents

13-IPv4 Routing Configuration Guide

Download

Table of Contents

Chapter 1 IPv4 Routing Configuration Guide. 1-1

1.1 Configuring a Static Route. 1-1

1.1.1 Network Diagram.. 1-2

1.1.2 Networking and Configuration Requirements. 1-2

1.1.3 Applicable Product Matrix. 1-2

1.1.4 Configuration Procedure. 1-2

1.1.5 Complete Configuration. 1-3

1.1.6 Configuration Guidelines. 1-4

1.2 Configuring the RIP Version. 1-4

1.2.1 Network Diagram.. 1-5

1.2.2 Networking and Configuration Requirements. 1-5

1.2.3 Applicable Product Matrix. 1-5

1.2.4 Configuration Procedure. 1-5

1.2.5 Complete Configuration. 1-6

1.2.6 Configuration Guidelines. 1-7

1.3 Configuring RIP Route Redistribution. 1-8

1.3.1 Network Diagram.. 1-8

1.3.2 Networking and Configuration Requirements. 1-8

1.3.3 Applicable Product Matrix. 1-8

1.3.4 Configuration Procedure. 1-9

1.3.5 Complete Configuration. 1-11

1.3.6 Configuration Guidelines. 1-12

1.4 Configuring RIP to Advertise a Summary Route. 1-13

1.4.1 Network Diagram.. 1-13

1.4.2 Networking and Configuration Requirements. 1-13

1.4.3 Applicable Product Matrix. 1-13

1.4.4 Configuration Procedure. 1-13

1.4.5 Complete Configuration. 1-15

1.4.6 Configuration Guidelines. 1-17

1.5 Configuring OSPF Basic Functions. 1-17

1.5.1 Network Diagram.. 1-18

1.5.2 Networking and Configuration Requirements. 1-18

1.5.3 Applicable Product Matrix. 1-19

1.5.4 Configuration Procedure. 1-19

1.5.5 Complete Configuration. 1-22

1.5.6 Configuration Guidelines. 1-24

1.6 Configuring OSPF. 1-24

1.6.1 Network Diagram.. 1-24

1.6.2 Networking and Configuration Requirements. 1-25

1.6.3 Applicable Product Matrix. 1-25

1.6.4 Configuration Procedure. 1-25

1.6.5 Complete Configuration. 1-27

1.6.6 Configuration Guidelines. 1-29

1.7 Configuring OSPF to Advertise a Summary Route. 1-29

1.7.1 Network Diagram.. 1-29

1.7.2 Networking and Configuration Requirements. 1-29

1.7.3 Applicable Product Matrix. 1-30

1.7.4 Configuration Procedure. 1-30

1.7.5 Complete Configuration. 1-32

1.7.6 Configuration Guidelines. 1-34

1.8 Configuring an OSPF Stub Area. 1-34

1.8.1 Network Diagram.. 1-35

1.8.2 Networking and Configuration Requirements. 1-35

1.8.3 Applicable Product Matrix. 1-35

1.8.4 Configuration Procedure. 1-35

1.8.5 Complete Configuration. 1-38

1.8.6 Configuration Guidelines. 1-40

1.9 Configuring an OSPF NSSA Area. 1-40

1.9.1 Network Diagram.. 1-41

1.9.2 Networking and Configuration Requirements. 1-41

1.9.3 Applicable Product Matrix. 1-41

1.9.4 Configuration Procedure. 1-41

1.9.5 Complete Configuration. 1-43

1.9.6 Configuration Guidelines. 1-45

1.10 Configuring OSPF DR Election. 1-45

1.10.1 Network Diagram.. 1-46

1.10.2 Networking and Configuration Requirements. 1-46

1.10.3 Applicable Product Matrix. 1-46

1.10.4 Configuration Procedure. 1-46

1.10.5 Complete Configuration. 1-51

1.10.6 Configuration Guidelines. 1-52

1.11 Configuring an OSPF Virtual Link. 1-52

1.11.1 Network Diagram.. 1-53

1.11.2 Networking and Configuration Requirements. 1-53

1.11.3 Applicable Product Matrix. 1-53

1.11.4 Configuration Procedure. 1-53

1.11.5 Complete Configuration. 1-55

1.11.6 Configuration Guidelines. 1-57

1.12 Configuring OSPF GR. 1-57

1.12.1 Network Diagram.. 1-57

1.12.2 Networking and Configuration Requirements. 1-58

1.12.3 Applicable Product Matrix. 1-58

1.12.4 Configuration Procedure. 1-58

1.12.5 Complete Configuration. 1-59

1.12.6 Configuration Guidelines. 1-60

1.13 Configuring Route Filtering. 1-61

1.13.1 Network Diagram.. 1-61

1.13.2 Networking and Configuration Requirements. 1-61

1.13.3 Applicable Product Matrix. 1-61

1.13.4 Configuration Procedure. 1-61

1.13.5 Complete Configuration. 1-65

1.13.6 Configuration Guidelines. 1-67

1.14 Configuring IS-IS Basic Functions. 1-67

1.14.1 Network Diagram.. 1-67

1.14.2 Networking and Configuration Requirements. 1-67

1.14.3 Applicable Product Matrix. 1-68

1.14.4 Configuration Procedure. 1-68

1.14.5 Complete Configuration. 1-72

1.14.6 Configuration Guidelines. 1-74

1.15 Configuring IS-IS DIS Election. 1-74

1.15.1 Network Diagram.. 1-75

1.15.2 Networking and Configuration Requirements. 1-75

1.15.3 Applicable Product Matrix. 1-75

1.15.4 Configuration Procedure. 1-75

1.15.5 Complete Configuration. 1-80

1.15.6 Configuration Guidelines. 1-81

1.16 Configuring IS-IS GR. 1-81

1.16.1 Network Diagram.. 1-82

1.16.2 Networking and Configuration Requirements. 1-82

1.16.3 Applicable Product Matrix. 1-82

1.16.4 Configuration Procedure. 1-82

1.16.5 Complete Configuration. 1-84

1.16.6 Configuration Guidelines. 1-85

1.17 Configuring BGP Basic Functions. 1-85

1.17.1 Network Diagram.. 1-86

1.17.2 Networking and Configuration Requirements. 1-86

1.17.3 Applicable Product Matrix. 1-86

1.17.4 Configuration Procedure. 1-86

1.17.5 Complete Configuration. 1-90

1.17.6 Configuration Guidelines. 1-92

1.18 Configuring BGP and IGP Route Synchronization. 1-93

1.18.1 Network Diagram.. 1-93

1.18.2 Networking and Configuration Requirements. 1-93

1.18.3 Applicable Product Matrix. 1-93

1.18.4 Configuration Procedure. 1-93

1.18.5 Complete Configuration. 1-96

1.18.6 Configuration Guidelines. 1-97

1.19 Configuring BGP Load Balancing. 1-97

1.19.1 Network Diagram.. 1-98

1.19.2 Networking and Configuration Requirements. 1-98

1.19.3 Applicable Product Matrix. 1-98

1.19.4 Configuration Procedure. 1-98

1.19.5 Complete Configuration. 1-100

1.19.6 Configuration Guidelines. 1-102

1.20 Configuring BGP Community. 1-102

1.20.1 Network Diagram.. 1-102

1.20.2 Networking and Configuration Requirements. 1-102

1.20.3 Applicable Product Matrix. 1-103

1.20.4 Configuration Procedure. 1-103

1.20.5 Complete Configuration. 1-105

1.20.6 Configuration Guidelines. 1-106

1.21 Configuring BGP Route Reflector 1-106

1.21.1 Network Diagram.. 1-107

1.21.2 Networking and Configuration Requirements. 1-107

1.21.3 Applicable Product Matrix. 1-107

1.21.4 Configuration Procedure. 1-107

1.21.5 Complete Configuration. 1-109

1.21.6 Configuration Guidelines. 1-111

1.22 Configuring BGP Confederation. 1-111

1.22.1 Network Diagram.. 1-111

1.22.2 Networking and Configuration Requirements. 1-112

1.22.3 Applicable Product Matrix. 1-112

1.22.4 Configuration Procedure. 1-112

1.22.5 Complete Configuration. 1-115

1.22.6 Configuration Guidelines. 1-118

1.23 Configuring BGP Path Selection. 1-118

1.23.1 Network Diagram.. 1-119

1.23.2 Networking and Configuration Requirements. 1-119

1.23.3 Applicable Product Matrix. 1-119

1.23.4 Configuration Procedure. 1-119

1.23.5 Complete Configuration. 1-122

1.23.6 Configuration Guidelines. 1-125

1.24 Configuring Route Policy Application in IPv4 Route Redistribution. 1-125

1.24.1 Network Diagram.. 1-126

1.24.2 Networking and Configuration Requirements. 1-126

1.24.3 Applicable Product Matrix. 1-126

1.24.4 Configuration Procedure. 1-126

1.24.5 Complete Configuration. 1-129

1.24.6 Configuration Guidelines. 1-131

 


Chapter 1  IPv4 Routing Configuration Guide

1.1  Configuring a Static Route

I. Static route

A static route is manually configured. If a network’s topology is simple, you only need to configure static routes for the network to work normally. The proper configuration and usage of static routes can improve network performance and ensure bandwidth for important network applications.

The disadvantage of using static routes is that they cannot adapt to network topology changes. If a fault or a topological change occurs in the network, some routes will be unreachable and the network breaks. In this case, the network administrator has to modify the static routes manually.

II. Default route

A router selects the default route only when it cannot find any matching entry in the routing table.

l           If the destination address of a packet fails to match any entry in the routing table, the router selects the default route to forward the packet.

l           If there is no default route and the destination address of the packet fails to match any entry in the routing table, the packet will be discarded and an ICMP packet will be sent to the source to report that the destination or the network is unreachable.

Default routes can be configured in two ways:

l           The network administrator can configure a default route with both destination and mask being 0.0.0.0.

l           Some dynamic routing protocols, such as OSPF, RIP and IS-IS, can also generate default routes.

1.1.1  Network Diagram

Figure 1-1 Network diagram for static route configuration

1.1.2  Networking and Configuration Requirements

The IP addresses and masks of the switches and hosts are shown in the following figure. Static routes are required for interconnection between any two hosts.

1.1.3  Applicable Product Matrix

Product series

Software version

Hardware version

S3610 Series Ethernet Switches

Release 5301

All versions

S5510 Series Ethernet Switches

Release 5301

All versions

S5500-SI Series Ethernet Switches

Release 1207

All versions (except S5500-20TP-SI)

Release 1301

S5500-20TP-SI

S5500-EI Series Ethernet Switches

Release 2102

All versions

S7500E Series Ethernet Switches

Release 6100

All versions

 

1.1.4  Configuration Procedure

1)         Configuring IP addresses for interfaces (omitted)

2)         Configuring static routes

# Configure a default route on Switch A.

<SwitchA> system-view

[SwitchA] ip route-static 0.0.0.0 0.0.0.0 1.1.4.2

# Configure two static routes on Switch B.

<SwitchB> system-view

[SwitchB] ip route-static 1.1.2.0 255.255.255.0 1.1.4.1

[SwitchB] ip route-static 1.1.3.0 255.255.255.0 1.1.5.6

# Configure a default route on Switch C

<SwitchC> system-view

[SwitchC] ip route-static 0.0.0.0 0.0.0.0 1.1.5.5

3)         Configure the hosts.

The default gateways for the three hosts A, B and C are 1.1.2.3, 1.1.6.1 and 1.1.3.1 respectively. The configuration procedure is omitted.

1.1.5  Complete Configuration

l        Configure Switch A

#

vlan 300

#

vlan 500

#

interface Vlan-interface300

 ip address 1.1.2.3 255.255.255.0

#

interface Vlan-interface500

 ip address 1.1.4.1 255.255.255.252

#

ip route-static 0.0.0.0 0.0.0.0 1.1.4.2

#

l        Configure Switch B

#

vlan 100

#

vlan 500

#

vlan 600

#

interface Vlan-interface100

 ip address 1.1.6.1 255.255.255.0

#

interface Vlan-interface500

 ip address 1.1.4.2 255.255.255.252

#

interface Vlan-interface600

 ip address 1.1.5.5 255.255.255.252

#

 ip route-static 1.1.2.0 255.255.255.0 1.1.4.1

 ip route-static 1.1.3.0 255.255.255.0 1.1.5.6

#

l        Configure Switch C

#

vlan 600

#

vlan 900

#

interface Vlan-interface600

 ip address 1.1.5.6 255.255.255.252

#

interface Vlan-interface900

 ip address 1.1.3.1 255.255.255.0

#

 ip route-static 0.0.0.0 0.0.0.0 1.1.5.5

#

1.1.6  Configuration Guidelines

l           You are not recommended to specify a broadcast interface (such as VLAN interface) as the output interface, because a broadcast interface may have multiple next hops. If you have to do so, you must specify the corresponding next hop for the output interface.

l        You can configure different preferences for different static routes so that route management policies can be applied more flexibly. For example, specifying the same preference for different routes to the same destination enables load sharing, while specifying different preferences for these routes enables route backup.

l        When you configure a static route, the static route does not take effect if you specify the next hop address first and then configure it as the IP address of a local interface, such as VLAN interface.

1.2  Configuring the RIP Version

RIP is a simple Interior Gateway Protocol (IGP), mainly used in small-sized networks, such as academic networks and simple LANs. RIP is not applicable to complex networks.

RIP is still widely used in practical networking due to easier implementation, configuration and maintenance than OSPF and IS-IS.

1.2.1  Network Diagram

Figure 1-2 Network diagam for RIP version configuration

1.2.2  Networking and Configuration Requirements

As shown in Figure 1-2, enable RIPv2 on all interfaces on Switch A and Switch B.

1.2.3  Applicable Product Matrix

Product series

Software version

Hardware version

S3610 Series Ethernet Switches

Release 5301

All versions

S5510 Series Ethernet Switches

Release 5301

All versions

S5500-SI Series Ethernet Switches

Release 1207

All versions, except S5500-20TP-SI

Release 1301

S5500-20TP-SI

S5500-EI Series Ethernet Switches

Release 2102

All versions

S7500E Series Ethernet Switches

Release 6100

All versions

 

1.2.4  Configuration Procedure

1)         Configure an IP addresses for interfaces (omitted).

2)         Configure RIP basic functions.

# Configure Switch A.

<SwitchA> system-view

[SwitchA] rip

[SwitchA-rip-1] network 192.168.1.0

[SwitchA-rip-1] network 172.16.0.0

[SwitchA-rip-1] network 172.17.0.0

[SwitchA-rip-1] quit

# Configure Switch B.

<SwitchB> system-view

[SwitchB] rip

[SwitchB-rip-1] network 192.168.1.0

[SwitchB-rip-1] network 10.0.0.0

[SwitchB-rip-1] quit

# Display the RIP routing table of Switch A.

[SwitchA] display rip 1 route

Route Flags: R - RIP, T - TRIP

              P - Permanent, A - Aging, S - Suppressed, G - Garbage-collect

--------------------------------------------------------------------------

 Peer 192.168.1.2  on Vlan-interface100

      Destination/Mask         Nexthop     Cost    Tag   Flags   Sec

         10.0.0.0/8        192.168.1.2        1       0    RA      11

From the routing table, you can find that RIPv1 uses a natural mask.

3)         Configure RIP version

# Configure RIPv2 on Switch A.

[SwitchA] rip

[SwitchA-rip-1] version 2

[SwitchA-rip-1] undo summary

# Configure RIPv2 on Switch B.

[SwitchB] rip

[SwitchB-rip-1] version 2

[SwitchB-rip-1] undo summary

# Display the RIP routing table on Switch A.

[SwitchA] display rip 1 route

Route Flags: R - RIP, T - TRIP

              P - Permanent, A - Aging, S - Suppressed, G - Garbage-collect

--------------------------------------------------------------------------

 Peer 192.168.1.2  on Vlan-interface100

      Destination/Mask         Nexthop     Cost     Tag   Flags   Sec

         10.2.1.0/24       192.168.1.2        1       0    RA      16

         10.1.1.0/24       192.168.1.2        1       0    RA      16

From the routing table, you can see RIPv2 uses a classless subnet mask.

 

&  Note:

Since RIPv1 routing information has a long aging time, it may still exist until it ages out after RIPv2 is configured.

 

1.2.5  Complete Configuration

l           Configure Switch A.

#

vlan 100 to 102

#

interface Vlan-interface100

 ip address 192.168.1.3 255.255.255.0

#

interface Vlan-interface101

 ip address 172.17.1.1 255.255.255.0

#

interface Vlan-interface102

 ip address 172.16.1.1 255.255.255.0

#

rip 1

 undo summary

 version 2

 network 192.168.1.0

 network 172.16.0.0

 network 172.17.0.0

#

l        Configure Switch B.

#

vlan 100 to 102

#

interface Vlan-interface100

 ip address 192.168.1.2 255.255.255.0

#

interface Vlan-interface101

 ip address 10.2.1.1 255.255.255.0

#

interface Vlan-interface102

 ip address 10.1.1.2 255.255.255.0

#

rip 1

 undo summary

 version 2

 network 192.168.1.0

 network 10.0.0.0

#

1.2.6  Configuration Guidelines

l        The S5500-EI series switches with the software version Release 2102 support only RIP single process.

l        The S5500-SI series switches with the software versions Release 1207 or Release 1301 support only RIP single process.

l        RIPv2 has two types of message transmission: broadcast and multicast. Multicast is the default type using 224.0.0.9 as the multicast address. The interface working in the RIPv2 broadcast mode can also receive RIPv1 messages.

l        RIP runs only on the interfaces residing on the specified networks. Therefore, you need to specify the network after enabling RIP to validate RIP on a specific interface.

1.3   Configuring RIP Route Redistribution

1.3.1  Network Diagram

Figure 1-3 Network diagram for RIP route redistribution configuration

1.3.2  Networking and Configuration Requirements

l           Two RIP processes are running on Switch B, which communicates with Switch A through RIP 100 and with Switch C through RIP 200.

l           Configure route redistribution on Switch B to make RIP 200 redistribute direct routes and routes from RIP 100. Thus, Switch C can learn routes destined for 10.2.1.0/24 and 11.1.1.0/24, while Switch A cannot learn routes destined for 12.3.1.0/24 and 16.4.1.0/24.

l           Configure a filtering policy on Switch B to filter out the route 10.2.1.1/24 from RIP 100, making the route not advertised to Switch C.

1.3.3  Applicable Product Matrix

Product series

Software version

Hardware version

S3610 Series Ethernet Switches