13-IPv6 Routing Configuration

Download

Table of Contents

Chapter 1 IPv6 Static Routing Configuration. 1-1

1.1 Introduction to IPv6 Static Routing. 1-1

1.1.1 Features of IPv6 Static Routes. 1-1

1.1.2 Default IPv6 Route. 1-1

1.2 Configuring an IPv6 Static Route. 1-1

1.2.1 Configuration prerequisites. 1-1

1.2.2 Configuring an IPv6 Static Route. 1-2

1.3 Displaying and Maintaining IPv6 Static Routes. 1-2

1.4 IPv6 Static Routing Configuration Example. 1-2

Chapter 2 IPv6 RIPng Configuration. 2-1

2.1 Introduction to RIPng. 2-1

2.1.1 RIPng Working Mechanism.. 2-1

2.1.2 RIPng Packet Format 2-2

2.1.3 RIPng Packet Processing Procedure. 2-3

2.1.4 Protocols and Standards. 2-3

2.2 Configuring RIPng Basic Functions. 2-4

2.2.1 Configuration Prerequisites. 2-4

2.2.2 Configuration Procedure. 2-4

2.3 Configuring RIPng Route Control 2-4

2.3.1 Configuring an Additional Routing Metric. 2-5

2.3.2 Configuring RIPng Route Summarization. 2-5

2.3.3 Advertising a Default Route. 2-5

2.3.4 Configuring a RIPng Route Filtering Policy. 2-6

2.3.5 Configuring a Priority for RIPng. 2-6

2.3.6 Configuring RIPng Route Redistribution. 2-7

2.4 Tuning and Optimizing the RIPng Network. 2-7

2.4.1 Configuring RIPng Timers. 2-7

2.4.2 Configuring Split Horizon and Poison Reverse. 2-8

2.4.3 Configuring Zero Field Check on RIPng Packets. 2-9

2.4.4 Configuring the Maximum Number of Equal Cost Routes for Load Balancing. 2-10

2.5 Displaying and Maintaining RIPng. 2-10

2.6 RIPng Configuration Example. 2-10

Chapter 3 IPv6 OSPFv3 Configuration. 3-1

3.1 Introduction to OSPFv3. 3-1

3.1.1 OSPFv3 Overview. 3-1

3.1.2 OSPFv3 Packets. 3-1

3.1.3 OSPFv3 LSA Types. 3-2

3.1.4 Timers of OSPFv3. 3-3

3.1.5 OSPFv3 Features Supported. 3-3

3.1.6 Related RFCs. 3-3

3.2 IPv6 OSPFv3 Configuration Task List 3-3

3.3 Configuring OSPFv3 Basic Functions. 3-4

3.3.1 Prerequisites. 3-4

3.3.2 Configuring OSPFv3 Basic Functions. 3-4

3.4 Configuring OSPFv3 Area Parameters. 3-5

3.4.1 Prerequisites. 3-5

3.4.2 Configuring an OSPFv3 Stub Area. 3-5

3.4.3 Configuring OSPFv3 Virtual Links. 3-6

3.5 Configuring OSPFv3 Routing Information Management 3-7

3.5.1 Prerequisites. 3-7

3.5.2 Configuring OSPFv3 Route Summarization. 3-7

3.5.3 Configuring OSPFv3 Inbound Route Filtering. 3-7

3.5.4 Configuring Link Costs for OSPFv3 Interfaces. 3-8

3.5.5 Configuring the Maximum Number of OSPFv3 Load-balanced Routes. 3-8

3.5.6 Configuring a Priority for OSPFv3. 3-9

3.5.7 Configuring OSPFv3 Route Redistribution. 3-9

3.6 Tuning and Optimizing an OSPFv3 Network. 3-10

3.6.1 Prerequisites. 3-10

3.6.2 Configuring OSPFv3 Timers. 3-10

3.6.3 Configuring the DR Priority for an Interface. 3-11

3.6.4 Ignoring MTU Check for DD Packets. 3-12

3.6.5 Disable Interfaces from Sending OSPFv3 Packets. 3-12

3.6.6 Enable the Logging on Neighbor State Changes. 3-12

3.7 Displaying and Maintaining OSPFv3. 3-13

3.8 OSPFv3 Configuration Examples. 3-14

3.8.1 Configuring OSPFv3 Areas. 3-14

3.8.2 Configuring OSPFv3 DR Election. 3-18

3.9 Troubleshooting OSPFv3 Configuration. 3-22

3.9.1 No OSPFv3 Neighbor Relationship Established. 3-22

3.9.2 Incorrect Routing Information. 3-22

Chapter 4 IPv6 IS-IS Configuration. 4-1

4.1 Introduction to IPv6 IS-IS. 4-1

4.2 Configuring IPv6 IS-IS Basic Functions. 4-2

4.2.1 Configuration Prerequisites. 4-2

4.2.2 Configuration Procedure. 4-2

4.3 Configuring IPv6 IS-IS Routing Information Control 4-3

4.3.1 Configuration Prerequisites. 4-3

4.3.2 Configuration Procedure. 4-3

4.4 Displaying and Maintaining IPv6 IS-IS. 4-4

4.5 IPv6 IS-IS Configuration Example. 4-5

Chapter 5 IPv6 BGP Configuration. 5-1

5.1 IPv6 BGP Overview. 5-1

5.2 Configuration Task List 5-2

5.3 Configuring IPv6 BGP Basic Functions. 5-3

5.3.1 Prerequisites. 5-3

5.3.2 Configuring an IPv6 Peer 5-3

5.3.3 Advertising a Local IPv6 Route. 5-3

5.3.4 Configuring a Preferred Value for Routes from a Peer/Peer Group. 5-4

5.3.5 Specifying the Source Interface for Establishing TCP Connections. 5-4

5.3.6 Allowing the establishment of a Non-Direct EBGP connection. 5-5

5.3.7 Configuring a Description for a Peer/Peer Group. 5-6

5.3.8 Disabling Session Establishment to a Peer/Peer Group. 5-6

5.3.9 Logging Peer State Changes. 5-7

5.4 Controlling Route Distribution and Reception. 5-7

5.4.1 Prerequisites. 5-7

5.4.2 Configuring IPv6 BGP Route Redistribution. 5-7

5.4.3 Advertising a Default Route to a Peer/Peer Group. 5-8

5.4.4 Configuring Route Distribution Policy. 5-8

5.4.5 Configuring Route Reception Policy. 5-9

5.4.6 Configuring IPv6 BGP and IGP Route Synchronization. 5-10

5.4.7 Configuring Route Dampening. 5-11

5.5 Configuring IPv6 BGP Route Attributes. 5-11

5.5.1 Prerequisites. 5-11

5.5.2 Configuring IPv6 BGP Preference and Default LOCAL_PREF and NEXT_HOP Attributes. 5-12

5.5.3 Configuring the MED Attribute. 5-12

5.5.4 Configuring the AS_PATH Attribute. 5-13

5.6 Tuning and Optimizing IPv6 BGP Networks. 5-14

5.6.1 Prerequisites. 5-14

5.6.2 Configuring IPv6 BGP Timers. 5-14

5.6.3 Configuring IPv6 BGP Soft Reset 5-15

5.6.4 Configuring the Maximum Number of Load-Balanced Routes. 5-16

5.7 Configuring a Large Scale IPv6 BGP Network. 5-17

5.7.1 Prerequisites. 5-17

5.7.2 Configuring IPv6 BGP Peer Group. 5-17

5.7.3 Configuring IPv6 BGP Community. 5-19

5.7.4 Configuring an IPv6 BGP Route Reflector 5-20

5.8 Displaying and Maintaining IPv6 BGP Configuration. 5-21

5.8.1 Displaying BGP. 5-21

5.8.2 Resetting IPv6 BGP Connections. 5-22

5.8.3 Clearing IPv6 BGP Information. 5-22

5.9 IPv6 BGP Configuration Examples. 5-23

5.9.1 IPv6 BGP Basic Configuration. 5-23

5.9.2 IPv6 BGP Route Reflector Configuration. 5-25

5.10 Troubleshooting IPv6 BGP Configuration. 5-27

5.10.1 No IPv6 BGP Peer Relationship Established. 5-27

Chapter 6 Routing Policy Configuration. 6-1

6.1 Introduction to Routing Policy. 6-1

6.1.1 Routing Policy. 6-1

6.1.2 Filters. 6-1

6.1.3 Routing Policy Application. 6-2

6.2 Defining Filtering Lists. 6-2

6.2.1 Prerequisites. 6-2

6.2.2 Defining an IPv6 Prefix List 6-3

6.2.3 Defining an AS Path List 6-3

6.2.4 Defining a Community List 6-4

6.2.5 Defining an Extended Community List 6-4

6.3 Configuring a Routing Policy. 6-5

6.3.1 Prerequisites. 6-5

6.3.2 Creating a Routing Policy. 6-5

6.3.3 Defining if-match Clauses for the Routing Policy. 6-6

6.3.4 Defining apply Clauses for the Routing Policy. 6-7

6.4 Displaying and Maintaining the Routing Policy. 6-9

6.5 Routing Policy Configuration Example. 6-9

6.5.1 Applying Routing Policy When Redistributing IPv6 Routes. 6-9

6.6 Troubleshooting Routing Policy Configuration. 6-11

6.6.1 IPv6 Routing Information Filtering Failure. 6-11

 


Chapter 1  IPv6 Static Routing Configuration

 

&  Note:

The term “router” in this document refers to a Layer 3 switch running routing protocols.

 

1.1  Introduction to IPv6 Static Routing

Static routes are special routes that are manually configured by network administrators. They work well in simple networks. Configuring and using them properly can improve the performance of networks and guarantee enough bandwidth for important applications.

However, static routes also have shortcomings: any topology changes could result in unavailable routes, requiring the network administrator to manually configure and modify the static routes.

1.1.1  Features of IPv6 Static Routes

Similar to IPv4 static routes, IPv6 static routes work well in simple IPv6 network environments.

Their major difference lies in the destination and next hop addresses. IPv6 static routes use IPv6 addresses whereas IPv4 static routes use IPv4 addresses.

1.1.2  Default IPv6 Route

The IPv6 static route that has the destination address configured as ::/0 (indicating a prefix length of 0) is the default IPv6 route. If the destination address of an IPv6 packet does not match any entry in the routing table, this default route will be used to forward the packet.

1.2  Configuring an IPv6 Static Route

In small IPv6 networks, IPv6 static routes can be used to forward packets. In comparison to dynamic routes, it helps to save network bandwidth.

1.2.1  Configuration prerequisites

l           Enabling IPv6 packet forwarding

l           Ensuring that the neighboring nodes are IPv6 reachable

1.2.2  Configuring an IPv6 Static Route

Follow these steps to configure an IPv6 static route:

To do...

Use the commands…

Remarks

Enter system view

System-view

Configure an IPv6 static route

ipv6 route-static ipv6-address prefix-length [ interface-type interface-number ] nexthop-address [ preference preference-value ]

Required

The default preference of IPv6 static routes is 60.

 

1.3  Displaying and Maintaining IPv6 Static Routes

To do...

Use the command...

Remarks

Display IPv6 static route information

display ipv6 routing-table protocol static [ inactive | verbose ]

Available in any view

Remove all IPv6 static routes

delete ipv6 static-routes all

Available in system view

 

&  Note:

Using the undo ipv6 route-static command can delete a single IPv6 static route, while using the delete ipv6 static-routes all command deletes all IPv6 static routes including the default route.

 

1.4  IPv6 Static Routing Configuration Example

I. Network requirements

With IPv6 static routes configured, all hosts and switches can interact with each other.

II. Network diagram

Figure 1-1 Network diagram for static routes

III. Configuration procedure

1)         Configure the IPv6 addresses of all VLAN interfaces (Omitted)

2)         Configure IPv6 static routes.

# Configure the default IPv6 static route on Switch A.

<SwitchA> system-view

[SwitchA] ipv6

[SwitchA] ipv6 route-static :: 0 4::2

# Configure two IPv6 static routes on Switch B.

<SwitchB> system-view

[SwitchB] ipv6

[SwitchB] ipv6 route-static 1:: 64 4::1

[SwitchB] ipv6 route-static 3:: 64 5::1

# Configure the default IPv6 static route on Switch C.

<SwitchC> system-view

[SwitchC] ipv6

[SwitchC] ipv6 route-static :: 0 5::2

3)         Configure the IPv6 addresses of hosts and gateways.

Configure the IPv6 addresses of all the hosts based upon the network diagram, configure the default gateway of Host A as 1::1, that of Host B as 2::1, and that of Host C as 3::1.

4)         Display configuration information

# Display the IPv6 routing table of Switch A.

[SwitchA] display ipv6 routing-table

Routing Table :

         Destinations : 7        Routes : 7

Destination: ::/0                                        Protocol  : Static

NextHop    : 4::2                                        Preference: 60

Interface  : Vlan200                                     Cost      : 0

 

Destination: ::1/128                                     Protocol  : Direct

NextHop    : ::1                                         Preference: 0

Interface  : InLoop0                                     Cost      : 0

 

Destination: 1::/64                                      Protocol  : Direct

NextHop    : 1::1                                        Preference: 0

Interface  : Vlan100                                     Cost      : 0

 

Destination: 1::1/128                                    Protocol  : Direct

NextHop    : ::1                                         Preference: 0

Interface  : InLoop0                                     Cost      : 0

 

Destination: 4::/64                                      Protocol  : Direct

NextHop    : 4::1                                        Preference: 0

Interface  : Vlan200                                     Cost      : 0

 

Destination: 4::1/128                                    Protocol  : Direct

NextHop    : ::1                                         Preference: 0

Interface  : InLoop0                                     Cost      : 0

 

Destination: FE80::/10                                   Protocol  : Direct

NextHop    : ::                                          Preference: 0

Interface  : NULL0                                       Cost      : 0

# Verify the connectivity with the ping command.

[SwitchA] ping ipv6 3::1

  PING 3::1 : 56  data bytes, press CTRL_C to break

    Reply from 3::1

    bytes=56 Sequence=1 hop limit=254  time = 63 ms

    Reply from 3::1

    bytes=56 Sequence=2 hop limit=254  time = 62 ms

    Reply from 3::1

    bytes=56 Sequence=3 hop limit=254  time = 62 ms

    Reply from 3::1

    bytes=56 Sequence=4 hop limit=254  time = 63 ms

    Reply from 3::1

    bytes=56 Sequence=5 hop limit=254  time = 63 ms

 

  --- 3::1 ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 62/62/63 ms

 


Chapter 2  IPv6 RIPng Configuration

 

&  Note:

l      The term “router” in this document refers to a Layer 3 switch running routing protocols.

l      The S5500-EI series only support single RIPng process.

 

2.1  Introduction to RIPng

RIP next generation (RIPng) is an extension of RIP-2 for IPv4. Most RIP concepts are applicable in RIPng.

RIPng for IPv6 made the following changes to RIP:

l           UDP port number: RIPng uses UDP port 521 for sending and receiving routing information.

l           Multicast address: RIPng uses FF02:9 as the link-local multicast address.

l           Destination Prefix: 128-bit destination address prefix.

l           Next hop: 128-bit IPv6 address.

l           Source address: RIPng uses FE80::/10 as the link-local source address

2.1.1  RIPng Working Mechanism

RIPng is a routing protocol based on the distance vector (D-V) algorithm. RIPng uses UDP packets to exchange routing information through port 521.

RIPng uses a hop count to measure the distance to a destination. The hop count is referred to as metric or cost. The hop count from a router to a directly connected network is 0. The hop count between two directly connected routers is 1. When the hop count is greater than or equal to 16, the destination network or host is unreachable.

By default, the routing update is sent every 30 seconds. If the router receives no routing updates from a neighbor after 180 seconds, the routes learned from the neighbor are considered as unreachable. After another 240 seconds, if no routing update is received, the router will remove these routes from the routing table.

RIPng supports Split Horizon and Poison Reverse to prevent routing loops, and route redistribution.

Each RIPng router maintains a routing database, including route entries of all reachable destinations. A route entry contains the following information:

l           Destination address: IPv6 address of a host or a network.

l           Next hop address: IPv6 address of a neighbor along the path to the destination.

l           Egress interface: Outbound interface that forwards IPv6 packets.

l           Metric: Cost from the local router to the destination.

l           Route time: Time that elapsed since a route entry is last changed. Each time a route entry is modified, the routing time is set to 0.

l           Route tag: Identifies the route, used in routing policy to control routing information.

2.1.2  RIPng Packet Format

I. Basic format

A RIPng packet consists of a header and multiple route table entries (RTEs). The maximum number of RTEs in a packet depends on the MTU of the sending interface.

Figure 2-1 shows the packet format of RIPng.

Figure 2-1 RIPng basic packet format

l           Command: Type of message. 0x01 indicates Request, 0x02 indicates Response.

l           Version: Version of RIPng. It can only be 0x01 currently.

l           RTE: Route table entry, 20 bytes for each entry.

II. RTE format

There are two types of RTE in RIPng.

l           Next hop RTE: Defines the IPv6 address of a next hop

l           IPv6 prefix RTE: Describes the destination IPv6 address, route tag, prefix length and metric in the RIPng routing table.

Figure 2-2 shows the format of the next hop RTE:

Figure 2-2 Next hop RTE format

IPv6 next hop address is the IPv6 address of the next hop.

Figure 2-3 shows the format of the IPv6 prefix RTE.

Figure 2-3 IPv6 prefix RTE format

l           IPv6 prefix: Destination IPv6 address prefix.

l           Route tag: Route tag.

l           Prefix len: Length of the IPv6 address prefix.

l           Metric: Cost of a route.

2.1.3  RIPng Packet Processing Procedure

I. Request packet

When a RIPng router first starts or needs to update some entries in its routing table, generally a multicast request packet is sent to ask for needed routes from neighbors.

The receiving RIPng router processes RTEs in the request. If there is only one RTE with the IPv6 prefix and prefix length both being 0, and with a metric value of 16, the RIPng router will respond with the entire routing table information in response messages. If there are multiple RTEs in the request message, the RIPng router will examine each RTE, update its metric, and send the requested routing information to the requesting router in the response packet.

II. Response packet

The response packet containing the local routing table information is generated as:

l           A response to a request

l           An update periodically

l           A trigged update caused by route change

After receiving a response, a router checks the validity of the response before adding the route to its routing table, such as whether the source IPv6 address is the link-local address, whether the port number is correct. The response packet failed the check will be discarded.

2.1.4  Protocols and Standards

l           RFC2080: RIPng for IPv6

l           RFC2081: RIPng Protocol Applicability Statement

l           RFC2453: RIP Version 2

2.2  Configuring RIPng Basic Functions

In this section, you are presented with the information to configure the basic RIPng features.

You need to enable RIPng first before configuring other tasks, but it is not necessary for RIPng related interface configurations, such as assigning an IPv6 address.

2.2.1  Configuration Prerequisites

Before the configuration, accomplish the following tasks first:

l           Enable IPv6 packet forwarding.

l           Configure an IP address for each interface, and make sure all nodes are reachable.

2.2.2  Configuration Procedure

Follow these steps to configure the basic RIPng functions:

To do...

Use the command...

Remarks

Enter system view

system-view

––

Create a RIPng process and enter RIPng view

ripng [ process-id ]

Required

Not created by default

Return to system view

quit

Enter interface view

interface interface-type interface-number

––

Enable RIPng on the interface

ripng process-id enable

Required

Disabled by default

 

&  Note:

If RIPng is not enabled on an interface, the interface will not send and receive any RIPng route.

 

2.3  Configuring RIPng Route Control

Before the configuration, accomplish the following tasks first:

l           Configure an IPv6 address on each interface, and make sure all nodes are reachable.

l           Configure RIPng basic functions

l           Define an IPv6 ACL before using it for route filtering. Refer to ACL configuration for related information.

l           Define an IPv6 address prefix list before using it for route filtering. Refer to section 6.2.2  "Defining an IPv6 Prefix List" for related information.

2.3.1  Configuring an Additional Routing Metric

An additional routing metric can be added to the metric of an inbound or outbound RIP route, namely, the inbound and outbound additional metric.

The outbound additional metric is added to the metric of a sent route, the route’s metric in the routing table is not changed.

The inbound additional metric is added to the metric of a received route before the route is added into the routing table, so the route’s metric is changed.

Follow these steps to configure an inbound/outbound additional routing metric:

To do...

Use the command...

Remarks

Enter system view

system-view

––

Enter interface view

interface interface-type interface-number

––

Specify an inbound routing additional metric

ripng metricin value

Optional

0 by default

Specify an outbound routing additional metric

ripng metricout value

Optional

1 by default

 

2.3.2  Configuring RIPng Route Summarization

Follow these steps to configure RIPng route summarization:

To do...

Use the command...

Remarks

Enter system view

system-view

––

Enter interface view

interface interface-type interface-number

––

Advertise a summary IPv6 prefix

ripng summary-address ipv6-address prefix-length

Required

 

2.3.3  Advertising a Default Route

Follow these steps to advertise a default route:

To do...

Use the command...

Remarks

Enter system view

system-view

––

Enter interface view

interface interface-type interface-number

––

Advertise a default route

ripng default-route { only | originate } [ cost cost ]

Required

Not advertised by default

 

&  Note:

With this feature enabled, a default route is advertised via the specified interface regardless of whether the default route is available in the local IPv6 routing table.

 

2.3.4  Configuring a RIPng Route Filtering Policy

You can reference a configured IPv6 ACL or prefix list to filter received/advertised routing information as needed. For filtering outbound routes, you can also specify a routing protocol from which to filter routing information redistributed.

Follow these steps to configure a RIPng route filtering policy:

To do...

Use the command...

Remarks

Enter system view

system-view

––

Enter RIPng view