Page 8
Configuring BGP load balancing ························································································· 276 Configuring IPsec for IPv6 BGP ·························································································· 278 Disabling BGP to establish a session to a peer or peer group ··················································· 279 Configuring GTSM for BGP ······························································································· 280 Configuring BGP soft-reset ································································································ 281 Protecting an EBGP peer when memory usage reaches level 2 threshold ··································· 287 Configuring an update delay for local MPLS labels ·································································...
Page 9
PBR configuration task list ······································································································· 380 Configuring a policy ················································································································ 381 Creating a node ·············································································································· 381 Setting match criteria for a node ························································································· 381 Configuring actions for a node ···························································································· 381 Configuring PBR ···················································································································· 383 Configuring local PBR ······································································································ 383 Configuring interface PBR ·································································································...
Configuring basic IP routing IP routing directs IP packet forwarding on routers based on a routing table. This chapter focuses on unicast routing protocols. For more information about multicast routing protocols, see IP Multicast Configuration Guide. Routing table A RIB contains the global routing information and related information, including route recursion, route redistribution, and route extension information.
• Cost—If multiple routes to a destination have the same preference, the one with the smallest cost is the optimal route. • NextHop—Next hop. • Interface—Output interface. Dynamic routing protocols Static routes work well in small, stable networks. They are easy to configure and require fewer system resources.
Route type Preference OSPF ASE OSPF NSSA IBGP EBGP Unknown (route from an untrusted source) Load sharing A routing protocol might find multiple optimal equal-cost routes to the same destination. You can use these routes to implement equal-cost multi-path (ECMP) load sharing. Static routing, IPv6 static routing, RIP, RIPng, OSPF, OSPFv3, BGP, IPv6 BGP, IS-IS, and IPv6 IS-IS support ECMP load sharing.
The RIB records extended attributes of each routing protocol and redistribution relationships of different routing protocol extended attributes. Setting the maximum lifetime for routes and labels in the RIB Perform this task to prevent routes of a certain protocol from being aged out due to slow protocol convergence resulting from a large number of route entries or long GR period.
Step Command Remarks By default, the maximum Set the maximum lifetime for lifetime for routes in the FIB fib lifetime seconds IPv4 routes in the FIB. is 600 seconds. To set the maximum lifetime for routes in the FIB (IPv6): Step Command Remarks...
Step Command Remarks By default, RIB NSR is Enable IPv6 RIB NSR. non-stop-routing disabled. Configuring inter-protocol FRR CAUTION: This feature uses the next hop of a route from a different protocol as the backup next hop for the faulty route, which might cause loops. Inter-protocol fast reroute (FRR) enables fast rerouting between routes of different protocols to reduce the service interruption time caused by unreachable next hops.
Displaying and maintaining a routing table Execute display commands in any view and reset commands in user view. Task Command display ip routing-table [ topology topo-name | vpn-instance Display routing table information. vpn-instance-name ] [ verbose ] Display information about routes display ip routing-table [ topology topo-name | vpn-instance permitted by an IPv4 basic ACL.
Page 20
Task Command Display route attribute information in display ipv6 rib attribute [ attribute-id ] the IPv6 RIB. Display IPv6 RIB GR state display ipv6 rib graceful-restart information. display ipv6 rib nib [ self-originated ] [ nib-id ] [ verbose ] Display next hop information in the IPv6 RIB.
Configuring static routing Static routes are manually configured. If a network's topology is simple, you only need to configure static routes for the network to work correctly. Static routes cannot adapt to network topology changes. If a fault or a topological change occurs in the network, the network administrator must modify the static routes manually.
• Specify an indirect next hop and a specific BFD packet source address for the static route. To configure BFD control mode for a static route (direct next hop): Step Command Remarks Enter system view. system-view • Method 1: ip route-static dest-address { mask-length | mask } interface-type interface-number next-hop-address bfd control-packet [ preference preference ] [ tag tag-value ]...
Step Command Remarks By default, the source address of echo packets is not configured. Configure the source address of bfd echo-source-ip ip-address For more information about echo packets. this command, see High Availability Command Reference. • Method 1: ip route-static dest-address { mask-length | mask } interface-type interface-number next-hop-address bfd echo-packet [ preference preference ] [ tag tag-value ]...
Step Command Remarks By default, the source IP address of BFD echo packets is not configured. Configure the source IP The source IP address cannot be address of BFD echo on the same network segment as bfd echo-source-ip ip-address packets. any local interface's IP address.
Page 27
Configuration procedure Configure IP addresses for interfaces. (Details not shown.) Configure static routes: # Configure a default route on Router A. <RouterA> system-view [RouterA] ip route-static 0.0.0.0 0.0.0.0 1.1.4.2 # Configure two static routes on Router B. <RouterB> system-view [RouterB] ip route-static 1.1.2.0 255.255.255.0 1.1.4.1 [RouterB] ip route-static 1.1.3.0 255.255.255.0 1.1.5.6 # Configure a default route on Router C.
Pinging 1.1.2.2 with 32 bytes of data: Reply from 1.1.2.2: bytes=32 time=1ms TTL=126 Reply from 1.1.2.2: bytes=32 time=1ms TTL=126 Reply from 1.1.2.2: bytes=32 time=1ms TTL=126 Reply from 1.1.2.2: bytes=32 time=1ms TTL=126 Ping statistics for 1.1.2.2: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 1ms, Maximum = 1ms, Average = 1ms # Use the tracert command on Host B to test the reachability of Host A.
Page 29
Table 4 Interface and IP address assignment Device Interface IP address Router A GigabitEthernet 1/1/1 12.1.1.1/24 Router A GigabitEthernet 1/1/2 10.1.1.102/24 Router B GigabitEthernet 1/1/1 12.1.1.2/24 Router B GigabitEthernet 1/1/2 13.1.1.1/24 Router C GigabitEthernet 1/1/1 10.1.1.100/24 Router C GigabitEthernet 1/1/2 13.1.1.2/24 Configuration procedure Configure IP addresses for interfaces.
IPv4 Session Working Under Ctrl Mode: LD/RD SourceAddr DestAddr State Holdtime Interface 12.1.1.1 12.1.1.2 2000ms GE1/1/1 The output shows that the BFD session has been created. # Display static routes on Router A. <RouterA> display ip routing-table protocol static Summary Count : 1 Static Routing table Status : <Active>...
Page 31
Configure the following: • Configure a static route to subnet 120.1.1.0/24 on Router A. • Configure a static route to subnet 121.1.1.0/24 on Router B. • Enable BFD for both routes. • Configure a static route to subnet 120.1.1.0/24 and a static route to subnet 121.1.1.0/24 on both Router C and Router D.
Page 32
[RouterA] ip route-static 120.1.1.0 24 gigabitethernet 1/1/2 10.1.1.100 preference [RouterA] quit # Configure static routes on Router B and enable BFD control mode for the static route that traverses Router D. <RouterB> system-view [RouterB] bfd multi-hop min-transmit-interval 500 [RouterB] bfd multi-hop min-receive-interval 500 [RouterB] bfd multi-hop detect-multiplier 9 [RouterB] ip route-static 121.1.1.0 24 1.1.1.9 bfd control-packet bfd-source 2.2.2.9 [RouterB] ip route-static 121.1.1.0 24 gigabitethernet 1/1/2 13.1.1.2 preference 65...
<RouterA> display ip routing-table protocol static Summary Count : 1 Static Routing table Status : <Active> Summary Count : 1 Destination/Mask Proto Cost NextHop Interface 120.1.1.0/24 Static 65 10.1.1.100 GE1/1/2 Static Routing table Status : <Inactive> Summary Count : 0 The output shows that Router A communicates with Router B through GigabitEthernet 1/1/2.
Page 34
# Configure a static route on Router A, and specify GigabitEthernet 1/1/1 as the backup output interface and 12.12.12.2 as the backup next hop. <RouterA> system-view [RouterA] ip route-static 4.4.4.4 32 gigabitethernet 1/1/2 13.13.13.2 backup-interface gigabitethernet 1/1/1 backup-nexthop 12.12.12.2 # Configure a static route on Router B, and specify GigabitEthernet 1/1/1 as the backup output interface and 24.24.24.2 as the backup next hop.
Page 35
BkTunnel ID: Invalid BkInterface: GigabitEthernet1/1/1 FtnIndex: 0x0 TrafficIndex: N/A Connector: N/A # Display route 1.1.1.1/32 on Router B to view the backup next hop information. [RouterB] display ip routing-table 1.1.1.1 verbose Summary Count : 1 Destination: 1.1.1.1/32 Protocol: Static Process ID: 0 SubProtID: 0x0 Age: 04h20m37s Cost: 0...
Configuring a default route A default route is used to forward packets that do not match any specific routing entry in the routing table. Without a default route, packets that do not match any routing entries are discarded and an ICMP destination-unreachable packet is sent to the source.
Configuring RIP Overview Routing Information Protocol (RIP) is a distance-vector IGP suited to small-sized networks. It employs UDP to exchange route information through port 520. RIP uses a hop count to measure the distance to a destination. The hop count from a router to a directly connected network is 0.
RIP versions There are two RIP versions, RIPv1 and RIPv2. RIPv1 is a classful routing protocol. It advertises messages only through broadcast. RIPv1 messages do not carry mask information, so RIPv1 can only recognize natural networks such as Class A, B, and C. For this reason, RIPv1 does not support discontiguous subnets. RIPv2 is a classless routing protocol.
Tasks at a glance (Optional.) Tuning and optimizing RIP networks: • Setting RIP timers • Enabling split horizon and poison reverse • Setting the maximum number of ECMP routes • Enabling zero field check on incoming RIPv1 messages • Enabling source IP address check on incoming RIP updates •...
Step Command Remarks By default, RIP is disabled on a network. network network-address The network 0.0.0.0 command Enable RIP on a network. [ wildcard-mask ] can enable RIP on all interfaces in a single process, but does not apply to multiple RIP processes. Enabling RIP on an interface Step Command...
An interface preferentially uses the interface-specific RIP version. If no interface-specific version is specified, the interface uses the global RIP version. If neither a global nor interface-specific RIP version is configured, the interface sends RIPv1 broadcasts and can receive the following: •...
Step Command Remarks interface interface-type Enter interface view. interface-number Specify an inbound rip metricin [ route-policy The default setting is 0. additional routing metric. route-policy-name ] value Specify an outbound rip metricout [ route-policy The default setting is 1. additional routing metric. route-policy-name ] value Configuring RIPv2 route summarization Perform this task to summarize contiguous subnets into a summary network and sends the network...
Step Command Remarks By default, no summary route is rip summary-address Configure a summary route. ip-address { mask-length | mask } configured. Disabling host route reception Perform this task to disable RIPv2 from receiving host routes from the same network to save network resources.
To configure route filtering: Step Command Remarks Enter system view. system-view rip [ process-id ] [ vpn-instance Enter RIP view. vpn-instance-name ] By default, the filtering of received routes is not filter-policy { ipv4-acl-number | configured. gateway prefix-list-name | prefix-list Configure the filtering of prefix-list-name [ gateway This command filters received...
Step Command Remarks By default, RIP route import-route protocol redistribution is disabled. [ as-number ] [ process-id | This command can redistribute Redistribute routes from all-processes | allow-ibgp ] only active routes. To view active another routing protocol. [ allow-direct | cost cost-value | routes, use the display ip route-policy route-policy-name | routing-table protocol...
Step Command Remarks rip [ process-id ] [ vpn-instance Enter RIP view. vpn-instance-name ] Set the maximum number of By default, the maximum number maximum load-balancing ECMP routes. of RIP ECMP routes is 8. number Enabling zero field check on incoming RIPv1 messages Some fields in the RIPv1 message must be set to zero.
Step Command Remarks Enter system view. system-view rip [ process-id ] [ vpn-instance Enter RIP view. vpn-instance-name ] By default, RIP does not Specify a RIP neighbor. unicast updates to any peer ip-address peer. Disable source IP By default, source IP address check on address check on inbound undo validate-source-address...
Setting the maximum length of RIP packets NOTE: The supported maximum length of RIP packets varies by vendor. Use this feature with caution to avoid compatibility issues. The packet length of RIP packets determines how many routes can be carried in a RIP packet. Set the maximum length of RIP packets to make good use of link bandwidth.
Step Command Remarks rip [ process-id ] [ vpn-instance Enter RIP view. vpn-instance-name ] Enable GR for RIP. By default, RIP GR is disabled. graceful-restart (Optional.) Set the GR By default, the GR interval is 60 graceful-restart interval interval interval. seconds.
Configuring single-hop echo detection (for a directly connected RIP neighbor) Step Command Remarks Enter system view. system-view Configure the source IP By default, the source IP address address of BFD echo of BFD echo packets is not bfd echo-source-ip ip-address packets.
Step Command Remarks rip [ process-id ] [ vpn-instance Enter RIP view. vpn-instance-name ] By default, RIP does not unicast updates to any peer. Because the undo peer command does not remove the Specify a RIP neighbor. peer ip-address neighbor relationship immediately, executing the command cannot bring down the BFD session immediately.
As shown in Figure 6, configure FRR on Router B by using a routing policy to specify a backup next hop. When the primary link fails, RIP directs packets to the backup next hop. At the same time, RIP calculates the shortest path based on the new network topology, and forwards packets over that path after network convergence.
Step Command Remarks Enter system view. system-view By default, the source IP address of BFD echo packets is not configured. Configure the source IP The source IP address cannot be address of BFD echo on the same network segment as bfd echo-source-ip ip-address packets.
Page 56
Figure 7 Network diagram Configuration procedure Configure IP addresses for interfaces. (Details not shown.) Configure basic RIP by using either of the following methods: (Method 1) # Enable RIP on the specified networks on Router A. <RouterA> system-view [RouterA] rip [RouterA-rip-1] network 1.0.0.0 [RouterA-rip-1] network 2.0.0.0 [RouterA-rip-1] network 3.0.0.0...
Page 57
[RouterA] rip [RouterA-rip-1] version 2 [RouterA-rip-1] undo summary [RouterA-rip-1] quit # Configure RIPv2 on Router B. [RouterB] rip [RouterB-rip-1] version 2 [RouterB-rip-1] undo summary [RouterB-rip-1] quit # Display the RIP routing table on Router A. [RouterA] display rip 1 route Route Flags: R - RIP, T - TRIP P - Permanent, A - Aging, S - Suppressed, G - Garbage-collect D - Direct, O - Optimal, F - Flush to RIB...
12.3.1.0/32 Direct 0 12.3.1.2 GE1/1/1 12.3.1.2/32 Direct 0 127.0.0.1 InLoop0 12.3.1.255/32 Direct 0 12.3.1.2 GE1/1/1 16.4.1.0/24 Direct 0 16.4.1.1 GE1/1/2 16.4.1.0/32 Direct 0 16.4.1.1 GE1/1/2 16.4.1.1/32 Direct 0 127.0.0.1 InLoop0 16.4.1.255/32 Direct 0 16.4.1.1 GE1/1/2 127.0.0.0/8 Direct 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 127.0.0.1...
Page 61
Router A has two links to Router D. The link from Router B to Router D is more stable than that from Router C to Router D. Configure an additional metric for RIP routes received from GigabitEthernet 1/1/2 on Router A so Router A prefers route 1.1.5.0/24 learned from Router B. Figure 9 Network diagram Configuration procedure Configure IP addresses for the interfaces.
Figure 11 Network diagram Configuration procedure Configure IP addresses and subnet masks for interfaces on the routers. (Details not shown.) Configure RIPv2 on the routers to ensure the following: (Details not shown.) Router A, Router B, and Router C can communicate with each other at Layer 3. Dynamic route update can be implemented among them with RIPv2.
Page 66
Figure 12 Network diagram Configuration procedure Configure IP addresses and subnet masks for interfaces on the routers. (Details not shown.) Configure RIPv2 on the routers to ensure the following: (Details not shown.) Router A, Router B, and Router S can communicate with each other at Layer 3. Dynamic route update can be implemented among them with RIPv2.
[RouterA-GigabitEthernet1/1/1] bfd min-transmit-interval 500 [RouterA-GigabitEthernet1/1/1] bfd min-receive-interval 500 [RouterA-GigabitEthernet1/1/1] bfd detect-multiplier 7 [RouterA-GigabitEthernet1/1/1] return Configure a static route on Router C. [RouterC] ip route-static 120.1.1.1 24 null 0 Verifying the configuration # Display the BFD session information on Router A. <RouterA>...
Page 70
BFD can quickly detect the link failure and notify RIP. RIP then deletes the neighbor relationship and the route information learned on GigabitEthernet 1/1/2. It does not receive or send any packets on GigabitEthernet 1/1/2. When the route learned from Router A ages out, Router B uses the route destined for 100.1.1.1/24 through GigabitEthernet 1/1/2.
Configure static routes: # Configure a static route on Router A. [RouterA] ip route-static 100.1.1.0 24 null 0 # Configure a static route on Router C. [RouterC] ip route-static 100.1.1.0 24 null 0 Verifying the configuration # Display the BFD session information on Router A. <RouterA>...
Page 73
Table 7 Interface and IP address assignment Device Interface IP address Router A GigabitEthernet 1/1/1 192.168.3.1/24 Router A GigabitEthernet 1/1/2 192.168.1.1/24 Router B GigabitEthernet 1/1/1 192.168.2.1/24 Router B GigabitEthernet 1/1/2 192.168.1.2/24 Router C GigabitEthernet 1/1/1 192.168.2.2/24 Router C GigabitEthernet 1/1/2 192.168.4.2/24 Router D GigabitEthernet 1/1/1...
Page 74
[RouterC-rip-1] quit [RouterC] interface gigabitethernet 1/1/1 [RouterC-GigabitEthernet1/1/1] rip bfd enable [RouterC-GigabitEthernet1/1/1] quit # Configure Router D. <RouterD> system-view [RouterD] rip 1 [RouterD-rip-1] version 2 [RouterD-rip-1] undo summary [RouterD-rip-1] network 192.168.3.0 [RouterD-rip-1] network 192.168.4.0 [RouterD-rip-1] quit Configure BFD parameters for the interfaces: # Configure Router A.
[RouterD-GigabitEthernet1/1/1] quit Configure static routes: # Configure a static route to Router C on Router A. [RouterA] ip route-static 192.168.2.0 24 gigabitethernet 1/1/2 192.168.1.2 [RouterA] quit # Configure a static route to Router A on Router C. [RouterC] ip route-static 192.168.1.0 24 gigabitethernet 1/1/1 192.168.2.1 Verifying the configuration # Display the BFD session information on Router A.
Page 76
Figure 16 Network diagram Router C Link B Link A Loop0 Loop0 GE1/1/2 GE1/1/2 Router B Router A Table 8 Interface and IP address assignment Device Interface IP address Router A GigabitEthernet 1/1/1 12.12.12.1/24 Router A GigabitEthernet 1/1/2 13.13.13.1/24 Router A Loopback 0 1.1.1.1/32 Router B...
Page 77
[RouterB] rip 1 [RouterB-rip-1] fast-reroute route-policy frr [RouterB-rip-1] quit Verifying the configuration # Display route 4.4.4.4/32 on Router A to view the backup next hop information. [RouterA] display ip routing-table 4.4.4.4 verbose Destination: 4.4.4.4/32 Protocol: RIP Process ID: 1 SubProtID: 0x1 Age: 04h20m37s Cost: 1 Preference: 100...
Configuring OSPF Overview Open Shortest Path First (OSPF) is a link-state IGP developed by the OSPF working group of the IETF. OSPF version 2 is used for IPv4. OSPF refers to OSPFv2 throughout this chapter. OSPF has the following features: •...
• Network LSA—Type-2 LSA, originated for broadcast and NBMA networks by the designated router, and flooded throughout a single area only. This LSA contains the list of routers connected to the network. • Network Summary LSA—Type-3 LSA, originated by Area Border Routers (ABRs), and flooded throughout the LSA's associated area.
Page 80
Backbone area and virtual links Each AS has a backbone area that distributes routing information between non-backbone areas. Routing information between non-backbone areas must be forwarded by the backbone area. OSPF has the following requirements: • All non-backbone areas must maintain connectivity to the backbone area. •...
routes. It advertises a default route in a Type-3 LSA so that the routers in the area can reach external networks through the default route. NSSA area and totally NSSA area An NSSA area does not import AS external LSAs (Type-5 LSAs) but can import Type-7 LSAs generated by the NSSA ASBR.
• Each router transforms the LSDB to a weighted directed graph that shows the topology of the area. All the routers within the area have the same graph. • Each router uses the SPF algorithm to compute a shortest path tree that shows the routes to the nodes in the area.
Figure 22 DR and BDR in a network DR other DR other DR other Physical links Adjacencies NOTE: In OSPF, neighbor and adjacency are different concepts. After startup, OSPF sends a hello packet on each OSPF interface. A receiving router checks parameters in the packet. If the parameters match its own, the receiving router considers the sending router an OSPF neighbor.
Page 85
Tasks at a glance (Required.) Enabling OSPF (Optional.) Configuring OSPF areas: • Configuring a stub area • Configuring an NSSA area • Configuring a virtual link (Optional.) Configuring OSPF network types: • Configuring the broadcast network type for an interface •...
A router ID uniquely identifies a router in an AS. For a router to run OSPF, it must have a router ID. You can use one of the following methods to specify a router ID: • Manual configuration—When you create an OSPF process, you can manually specify a router ID.
Step Command Remarks By default, no description is configured for the area. (Optional.) Configure a description text description for the area. As a best practice, configure a description for each OSPF area. Specify a network to enable the interface By default, no network is specified. network ip-address attached to the network to wildcard-mask...
Step Command Remarks ospf [ process-id | router-id { auto-select | router-id } | Enter OSPF view. vpn-instance vpn-instance-name ] * Enter area view. area area-id stub Configure the area as a [ default-route-advertise-alwa By default, no stub area is configured. stub area.
Configuring a virtual link Virtual links are configured for connecting backbone area routers that have no direct physical links. To configure a virtual link: Step Command Remarks Enter system view. system-view ospf [ process-id | router-id { auto-select | router-id } | Enter OSPF view.
Configuring the broadcast network type for an interface Step Command Remarks Enter system view. system-view interface interface-type Enter interface view. interface-number Configure the OSPF network By default, the network type of an type for the interface as interface depends on the link layer ospf network-type broadcast broadcast.
Configuring the P2MP network type for an interface Step Command Remarks Enter system view. system-view interface interface-type Enter interface view. interface-number By default, the network type of an interface depends on the link layer protocol. After you configure the OSPF Configure the OSPF network type for an interface as ospf network-type p2mp...
• Configure filters if routing information filtering is needed. Configuring OSPF route summarization Route summarization enables an ABR or ASBR to summarize contiguous networks into a single network and advertise the network to other areas. Route summarization reduces the routing information exchanged between areas and the size of routing tables, and improves routing performance.
Configuring received OSPF route filtering Perform this task to filter routes calculated using received LSAs. The following filtering methods are available: • Use an ACL or IP prefix list to filter routing information by destination address. • Use the gateway keyword to filter routing information by next hop. •...
If the calculated cost is greater than 65535, the value of 65535 is used. If the calculated cost is less than 1, the value of 1 is used. If no cost or bandwidth reference value is configured for an interface, OSPF computes the interface cost based on the interface bandwidth and default bandwidth reference value.
Step Command Remarks ospf [ process-id | router-id Enter OSPF view. { auto-select | router-id } | vpn-instance vpn-instance-name ] * By default, the preference of OSPF Set a preference for preference [ ase ] { preference | internal routes is 10 and the preference OSPF.
Page 97
Step Command Remarks By default, no route import-route protocol [ as-number ] redistribution is configured. [ process-id | all-processes | Configure OSPF to This command redistributes only allow-ibgp ] [ allow-direct | cost redistribute routes from active routes. To view cost-value | nssa-only | route-policy another routing protocol.
Advertising a host route Step Command Remarks Enter system view. system-view ospf [ process-id | router-id { auto-select | router-id } | Enter OSPF view. vpn-instance vpn-instance-name ] * Enter area view. area area-id By default, no host route is Advertise a host route.
• Poll timer—Interval for sending hello packets to a neighbor that is down on the NBMA network. • Dead timer—Interval within which if the interface does not receive any hello packet from the neighbor, it declares the neighbor is down. •...
Step Command Remarks interface interface-type Enter interface view. interface-number Set the LSA transmission The default setting is 1 second. ospf trans-delay seconds delay. Setting SPF calculation interval LSDB changes result in SPF calculations. When the topology changes frequently, a large amount of network and router resources are occupied by SPF calculation.
Setting the LSA generation interval Adjust the LSA generation interval to protect network resources and routers from being overwhelmed by LSAs at the time of frequent network changes. For a stable network, the minimum interval is used. If network changes become frequent, the LSA generation interval is incremented by the incremental interval ×...
Configuring stub routers A stub router is used for traffic control. It reports its status as a stub router to neighboring OSPF routers. The neighboring routers can have a route to the stub router, but they do not use the stub router to forward data.
Configuring OSPF interface authentication You must configure the same authentication mode and key on both the local interface and its peer interface. To configure OSPF interface authentication: Step Command Remarks Enter system view. system-view Enter interface view. interface interface-type interface-number •...
Setting the maximum number of external LSAs in LSDB Step Command Remarks Enter system view. system-view ospf [ process-id | router-id { auto-select | Enter OSPF view. router-id } | vpn-instance vpn-instance-name ] * By default, the Set the maximum number of maximum number of lsdb-overflow-limit number external LSAs in the LSDB.
Step Command Remarks Enter system view. system-view ospf [ process-id | router-id Enter OSPF view. { auto-select | router-id } | vpn-instance vpn-instance-name ] * Enable compatibility By default, compatibility with RFC rfc1583 compatible with RFC 1583. 1583 is enabled. Logging neighbor state changes Perform this task to enable output of neighbor state change logs to the information center.
Step Command Remarks ospf [ process-id | router-id { auto-select | Enter OSPF view. router-id } | vpn-instance vpn-instance-name ] By default, OSPF ISPF is Enable OSPF ISPF. ispf enable enabled. Configuring prefix suppression By default, an OSPF interface advertises all of its prefixes in LSAs. To speed up OSPF convergence, you can suppress interfaces from advertising all of their prefixes.
Step Command Remarks Enable prefix By default, prefix suppression suppression for the ospf prefix-suppression [ disable ] is disabled on an interface. interface. Configuring prefix prioritization This feature enables the device to install prefixes in descending priority order: critical, high, medium, and low.
Step Command Remarks Enable BFD control packet By default, BFD control packet ospf primary-path-detect bfd mode for OSPF PIC. mode for OSPF PIC is disabled. ctrl To configure BFD echo packet mode for OSPF PIC: Step Command Remarks Enter system view. system-view By default, the source IP address of BFD echo packets is not...
Step Command Remarks ospf database-filter { all | { ase [ acl Filter outbound ipv4-acl-number ] | nssa [ acl By default, the outbound LSAs are not LSAs on the ipv4-acl-number ] | summary [ acl filtered on the interface. interface.
Step Command Remarks Enter OSPF area view. area area-id Enable GTSM for the OSPF By default, GTSM is disabled for ttl-security [ hops hop-count ] area. the OSPF area. To configure GTSM in interface view: Step Command Remarks Enter system view. system-view interface interface-type Enter interface view.
• GR helper—A neighbor of the GR restarter. It helps the GR restarter to complete the GR process. OSPF GR has the following types: • IETF GR—Uses Opaque LSAs to implement GR. • Non-IETF GR—Uses link local signaling (LLS) to advertise GR capability and uses out of band synchronization to synchronize the LSDB.
Configuring OSPF GR helper You can configure the IETF or non-IETF OSPF GR helper. Configuring the IETF OSPF GR helper Step Command Remarks Enter system view. system-view ospf [ process-id | router-id Enable OSPF and enter its { auto-select | router-id } | view.
Configuring OSPF NSR Nonstop routing (NSR) backs up OSPF link state information from the active process to the standby process. After an active/standby switchover, NSR can complete link state recovery and route regeneration without tearing down adjacencies or impacting forwarding services. NSR does not require the cooperation of neighboring devices to recover routing information, and it is typically used more often than GR.
Configuring single-hop echo detection Step Command Remarks Enter system view. system-view Configure the source By default, the source address of echo bfd echo-source-ip ip-address address of echo packets. packets is not configured. interface interface-type Enter interface view. interface-number Enable BFD single-hop By default, BFD single-hop echo ospf bfd enable echo echo detection.
Configuration procedure Configuring OSPF FRR to calculate a backup next hop using the LFA algorithm Step Command Remarks Enter system view. system-view interface interface-type Enter interface view. interface-number By default, the interface is enabled (Optional.) Enable LFA on an with LFA and it can be selected as a ospf fast-reroute lfa-backup interface.
To configure BFD echo packet mode for OSPF FRR: Step Command Remarks Enter system view. system-view By default, the source IP address of BFD echo packets is not configured. The source IP address cannot be on Configure the source the same network segment as any IP address of BFD bfd echo-source-ip ip-address local interface's IP address.
Page 119
Figure 24 Network diagram Area 0 Router A Router B GE1/1/1 10.1.1.1/24 GE1/1/1 10.1.1.2/24 GE1/1/2 GE1/1/2 10.3.1.1/24 10.2.1.1/24 GE1/1/1 GE1/1/1 Area 1 Area 2 10.3.1.2/24 10.2.1.2/24 GE1/1/2 GE1/1/2 10.4.1.1/24 10.5.1.1/24 Router C Router D Configuration procedure Configure IP addresses for interfaces. (Details not shown.) Enable OSPF: # Configure Router A.
Page 120
<RouterD> system-view [RouterD] router id 10.5.1.1 [RouterD] ospf [RouterD-ospf-1] area 2 [RouterD-ospf-1-area-0.0.0.2] network 10.3.1.0 0.0.0.255 [RouterD-ospf-1-area-0.0.0.2] network 10.5.1.0 0.0.0.255 [RouterD-ospf-1-area-0.0.0.2] quit [RouterD-ospf-1] quit Verifying the configuration # Display the OSPF neighbors of Router A. [RouterA] display ospf peer verbose OSPF Process 1 with Router ID 10.2.1.1 Neighbors Area 0.0.0.0 interface 10.1.1.1(GigabitEthernet1/1/1)'s neighbors Router ID: 10.3.1.1...
10.1.1.0/24 Transit 10.1.1.1 10.2.1.1 0.0.0.0 Total nets: 5 Intra area: 3 Inter area: 2 ASE: 0 NSSA: 0 # Display OSPF routing information on Router D. [RouterD] display ospf routing OSPF Process 1 with Router ID 10.5.1.1 Routing Table Routing for network Destination Cost Type...
Page 122
Figure 25 Network diagram Area 0 Router A Router B GE1/1/1 10.1.1.1/24 GE1/1/1 10.1.1.2/24 GE1/1/2 GE1/1/2 10.3.1.1/24 10.2.1.1/24 GE1/1/1 GE1/1/1 Area 1 Area 2 10.3.1.2/24 10.2.1.2/24 GE1/1/2 GE1/1/2 10.4.1.1/24 10.5.1.1/24 Router C Router D Configuration procedure Configure IP addresses for interfaces. (Details not shown.) Enable OSPF (see "Basic OSPF configuration example").
Routing for ASEs Destination Cost Type NextHop AdvRouter 3.1.2.0/24 Type2 10.3.1.1 10.4.1.1 Total nets: 6 Intra area: 2 Inter area: 3 ASE: 1 NSSA: 0 OSPF route summarization configuration example Network requirements As shown in Figure • Configure OSPF on Router A and Router B in AS 200. •...
Page 124
<RouterB> system-view [RouterB] router id 11.2.1.1 [RouterB] ospf [RouterB-ospf-1] area 0 [RouterB-ospf-1-area-0.0.0.0] network 11.2.1.0 0.0.0.255 [RouterB-ospf-1-area-0.0.0.0] quit [RouterB-ospf-1] quit # Configure Router C. <RouterC> system-view [RouterC] router id 11.1.1.2 [RouterC] ospf [RouterC-ospf-1] area 0 [RouterC-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255 [RouterC-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255 [RouterC-ospf-1-area-0.0.0.0] quit [RouterC-ospf-1] quit # Configure Router D.
Page 125
[RouterC-bgp-default-ipv4] peer 11.1.1.1 enable [RouterC-bgp-default-ipv4] import-route ospf [RouterC-bgp-default-ipv4] import-route direct [RouterB-bgp-default-ipv4] quit [RouterC-bgp-default] quit Configure Router B and Router C to redistribute BGP routes into OSPF: # Configure OSPF to redistribute routes from BGP on Router B. [RouterB] ospf [RouterB-ospf-1] import-route bgp # Configure OSPF to redistribute routes from BGP on Router C.
11.2.1.255/32 Direct 0 11.2.1.2 GE1/1/1 127.0.0.0/8 Direct 0 127.0.0.1 InLoop0 127.0.0.0/32 Direct 0 127.0.0.1 InLoop0 127.0.0.1/32 Direct 0 127.0.0.1 InLoop0 127.255.255.255/32 Direct 0 127.0.0.1 InLoop0 224.0.0.0/4 Direct 0 0.0.0.0 NULL0 224.0.0.0/24 Direct 0 0.0.0.0 NULL0 255.255.255.255/32 Direct 0 127.0.0.1 InLoop0 The output shows that routes 10.1.1.0/24, 10.2.1.0/24, 10.3.1.0/24 and 10.4.1.0/24 are summarized into a single route 10.0.0.0/8.
Page 127
Type Destination Area Cost Nexthop RtType Intra 10.2.1.1 0.0.0.1 10.2.1.1 Inter 10.5.1.1 0.0.0.1 10.2.1.1 ASBR # Display OSPF routing information on Router C. <RouterC> display ospf routing OSPF Process 1 with Router ID 10.4.1.1 Routing Table Routing for network Destination Cost Type NextHop...
0.0.0.0/0 Inter 10.2.1.1 10.2.1.1 0.0.0.1 10.2.1.0/24 Transit 0.0.0.0 10.2.1.1 0.0.0.1 10.3.1.0/24 Inter 10.2.1.1 10.2.1.1 0.0.0.1 10.4.1.0/24 Stub 10.4.1.1 10.4.1.1 0.0.0.1 10.5.1.0/24 Inter 10.2.1.1 10.2.1.1 0.0.0.1 10.1.1.0/24 Inter 10.2.1.1 10.2.1.1 0.0.0.1 Total nets: 6 Intra area: 2 Inter area: 4 ASE: 0 NSSA: 0 The output shows that a default route replaces the AS external route.
Page 129
Figure 28 Network diagram Area 0 Router A Router B GE1/1/1 10.1.1.1/24 GE1/1/1 10.1.1.2/24 GE1/1/2 GE1/1/2 10.3.1.1/24 10.2.1.1/24 Area 1 GE1/1/1 GE1/1/1 Area 2 10.3.1.2/24 NSSA 10.2.1.2/24 ASBR GE1/1/2 GE1/1/2 10.5.1.1/24 Router C Router D 10.4.1.1/24 Configuration procedure Configure IP addresses for interfaces. (Details not shown.) Enable OSPF (see "Basic OSPF configuration example").
# Configure OSPF to redistribute the static route on Router C. [RouterC] ip route-static 3.1.2.1 24 10.4.1.2 [RouterC] ospf [RouterC-ospf-1] import-route static [RouterC-ospf-1] quit # Display routing information on Router D. <RouterD> display ospf routing OSPF Process 1 with Router ID 10.5.1.1 Routing Table Routing for network Destination...
Page 131
Enable OSPF: # Configure Router A. <RouterA> system-view [RouterA] router id 1.1.1.1 [RouterA] ospf [RouterA-ospf-1] area 0 [RouterA-ospf-1-area-0.0.0.0] network 192.168.1.0 0.0.0.255 [RouterA-ospf-1-area-0.0.0.0] quit [RouterA-ospf-1] quit # Configure Router B. <RouterB> system-view [RouterB] router id 2.2.2.2 [RouterB] ospf [RouterB-ospf-1] area 0 [RouterB-ospf-1-area-0.0.0.0] network 192.168.1.0 0.0.0.255 [RouterB-ospf-1-area-0.0.0.0] quit [RouterB-ospf-1] quit...
Page 132
BFD status: Disabled Router ID: 3.3.3.3 Address: 192.168.1.3 GR State: Normal State: Full Mode: Nbr is master Priority: 1 DR: 192.168.1.4 BDR: 192.168.1.3 MTU: 0 Options is 0x02 (-|-|-|-|-|-|E|-) Dead timer due in 31 Neighbor is up for 00:01:28 Authentication Sequence: [ 0 ] Neighbor state change count: 6 BFD status: Disabled Router ID: 4.4.4.4...
Page 133
Authentication Sequence: [ 0 ] Neighbor state change count: 6 BFD status: Disabled Router ID: 2.2.2.2 Address: 192.168.1.2 GR State: Normal State: Full Mode:Nbr is slave Priority: 0 DR: 192.168.1.4 BDR: 192.168.1.3 MTU: 0 Options is 0x02 (-|-|-|-|-|-|E|-) Dead timer due in 35 Neighbor is up for 00:11:19 Authentication Sequence: [ 0 ] Neighbor state change count: 6...
DR: 192.168.1.1 BDR: 192.168.1.3 MTU: 0 Options is 0x02 (-|-|-|-|-|-|E|-) Dead timer due in 35 Neighbor is up for 00:01:44 Authentication Sequence: [ 0 ] Neighbor state change count: 6 BFD status: Disabled Router ID: 3.3.3.3 Address: 192.168.1.3 GR State: Normal State: Full Mode: Nbr is slave Priority: 2...
Page 135
Figure 30 Network diagram Configuration procedure Configure IP addresses for interfaces. (Details not shown.) Enable OSPF: # Configure Router A. <RouterA> system-view [RouterA] ospf 1 router-id 1.1.1.1 [RouterA-ospf-1] area 0 [RouterA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255 [RouterA-ospf-1-area-0.0.0.0] quit [RouterA-ospf-1] quit # Configure Router B. <RouterB>...
# Display OSPF routing information on Router B. [RouterB] display ospf routing OSPF Process 1 with Router ID 2.2.2.2 Routing Table Routing for network Destination Cost Type NextHop AdvRouter Area 10.2.1.0/24 Transit 10.2.1.1 3.3.3.3 0.0.0.1 10.1.1.0/24 Transit 10.1.1.2 2.2.2.2 0.0.0.0 Total nets: 2 Intra area: 2 Inter area: 0...
Page 137
• Router A acts as the non-IETF GR restarter. Router B and Router C are the GR helpers, and synchronize their LSDBs with Router A through OOB communication of GR. Figure 31 Network diagram Configuration procedure Configure IP addresses for interfaces. (Details not shown.) Enable OSPF: # Configure Router A.
Page 138
[RouterA-ospf-100] enable link-local-signaling [RouterA-ospf-100] enable out-of-band-resynchronization [RouterA-ospf-100] graceful-restart [RouterA-ospf-100] quit # Configure Router B as the GR helper: enable the link-local signaling capability and the out-of-band re-synchronization capability for OSPF process 100. [RouterB-ospf-100] enable link-local-signaling [RouterB-ospf-100] enable out-of-band-resynchronization # Configure Router C as the GR helper: enable the link-local signaling capability and the out-of-band re-synchronization capability for OSPF process 100.
%Oct 21 15:29:30:921 2011 RouterA OSPF/5/OSPF_NBR_CHG: -MDC=1; OSPF 100 Neighbor 192.1.1.3(GigabitEthernet1/1/1) from Full to Down. %Oct 21 15:29:33:815 2011 RouterA OSPF/5/OSPF_NBR_CHG: -MDC=1; OSPF 100 Neighbor 192.1.1.3(GigabitEthernet1/1/1) from Loading to Full. %Oct 21 15:29:35:578 2011 RouterA OSPF/5/OSPF_NBR_CHG: -MDC=1; OSPF 100 Neighbor 192.1.1.2(GigabitEthernet1/1/1) from Loading to Full.
Page 140
Continue? [y/n]:y Re-optimization of the placement start. You will be notified on completion Re-optimization of the placement complete. Use 'display placement' to view the new placement # During the switchover period, display OSPF neighbors on Router A to verify the neighbor relationship between Router A and Router S.
Destination Cost Type NextHop AdvRouter Area 44.44.44.44/32 Stub 44.44.44.44 4.4.4.1 0.0.0.0 14.14.14.0/24 Transit 14.14.14.1 4.4.4.1 0.0.0.0 22.22.22.22/32 Stub 14.14.14.2 2.2.2.1 0.0.0.0 12.12.12.0/24 Transit 14.14.14.2 2.2.2.1 0.0.0.0 Total nets: 4 Intra area: 4 Inter area: 0 ASE: 0 NSSA: 0 The output shows the following when an active/standby switchover occurs on Router S: •...
Page 142
Configuration procedure Configure IP addresses for interfaces. (Details not shown.) Enable OSPF: # Configure Router A. <RouterA> system-view [RouterA] ospf [RouterA-ospf-1] area 0 [RouterA-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.0.255 [RouterA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255 [RouterA-ospf-1-area-0.0.0.0] network 121.1.1.1 0.0.0.0 [RouterA-ospf-1-area-0.0.0.0] quit [RouterA-ospf-1] quit # Configure Router B. <RouterB>...
Page 143
Verifying the configuration # Display the BFD information on Router A. <RouterA> display bfd session Total Session Num: 1 Up Session Num: 1 Init Mode: Active IPv4 Session Working Under Ctrl Mode: LD/RD SourceAddr DestAddr State Holdtime Interface 192.168.0.102 192.168.0.100 1700ms GE1/1/1 # Display routes destined for 120.1.1.1/32 on Router A.
TableID: 0x2 OrigAs: 0 NibID: 0x26000002 LastAs: 0 AttrID: 0xffffffff Neighbor: 0.0.0.0 Flags: 0x1008c OrigNextHop: 10.1.1.100 Label: NULL RealNextHop: 10.1.1.100 BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid Interface: GigabitEthernet1/1/2 BkTunnel ID: Invalid BkInterface: N/ A FtnIndex: 0x0 TrafficIndex: N/A Connector: N/A The output shows that Router A communicates with Router B through GigabitEthernet 1/1/2.
Page 145
You can enable OSPF FRR to either calculate a backup next hop by using the LFA algorithm, or specify a backup next hop by using a routing policy. (Method 1.) Enable OSPF FRR to calculate a backup next hop by using the LFA algorithm: # Configure Router A.
Solution To resolve the problem: Use the display ospf peer command to verify OSPF neighbor information. Use the display ospf interface command to verify OSPF interface information. Ping the neighbor router's IP address to verify that the connectivity is normal. Verify OSPF timers.
Configuring IS-IS Overview Intermediate System-to-Intermediate System (IS-IS) is a dynamic routing protocol designed by the ISO to operate on the connectionless network protocol (CLNP). IS-IS was modified and extended in RFC 1195 by the IETF for application in both TCP/IP and OSI reference models, called "Integrated IS-IS"...
Figure 35 NSAP address format Area address The area address comprises the IDP and the HO-DSP of the DSP, which identify the area and the routing domain. Different routing domains cannot have the same area address. Typically, a router only needs one area address, and all nodes in the same area must have the same area address.
Typically, a router only needs one NET, but it can have a maximum of three NETs for smooth area merging and partitioning. When you configure multiple NETs, make sure the system IDs are the same. IS-IS area IS-IS has a 2-level hierarchy to support large-scale networks. A large-scale routing domain is divided into multiple areas.
backbone in this topology. The backbone comprises all contiguous Level-2 and Level-1-2 routers in different areas. The IS-IS backbone does not need to be a specific area. Figure 37 IS-IS topology 2 Area 1 Area 4 Area 2 L1/L2 L1/L2 Area 3 Both the Level-1 and Level-2 routers use the SPF algorithm to generate the shortest path tree.
As shown in Figure 38, the same level routers on a network, including non-DIS routers, establish adjacency with each other. Figure 38 DIS in the IS-IS broadcast network L1/L2 L1/L2 L2 adjacencies L1 adjacencies The DIS creates and updates pseudonodes, and generates LSPs for the pseudonodes, to describe all routers on the network.
Page 153
Type PDU Type Acronym Level-1 Partial Sequence Numbers PDU L1 PSNP Level-2 Partial Sequence Numbers PDU L2 PSNP Hello PDU IS-to-IS hello (IIH) PDUs are used by routers to establish and maintain neighbor relationships. On broadcast networks, Level-1 routers use Level-1 LAN IIHs, and Level-2 routers use Level-2 LAN IIHs. The P2P IIHs are used on point-to-point networks.
CLV Code Name PDU Type Authentication Information IIH, LSP, SNP IP Internal Reachability Information Protocols Supported IIH, LSP IP External Reachability Information L2 LSP Inter-Domain Routing Protocol Information L2 LSP IP Interface Address IIH, LSP MT-ISN M-Topologies IIH, LSP MT IP. Reach MT IPv6 IP.
IS-IS configuration task list Tasks at a glance Configuring basic IS-IS: • (Required.) Enabling IS-IS • (Optional.) Setting the IS level and circuit level • (Optional.) Configuring P2P network type for an interface (Optional.) Configuring IS-IS route control: • Configuring IS-IS link cost •...
Configuring basic IS-IS Configuration prerequisites Before the configuration, complete the following tasks: • Configure the link layer protocol. • Configure IP addresses for interfaces to ensure IP connectivity between neighboring nodes. Enabling IS-IS Step Command Remarks Enter system view. system-view isis [ process-id ] Enable IS-IS and enter IS-IS [ vpn-instance...
Configuring P2P network type for an interface Perform this task only for a broadcast network that has up to two attached routers. Interfaces with different network types operate differently. For example, broadcast interfaces on a network must elect the DIS and flood CSNP packets to synchronize the LSDBs. However, P2P interfaces on a network do not need to elect the DIS, and have a different LSDB synchronization mechanism.
Page 158
Interface bandwidth Interface cost ≤ 100 Mbps ≤ 155 Mbps ≤ 622 Mbps ≤ 2500 Mbps > 2500 Mbps If none of the above costs is used, a default cost of 10 applies. Configuring an IS-IS cost for an interface Step Command Remarks...
To configure the maximum number of ECMP routes: Step Command Remarks Enter system view. system-view • Enter IS-IS IPv4 unicast address family view: a. isis [ process-id ] [ vpn-instance vpn-instance-name ] b. address-family ipv4 [ unicast ] Enter IS-IS IPv4 unicast •...
Advertising a default route IS-IS cannot redistribute a default route to its neighbors. This task enables IS-IS to advertise a default route of 0.0.0.0/0 in an LSP to the same-level neighbors. Upon receiving the default route, the neighbors add it into their routing table. To advertise a default route: Step Command...
Step Command Remarks By default, no route is redistributed. By default, if no level is import-route protocol [ as-number ] specified, this command Redistribute routes from [ process-id | all-processes | allow-ibgp ] redistributes routes into the other routing protocols [ allow-direct | cost cost-value | cost-type Level-2 routing table.
Perform this task to filter redistributed routes. Only routes that are not filtered can be added to the IS-IS routing table and advertised to neighbors. To filter redistributed routes: Step Command Remarks Enter system view. system-view • Enter IS-IS IPv4 unicast address family view: a.
Step Command Remarks import-route isis level-2 into level-1 Configure route By default, IS-IS does not [ filter-policy { ipv4-acl-number | prefix-list leaking from Level-2 advertise routes from prefix-list-name | route-policy to Level-1. Level-2 to Level-1. route-policy-name } | tag tag ] * Advertising IS-IS link state information to BGP After the device advertises IS-IS link state information to BGP, BGP can advertise the information for intended applications.
Specifying the IS-IS hello multiplier The hello multiplier is the number of hello packets a neighbor must miss before it declares that the router is down. If a neighbor receives no hello packets from the router within the advertised hold time, it considers the router down and recalculates the routes.
Step Command Remarks Configure a DIS priority for isis dis-priority priority [ level-1 | The default setting is 64. the interface. level-2 ] Enabling source address check for hello packets on a PPP interface An IS-IS PPP interface can have a peer on a different network. Perform this task to configure an IS-IS PPP interface to establish neighbor relationship only with a peer on the same network.
Step Command Remarks interface interface-type Enter interface view. interface-number Enable the interface to send By default, the interface can send small hello packets without isis small-hello standard hello packets. CLVs. Configuring LSP parameters Configuring LSP timers Specify the maximum age of LSPs. Each LSP has an age that decreases in the LSDB.
Page 168
Step Command Remarks By default: • The maximum interval is 5 seconds. timer lsp-generation maximum-interval Specify the LSP [ minimum-interval • The minimum interval generation interval. [ incremental-interval ] ] [ level-1 | is 50 milliseconds. level-2 ] • The incremental interval is 200 milliseconds.
Page 169
Enabling LSP flash flooding Changed LSPs can trigger SPF recalculation. To advertise the changed LSPs before the router recalculates routes for faster network convergence, enable LSP flash flooding. To enable LSP flash flooding: Step Command Remarks Enter system view. system-view isis [ process-id ] [ vpn-instance Enter IS-IS view.
Figure 41 Network diagram of a fully meshed network To avoid this problem, you can add interfaces to a mesh group or block some interfaces. • An interface in a mesh group floods a received LSP only to interfaces not in the mesh group. •...
Setting the LSDB overload bit By setting the overload bit in sent LSPs, a router informs other routers of failures that make it unable to select routes and forward packets. When an IS-IS router cannot record the complete LSDB, for example, because of memory insufficiency, it will calculate wrong routes.
Configuring the tag value for an interface Perform this task when the link cost style is wide, wide-compatible, or compatible. When IS-IS advertises a prefix with a tag value, IS-IS adds the tag to the IP reachability information TLV of the prefix. To configure the tag value for an interface: Step Command...
When you use dynamic system ID to host name mapping, you only need to configure a host name for each router in the network. Each router advertises the host name in a dynamic host name CLV to other routers so all routers in the network can have all mappings. To help check the origin of LSPs in the LSDB, you can configure a name for the DIS in a broadcast network.
Step Command Remarks Enter system view. system-view By default, MIB is bound to the Bind MIB to an IS-IS IS-IS process with the smallest isis mib-binding process-id process. process ID. snmp-agent trap enable isis [ adjacency-state-change | area-mismatch | authentication | authentication-type | buffsize-mismatch | id-length-mismatch |...
Step Command Remarks interface interface-type Enter interface view. interface-number Enable BFD control packet By default, BFD control packet isis primary-path-detect bfd ctrl mode for IS-IS PIC. mode is disabled for IS-IS PIC. To configure BFD echo packet mode for IS-IS PIC: Step Command Remarks...
All the routers in the backbone must have the same authentication mode and key. To prevent packet exchange failure in case of an authentication key change, configure IS-IS not to check the authentication information in the received packets. To configure routing domain authentication: Step Command Remarks...
Step Command Remarks Enter system view. system-view Enable IS-IS and isis [ process-id ] [ vpn-instance enter IS-IS view. vpn-instance-name ] By default, the GR capability for IS-IS is Enable IS-IS GR. graceful-restart disabled. By default, the SA bit is not suppressed. (Optional.) Suppress By enabling the GR restarter to suppress the SA bit during...
To configure BFD for IS-IS: Step Command Remarks Enter system view. system-view interface interface-type Enter interface view. interface-number Enable IS-IS on an interface. isis enable [ process-id ] By default, an IS-IS Enable BFD on an IS-IS interface is not enabled with isis bfd enable interface.
Configuration procedure Configuring IS-IS FRR to calculate a backup next hop through LFA calculation Step Command Remarks Enter system view. system-view • Enter interface view: interface interface-type interface-number • Enter IPv4 unicast topology view of the Enter interface view or interface: IPv4 unicast topology view of the interface.
Page 183
Step Command Remarks • Enter interface view: interface interface-type interface-number • Enter IPv4 unicast topology view of the Enter interface view or interface: IPv4 unicast topology view of the interface. a. interface interface-type interface-number b. topology ipv4 [ unicast ] topo-name By default, the interface (Optional.) Disable LFA...
Step Command Remarks By default, the source IP address of BFD echo packets is not configured. Configure the source IP The source IP address cannot be bfd echo-source-ip ip-address address of BFD echo packets. on the same network segment as any local interface's IP address.
Configuration prerequisites Before you configure IPv4 IS-IS MTR, complete the following tasks: • Configure basic IS-IS to establish IS-IS neighbor relationships. • Configure MTR. For more information, see "Configuring MTR." Configuration procedure To configure IS-IS MTR: Step Command Remarks Enter system view. system-view isis [ process-id ] [ vpn-instance Enter IS-IS view.
Page 186
Task Command display isis lsdb [ [ level-1 | level-2 ] | local | lsp-id lspid | Display IS-IS LSDB information. [ lsp-name lspname ] | verbose ] * [ process-id ] Display IS-IS mesh group information. display isis mesh-group [ process-id ] Display the host name to system ID display isis name-table [ process-id ] mapping table.
IS-IS configuration examples Basic IS-IS configuration example Network requirements As shown in Figure 44, Router A, Router B, Router C, and Router D reside in an AS. Router A and Router B are Level-1 routers, Router D is a Level-2 router, and Router C is a Level-1-2 router connecting two areas.
Page 197
----------------------------- IPv4 Destination IntCost ExtCost ExitInterface NextHop Flags ------------------------------------------------------------------------------- 10.1.1.0/24 NULL GE1/1/1 Direct D/L/- 10.1.2.0/24 NULL GE1/1/1 10.1.1.1 R/-/- 192.168.0.0/24 NULL GE1/1/1 10.1.1.1 R/-/- 0.0.0.0/0 NULL GE1/1/1 10.1.1.1 R/-/- Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set [RouterC] display isis route Route information for IS-IS(1) -----------------------------...
Page 198
10.1.2.0/24 NULL GE1/1/2 192.168.0.1 R/-/- Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set Configure RIPv2 on Router D and Router E, and configure IS-IS to redistribute RIP routes on Router D: # Configure RIPv2 on Router D. [RouterD] rip 1 [RouterD-rip-1] network 10.0.0.0 [RouterD-rip-1] version 2...
Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set IS-IS authentication configuration example Network requirements As shown in Figure 47, Router A, Router B, Router C, and Router D reside in the same IS-IS routing domain. Router A, Router B, and Router C belong to Area 10, and Router D belongs to Area 20. •...
[RouterD-GigabitEthernet1/1/1] isis authentication-mode md5 plain hSec [RouterD-GigabitEthernet1/1/1] quit Set the area authentication mode to MD5 and set the plaintext key to 10Sec on Router A, Router B, and Router C. [RouterA] isis 1 [RouterA-isis-1] area-authentication-mode md5 plain 10Sec [RouterA-isis-1] quit [RouterB] isis 1 [RouterB-isis-1] area-authentication-mode md5 plain 10Sec [RouterB-isis-1] quit...
Verifying the configuration # Restart the IS-IS process on Router A. <RouterA> reset isis all 1 graceful-restart Reset IS-IS process? [Y/N]:y # Check the GR state of the IS-IS process on Router A. <RouterA> display isis graceful-restart status Restart information for IS-IS(1) -------------------------------- Restart status: COMPLETE Restart phase: Finish...
Page 203
[RouterS-isis-1] non-stop-routing [RouterS-isis-1] return Verifying the configuration # Reoptimize process placement on Router S to trigger an active/standby switchover. <RouterS> system-view [RouterS] placement reoptimize Predicted changes to the placement Program Current location New location --------------------------------------------------------------------- syslog diagusageratio l3vpn lauth track ip6addr ipaddr trange...
Page 204
Peer information for IS-IS(1) ---------------------------- System Id: 0000.0000.0001 Interface: GE1/1/1 Circuit Id: 0000.0000.0001.01 State: Up HoldTime: Type: L1(L1L2) PRI: 64 System Id: 0000.0000.0001 Interface: GE1/1/1 Circuit Id: 0000.0000.0001.01 State: Up HoldTime: Type: L2(L1L2) PRI: 64 # Display IS-IS routing information on Router A to verify that Router A has a route to the loopback interface of Router B.
Interface: GE1/1/1 Circuit Id: 0000.0000.0001.01 State: Up HoldTime: Type: L1(L1L2) PRI: 64 System Id: 0000.0000.0001 Interface: GE1/1/1 Circuit Id: 0000.0000.0001.01 State: Up HoldTime: Type: L2(L1L2) PRI: 64 # Display IS-IS routing information on Router B to verify that Router B has a route to the loopback interface of Router A.
Page 206
Figure 50 Network diagram Router A Router B GE1/1/1 GE1/1/1 Loop0 Loop0 GE1/1/2 GE1/1/2 L2 Switch Area 0 GE1/1/1 GE1/1/2 Router C Device Interface IP address Device Interface IP address Router A GE1/1/1 192.168.0.102/24 Router B GE1/1/1 192.168.0.100/24 GE1/1/2 10.1.1.102/24 GE1/1/2 13.1.1.1/24 Loop0...
Page 209
• Run IS-IS on all the routers to interconnect them with each other. • Configure IS-IS FRR so that when Link A fails, traffic can be switched to Link B immediately. Figure 51 Network diagram Router C Link B Link A Loop0 Loop0 GE1/1/2...
Configuring BGP Overview Border Gateway Protocol (BGP) is an exterior gateway protocol (EGP). It is called internal BGP (IBGP) when it runs within an AS and called external BGP (EBGP) when it runs between ASs. The current version in use is BGP-4 (RFC 4271). BGP has the following characteristics: •...
Page 213
The ORIGIN attribute specifies the origin of BGP routes. This attribute has the following types: IGP—Has the highest priority. Routes generated in the local AS have the IGP attribute. EGP—Has the second highest priority. Routes obtained through EGP have the EGP attribute.
Page 214
When a BGP speaker sends a received route to an EBGP peer, it sets the address of the sending interface as the NEXT_HOP. When a BGP speaker sends a route received from an EBGP peer to an IBGP peer, it does not modify the NEXT_HOP attribute.
Page 215
Generally BGP only compares MEDs of routes received from the same AS. You can also use the compare-different-as-med command to force BGP to compare MED values of routes received from different ASs. • LOCAL_PREF The LOCAL_PREF attribute is exchanged between IBGP peers only, and is not advertised to any other AS.
• Extended community attribute To meet new demands, BGP defines the extended community attribute. The extended community attribute has the following advantages over the COMMUNITY attribute: Provides more attribute values by extending the attribute length to eight bytes. Allows for using different types of extended community attributes in different scenarios to enhance route filtering and control and simplify configuration and management.
• When multiple feasible routes to a destination exist, BGP advertises only the optimal route to its peers. If the advertise-rib-active command is configured, BGP advertises the optimal route in the IP routing table. If not, BGP advertises the optimal route in the BGP routing table. •...
Figure 56 Network diagram Settlements for problems in large-scale BGP networks You can use the following methods to facilitate management and improve route distribution efficiency on a large-scale BGP network. • Route summarization Route summarization can reduce the BGP routing table size by advertising summary routes rather than more specific routes.
Page 219
Figure 57 BGP route dampening Penalty value Suppress threshold Reusable threshold Suppression time Time Half-life • Peer group You can organize BGP peers with the same attributes into a group to simplify their configurations. When a peer joins the peer group, the peer obtains the same configuration as the peer group. If the configuration of the peer group is changed, the configuration of group members is changed.
Page 220
The route reflector and clients form a cluster. Typically a cluster has one route reflector. The ID of the route reflector is the Cluster_ID. You can configure more than one route reflector in a cluster to improve availability, as shown in Figure 59.
A non-confederation BGP speaker does not need to know sub-ASs in the confederation. It considers the confederation as one AS, and the confederation ID as the AS number. In the above figure, AS 200 is the confederation ID. Confederation has a deficiency. When you change an AS into a confederation, you must reconfigure the routers, and the topology will be changed.
MP-BGP uses these two attributes to advertise feasible and unfeasible routes for different network layer protocols. BGP speakers not supporting MP-BGP ignore updates containing these attributes and do not forward them to its peers. Address family MP-BGP uses address families and subsequent address families to identify different network layer protocols for routes contained in the MP_REACH_NLRI and MP_UNREACH_NLRI attributes.
Page 223
View names Ways to enter the views Remarks <Sysname> system-view Configurations in this view apply to [Sysname] bgp 100 instance abc BGP IPv4 multicast address IPv4 multicast routes and peers of family view [Sysname-bgp-abc] the specified BGP instance. address-family ipv4 multicast [Sysname-bgp-abc-mul-ipv4] <Sysname>...
View names Ways to enter the views Remarks <Sysname> system-view [Sysname] bgp 100 instance abc Configurations in this view apply to [Sysname-bgp-abc] ip BGP-VPN IPv6 unicast IPv6 unicast routes and peers in the vpn-instance vpn1 address family view specified VPN instance of the specified BGP instance.
BGP configuration task list On a basic BGP network, perform the following configuration tasks: • Enable BGP. • Configure BGP peers or peer groups. If you configure a BGP setting at both the peer group and the peer level, the most recent configuration takes effect on the peer. •...
Page 226
Tasks at a glance Remarks (Optional.) Tuning and optimizing BGP networks: • Configuring the keepalive interval and hold time • Configuring the interval for sending updates for the same route • Enabling BGP to establish an EBGP session over multiple hops •...
Page 227
Tasks at a glance Remarks (Optional.) Controlling route distribution and reception: • Configuring BGP route summarization BGP cannot advertise • Advertising optimal routes in the IP routing table optimal routes in the IP • Advertising a default route to a peer or peer group routing table for IPv6 multicast address •...
Tasks at a glance Remarks (Optional.) Configuring BGP LS Configuring basic BGP This section describes the basic settings required for a BGP network to run. Enabling BGP A router ID is the unique identifier of a BGP router in an AS. •...
Step Command Remarks By default, no router ID is configured for a BGP VPN instance, and the BGP VPN instance uses (Optional.) Configure a the router ID configured in BGP router-id { router-id | router ID for the BGP VPN instance view.
Page 230
Step Command Remarks Create an IPv6 BGP peer By default, no IPv6 BGP peers peer ipv6-address as-number and specify its AS number. exist. as-number (Optional.) Configure a By default, no description is peer ipv6-address description description for a peer. configured for a peer. text Create the BGP IPv6 unicast By default, no BGP IPv6 unicast...
Configuring dynamic BGP peers This feature enables BGP to establish dynamic BGP peer relationships with devices in a network. BGP accepts connection requests from the network but it does not initiate connection requests to the network. After a device in the network initiates a connection request, BGP establishes a dynamic peer relationship with the device.
Page 232
Step Command Remarks Specify devices in a network as dynamic BGP By default, no dynamic BGP peer ipv6-address prefix-length peers and specify an AS peers exist. as-number as-number number for the peers. (Optional.) Configure a By default, no description is peer ipv6-address prefix-length description for dynamic configured for dynamic BGP...
Step Command Remarks (Optional.) Configure a By default, no description is peer ipv6-address prefix-length description for dynamic BGP configured for dynamic BGP description text peers. peers. Create the BGP IPv6 By default, no BGP IPv6 multicast address family and multicast address family address-family ipv6 multicast enter its view.
Page 234
Step Command Remarks Create the BGP IPv4 unicast By default, no BGP IPv4 unicast address family or BGP-VPN address-family ipv4 [ unicast ] address family or BGP-VPN IPv4 IPv4 unicast address family unicast address family exists. and enter its view. Enable the router to exchange IPv4 unicast By default, the router cannot...
Page 235
Step Command Remarks By default, no peer exists in the peer group. peer ipv4-address [ mask-length ] Add an IPv4 peer into the group group-name [ as-number The as-number as-number IBGP peer group. as-number ] option must specify the local AS number.
Page 236
• Method 3—Create an EBGP peer group and add a peer with an AS number into it. Peers added in the group can have different AS numbers. To configure an EBGP peer group by using Method 1 (IPv4 unicast address family): Step Command Remarks...
Page 237
Step Command Remarks • Enter BGP instance view: bgp as-number [ instance instance-name ] • Enter BGP-VPN instance view: Enter BGP instance view or BGP-VPN instance view. a. bgp as-number [ instance instance-name ] b. ip vpn-instance vpn-instance-name By default, no EBGP peer groups Create an EBGP peer group.
Page 238
Step Command Remarks By default, no peers exist in the peer group. peer ipv4-address [ mask-length ] The as-number as-number Add an IPv4 BGP peer into group group-name [ as-number option, if used, must specify the the EBGP peer group. as-number ] same AS number as the peer group-name as-number...
Page 239
Step Command Remarks Enter system view. system-view • Enter BGP instance view: bgp as-number [ instance instance-name ] • Enter BGP-VPN instance view: Enter BGP instance view or BGP-VPN instance view. a. bgp as-number [ instance instance-name ] b. ip vpn-instance vpn-instance-name By default, no EBGP peer groups Create an EBGP peer group.
Page 240
Step Command Remarks Create an IPv6 BGP peer peer ipv6-address [ prefix-length ] By default, no IPv6 BGP peers and specify its AS number. exist. as-number as-number By default, no peers exist in the peer group. The as-number as-number peer ipv6-address [ prefix-length ] Add the peer into the EBGP option, if used, must specify the group group-name [ as-number...
Page 241
To configure an EBGP peer group by using Method 2 (IPv6 multicast address family): Step Command Remarks Enter system view. system-view bgp as-number [ instance Enter BGP instance view. instance-name ] By default, no EBGP peer groups Create an EBGP peer group. group group-name external exist.
Page 242
Step Command Remarks Create the BGP IPv4 unicast By default, no BGP IPv4 unicast address family or BGP-VPN address-family ipv4 [ unicast ] address family or BGP-VPN IPv4 IPv4 unicast address family unicast address family exists. and enter its view. Enable the router to exchange IPv4 unicast By default, the router cannot...
Step Command Remarks peer ipv4-address [ mask-length ] Add an IPv4 BGP peer into By default, no peers exist in the group group-name as-number the EBGP peer group. peer group. as-number (Optional.) Configure a By default, no description is peer group-name description description for the peer configured for the peer group.
Page 244
• If the source interface fails on a BGP router that has multiple links to a peer, BGP must re-establish TCP connections. To avoid this problem, use a loopback interface as the source interface or use the IP address of a loopback interface as the source address. •...
Generating BGP routes BGP can generate routes in the following ways: • Advertise local networks. • Redistribute IGP routes. Injecting a local network Perform this task to inject a network in the local routing table to the BGP routing table, so BGP can advertise the network to BGP peers.
Step Command Remarks • Enter BGP IPv6 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv6 [ unicast ] • Enter BGP-VPN IPv6 unicast address family view: Enter BGP IPv6 unicast a. bgp as-number address family view, [ instance BGP-VPN IPv6 unicast instance-name ]...
Page 249
Step Command Remarks Enter system view. system-view • Enter BGP IPv4 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv4 [ unicast ] • Enter BGP-VPN IPv4 unicast address family view: Enter BGP IPv4 unicast a.
Page 250
Step Command Remarks • Enter BGP IPv4 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv4 [ unicast ] • Enter BGP-VPN IPv4 unicast address family view: Enter BGP IPv4 unicast a. bgp as-number address family view, [ instance BGP-VPN IPv4 unicast instance-name ]...
Step Command Remarks • Enter BGP IPv4 unicast address family view: address-family ipv4 [ unicast ] Enter BGP IPv4 unicast • Enter BGP-VPN IPv4 unicast address family view or address family view: BGP-VPN IPv4 unicast address family view. a. ip vpn-instance vpn-instance-name b.
Page 253
Step Command Remarks • Enter BGP IPv4 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv4 [ unicast ] • Enter BGP-VPN IPv4 unicast address family view: Enter BGP IPv4 unicast a. bgp as-number address family view, [ instance BGP-VPN IPv4 unicast instance-name ]...
Step Command Remarks peer { group-name | ipv6-address Specify the maximum [ prefix-length ] } route-limit By default, the number of routes number of routes that a prefix-number [ { alert-only | that a router can receive from a router can receive from a discard | reconnect peer or peer group is not limited.
Page 257
Step Command Remarks • Enter BGP IPv4 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv4 [ unicast ] • Enter BGP-VPN IPv4 unicast address family view: Enter BGP IPv4 unicast a. bgp as-number address family view, [ instance BGP-VPN IPv4 unicast instance-name ]...
Page 258
Step Command Remarks • Reference an ACL or IP prefix list to filter advertised BGP routes: filter-policy { ipv4-acl-number | prefix-list prefix-list-name } export [ direct | isis process-id | ospf process-id | rip process-id | static ] • Reference a routing policy to filter BGP routes advertised to a peer or peer group: peer { group-name |...
Page 259
Step Command Remarks • Enter BGP IPv6 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv6 [ unicast ] • Enter BGP-VPN IPv6 unicast address family view: Enter BGP IPv6 unicast a. bgp as-number address family view, [ instance BGP-VPN IPv6 unicast instance-name ]...
Page 260
Step Command Remarks • Reference an ACL or IPv6 prefix list to filter advertised BGP routes: filter-policy { ipv6-acl-number | prefix-list ipv6-prefix-name } export [ direct | isisv6 process-id | ospfv3 process-id | ripng process-id | static ] • Reference a routing policy to filter BGP routes advertised to a peer or peer group: peer { group-name |...
Page 261
Step Command Remarks Enter system view. system-view • Enter BGP IPv4 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv4 [ unicast ] • Enter BGP-VPN IPv4 unicast address family view: Enter BGP IPv4 unicast a.
Step Command Remarks Enter system view. system-view • Enter BGP IPv6 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv6 [ unicast ] • Enter BGP-VPN IPv6 unicast address family view: Enter BGP IPv6 unicast a.
Page 265
Step Command Remarks • Enter BGP IPv4 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv4 [ unicast ] • Enter BGP-VPN IPv4 unicast address family view: Enter BGP IPv4 unicast a. bgp as-number address family view, [ instance BGP-VPN IPv4 unicast instance-name ]...
Step Command Remarks Set a preferred value for peer { group-name | ipv6-address routes received from a peer [ prefix-length ] } preferred-value The default preferred value is 0. or peer group. value Configuring preferences for BGP routes Routing protocols each have a default preference. If they find multiple routes destined for the same network, the route found by the routing protocol with the highest preference is selected as the optimal route.
To configure preferences for BGP routes (IPv6 unicast/multicast address family): Step Command Remarks Enter system view. system-view • Enter BGP IPv6 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv6 [ unicast ] • Enter BGP-VPN IPv6 unicast address family view: Enter BGP IPv6 unicast a.
Page 268
Step Command Remarks • Enter BGP IPv4 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv4 [ unicast ] • Enter BGP-VPN IPv4 unicast address family view: Enter BGP IPv4 unicast a. bgp as-number address family view, [ instance BGP-VPN IPv4 unicast instance-name ]...
Step Command Remarks Configure the default local The default local preference is default local-preference value preference. 100. Configuring the MED attribute BGP uses MED to determine the optimal route for traffic going into an AS. When a BGP router obtains multiple routes with the same destination but with different next hops, it considers the route with the smallest MED value as the optimal route if other conditions are the same.
Page 270
Step Command Remarks • Enter BGP IPv6 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv6 [ unicast ] • Enter BGP-VPN IPv6 unicast address family view: Enter BGP IPv6 unicast a. bgp as-number address family view, [ instance BGP-VPN IPv6 unicast instance-name ]...
Page 271
Figure 61 Route selection based on MED (in an IPv4 network) As shown in Figure 61, Router D establishes indirect EBGP peer relationships with Router A, Router B, and Router C, and learns addresses 1.1.1.1/32, 2.2.2.2/32, and 3.3.3.3/32 through OSPF. The following output shows the routing information on Router D.
1.1.1.1 200 400e To enable MED comparison for routes on a per-AS basis: Step Command Remarks Enter system view. system-view • Enter BGP instance view: bgp as-number [ instance instance-name ] • Enter BGP-VPN instance view: Enter BGP instance view or BGP-VPN instance view.
Page 273
For example, as shown in Figure 62, Router A and Router B establish an EBGP neighbor relationship, and Router B and Router C establish an IBGP neighbor relationship. If Router C has no route destined for IP address 1.1.1.1/24, you must configure Router B to set itself 3.1.1.1/24 as the next hop for the network 2.1.1.1/24 advertised to Router C.
Page 274
Step Command Remarks • Enter BGP IPv4 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv4 [ unicast ] • Enter BGP-VPN IPv4 unicast address family view: Enter BGP IPv4 unicast a. bgp as-number address family view, [ instance BGP-VPN IPv4 unicast instance-name ]...
Configuring the AS_PATH attribute Permitting local AS number to appear in routes from a peer or peer group In general, BGP checks whether the AS_PATH attribute of a route from a peer contains the local AS number. If yes, it discards the route to avoid routing loops. To permit the local AS number to appear in routes from a peer or peer group and specify the appearance times (IPv4 unicast/multicast address family): Step...
Page 276
Step Command Remarks • Enter BGP IPv6 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv6 [ unicast ] • Enter BGP-VPN IPv6 unicast address family view: Enter BGP IPv6 unicast a. bgp as-number address family view, [ instance BGP-VPN IPv6 unicast instance-name ]...
Page 277
Step Command Remarks Enter system view. system-view • Enter BGP instance view: bgp as-number [ instance instance-name ] • Enter BGP-VPN instance view: Enter BGP instance view or BGP-VPN instance view. a. bgp as-number [ instance instance-name ] b. ip vpn-instance vpn-instance-name By default, no fake AS number is advertised to a peer or peer...
Page 278
Figure 64 AS number substitution configuration (in an IPv4 network) As shown in Figure 64, CE 1 and CE 2 use the same AS number 800. To ensure bidirectional communication between the two sites, configure AS number substitution on PE 2. PE 2 replaces AS 800 with AS 100 for the BGP route update originated from CE 1 before advertising it to CE 2.
Page 279
Removing private AS numbers from updates sent to an EBGP peer or peer group Private AS numbers are typically used in test networks, and should not be transmitted in public networks. The range of private AS numbers is from 64512 to 65535. To remove private AS numbers from updates sent to an EBGP peer or peer group (IPv4 unicast/multicast address family): Step...
Step Command Remarks By default, no SoO attribute is Configure the SoO attribute peer { group-name | ipv4-address configured for a peer or peer for a peer or peer group. [ mask-length ] } soo site-of-origin group. To configure the SoO attribute (IPv6 unicast/multicast address family): Step Command Remarks...
Page 283
• If the keepalive interval is not 0, the actual keepalive interval is the smaller one between 1/3 of the hold time and the keepalive interval. To configure the keepalive interval and hold time (IPv4 unicast/multicast address family): Step Command Remarks Enter system view.
Step Command Remarks Use at least one method. • Configure the global By default, the keepalive interval keepalive interval and hold is 60 seconds, and hold time is time: 180 seconds. timer keepalive keepalive The timer command takes effect hold holdtime for new BGP sessions and does •...
Step Command Remarks • Enter BGP instance view: bgp as-number [ instance instance-name ] • Enter BGP-VPN instance view: Enter BGP instance view or BGP-VPN instance view. a. bgp as-number [ instance instance-name ] b. ip vpn-instance vpn-instance-name Configure the interval for peer { group-name | ipv6-address By default, the interval is 15 sending updates for the...
Step Command Remarks • Enter BGP instance view: bgp as-number [ instance instance-name ] • Enter BGP-VPN instance view: Enter BGP instance view or BGP-VPN instance view. a. bgp as-number [ instance instance-name ] b. ip vpn-instance vpn-instance-name Enable BGP to establish an EBGP session to an peer { group-name | ipv6-address By default, BGP cannot establish...
Step Command Remarks • Enter BGP instance view: bgp as-number [ instance instance-name ] • Enter BGP-VPN instance view: Enter BGP instance view or BGP-VPN instance view. a. bgp as-number [ instance instance-name ] b. ip vpn-instance vpn-instance-name Enable MD5 authentication peer { group-name | ipv4-address By default, MD5 authentication is for a BGP peer group or...
Page 289
Step Command Remarks • Enter BGP IPv4 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv4 [ unicast ] • Enter BGP-VPN IPv4 unicast address family view: Enter BGP IPv4 unicast a. bgp as-number address family view, [ instance BGP-VPN IPv4 unicast instance-name ]...
Step Command Remarks • Enter BGP instance view: bgp as-number [ instance instance-name ] • Enter BGP-VPN instance view: Enter BGP instance view or BGP-VPN instance view. a. bgp as-number [ instance instance-name ] b. ip vpn-instance vpn-instance-name By default, no IPsec profile is configured for any IPv6 BGP peer Apply the IPsec profile to an peer { group-name | ipv6-address...
Step Command Remarks • Enter BGP instance view: bgp as-number [ instance instance-name ] • Enter BGP-VPN instance view: Enter BGP instance view or BGP-VPN instance view. a. bgp as-number [ instance instance-name ] b. ip vpn-instance vpn-instance-name Disable BGP to establish a peer { group-name | ipv6-address By default, BGP can establish a session to a peer or peer...
Step Command Remarks Enter system view. system-view • Enter BGP instance view: bgp as-number [ instance instance-name ] • Enter BGP-VPN instance Enter BGP instance view or view: BGP-VPN instance view. a. bgp as-number [ instance instance-name ] b. ip vpn-instance vpn-instance-name Configure GTSM for the peer { group-name | ipv6-address...
Page 294
Step Command Remarks • Enter BGP instance view: bgp as-number [ instance instance-name ] • Enter BGP-VPN instance view: Enter BGP instance view or BGP-VPN instance view. a. bgp as-number [ instance instance-name ] b. ip vpn-instance vpn-instance-name • Enable BGP route refresh for the specified peer or peer group: peer { group-name |...
Page 295
Step Command Remarks • Enable BGP route refresh for the specified peer or peer group: peer { group-name | ipv6-address [ prefix-length ] } capability-advertise route-refresh By default, the BGP route refresh, Enable BGP route refresh for • multi-protocol extension, and Enable the BGP route a peer or peer group.
Page 296
To save all route updates from the specified peer or peer group (IPv6 unicast/multicast address family): Step Command Remarks Enter system view. system-view • Enter BGP IPv6 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv6 [ unicast ] •...
Page 297
Step Command Remarks • Enable BGP route refresh for the specified peer or peer group: peer { group-name | ipv4-address [ mask-length ] } capability-advertise route-refresh By default, the BGP route refresh, Enable BGP route refresh for • multi-protocol extension, and Enable the BGP route a peer or peer group.
Page 298
Step Command Remarks • Enable BGP route refresh for the specified peer or peer group: peer { group-name | ipv6-address [ prefix-length ] } capability-advertise route-refresh By default, the BGP route refresh, Enable BGP route refresh for • multi-protocol extension, and Enable the BGP route a peer or peer group.
Step Command Remarks Configure BGP to protect an By default, BGP periodically tears peer { group-name | ipv4-address EBGP peer or peer group down an EBGP session to release [ mask-length ] } when the memory usage memory resources when level 2 low-memory-exempt reaches level 2 threshold.
After the suboptimal route is flushed to the RIB on a network, BGP immediately switches traffic to the suboptimal route when the optimal route fails. For example, the device has a static route to the subnet 1.1.1.0/24 that has a higher priority than a BGP route.
Page 302
Step Command Remarks • Enter BGP IPv4 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv4 [ unicast ] • Enter BGP-VPN IPv4 unicast address family view: Enter BGP IPv4 unicast a. bgp as-number address family view, [ instance BGP-VPN IPv4 unicast instance-name ]...
Step Command Remarks • Enter BGP IPv6 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv6 [ unicast ] • Enter BGP-VPN IPv6 unicast address family view: Enter BGP IPv6 unicast a. bgp as-number [ instance address family view, instance-name ] BGP-VPN IPv6 unicast...
Page 304
Step Command Remarks • Enter BGP IPv4 unicast address family view: a. bgp as-number [ instance instance-name ] b. address-family ipv4 [ unicast ] • Enter BGP-VPN IPv4 unicast address family view: Enter BGP IPv4 unicast a. bgp as-number address family view, [ instance BGP-VPN IPv4 unicast instance-name ]...
Page 305
Step Command Remarks Configure the router as a route reflector and specify a peer { group-name | ipv6-address By default, no route reflector or peer or peer group as its [ prefix-length ] } reflect-client client is configured. client. Enable route reflection By default, route reflection reflect between-clients between clients.
Step Command Remarks By default, BGP does not ignore the ORIGINATOR_ID attribute. peer { group-name | ipv6-address Make sure this command does not Ignore the ORIGINATOR_ID [ prefix-length ] } result in a routing loop. attribute. ignore-originatorid After you execute this command, BGP also ignores the CLUSTER_LIST attribute.
Configuring BGP GR Graceful Restart (GR) ensures forwarding continuous when a routing protocol restarts or an active/standby switchover occurs. Two routers are required to complete a GR process. The following are router roles in a GR process: • GR restarter—Performs GR upon a BGP restart or active/standby switchover. •...
Step Command Remarks The default setting is 150 seconds. graceful-restart timer restart Configure the GR timer. The time that a peer waits to timer re-establish a session must be less than the hold time. Configure the maximum time to The default setting is 180 graceful-restart timer wait for the End-of-RIB marker.
Step Command Remarks Enable SNMP By default, SNMP notifications for snmp-agent trap enable bgp notifications for BGP. [ instance instance-name ] BGP are enabled. Enabling logging for session state changes Perform this task to enable BGP to log BGP session establishment and disconnection events. To display the log information, use the display bgp peer ipv4 unicast log-info command or the display bgp peer ipv6 unicast log-info command.
BGP maintains neighbor relationships based on the keepalive timer and hold timer in seconds. It requires that the hold time must be at least three times the keepalive interval. This mechanism slows down link failure detection. Once a failure occurs on a high-speed link, a large quantity of packets will be dropped before routing convergence completes.
Page 311
Figure 65 Network diagram for BGP FRR Backup nexthop: Router C Router A Router B Nexthop: Router D Router E After you configure FRR on Router B as shown in Figure 65, BGP generates a backup next hop Router C for the primary route. BGP uses ARP (for IPv4), echo-mode BFD (for IPv4), or ND (for IPv6) to detect the connectivity to Router D.
Page 312
Step Command Remarks By default, no routing policies exist. This step is required when Create a routing policy and Method 2 is used to enable BGP route-policy route-policy-name enter routing policy view. FRR. permit node node-number For more information about this command, see Layer 3—IP Routing Command Reference.
Step Command Remarks By default, no routing policies exist. This step is required when Method 2 route-policy Create a routing policy and is used to enable BGP FRR. route-policy-name permit enter routing policy view. For more information about this node node-number command, see Layer 3—IP Routing Command Reference.
Configure a routing policy, and assign an index to the matching BGP routes by using the apply traffic-index command. For more information about the apply traffic-index command, see Layer 3—IP Routing Command Reference. Configure BGP to use the routing policy. The network, import-route, aggregate, peer route-policy, and peer default-route-advertise commands can use a routing policy.
• 6PE assigns a label to IPv6 routing information received from a CE router, and sends the labeled IPv6 routing information to the peer 6PE device through an MP-BGP session. The peer 6PE device then forwards the IPv6 routing information to the attached customer site. •...
Page 316
Step Command Remarks Enter BGP IPv6 unicast address-family ipv6 [ unicast ] address family view. Advertise COMMUNITY peer { group-name | ipv4-address By default, the COMMUNITY attribute to the 6PE peer or [ mask-length ] } attribute is not advertised. peer group.
Configuring BGP LS route reflection Perform this task to configure a BGP route reflector and its clients. The route reflector and its clients automatically form a cluster identified by the router ID of the route reflector. The route reflector forwards route updates among its clients. To configure BGP LS route reflection: Step Command...
Page 324
Figure 67 Network diagram Requirements analysis To prevent route flapping caused by port state changes, this example uses loopback interfaces to establish IBGP connections. Because loopback interfaces are virtual interfaces, you need to use the peer connect-interface command to specify the loopback interface as the source interface for establishing BGP connections.
Page 325
[RouterC] ospf 1 [RouterC-ospf-1] area 0 [RouterC-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0 [RouterC-ospf-1-area-0.0.0.0] network 9.1.1.0 0.0.0.255 [RouterC-ospf-1-area-0.0.0.0] quit [RouterC-ospf-1] quit [RouterC] display bgp peer ipv4 BGP local router ID : 3.3.3.3 Local AS number : 65009 Total number of peers : 1 Peers in established state : 1 * - Dynamically created peer Peer...
Page 326
The output shows that Router B has established an IBGP peer relationship with Router C and an EBGP peer relationship with Router A. # Display the BGP routing table on Router A. [RouterA] display bgp routing-table ipv4 Total number of routes: 1 BGP local router ID is 1.1.1.1 Status codes: * - valid, >...
Page 327
[RouterB-bgp-default] address-family ipv4 unicast [RouterB-bgp-default-ipv4] import-route direct [RouterB-bgp-default-ipv4] quit [RouterB-bgp-default] quit # Display the BGP routing table on Router A. [RouterA] display bgp routing-table ipv4 Total number of routes: 4 BGP local router ID is 1.1.1.1 Status codes: * - valid, > - best, d - dampened, h - history, s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete Network...
--- Ping statistics for 8.1.1.1 --- 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss round-trip min/avg/max/std-dev = 0.000/0.600/2.000/0.800 ms BGP and IGP route redistribution configuration example Network requirements As shown in Figure 68, all devices of company A belong to AS 65008 and all devices of company B belong to AS 65009.
Page 329
Configure the EBGP connection and inject network 8.1.1.0/24 to the BGP routing table of Router A, so Router B can obtain the route to 8.1.1.0/24. # Configure Router A. <RouterA> system-view [RouterA] bgp 65008 [RouterA-bgp-default] router-id 1.1.1.1 [RouterA-bgp-default] peer 3.1.1.1 as-number 65009 [RouterA-bgp-default] address-family ipv4 unicast [RouterA-bgp-default-ipv4] peer 3.1.1.1 enable [RouterA-bgp-default-ipv4] network 8.1.1.0 24...
Destination Cost Type NextHop AdvRouter Area 9.1.1.0/24 Transit 9.1.1.2 3.3.3.3 0.0.0.0 2.2.2.2/32 Stub 9.1.1.1 2.2.2.2 0.0.0.0 Routing for ASEs Destination Cost Type NextHop AdvRouter 8.1.1.0/24 Type2 9.1.1.1 2.2.2.2 Total Nets: 3 Intra Area: 2 Inter Area: 0 ASE: 1 NSSA: 0 Verifying the configuration # Use ping to test connectivity.
Page 331
Figure 69 Network diagram Configuration procedure Configure IP addresses for interfaces. (Details not shown.) Configure static routing between Router A and Router B: # Configure a default route with the next hop 192.168.212.1 on Router A. <RouterA> system-view [RouterA] ip route-static 0.0.0.0 0 192.168.212.1 # Configure static routes to 192.168.64.0/24, 192.168.74.0/24, and 192.168.99.0/24 with the same next hop 192.168.212.161 on Router B.
BGP Routing table Status : <Inactive> Summary count : 0 The output shows that Router D has learned routes to 192.168.64.0/24, 192.168.74.0/24, and 192.168.99.0/24 through BGP. # Ping the hosts on networks 192.168.64.0/24, 192.168.74.0/24, and 192.168.99.0/24 from Router D. The ping operations succeed. Configure route summarization on Router C to summarize 192.168.64.0/24, 192.168.74.0/24, and 192.168.99.0/24 into a single route 192.168.64.0/18, and disable advertisement of specific routes.
Page 334
Figure 70 Network diagram Requirements analysis On Router A, establish EBGP connections with Router B and Router C. Configure BGP to advertise network 8.1.1.0/24 to Router B and Router C. This allows Router B and Router C can access the internal network connected to Router A.
[RouterA-bgp-default-ipv4] quit [RouterA-bgp-default] quit Verifying the configuration # Display the BGP routing table on Router A. [RouterA] display bgp routing-table ipv4 Total number of routes: 3 BGP local router ID is 1.1.1.1 Status codes: * - valid, > - best, d - dampened, h - history, s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete Network...
Page 338
Traffic index : N/A # Display advertisement information for the route 9.1.1.0 on Router B. [RouterB] display bgp routing-table ipv4 9.1.1.0 advertise-info BGP local router ID: 2.2.2.2 Local AS number: 20 Paths: 1 best BGP routing table information of 9.1.1.0/24: Advertised to peers (1 in total): 200.1.3.2 The output shows that Router B can advertise the route with the destination 9.1.1.0/24 to other...
BGP routing table information of 9.1.1.0/24: From : 200.1.2.1 (1.1.1.1) Rely nexthop : 200.1.2.1 Original nexthop: 200.1.2.1 OutLabel : NULL Community : No-Export AS-path : 10 Origin : igp Attribute value : pref-val 0 State : valid, external, best IP precedence : N/A QoS local ID : N/A...
Page 340
Figure 72 Network diagram Loop0 Loop0 1.1.1.1/32 3.3.3.3/32 GE1/1/1 Route reflector 20.1.1.1/8 GE1/1/2 GE1/1/1 GE1/1/2 192.1.1.1/24 193.1.1.1/24 194.1.1.1/24 Router A Router C Loop0 Loop0 2.2.2.2/32 4.4.4.4/32 GE1/1/1 GE1/1/1 GE1/1/2 194.1.1.2/24 192.1.1.2/24 193.1.1.2/24 AS 100 AS 200 Router B Router D Configuration procedure Configure IP addresses for interfaces and configure OSPF in AS 200.
BGP confederation configuration example Network requirements As shown in Figure 73, split AS 200 into three sub-ASs (AS 65001, AS 65002, and AS 65003) to reduce IBGP connections. Routers in AS 65001 are fully meshed. Figure 73 Network diagram Table 15 Interface and IP address assignment Device Interface IP address...
IP precedence : N/A QoS local ID : N/A Traffic index : N/A The output shows the following: • Router F can send route information to Router B and Router C through the confederation by establishing only an EBGP connection with Router A. •...
BGP GR configuration example Network requirements As shown in Figure 75, run EBGP between Router A and Router B, and run IBGP between Router B and Router C. Configure BGP GR so that the communication between Router A and Router C is not affected when an active/standby switchover occurs on Router B.
# Enable Router B to exchange IPv4 unicast routing information with Router A and Router C. [RouterB-bgp-default-ipv4] peer 200.1.1.2 enable [RouterB-bgp-default-ipv4] peer 9.1.1.2 enable Configure Router C: # Configure IP addresses for interfaces. (Details not shown.) # Configure the IBGP connection. <RouterC>...
AttrID: 0x1 Neighbor: 3.0.1.1 Flags: 0x10060 OrigNextHop: 3.0.1.1 Label: NULL RealNextHop: 3.0.2.1 BkLabel: NULL BkNextHop: N/A Tunnel ID: Invalid Interface: GigabitEthernet1/1/1 BkTunnel ID: Invalid BkInterface: N/A FtnIndex: 0x0 TrafficIndex: N/A Connector: N/A The output shows that Router C communicates with network 1.1.1.0/24 through the path Router C<—>Router B<—>Router A.
Page 354
Figure 77 Network diagram Configuration procedure Configure IP addresses for interfaces. (Details not shown.) Configure OSPF in AS 200 to ensure connectivity among Router B, Router C, and Router D. (Details not shown.) Configure BGP connections: # Configure Router A to establish EBGP sessions to Router B and Router C, and advertise network 1.1.1.1/32.
Page 356
[RouterA-bgp-default] address-family ipv4 unicast [RouterA-bgp-default-ipv4] fast-reroute route-policy frr [RouterA-bgp-default-ipv4] quit [RouterA-bgp-default] quit # On Router D, set the source address of BFD echo packets to 44.1.1.1. [RouterD] bfd echo-source-ip 44.1.1.1 # Create routing policy frr to set a backup next hop 3.3.3.3 (Router C) for the route destined for 1.1.1.1/32.
Page 358
Table 17 Interface and IP address assignment Device Interface IP address Device Interface IP address Source 10.110.1.100/24 Router C GE1/1/1 10.110.2.1/24 Router A GE1/1/1 10.110.1.1/24 GE1/1/2 192.168.2.1/24 GE1/1/2 192.168.1.1/24 GE1/1/3 192.168.4.2/24 Loop0 1.1.1.1/32 Loop0 3.3.3.3/32 Router B GE1/1/1 192.168.1.2/24 Router D GE1/1/1 192.168.3.2/24 GE1/1/2...
Page 359
# Configure the BSR boundary on Router B. [RouterB] interface gigabitethernet 1/1/1 [RouterB-GigabitEthernet1/1/1] pim bsr-boundary [RouterB-GigabitEthernet1/1/1] quit Configure Loopback 0, C-BSR, and C-RP: # Configure the Loopback 0 interface and specify it as the C-BSR and C-RP on Router A. [RouterA] interface loopback 0 [RouterA-LoopBack0] ip address 1.1.1.1 32 [RouterA-LoopBack0] pim sm...
# Configure an MSDP peer on Router A. [RouterA] msdp [RouterA-msdp] peer 192.168.1.2 connect-interface gigabitethernet 1/1/2 [RouterA-msdp] quit # Configure an MSDP peer on Router B. [RouterB] msdp [RouterB-msdp] peer 192.168.1.1 connect-interface gigabitethernet 1/1/1 [RouterB-msdp] quit Verifying the configuration # Verify the BGP IPv4 multicast peer information on Router B. [RouterB] display bgp peer ipv4 multicast BGP local router ID : 2.2.2.2 Local AS number : 200...
Page 361
Figure 79 Network diagram Configuration procedure Configure IP addresses for interfaces. (Details not shown.) Configure IBGP peer relationships: # Configure Router A to establish dynamic BGP peer relationships with routers in network 10.1.0.0/16. <RouterA> system-view [RouterA] bgp 200 [RouterA-bgp-default] router-id 1.1.1.1 [RouterA-bgp-default] peer 10.1.0.0 16 as-number 200 [RouterA-bgp-default] address-family ipv4 [RouterA-bgp-default-ipv4] peer 10.1.0.0 16 enable...
[RouterD-bgp-default] peer 10.1.3.1 as-number 200 [RouterD-bgp-default] address-family ipv4 [RouterD-bgp-default-ipv4] peer 10.1.3.1 enable # Display BGP peer information on Router A. The output shows that Router A has established IBGP peer relationships with Router B, Router C, and Router D. [RouterA] display bgp peer ipv4 BGP local router ID : 1.1.1.1 Local AS number : 200 Total number of peers : 3...
Page 363
Figure 80 Network diagram Configuration procedure Configure IP addresses for interfaces and configure OSPF on Router C and Router D. (Details not shown.) Configure BGP connections: # Configure Router A. <RouterA> system-view [RouterA] bgp 100 [RouterA-bgp-default] peer 192.1.1.2 as-number 100 [RouterA-bgp-default] address-family link-state [RouterA-bgp-default-ls] peer 192.1.1.2 enable [RouterA-bgp-default-ls] quit...
Page 367
# Display IPv6 BGP routing table information on Router A. [RouterA] display bgp routing-table ipv6 Total number of routes: 4 BGP local router ID is 1.1.1.1 Status codes: * - valid, > - best, d - dampened, h - history, s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete * >e Network : 9::...
Verifying the configuration # Execute the display bgp routing-table ipv6 command on Router D. [RouterD] display bgp routing-table ipv6 Total number of routes: 5 BGP local router ID is 4.4.4.4 Status codes: * - valid, > - best, d - dampened, h - history, s - suppressed, S - stale, i - internal, e - external Origin: i - IGP, e - EGP, ? - incomplete * >i Network : 1::...
Page 371
• PE 1 and PE 2 are edge devices of the ISP, and establish an IPv4 IBGP connection between them. • CE 1 and CE 2 are edge devices of the IPv6 networks, and they connect the IPv6 networks to the ISP.
Page 372
# Configure OSPF for the ISP. [PE1] ospf [PE1-ospf-1] area 0 [PE1-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0 [PE1-ospf-1-area-0.0.0.0] network 1.1.0.0 0.0.255.255 [PE1-ospf-1-area-0.0.0.0] quit [PE1-ospf-1] quit Configure PE 2: # Enable LDP globally, and configure the LSP generation policy. <PE2> system-view [PE2] mpls lsr-id 3.3.3.3 [PE2] mpls ldp [PE2-mpls-ldp] lsp-trigger all [PE2-mpls-ldp] quit...
Verifying the configuration # Display the IPv6 BGP routing tables on PE 1 and PE 2. The output shows that each of them has two IPv6 network routes. The following shows the output on PE 1: [PE1] display bgp routing-table ipv6 Total number of routes: 5 BGP local router ID is 2.2.2.2 Status codes: * - valid, >...
Page 374
• Establish two IBGP connections between Router A and Router C. When both paths operate correctly, Router C uses the path Router A<—>Router B<—>Router C to exchange packets with network 1200::0/64. • Configure BFD over the path. When the path fails, BFD can quickly detect the failure and notify it to IPv6 BGP.
Page 375
# Apply routing policy apply_med_50 to routes outgoing to peer 3002::2, and apply routing policy apply_med_100 to routes outgoing to peer 2002::2. [RouterA] bgp 200 [RouterA-bgp-default] address-family ipv6 unicast [RouterA-bgp-default-ipv6] peer 3002::2 route-policy apply_med_50 export [RouterA-bgp-default-ipv6] peer 2002::2 route-policy apply_med_100 export [RouterA-bgp-default-ipv6] quit # Enable BFD for peer 3002::2.
Page 376
BGP local router ID: 3.3.3.3 Local AS number: 200 Total number of peers: 2 Peers in established state: 2 * - Dynamically created peer Peer MsgRcvd MsgSent OutQ PrefRcv Up/Down State 2001::1 0 00:04:45 Established 3001::1 0 00:01:53 Established The output shows that Router C has established two BGP connections with Router A, and both connections are in Established state.
Page 379
# Create IPsec profile named policy001, and specify the manual mode for it. [RouterB] ipsec profile policy001 manual # Use IPsec transform set tran1. [RouterB-ipsec-profile-policy001-manual] transform-set tran1 # Set the SPIs of the inbound and outbound SAs to 12345. [RouterB-ipsec-profile-policy001-manual] sa spi outbound esp 12345 [RouterB-ipsec-profile-policy001-manual] sa spi inbound esp 12345 # Set the keys for the inbound and outbound SAs using ESP to abcdefg.
Page 380
# Set the keys for the inbound and outbound SAs using ESP to gfedcba. [RouterC-ipsec-profile-policy002-manual] sa string-key outbound esp simple gfedcba [RouterC-ipsec-profile-policy002-manual] sa string-key inbound esp simple gfedcba [RouterC-ipsec-profile-policy002-manual] quit Configure IPsec to protect IPv6 BGP packets between Router A and Router B: # Configure Router A.
Page 381
Message statistics: Msg type Last rcvd time/ Current rcvd count/ History rcvd count/ Last sent time Current sent count History sent count Open 18:59:15-2013.4.24 18:59:15-2013.4.24 Update 18:59:16-2013.4.24 Notification - 18:59:15-2013.4.24 Keepalive 18:59:15-2013.4.24 18:59:15-2013.4.24 RouteRefresh - Total Maximum allowed prefix number: 4294967295 Threshold: 75% Minimum time between advertisements is 15 seconds Optional capabilities:...
Minimum time between advertisements is 30 seconds Optional capabilities: Multi-protocol extended capability has been enabled Route refresh capability has been enabled Peer preferred value: 0 IPsec profile name: policy002 Routing policy configured: No routing policy is configured The output shows that IBGP and EBGP peers are established and both sent and received IPv6 BGP packets are encapsulated by IPsec.
Page 383
[RouterA-bgp-default-ipv6] peer 2001::2 enable [RouterA-bgp-default-ipv6] network 1:: 64 [RouterA-bgp-default-ipv6] quit [RouterA-bgp-default] quit # Configure Router B to establish an EBGP session to Router A, and an IBGP session to Router <RouterB> system-view [RouterB] bgp 200 [RouterB] router-id 2.2.2.2 [RouterB-bgp-default] peer 3001::1 as-number 100 [RouterB-bgp-default] peer 3002::2 as-number 200 [RouterB-bgp-default] address-family ipv6 unicast [RouterB-bgp-default-ipv6] peer 3001::1 enable...
Page 384
[RouterD-bgp-default-ipv6] peer 3002::1 preferred-value 100 [RouterD-bgp-default-ipv6] quit [RouterD-bgp-default] quit Configure BGP FRR: # On Router A, create routing policy frr to set a backup next hop 2001::2 (Router C) for the route destined for 4::/64. <RouterA> system-view [RouterA] ipv6 prefix-list abc index 10 permit 4:: 64 [RouterA] route-policy frr permit node 10 [RouterA-route-policy] if-match ipv6 address prefix-list abc [RouterA-route-policy] apply ipv6 fast-reroute backup-nexthop 2001::2...
AttrID: 0x3 Neighbor: 3001::2 Flags: 0x10060 OrigNextHop: 3001::2 Label: NULL RealNextHop: 3001::2 BkLabel: NULL BkNextHop: 2001::2 Tunnel ID: Invalid Interface: GigabitEthernet1/1/1 BkTunnel ID: Invalid BkInterface: GigabitEthernet1/1/2 FtnIndex: 0x0 # Display detailed information about the route to 1::/64 on Router D. The output shows the backup next hop for the route.
Page 386
Figure 87 Network diagram Table 18 Interface and IP address assignment Device Interface IP address Device Interface IP address Source 1002::100/64 Router B GE1/1/1 1001::2/64 Router A GE1/1/1 1002::1/64 GE1/1/2 2002::1/64 GE1/1/2 1001::1/64 GE1/1/3 2001::1/64 Loop0 1:1::1/128 Loop0 1:1::1/128 Loop1 1:1::2/128 Loop1 2:2::2/128...
Page 387
# On Router C, enable IPv6 multicast routing globally. <RouterC> system-view [RouterC] ipv6 multicast routing [RouterC-mrib6] quit # Enable IPv6 PIM-SM on interfaces, and enable MLD on GigabitEthernet 1/1/1. [RouterC] interface gigabitethernet 1/1/2 [RouterC-GigabitEthernet1/1/2] ipv6 pim sm [RouterC-GigabitEthernet1/1/2] quit [RouterC] interface gigabitethernet 1/1/3 [RouterC-GigabitEthernet1/1/3] ipv6 pim sm [RouterC-GigabitEthernet1/1/3] quit [RouterC] interface gigabitethernet 1/1/1...
Page 388
[RouterA-bgp-default-mul-ipv6] import-route direct [RouterA-bgp-default-mul-ipv6] quit # On Router B, establish an EBGP session to Router A. [RouterB] bgp 200 [RouterB-bgp-default] router-id 2.2.2.2 [RouterB-bgp-default] peer 1001::1 as-number 100 # Enable exchange of IPv6 unicast routes used for RPF check with Router B. [RouterB-bgp-default] address-family ipv6 multicast [RouterB-bgp-default-mul-ipv6] peer 1001::1 enable # Redistribute OSPFv3 routes into BGP.
Troubleshooting BGP Symptom The display bgp peer ipv4 unicast or display bgp peer ipv6 unicast command output shows that the state of the connection to a peer cannot become established. Analysis To become BGP peers, any two routers must establish a TCP connection using port 179 and exchange Open messages successfully.
Configuring PBR Overview Policy-based routing (PBR) uses user-defined policies to route packets. A policy can specify parameters for packets that match specific criteria such as ACLs or that have specific lengths. The parameters include the next hop, output interface, default next hop, and default output interface. A device forwards received packets using the following process: The device uses PBR to forward matching packets.
Page 391
• apply next-hop • apply output-interface • apply default-next-hop • apply default-output-interface Table 19 Priorities and meanings of apply clauses Clause Meaning Priority Sets an IP precedence. This clause is always executed. apply precedence Sets the Don't Fragment This clause is always executed. apply ip-df df-value (DF) bit in the IP header.
Relationship between the match mode and clauses on the node Does a packet match Match mode all the if-match Permit Deny clauses on the node? • If the node is configured with apply clauses, PBR executes the apply clauses on the node. If the PBR-based forwarding succeeds, PBR does not compare the packet with the...
Configuring a policy Creating a node Step Command Remarks Enter system view. system-view policy-based-route policy-name Create a node for a policy, and By default, no policy nodes [ deny | permit ] node enter its view. exist. node-number Setting match criteria for a node Step Command Remarks...
Page 394
Step Command Remarks By default, no VPN instance is specified. You can specify a maximum of n VPN Set VPN apply access-vpn vpn-instance instances for a node. The matching instances. vpn-instance-name&<1-n> packets are forwarded according to the forwarding table of the first available VPN instance.
Step Command Remarks By default, no default output interface is specified. You can specify multiple default output interfaces for backup or load 13. Set default apply default-output-interface sharing in one command line or by output { interface-type interface-number [ track executing this command multiple interfaces.
You can apply a policy to multiple interfaces. To configure interface PBR: Step Command Remarks Enter system system-view view. Enter interface interface interface-type interface-number view. Apply a policy By default, no policy is applied to the ip policy-based-route policy-name to the interface. interface.
Configuration procedure Configure Router A: # Configure the IP addresses of GigabitEthernet 1/1/1 and GigabitEthernet 1/1/2. <RouterA> system-view [RouterA] interface gigabitethernet 1/1/1 [RouterA-GigabitEthernet1/1/1] ip address 1.1.2.1 24 [RouterA-GigabitEthernet1/1/1] quit [RouterA] interface gigabitethernet 1/1/2 [RouterA-GigabitEthernet1/1/2] ip address 1.1.3.1 24 [RouterA-GigabitEthernet1/1/2] quit # Configure ACL 3101 to match TCP packets.
Page 398
Figure 89 Network diagram Router B Router C GE1/1/2 GE1/1/3 1.1.2.2/24 1.1.3.2/24 GE1/1/2 GE1/1/3 1.1.2.1/24 1.1.3.1/24 Router A GE1/1/1 10.110.0.10/24 Subnet 10.110.0.0/24 Host A Host B 10.110.0.20/24 Gateway: 10.110.0.10 Configuration procedure Make sure Router B and Router C can reach Host A. (Details not shown.) Configure Router A: # Configure the IP addresses of GigabitEthernet 1/1/2 and GigabitEthernet 1/1/3.
Verifying the configuration # On Host A, Telnet to Router B that is directly connected to Router A. The operation succeeds. (Details not shown.) # On Host A, Telnet to Router C that is directly connected to Router A. The operation fails. (Details not shown.) # Ping Router C from Host A.
Page 400
# Configure Node 10 for the policy lab1 to forward packets with a length of 64 to 300 bytes to the next hop 150.1.1.2. [RouterA] policy-based-route lab1 permit node 10 [RouterA-pbr-lab1-10] if-match packet-length 64 300 [RouterA-pbr-lab1-10] apply next-hop 150.1.1.2 [RouterA-pbr-lab1-10] quit # Configure Node 20 for the policy lab1 to forward packets with a length of 301 to 1000 bytes to the next hop 151.1.1.2.
Ping statistics for 10.1.1.1: Packets: Sent = 1, Received = 1, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 1ms, Maximum = 1ms, Average = 1ms The debugging information about PBR displayed on Router A is as follows: <RouterA>...
Page 402
Figure 91 Network diagram Configuration procedure Make sure Router B can reach Host A and Host B, and Router C can reach Host A and Host B. (Details not shown.) Configure Router A: # Configure the IP addresses of GigabitEthernet 1/1/2 and GigabitEthernet 1/1/3. <RouterA>...
Page 403
[RouterA-GigabitEthernet1/1/1] ip address 192.168.10.1 24 [RouterA-GigabitEthernet1/1/1] ip policy-based-route aaa [RouterA-GigabitEthernet1/1/1] quit Verifying the configuration # Configure IP address 192.168.10.3/24 for Host B, and specify its gateway address as 192.168.10.1. (Details not shown.) # Ping Router B from Host A. The operation succeeds. (Details not shown.) # Ping Router B from Host B.
Configuring IPv6 static routing Static routes are manually configured and cannot adapt to network topology changes. If a fault or a topological change occurs in the network, the network administrator must modify the static routes manually. IPv6 static routing works well in a simple IPv6 network. Configuring an IPv6 static route Before you configure an IPv6 static route, complete the following tasks: •...
Bidirectional control mode To use BFD bidirectional control detection between two devices, enable BFD control mode for each device's static route destined to the peer. To configure a static route and enable BFD control mode, use one of the following methods: •...
Step Command Remarks By default, the source address of echo packets is not configured. The source address of echo Configure the packets must be a global source address of bfd echo-source-ipv6 ipv6-address unicast address. echo packets. For more information about this command, see High Availability Command Reference.
Page 407
Figure 92 Network diagram Host B 2::2/64 GE1/1/3 2::1/64 GE1/1/1 GE1/1/2 4::2/64 5::2/64 Router B GE1/1/2 GE1/1/2 4::1/64 5::1/64 GE1/1/1 GE1/1/1 1::1/64 3::1/64 Router C Host C Router A Host A 3::2/64 1::2/64 Configuration procedure Configure IPv6 addresses for interfaces. (Details not shown.) Configure IPv6 static routes: # Configure the default IPv6 route on Router A.
The output shows that Router A communicates with Router B through GigabitEthernet 1/1/2. BFD for IPv6 static routes configuration example (indirect next hop) Network requirements As shown in Figure • Router A has a route to interface Loopback 1 (2::9/128) on Router B, and the output interface is GigabitEthernet 1/1/1.
Page 412
Device Interface IPv6 address Router D GE1/1/1 12::2/64 Router D GE1/1/2 11::1/64 Configuration procedure Configure IPv6 addresses for interfaces. (Details not shown.) Configure IPv6 static routes and BFD: # Configure IPv6 static routes on Router A and enable BFD control packet mode for the IPv6 static route that traverses Router D.
Page 413
Destination IP: 2::9 Session State: Up Interface: N/A Hold Time: 2012ms The output shows that the BFD session has been created. # Display IPv6 static routes on Router A. <RouterA> display ipv6 routing-table protocol static Summary Count : 1 Static Routing table Status : <Active> Summary Count : 1 Destination: 120::/64 Protocol...
Configuring an IPv6 default route A default IPv6 route is used to forward packets that match no entry in the routing table. A default IPv6 route can be configured in either of the following ways: • The network administrator can configure a default route with a destination prefix of ::/0. For more information, see "Configuring an IPv6 static route."...
Configuring RIPng Overview RIP next generation (RIPng) is an extension of RIP-2 for support of IPv6. Most RIP concepts are applicable to RIPng. RIPng is a distance vector routing protocol. It employs UDP to exchange route information through port 521. RIPng uses a hop count to measure the distance to a destination. The hop count is the metric or cost.
A response packet that fails the check is discarded. Protocols and standards • RFC 2080, RIPng for IPv6 • RFC 2081, RIPng Protocol Applicability Statement RIPng configuration task list Tasks at a glance (Required.) Configuring basic RIPng (Optional.) Configuring RIPng route control: •...
Step Command Remarks By default, RIPng is disabled. Enable RIPng on the If RIPng is not enabled on an ripng process-id enable interface. interface, the interface does not send or receive any RIPng route. Configuring RIPng route control Before you configure RIPng, complete the following tasks: •...
Step Command Remarks Enter interface view. interface interface-type interface-number By default, the Advertise a summary IPv6 ripng summary-address ipv6-address summary IPv6 prefix prefix. prefix-length is not configured. Advertising a default route You can configure RIPng to advertise a default route with the specified cost to its neighbors. To configure RIPng to advertise a default route: Step Command...
Step Command Remarks Enter system view. system-view ripng [ process-id ] Enter RIPng view. [ vpn-instance vpn-instance-name ] preference { preference | By default, the preference of Set a preference for RIPng. route-policy route-policy-name } RIPng is 100. Configuring RIPng route redistribution Step Command Remarks...
Step Command Remarks ripng [ process-id ] Enter RIPng view. [ vpn-instance vpn-instance-name ] By default, zero field check is Enable the zero field check enabled for incoming RIPng checkzero on incoming RIPng packets. packets. Setting the maximum number of ECMP routes Step Command Remarks...
You can use the timer triggered command to set the maximum interval, minimum interval, and incremental interval for sending RIPng triggered updates. For a stable network, the minimum interval is used. If network changes become frequent, the triggered update sending interval is incremented by the incremental interval × 2 for each triggered update until the maximum interval is reached.
Step Command Remarks (Optional.) Set the GR By default, the GR interval is 60 graceful-restart interval interval interval. seconds. Configuring RIPng NSR Nonstop routing (NSR) backs up RIPng routing information from the active process to the standby process. After an active/standby switchover, NSR can complete route regeneration without tearing down adjacencies or impacting forwarding services.
Configuration restrictions and guidelines • RIPng FRR is available only when the state of the primary link (with Layer 3 interfaces staying up) changes from bidirectional to unidirectional or down. • RIPng FRR is only effective for RIPng routes that are learned from directly connected neighbors.
Step Command Remarks Enter system view. system-view interface interface-type Enter interface view. interface-number Apply an IPsec profile to the By default, no IPsec profile is ripng ipsec-profile profile-name interface. applied. Displaying and maintaining RIPng Execute display commands in any view and reset commands in user view. Task Command Display configuration information for a...
Page 427
Destination 5::/64, via FE80::20F:E2FF:FE00:100, cost 1, tag 0, AOF, 11 secs Local route Destination 1::/64, via ::, cost 0, tag 0, DOF Destination 3::/64, via ::, cost 0, tag 0, DOF # Display the RIPng routing table on Router A. [RouterA] display ripng 1 route Route Flags: A - Aging, S - Suppressed, G - Garbage-collect, D –...
Destination 1::/64, via ::, cost 0, tag 0, DOF Destination 3::/64, via ::, cost 0, tag 0, DOF [RouterA] display ripng 1 route Route Flags: A - Aging, S - Suppressed, G - Garbage-collect, D – Direct O - Optimal, F - Flush to RIB ---------------------------------------------------------------- Peer FE80::2:1 on GigabitEthernet1/1/1 Destination 4::/64,...
Configure Router A as the GR restarter. Configure Router B and Router C as the GR helpers to synchronize their routing tables with Router A by using GR. Figure 98 Network diagram Configuration procedure Configure IPv6 addresses for interfaces. (Details not shown.) Configure RIPng on the routers to ensure the following: (Details not shown.) Router A, Router B, and Router C can communicate with each other at Layer 3.
Page 432
Figure 99 Network diagram Configuration procedure Configure IPv6 addresses for interfaces. (Details not shown.) Configure RIPng on the routers to ensure the following: (Details not shown.) Router S, Router A, and Router B can communicate with each other at Layer 3. Dynamic route update can be implemented among them with RIPng.
Route Flags: A - Aging, S - Suppressed, G - Garbage-collect, D - Direct O - Optimal, F - Flush to RIB ---------------------------------------------------------------- Peer FE80::AE45:5CE7:422E:2867 on GigabitEthernet1/1/1 Destination 1400:1::/64, via FE80::AE45:5CE7:422E:2867, cost 1, tag 0, AOF, 1 secs Destination 4004::4/128, via FE80::AE45:5CE7:422E:2867, cost 2, tag 0, AOF, 1 secs Local route Destination 2002::2/128,...
Page 434
Figure 100 Network diagram Router C Link B Link A Loop0 Loop0 GE1/1/2 GE1/1/2 Router B Router A Table 22 Interface and IP address assignment Device Interface IP address Router A GigabitEthernet 1/1/1 1::1/64 Router A GigabitEthernet 1/1/2 2::1/64 Router A Loopback 0 10::1/128 Router B...
Page 435
[RouterB] ripng 1 [RouterB-ripng-1] fast-reroute route-policy frr [RouterB-ripng-1] quit Verifying the configuration # Display the route 20::1/128 on Router A to view the backup next hop information. [RouterA] display ipv6 routing-table 20::1 128 verbose Summary count : 1 Destination: 20::1/128 Protocol: RIPng Process ID: 1 SubProtID: 0x0...
FtnIndex: 0x0 TrafficIndex: N/A Connector: N/A RIPng IPsec profile configuration example Network requirements As shown in Figure 101, configure RIPng on the routers, and configure IPsec profiles on the routers to authenticate and encrypt protocol packets. Figure 101 Network diagram Configuration procedure Configure IPv6 addresses for interfaces.
Page 437
[RouterA-ipsec-transform-set-protrf1] esp encryption-algorithm 3des-cbc [RouterA-ipsec-transform-set-protrf1] esp authentication-algorithm md5 # Specify the encapsulation mode as transport. [RouterA-ipsec-transform-set-protrf1] encapsulation-mode transport [RouterA-ipsec-transform-set-protrf1] quit # Create a manual IPsec profile named profile001. [RouterA] ipsec profile profile001 manual # Reference IPsec transform set protrf1. [RouterA-ipsec-profile-profile001-manual] transform-set protrf1 # Configure the inbound and outbound SPIs for ESP.
Page 438
# Reference IPsec transform set protrf1. [RouterC-ipsec-profile-profile001-manual] transform-set protrf1 # Configure the inbound and outbound SPIs for ESP. [RouterC-ipsec-profile-profile001-manual] sa spi inbound esp 256 [RouterC-ipsec-profile-profile001-manual] sa spi outbound esp 256 # Configure the inbound and outbound SA keys for ESP. [RouterC-ipsec-profile-profile001-manual] sa string-key inbound esp simple abc [RouterC-ipsec-profile-profile001-manual] sa string-key outbound esp simple abc [RouterC-ipsec-profile-profile001-manual] quit...
Configuring OSPFv3 This chapter describes how to configure RFC 2740-compliant Open Shortest Path First version 3 (OSPFv3) for an IPv6 network. For more information about OSPFv2, see "Configuring OSPF." Overview OSPFv3 and OSPFv2 have the following in common: • 32-bit router ID and area ID. •...
• AS External LSA—Type-5 LSA, originated by ASBRs, and flooded throughout the AS, except stub areas and Not-So-Stubby Areas (NSSAs). Each AS External LSA describes a route to another AS. A default route can be described by an AS External LSA. •...
Tasks at a glance (Optional.) Tuning and optimizing OSPFv3 networks: • Setting OSPFv3 timers • Setting LSA transmission delay • Setting SPF calculation interval • Setting the LSA generation interval • Setting a DR priority for an interface • Ignoring MTU check for DD packets •...
Step Command Remarks interface interface-type Enter interface view. interface-number Enable an OSPFv3 process By default, no OSPFv3 processes ospfv3 process-id area area-id on the interface. [ instance instance-id ] are enabled on an interface. Configuring OSPFv3 area parameters OSPFv3 has the same stub area, NSSA area, and virtual link features as OSPFv2. After you split an OSPFv3 AS into multiple areas, the LSA number is reduced and OSPFv3 applications are extended.
Configuring an NSSA area To configure an NSSA area, configure the nssa command on all the routers attached to the area. To configure a totally NSSA area, configure the nssa no-summary command on the ABR. The ABR of a totally NSSA area does not advertise inter-area routes into the area. To configure an NSSA area: Step Command...
Configuring OSPFv3 network types OSPFv3 classifies networks into the following types by the link layer protocol: • Broadcast—When the link layer protocol is Ethernet or FDDI, OSPFv3 considers the network type as broadcast by default. • NBMA—When the link layer protocol is Frame Relay or X.25, OSPFv3 considers the network type as NBMA by default.
Configuring OSPFv3 route control Configuration prerequisites Before you configure OSPFv3 route control, perform the following tasks: • Configure IPv6 addresses for interfaces to ensure IPv6 connectivity between neighboring nodes. • Enable OSPFv3. Configuring OSPFv3 route summarization Route summarization enables an ABR or ASBR to summarize contiguous networks into a single network and advertise it to other areas.
Step Command Remarks Configure route asbr-summary ipv6-address By default, route summarization is summarization on an prefix-length [ cost cost-value | not configured on an ASBR. ASBR. not-advertise | nssa-only | tag tag ] * Configuring OSPFv3 received route filtering Step Command Remarks Enter system view.
Step Command Remarks interface interface-type Enter interface view. interface-number By default, the OSPFv3 cost is 1 for a VLAN interface, is 0 for a loopback Set an OSPFv3 cost for the interface. The OSPFv3 cost is ospfv3 cost cost-value interface. [ instance instance-id ] automatically computed according to the interface bandwidth for other...
Configuring OSPFv3 route redistribution Because OSPFv3 is a link state routing protocol, it cannot directly filter LSAs to be advertised. OSPFv3 filters only redistributed routes. Only routes that are not filtered out can be advertised in LSAs. Executing the import-route or default-route-advertise command on a router makes it become an ASBR.
To set a tag for redistributed routes: Step Command Remarks Enter system view. system-view ospfv3 [ process-id | vpn-instance Enter OSPFv3 view. vpn-instance-name ] * Set a tag for redistributed By default, the tag of default tag tag routes. redistributed routes is 1. Tuning and optimizing OSPFv3 networks This section describes configurations of OSPFv3 timers, interface DR priority, and the logging of neighbor state changes.
To set the LSA transmission delay on an interface: Step Command Remarks Enter system view. system-view interface interface-type Enter interface view. interface-number Set the LSA transmission By default, the LSA transmission ospfv3 trans-delay seconds delay. [ instance instance-id ] delay is 1 second. Setting SPF calculation interval LSDB changes result in SPF calculations.
Setting a DR priority for an interface The router priority is used for DR election. Interfaces having the priority 0 cannot become a DR or BDR. To configure a DR priority for an interface: Step Command Remarks Enter system view. system-view Enter interface view.
Step Command Remarks By default, the interfaces are able to receive and send OSPFv3 packets. This command disables only the Disable interfaces from silent-interface { interface-type interfaces associated with the receiving and sending interface-number | all } current process. However, OSPFv3 packets.
Step Command Remarks By default, MIB is bound to the Bind MIB to an OSPFv3 process with the smallest ospfv3 mib-binding process-id process. process ID. snmp-agent trap enable ospfv3 [ grrestarter-status-change | grhelper-status-change | if-state-change | if-cfg-error | Enable SNMP notifications if-bad-pkt | neighbor-state-change | By default, SNMP notifications for OSPFv3.
• Use the OSPFv3 max-metric router LSA feature. This feature enables OSPFv3 to advertise its locally generated Type-1 LSAs with a maximum cost of 65535. Neighbors do not send packets to the stub router as long as they have a route with a smaller cost. To configure a router as a stub router: Step Command...
Configuring prefix suppression for an interface Step Command Remarks Enter system view. system-view Enter interface interface interface-type interface-number view. Enable prefix ospfv3 prefix-suppression [ disable ] By default, prefix suppression suppression for the [ instance instance-id ] is disabled for an interface. interface.
To configure GR restarter: Step Command Remarks Enter system view. system-view ospfv3 [ process-id | Enter OSPFv3 view. vpn-instance vpn-instance-name ] * graceful-restart enable [ global By default, OSPFv3 GR restarter Enable the GR capability. | planned-only ] * capability is disabled. (Optional.) Set the GR By default, the GR interval is 120 graceful-restart interval interval...
To enable OSPFv3 NSR: Step Command Remarks Enter system view. system-view Enter OSPFv3 ospfv3 [ process-id | vpn-instance view. vpn-instance-name ] * By default, OSPFv3 NSR is disabled. This command takes effect only for the Enable OSPFv3 non-stop-routing current process. As a best practice, NSR.
Figure 102 Network diagram for OSPFv3 FRR As shown in Figure 102, configure FRR on Router B. OSPFv3 FRR automatically calculates a backup next hop or specifies a backup next hop by using a routing policy. When the primary link fails, OSPFv3 directs packets to the backup next hop.
Page 459
Configuring OSPFv3 FRR to specify a backup next hop using a routing policy Before you perform this task, use the apply ipv6 fast-reroute backup-interface command to specify a backup next hop in the routing policy to be used. For more information about the apply ipv6 fast-reroute backup-interface command and routing policy configuration, see "Configuring routing policies."...
Step Command Remarks Enable BFD echo packet By default, BFD echo packet mode ospfv3 primary-path-detect bfd mode for OSPFv3 FRR. echo [ instance instance-id ] for OSPFv3 FRR is disabled. Applying an IPsec profile To protect routing information and prevent attacks, OSPFv3 can authenticate protocol packets by using an IPsec profile.
To apply an IPsec profile to a virtual link: Step Command Remarks Enter system view. system-view ospfv3 [ process-id | vpn-instance Enter OSPFv3 view. vpn-instance-name ] * Enter OSPFv3 area view. area area-id vlink-peer router-id [ dead seconds | Apply an IPsec profile to a hello seconds | instance instance-id | By default, no IPsec profile is virtual link.
Page 463
Configuration procedure Configure IPv6 addresses for interfaces. (Details not shown.) Configure basic OSPFv3: # On Router A, enable OSPFv3 and specify the router ID as 1.1.1.1. <RouterA> system-view [RouterA] ospfv3 1 [RouterA-ospfv3-1] router-id 1.1.1.1 [RouterA-ospfv3-1] quit [RouterA] interface gigabitethernet 1/1/1 [RouterA-GigabitEthernet1/1/1] ospfv3 1 area 1 [RouterA-GigabitEthernet1/1/1] quit [RouterA] interface gigabitethernet 1/1/2...
Page 464
Area: 0.0.0.0 ------------------------------------------------------------------------- Router ID Pri State Dead-Time InstID Interface 3.3.3.3 Full/BDR 00:00:40 GE1/1/1 Area: 0.0.0.1 ------------------------------------------------------------------------- Router ID Pri State Dead-Time InstID Interface 1.1.1.1 Full/DR 00:00:40 GE1/1/2 # Display OSPFv3 neighbors on Router C. [RouterC] display ospfv3 peer OSPFv3 Process 1 with Router ID 3.3.3.3 Area: 0.0.0.0 ------------------------------------------------------------------------- Router ID...
Page 465
AdvRouter : 4.4.4.4 Area : 0.0.0.2 Preference : 10 *Destination: 2001:3::/64 Type : IA Cost NextHop : FE80::F40D:0:93D0:1 Interface: GE1/1/2 AdvRouter : 3.3.3.3 Area : 0.0.0.2 Preference : 10 Total: 4 Intra area: 1 Inter area: 3 ASE: 0 NSSA: 0 Configure Area 2 as a stub area: # Configure Router D.
OSPFv3 NSSA area configuration example Network requirements As shown in Figure 104: • Configure OSPFv3 on all routers and split the AS into three areas. • Configure Router B and Router C as ABRs to forward routing information between areas. •...
Page 468
*Destination: 2001::/64 Type : IA Cost NextHop : FE80::20C:29FF:FE74:59C6 Interface: GE1/1/1 AdvRouter : 2.2.2.2 Area : 0.0.0.1 Preference : 10 *Destination: 2001:1::/64 Type Cost Nexthop : :: Interface: GE1/1/1 AdvRouter : 1.1.1.1 Area : 0.0.0.1 Preference : 10 *Destination: 2001:2::/64 Type : IA Cost...
*Destination: 2001:2::/64 Type Cost NextHop : :: Interface: GE1/1/2 AdvRouter : 4.4.4.4 Area : 0.0.0.2 Preference : 10 *Destination: 1234::/64 Type : E2 Cost NextHop : FE80::20C:29FF:FEB9:F2EF Interface: GE1/1/2 AdvRouter : 2.2.2.2 Area : 0.0.0.2 Preference : 10 Total: 4 Intra area: 1 Inter area: 2 ASE: 1...
Page 470
[RouterA-ospfv3-1] router-id 1.1.1.1 [RouterA-ospfv3-1] quit [RouterA] interface gigabitethernet 1/1/1 [RouterA-GigabitEthernet1/1/1] ospfv3 1 area 0 [RouterA-GigabitEthernet1/1/1] quit # On Router B, enable OSPFv3, and specify the router ID as 2.2.2.2. <RouterB> system-view [RouterB] ospfv3 [RouterB-ospfv3-1] router-id 2.2.2.2 [RouterB-ospfv3-1] quit [RouterB] interface gigabitethernet 1/1/1 [RouterB-GigabitEthernet1/1/1] ospfv3 1 area 0 [RouterB-GigabitEthernet1/1/1] quit # On Router C, enable OSPFv3, and specify the router ID as 3.3.3.3.
Page 471
Router ID Pri State Dead-Time InstID Interface 1.1.1.1 100 Full/DROther 00:00:30 GE1/1/1 2.2.2.2 Full/DROther 00:00:37 GE1/1/1 3.3.3.3 Full/BDR 00:00:31 GE1/1/1 Configure router priorities for interfaces: # Set the router priority to 100 for the interface GigabitEthernet 1/1/1 of Router A. [RouterA] interface gigabitethernet 1/1/1 [RouterA-GigabitEthernet1/1/1] ospfv3 dr-priority 100 [RouterA-GigabitEthernet1/1/1] quit...
Area: 0.0.0.0 ------------------------------------------------------------------------- Router ID Pri State Dead-Time InstID Interface 2.2.2.2 Full/DROther 00:00:36 GE1/1/1 3.3.3.3 Full/BDR 00:00:35 GE1/1/1 4.4.4.4 Full/DROther 00:00:33 GE1/1/1 # Display neighbors on Router D. [RouterD] display ospfv3 peer OSPFv3 Process 1 with Router ID 4.4.4.4 Area: 0.0.0.0 ------------------------------------------------------------------------- Router ID Pri State...
Page 473
[RouterA] ospfv3 1 [RouterA-ospfv3-1] router-id 1.1.1.1 [RouterA-ospfv3-1] quit [RouterA] interface gigabitethernet 1/1/2 [RouterA-GigabitEthernet1/1/2] ospfv3 1 area 2 [RouterA-GigabitEthernet1/1/2] quit [RouterA] interface gigabitethernet 1/1/1 [RouterA-GigabitEthernet1/1/1] ospfv3 1 area 2 [RouterA-GigabitEthernet1/1/1] quit # Enable OSPFv3 process 1 and OSPFv3 process 2 on Router B. <RouterB>...
OSPFv3 GR configuration example Network requirements As shown in Figure 108: • Router A, Router B, and Router C that reside in the same AS and the same OSPFv3 routing domain are GR capable. • Router A acts as the GR restarter. Router B and Router C act as GR helpers, and synchronize their LSDBs with Router A through GR.
[RouterC] ospfv3 1 [RouterC-ospfv3-1] router-id 3.3.3.3 [RouterC-ospfv3-1] quit [RouterC] interface gigabitethernet 1/1/1 [RouterC-GigabitEthernet1/1/1] ospfv3 1 area 1 [RouterC-GigabitEthernet1/1/1] quit Verifying the configuration # Perform an active/standby switchover on Router A to trigger an OSPFv3 GR operation. (Details not shown.) OSPFv3 NSR configuration example Network requirements As shown in Figure...
[RouterS-ospfv3-1] router-id 3.3.3.3 [RouterS-ospfv3-1] non-stop-routing [RouterS-ospfv3-1] quit [RouterS] interface gigabitethernet 1/1/1 [RouterS-GigabitEthernet1/1/1] ospfv3 1 area 1 [RouterS-GigabitEthernet1/1/1] quit [RouterS] interface gigabitethernet 1/1/2 [RouterS-GigabitEthernet1/1/2] ospfv3 1 area 1 [RouterS-GigabitEthernet1/1/2] quit Verifying the configuration # Verify the following: • When an active/standby switchover occurs on Router S, the neighbor relationships and routing information on Router A and Router B have not changed.
Page 482
Configuration procedure Configure IPv6 addresses for interfaces. (Details not shown.) Configure basic OSPFv3: # Enable OSPFv3 and set the router ID to 1.1.1.1 on Router A. <RouterA> system-view [RouterA] ospfv3 1 [RouterA-ospfv3-1] router-id 1.1.1.1 [RouterA-ospfv3-1] quit [RouterA] interface gigabitethernet 1/1/1 [RouterA-GigabitEthernet1/1/1] ospfv3 1 area 0 [RouterA-GigabitEthernet1/1/1] quit [RouterA] interface gigabitethernet 1/1/2...
[RouterB] interface gigabitethernet 1/1/1 [RouterB-GigabitEthernet1/1/1] ospfv3 bfd enable [RouterB-GigabitEthernet1/1/1] bfd min-transmit-interval 500 [RouterB-GigabitEthernet1/1/1] bfd min-receive-interval 500 [RouterB-GigabitEthernet1/1/1] bfd detect-multiplier 6 Verifying the configuration # Display the BFD information on Router A. <RouterA> display bfd session Total Session Num: 1 Up Session Num: 1 Init Mode: Active IPv6 Session Working Under Ctrl Mode: Local Discr: 1441...
Page 484
Figure 111 Network diagram Router C Link B Link A Loop0 Loop0 GE1/1/2 GE1/1/2 Router B Router A Table 24 Interface and IP address assignment Device Interface IP address Device Interface IP address Router A GE1/1/1 1::1/64 Router B GE1/1/1 3::1/64 GE1/1/2 2::1/64...
Configuring IPv6 IS-IS Overview IPv6 IS-IS supports all IPv4 IS-IS features except that it advertises IPv6 routing information. This chapter describes only IPv6 IS-IS specific configuration tasks. For information about IS-IS, see "Configuring IS-IS." Intermediate System-to-Intermediate System (IS-IS) supports multiple network protocols, including IPv6.
Setting the LSDB overload bit Step Command Remarks Enter system view. system-view isis [ process-id ] [ vpn-instance Enter IS-IS view. vpn-instance-name ] cost-style { wide | By default, the IS-IS cost style is Specify an IS-IS cost style. wide-compatible | compatible } narrow.
Step Command Remarks By default: • The maximum interval is 5 seconds. timer spf maximum-interval Set the SPF calculation [ minimum-interval • The minimum interval is interval. [ incremental-interval ] ] 50 milliseconds. • The incremental interval is 200 milliseconds. Enabling IPv6 IS-IS ISPF Step Command...
Step Command Remarks Enable an IS-IS process and isis [ process-id ] [ vpn-instance enter IS-IS view. vpn-instance-name ] Configure the NET for the By default, no NET is configured. network-entity net IS-IS process. Enter IPv6 address family address-family ipv6 [ unicast ] view.
Configuration procedure Configuring IPv6 IS-IS FRR to calculate a backup next hop through LFA calculation Step Command Remarks Enter system view. system-view interface interface-type Enter interface view. interface-number By default, the interface (Optional.) Disable LFA participates in LFA calculation isis ipv6 fast-reroute lfa-backup calculation on the interface.
Step Command Remarks Enter system view. system-view interface interface-type Enter interface view. interface-number By default, BFD control packet Enable BFD control packet isis ipv6 primary-path-detect bfd mode for IPv6 IS-IS FRR is mode for IPv6 IS-IS FRR. ctrl disabled. To enable BFD echo packet mode for IPv6 IS-IS FRR: Step Command Remarks...
As shown in Figure 114, the numbers refer to the link costs. Router A, Router B, and Router D support both IPv4 and IPv6. Router C supports only IPv4 and cannot forward IPv6 packets. Enable IPv6 IS-IS MTR on Router A, Router B, Router C, and Router D to make them perform route calculation separately in IPv4 and IPv6 topologies.
Page 501
Router A and Router B are Level-1 routers, Router D is a Level-2 router, and Router C is a Level-1-2 router. Figure 115 Network diagram Configuration procedure Configure IPv6 addresses for interfaces. (Details not shown.) Configure IPv6 IS-IS: # Configure Router A. <RouterA>...
Page 503
Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set # Display the IPv6 IS-IS routing table on Router B. [RouterB] display isis route ipv6 Route information for IS-IS(1) ------------------------------ Level-1 IPv6 Forwarding Table ----------------------------- Destination : :: PrefixLen: 0 Flag : R/-/- Cost...
Page 504
Next Hop : Direct Interface: GE1/1/3 Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set Level-2 IPv6 Forwarding Table ----------------------------- Destination : 2001:1:: PrefixLen: 64 Flag : D/L/- Cost : 10 Next Hop : Direct Interface: GE1/1/2 Destination : 2001:2:: PrefixLen: 64 Flag : D/L/-...
Flags: D-Direct, R-Added to Rib, L-Advertised in LSPs, U-Up/Down Bit Set BFD for IPv6 IS-IS configuration example Network requirements As shown in Figure 116: • Configure IPv6 IS-IS on Router A, Router B, and Router C so that they can reach each other. •...
Verifying the configuration # Display BFD session information on Router A. <RouterA> display bfd session Total Session Num: 1 Up Session Num: 1 Init Mode: Active IPv6 Session Working Under Ctrl Mode: Local Discr: 1441 Remote Discr: 1450 Source IP: FE80::20F:FF:FE00:1202 (link-local address of GigabitEthernet1/1/1 on Router A) Destination IP: FE80::20F:FF:FE00:1200 (link-local address of GigabitEthernet1/1/1 on Router B)
Page 508
Figure 117 Network diagram Table 26 Interface and IP address assignment Device Interface IP address Device Interface IP address Router A GE1/1/1 1::1/64 Router B GE1/1/1 3::1/64 GE1/1/2 2::1/64 GE1/1/2 2::2/64 Loop0 10::1/128 Loop0 20::1/128 Router C GE1/1/1 1::2/64 GE1/1/2 3::2/64 Configuration procedure Configure IPv6 addresses for interfaces on the routers and enable IPv6 IS-IS.
Configuring IPv6 PBR Overview Policy-based routing (PBR) uses user-defined policies to route packets. A policy can specify parameters for packets that match specific criteria such as ACLs or that have specific lengths. The parameters include the next hop, output interface, default next hop, and default output interface. A device forwards received packets using the following process: The device uses PBR to forward matching packets.
Page 512
• apply output-interface • apply default-next-hop • apply default-output-interface Table 27 Priorities and meanings of apply clauses Clause Meaning Priority Sets an IP precedence. This clause is always executed. apply precedence Multiple next hops, output interfaces, default next hops, or default output interfaces operate in either primary/backup or load sharing mode.
Relationship between the match mode and clauses on the node Does a packet match all Match mode the if-match clauses on In permit mode In deny mode the node? • If the node is configured with apply clauses, IPv6 PBR executes the apply clauses on the node.
Tasks at a glance (Required.) Configuring IPv6 PBR: • Configuring IPv6 local PBR • Configuring IPv6 interface PBR Configuring an IPv6 policy Creating an IPv6 node Step Command Remarks Enter system view. system-view Create an IPv6 policy ipv6 policy-based-route policy-name [ deny | By default, no IPv6 policy or policy node and permit ] node node-number...
Page 515
Step Command Remarks By default, no VPN instance is specified. You can specify a maximum of n Set VPN apply access-vpn vpn-instance VPN instances for a node. The instances. vpn-instance-name&<1-n> matching packets are forwarded according to the forwarding table of the first available VPN instance.
Step Command Remarks By default, no default output interface is specified. You can specify multiple default output interfaces for backup or load apply default-output-interface 12. Set default sharing in one command line or by { interface-type interface-number [ track output interfaces. executing this command multiple track-entry-number ] }&<1-n>...
To configure IPv6 interface PBR: Step Command Remarks Enter system view. system-view Enter interface interface interface-type interface-number view. Apply an IPv6 By default, no IPv6 policy is policy to the ipv6 policy-based-route policy-name applied to the interface. interface. Displaying and maintaining IPv6 PBR Execute display commands in any view and reset commands in user view.
Page 523
Ping statistics for 10::1: Packets: Sent = 1, Received = 1, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 1ms, Maximum = 1ms, Average = 1ms The debugging information about IPv6 PBR displayed on Router A is as follows: <RouterA>...
Configuring routing policies Overview Routing policies control routing paths by filtering and modifying routing information. This chapter describes both IPv4 and IPv6 routing policies. Routing policies can filter advertised, received, and redistributed routes, and modify attributes for specific routes. To configure a routing policy: Configure filters based on route attributes, such as destination address and the advertising router's address.
Routing policy A routing policy can contain multiple nodes, which are in a logical OR relationship. A node with a smaller number is matched first. A route matches the routing policy if it matches one node (except the node configured with the continue clause) in the routing policy. Each node has a match mode of permit or deny.
Step Command Remarks ip prefix-list prefix-list-name [ index index-number ] Configure an IPv4 { deny | permit } ip-address mask-length By default, no IPv4 prefix list. [ greater-equal min-mask-length ] [ less-equal prefix lists exist. max-mask-length ] Configuring an IPv6 prefix list If all items are set to deny mode, no routes can pass the IPv6 prefix list.
Configuring an extended community list You can configure multiple items for an extended community list that is identified by a number. The relationship between the items is logical OR. A route matches the extended community list if it matches one item in the list. To configure an extended community list: Step Command...
Configuring if-match clauses You can either specify no if-match clauses or multiple if-match clauses for a routing policy node. If no if-match clause is specified for a permit node, all routes can pass the node. If no if-match clause is specified for a deny node, no routes can pass the node. The if-match clauses of a routing policy node have a logical AND relationship.
Step Command Remarks By default, no output interface match criterion is Match routes having the if-match interface { interface-type configured. specified output interface. interface-number }&<1-16> This command is not supported by BGP. By default, no local Match BGP routes having the if-match local-preference preference is configured for specified local preference.
Page 530
Step Command Remarks apply cost-type { external | By default, no cost type is set for Set a cost type for routes. internal | type-1 | type-2 } routes. apply extcommunity { rt Set the extended community By default, no extended community route-target }&<1-32>...
Step Command Remarks • Set an IPv4 backup link for FRR: apply fast-reroute { backup-interface interface-type interface-number [ backup-nexthop ip-address ] | backup-nexthop ip-address } 21. Set a backup link for fast By default, no backup link is set for reroute (FRR).
Task Command Display BGP AS path list information. display ip as-path [ as-path-number ] Display BGP community list display ip community-list [ basic-community-list-number | information. adv-community-list-number | name comm-list-name ] Display BGP extended community list display ip extcommunity-list [ ext-comm-list-number ] information.
Total Nets: 4 Intra Area: 1 Inter Area: 0 ASE: 3 NSSA: 0 The output shows that the cost of route 172.17.1.0/24 is 100 and the tag of route 172.17.2.0/24 is 20. Routing policy configuration example for IPv6 route redistribution Network requirements As shown in Figure...
Page 536
[RouterA] route-policy static2ripng permit node 10 [RouterA-route-policy-static2ripng-10] quit # Enable RIPng and apply routing policy static2ripng to filter redistributed static routes on Router A. [RouterA] ripng [RouterA-ripng-1] import-route static route-policy static2ripng Configure Router B: # Configure the IPv6 address of GigabitEthernet 1/1/1. <RouterB>...
Configuring MTR Overview Multi-Topology Routing (MTR) splits a base topology into multiple topologies, which intersect or overlap with one another. Route calculation is performed on a per-topology basis. For example, IS-IS MTR enables IS-IS to perform separate route calculation for the IPv4 and IPv6 topologies in an IS-IS routing domain.
Page 538
• if-match—Defines a criterion to match packet attributes. The if-match clauses of a node are in an OR relationship. If a packet matches one of the if-match clauses, it matches the node. • apply—Specifies a topology for packets matching the MTR policy node. IMPORTANT: A node must contain both if-match and apply clauses.
Configuring DCN Overview Data communication network (DCN) is built for the network management system (NMS) to implement operation, administration, and maintenance (OAM) on the network elements (NEs). On large-scaled networks with DCN configured, the NMS remotely manages and controls all NEs through the gateway network element (GNE), which reduces operation and maintenance costs.
Tasks at a glance (Optional.) Enabling the automatic report (Optional.) Configuring the source MAC address of LLDP frames (Required.) Advertising the LLDP management address (Required.) Enabling the system to generate ARP entries for received management address LLDP TLVs Enabling DCN After DCN is enabled, the device assigns an NE IP to the loopback interface with the largest interface number and uses the interface for communication.
Step Command Remarks Enter system view. system-view Create a VPN instance and enter its view, or enter the By default, no VPN instances ip vpn-instance view of an existing VPN exist. vpn-instance-name instance. Quit VPN instance view. quit Create a loopback interface and enter its view, or enter By default, no loopback interface loopback...
address) for ARP entry learning. For more information about LLDP, see Layer 2—LAN Switching Configuration Guide. Step Command Remarks Enter system view. system-view Enter interface interface interface-type interface-number view. Advertise the By default, the LLDP lldp tlv-enable basic-tlv LLDP management-address-tlv [ ip-address | management address is not management interface loopback interface-number ]...
Page 544
Figure 124 Network diagram Configuration procedure Configure the GNE: # Enable SNMP on the GNE. (Details not shown. For more information, see Network Management and Monitoring Configuration Guide.) # Enable DCN, configure the NE ID as 100001 and NE IP as 11.1.1.1/32, and enable the automatic report feature.
Page 545
[GNE-GigabitEthernet1/1/2] lldp tlv-enable basic-tlv management-address-tlv interface loopback 1023 # Configure the system to issue the generated ARP entry to the Layer 3 Ethernet subinterface associated with VLAN 4094 in Dot1q termination after GigabitEthernet 1/1/2 receives an LLDP frame. [GNE-GigabitEthernet1/1/2] lldp management-address arp-learning vlan 4094 [GNE-GigabitEthernet1/1/2] quit # Create Ethernet subinterface GigabitEthernet 1/1/1.4094 that borrows the IP address of Loopback 1023, and enable Dot1q termination on the interface.
Page 546
[DeviceA-LoopBack1023] quit # Enable LLDP globally. [DeviceA] lldp global enable # Enable the nearest bridge agents on GigabitEthernet 1/1/1 to advertise basic LLDP TLVs and management address TLVs. The IP address of interface Loopback 1023 is specified as the management address. [DeviceA] interface gigabitethernet 1/1/1 [DeviceA-GigabitEthernet1/1/1] lldp tlv-enable basic-tlv management-address-tlv interface loopback 1023...
Page 547
# Set the OSPF network type for GigabitEthernet 1/1/2.4094 to P2P. [DeviceA] interface gigabitethernet 1/1/2.4094 [DeviceA-GigabitEthernet1/1/2.4094] ospf network-type p2p [DeviceA-GigabitEthernet1/1/2.4094] quit Configure Device B: # Enable DCN, configure the NE ID as 300003 and NE IP as 33.3.3.3/32. <DeviceB> system-view [DeviceB] dcn [DeviceB-dcn] ne-id 300003 [DeviceB-dcn] ne-ip 33.3.3.3 32...
Page 548
[GNE] display dcn ne-info DCN Network Elements Information NE ID NE IP Metric Device Type 0x100001 11.1.1.1 HPE 6604 0x200002 22.2.2.2 HPE 6608 0x300003 33.3.3.3 HPE 6616 Total number: 3 The output shows that GNE, Device A, and Device B are online. The GNE notifies the NMS of the online event.
Page 549
NE ID NE IP Metric Device Type 0x100001 11.1.1.1 HPE 6604 0x200002 22.2.2.2 HPE 6608 Total number: 2 The output shows that GNE and Device A are online. The GNE notifies the NMS of the offline event of Device B. You can still successfully ping the NE IP address of Device A from the GNE.
Document conventions and icons Conventions This section describes the conventions used in the documentation. Command conventions Convention Description Bold text represents commands and keywords that you enter literally as shown. Boldface Italic text represents arguments that you replace with actual values. Italic Square brackets enclose syntax choices (keywords or arguments) that are optional.
Network topology icons Convention Description Represents a generic network device, such as a router, switch, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features.
Support and other resources Accessing Hewlett Packard Enterprise Support • For live assistance, go to the Contact Hewlett Packard Enterprise Worldwide website: www.hpe.com/assistance • To access documentation and support services, go to the Hewlett Packard Enterprise Support Center website: www.hpe.com/support/hpesc Information to collect •...
For more information and device support details, go to the following website: www.hpe.com/info/insightremotesupport/docs Documentation feedback Hewlett Packard Enterprise is committed to providing documentation that meets your needs. To help us improve the documentation, send any errors, suggestions, or comments to Documentation Feedback (docsfeedback@hpe.com). When submitting your feedback, include the document title,...
Page 554
part number, edition, and publication date located on the front cover of the document. For online help content, include the product name, product version, help edition, and publication date located on the legal notices page.
Page 561
IPv6 static route BFD control mode (direct IS-IS system ID > host name mapping next hop), (dynamic), IPv6 static route BFD control mode (indirect IS-IS system ID > host name mapping next hop), (static), IPv6 static route BFD echo mode (single local PBR, hop), local PBR (packet type-based),...
Need help?
Do you have a question about the FlexNetwork HSR6600 and is the answer not in the manual?
Questions and answers