H3C - Technical Support & Document - 16-Routing Protocol Command

16-Routing Protocol Command

Download

Table of Contents

Chapter 1 Static Route Configuration Commands. 1-1

1.1 Routing Table Monitoring Commands. 1-1

1.1.1 display ip routing-table. 1-1

1.1.2 display ip routing-table acl 1-2

1.1.3 display ip routing-table ip-address. 1-5

1.1.4 display ip routing-table ip-address1 ip-address2. 1-7

1.1.5 display ip routing-table ip-prefix. 1-8

1.1.6 display ip routing-table protocol 1-10

1.1.7 display ip routing-table radix. 1-11

1.1.8 display ip routing-table statistics. 1-12

1.1.9 display ip routing-table verbose. 1-13

1.2 Static Route Configuration Commands. 1-15

1.2.1 delete static-routes all 1-15

1.2.2 ip route-static. 1-15

1.2.3 ip route-static default-preference. 1-17

Chapter 2 RIP Configuration Commands. 2-1

2.1 RIP Configuration Commands. 2-1

2.1.1 checkzero. 2-1

2.1.2 default cost 2-2

2.1.3 display rip. 2-2

2.1.4 display rip routing. 2-4

2.1.5 filter-policy export 2-5

2.1.6 filter-policy import 2-6

2.1.7 host-route. 2-7

2.1.8 import-route. 2-8

2.1.9 network. 2-9

2.1.10 peer 2-10

2.1.11 preference. 2-11

2.1.12 reset 2-11

2.1.13 rip. 2-12

2.1.14 rip authentication-mode. 2-13

2.1.15 rip input 2-14

2.1.16 rip metricin. 2-15

2.1.17 rip metricout 2-16

2.1.18 rip output 2-16

2.1.19 rip split-horizon. 2-17

2.1.20 rip version. 2-18

2.1.21 rip work. 2-19

2.1.22 summary. 2-20

2.1.23 timers. 2-20

2.1.24 traffic-share-across-interface. 2-21

Chapter 3 OSPF Configuration Commands. 3-1

3.1 OSPF Configuration Commands. 3-1

3.1.1 abr-summary. 3-1

3.1.2 area. 3-2

3.1.3 asbr-summary. 3-3

3.1.4 authentication-mode. 3-4

3.1.5 default cost 3-5

3.1.6 default interval 3-5

3.1.7 default limit 3-6

3.1.8 default tag. 3-7

3.1.9 default type. 3-8

3.1.10 default-cost 3-8

3.1.11 default-route-advertise. 3-9

3.1.12 display ospf abr-asbr 3-10

3.1.13 display ospf asbr-summary. 3-11

3.1.14 display ospf brief 3-13

3.1.15 display ospf cumulative. 3-14

3.1.16 display ospf error 3-16

3.1.17 display ospf interface. 3-19

3.1.18 display ospf lsdb. 3-20

3.1.19 display ospf nexthop. 3-23

3.1.20 display ospf peer 3-24

3.1.21 display ospf request-queue. 3-26

3.1.22 display ospf retrans-queue. 3-27

3.1.23 display ospf routing. 3-28

3.1.24 display ospf vlink. 3-29

3.1.25 filter-policy export 3-30

3.1.26 filter-policy import 3-31

3.1.27 import-route. 3-33

3.1.28 network. 3-34

3.1.29 nssa. 3-34

3.1.30 ospf 3-35

3.1.31 ospf authentication-mode. 3-36

3.1.32 ospf cost 3-37

3.1.33 ospf dr-priority. 3-38

3.1.34 ospf mib-binding. 3-39

3.1.35 ospf mtu-enable. 3-39

3.1.36 ospf network-type. 3-40

3.1.37 ospf timer dead. 3-42

3.1.38 ospf timer hello. 3-42

3.1.39 ospf timer poll 3-43

3.1.40 ospf timer retransmit 3-44

3.1.41 ospf trans-delay. 3-44

3.1.42 peer 3-45

3.1.43 preference. 3-46

3.1.44 protocol multicast-mac enable. 3-47

3.1.45 reset ospf 3-48

3.1.46 router id. 3-48

3.1.47 silent-interface. 3-49

3.1.48 snmp-agent trap enable ospf 3-50

3.1.49 spf-schedule-interval 3-51

3.1.50 stub. 3-51

3.1.51 vlink-peer 3-52

Chapter 4 Integrated IS-IS Configuration Commands. 4-1

4.1 Integrated IS-IS Configuration Commands. 4-1

4.1.1 area-authentication-mode. 4-1

4.1.2 cost-style. 4-2

4.1.3 default-route-advertise. 4-3

4.1.4 display isis brief 4-4

4.1.5 display isis interface. 4-5

4.1.6 display isis lsdb. 4-6

4.1.7 display isis mesh-group. 4-6

4.1.8 display isis peer 4-7

4.1.9 display isis route. 4-8

4.1.10 display isis spf-log. 4-9

4.1.11 domain-authentication-mode. 4-10

4.1.12 filter-policy export 4-11

4.1.13 filter-policy import 4-12

4.1.14 ignore-lsp-checksum-error 4-12

4.1.15 import-route. 4-13

4.1.16 import-route isis level-2 into level-1. 4-14

4.1.17 isis. 4-15

4.1.18 isis authentication-mode. 4-16

4.1.19 isis circuit-level 4-17

4.1.20 isis cost 4-18

4.1.21 isis dis-priority. 4-19

4.1.22 isis enable. 4-20

4.1.23 isis mesh-group. 4-20

4.1.24 isis timer csnp. 4-21

4.1.25 isis timer hello. 4-22

4.1.26 isis timer holding-multiplier 4-23

4.1.27 isis timer lsp. 4-24

4.1.28 isis timer retransmit 4-25

4.1.29 is-level 4-26

4.1.30 log-peer-change. 4-26

4.1.31 md5-compatible. 4-27

4.1.32 network-entity. 4-28

4.1.33 preference. 4-29

4.1.34 reset isis all 4-30

4.1.35 reset isis peer 4-30

4.1.36 set-overload. 4-31

4.1.37 silent-interface. 4-31

4.1.38 spf-delay-interval 4-32

4.1.39 spf-slice-size. 4-33

4.1.40 summary. 4-34

4.1.41 timer lsp-max-age. 4-35

4.1.42 timer lsp-refresh. 4-35

4.1.43 timer spf 4-36

Chapter 5 BGP Configuration Commands. 5-1

5.1 BGP Configuration Commands. 5-1

5.1.1 aggregate. 5-1

5.1.2 bgp. 5-3

5.1.3 balance. 5-3

5.1.4 compare-different-as-med. 5-4

5.1.5 confederation id. 5-5

5.1.6 confederation nonstandard. 5-6

5.1.7 confederation peer-as. 5-7

5.1.8 dampening. 5-7

5.1.9 default local-preference. 5-9

5.1.10 default med. 5-9

5.1.11 display bgp group. 5-10

5.1.12 display bgp network. 5-11

5.1.13 display bgp paths. 5-12

5.1.14 display bgp peer 5-13

5.1.15 display bgp routing-table. 5-14

5.1.16 display bgp routing-table as-path-acl 5-16

5.1.17 display bgp routing-table cidr 5-17

5.1.18 display bgp routing-table community. 5-18

5.1.19 display bgp routing-table community-list 5-19

5.1.20 display bgp routing-table dampened. 5-20

5.1.21 display bgp routing-table different-origin-as. 5-21

5.1.22 display bgp routing-table flap-info. 5-22

5.1.23 display bgp routing-table peer 5-24

5.1.24 display bgp routing-table regular-expression. 5-25

5.1.25 display bgp routing-table statistic. 5-25

5.1.26 filter-policy export 5-26

5.1.27 filter-policy import 5-27

5.1.28 group. 5-28

5.1.29 import-route. 5-29

5.1.30 network. 5-30

5.1.31 peer advertise-community. 5-30

5.1.32 peer allow-as-loop. 5-31

5.1.33 peer as-number 5-32

5.1.34 peer as-path-acl export 5-32

5.1.35 peer as-path-acl import 5-33

5.1.36 peer connect-interface. 5-34

5.1.37 peer default-route-advertise. 5-35

5.1.38 peer description. 5-35

5.1.39 peer ebgp-max-hop. 5-36

5.1.40 peer enable. 5-37

5.1.41 peer filter-policy export 5-38

5.1.42 peer filter-policy import 5-39

5.1.43 peer group. 5-39

5.1.44 peer ip-prefix export 5-40

5.1.45 peer ip-prefix import 5-41

5.1.46 peer next-hop-local 5-42

5.1.47 peer password. 5-42

5.1.48 peer public-as-only. 5-43

5.1.49 peer reflect-client 5-44

5.1.50 peer route-policy export 5-45

5.1.51 peer route-policy import 5-46

5.1.52 peer route-update-interval 5-46

5.1.53 peer timer 5-47

5.1.54 preference. 5-48

5.1.55 reflect between-clients. 5-49

5.1.56 reflector cluster-id. 5-49

5.1.57 refresh bgp. 5-50

5.1.58 reset bgp. 5-51

5.1.59 reset bgp dampening. 5-52

5.1.60 reset bgp flap-info. 5-52

5.1.61 reset bgp group. 5-53

5.1.62 router id. 5-53

5.1.63 summary. 5-54

5.1.64 timer 5-54

5.1.65 undo synchronization. 5-55

Chapter 6 IP Routing Policy Configuration Commands. 6-1

6.1 IP Routing Policy Configuration Commands. 6-1

6.1.1 apply as-path. 6-1

6.1.2 apply community. 6-2

6.1.3 apply cost 6-3

6.1.4 apply cost-type. 6-4

6.1.5 apply ip next-hop. 6-4

6.1.6 apply isis. 6-5

6.1.7 apply local-preference. 6-6

6.1.8 apply origin. 6-6

6.1.9 apply tag. 6-7

6.1.10 display ip ip-prefix. 6-8

6.1.11 display route-policy. 6-9

6.1.12 if-match { acl | ip-prefix } 6-10

6.1.13 if-match as-path. 6-11

6.1.14 if-match community. 6-12

6.1.15 if-match cost 6-12

6.1.16 if-match interface. 6-13

6.1.17 if-match ip next-hop. 6-14

6.1.18 if-match tag. 6-15

6.1.19 ip as-path-acl 6-16

6.1.20 ip community-list 6-16

6.1.21 ip ip-prefix. 6-17

6.1.22 route-policy. 6-19

Chapter 7 Route Capacity Configuration Commands. 7-1

7.1 Route Capacity Configuration Commands. 7-1

7.1.1 display memory. 7-1

7.1.2 display memory limit 7-2

7.1.3 memory auto-establish disable. 7-3

7.1.4 memory auto-establish enable. 7-4

7.1.5 memory { safety | limit }* 7-5

 


Chapter 1  Static Route Configuration Commands

 

&  Note:

The term “router” in this document refers to a router in a generic sense or an Ethernet switch running a routing protocol.

 

1.1  Routing Table Monitoring Commands

1.1.1  display ip routing-table

Syntax

display ip routing-table

View

Any view

Parameter

None

Description

Use the display ip routing-table command to display the summary of a routing table.

This command is used to display the summary of a routing table. Each line represents one route, containing the destination address/mask length, protocol, preference, cost, next hop, and output interface.

This command is only used to display the currently used routes, that is, the optimal routes.

Example

# Display the summary of the current routing table.

<H3C> display ip routing-table

Routing Table: public net

Destination/Mask   Protocol   Pre Cost        Nexthop    Interface

1.1.1.0/24         DIRECT    0   0   1.1.1.1 Vlan-interface1

1.1.1.1/32         DIRECT    0   0   127.0.0.1   InLoopBack0

2.2.2.0/24         DIRECT    0   0   2.2.2.1 Vlan-interface2

2.2.2.1/32         DIRECT    0   0   127.0.0.1   InLoopBack0

3.3.3.0/24         DIRECT    0   0   3.3.3.1 Vlan-interface3

3.3.3.1/32         DIRECT    0   0   127.0.0.1   InLoopBack0

4.4.4.0/24         DIRECT    0   0   4.4.4.1 Vlan-interface4

4.4.4.1/32         DIRECT    0   0   127.0.0.1   InLoopBack0

127.0.0.0/8        DIRECT    0   0   127.0.0.1   InLoopBack0

127.0.0.1/32       DIRECT    0   0   127.0.0.1   InLoopBack0

Table 1-1 Description on the fields of the display ip routing-table command

Field

Description

Destination/Mask

Destination address/mask length

Protocol

Routing protocol

Pre

Route preference

Cost

Route cost

Nexthop

Next hop address

Interface

Output interface, through which the data packets sent to the destination network segment are sent

 

1.1.2  display ip routing-table acl

Syntax

display ip routing-table acl { acl-number | acl-name } [ verbose ]

View

Any view

Parameter

acl-number: Number of the number-identified ACL, in the range 2,000 to 2,999.

acl-name: Name of the basic name-identified ACL.

verbose: Specifies to display the detailed information about active and inactive routes filtered through the ACL rules if this keyword is provided; specifies to display the brief information about the active routes filtered through the ACL rules.

Description

Use the display ip routing-table acl command to display the routes filtering through the basic ACL rules.

This command is used to trace and display routing policies, that is, to display the routes filtering through the rules based on the input basic ACL numbers.

Example

# Display the brief information about the active routes filtering through basic ACL 2000.

<H3C>system-view

System View: return to User View with Ctrl+Z.

[H3C] acl number 2000

[H3C-acl-basic-2000] rule permit source 10.1.1.1 0.0.0.255

[H3C-acl-basic-2000] rule deny source any

[H3C-acl-basic-2000] display ip routing-table acl 2000

Routes matched by access-list 2000:

  Summary count: 2

Destination/Mask   Protocol Pre  Cost        Nexthop       Interface

10.1.1.0/24  DIRECT  0   0   10.1.1.2        Vlan-interface1

10.1.1.2/32  DIRECT  0   0   127.0.0.1      InLoopBack0

Refer to Table 1-1 for the description on the displayed information above.

# Display the detailed information about the active and inactive routes filtered through basic ACL 2000.

<H3C> display ip routing-table acl 2000 verbose

Routes matched by access-list 2000:

Generate Default: no

  + = Active Route, - = Last Active, # = Both   * = Next hop in use

 

  Summary count: 2

 

**Destination: 10.1.1.0         Mask: 255.255.255.0

        Protocol: #DIRECT       Preference: 0

        *NextHop: 10.1.1.2         Interface: 10.1.1.2(Vlan-interface1)

        Vlinkindex: 0

        State: <Int ActiveU Retain Unicast>

        Age: 7:24       Cost: 0/0       Tag: 0

 

**Destination: 10.1.1.2         Mask: 255.255.255.255

        Protocol: #DIRECT       Preference: 0

        *NextHop: 127.0.0.1        Interface: 127.0.0.1(InLoopBack0)

        Vlinkindex: 0

        State: <NoAdvise Int ActiveU Retain Gateway Unicast>

        Age: 7:24       Cost: 0/0       Tag: 0

Table 1-2 Description on the fields of the display ip routing-table acl command

Field

Description

Destination

Destination address

Mask

Mask

Protocol

Routing protocol that detects this route

Preference

Preference of the route

Nexthop

Address of the next hop

Interface

Output interface where packets to the destination network segment are forwarded.

Vlinkindex

Virtual link index

State

Route state:

ActiveU

Active unicast routes

Blackhole

Blackhole routes, which are similar to Reject routes except that blackhole routes do not send ICMP unreachable messages to the source end of the packet.

Delete

The route is deleted.

Gateway

Indirect routes

Hidden

If you do not want to remove some routes that are not available temporarily for some reasons (such as the configured polices, the port being down), you can hide the route so as to restore it later.

Holddown

Holddown is a route redistribution policy adopted by some distance-vector (D-V) routing protocols such as RIP. Through Holddown, a routing protocol can avoid the flooding of error routes and deliver route unreachable messages accurately. It redistributes a certain route at regular intervals regardless of whether the actually found routes leading to the same destination change. For more details, refer to the specific routing protocols.

Int

The route is discovered by the interior gateway protocol (IGP).

NoAdvise

NoAdvise routes are nor advertised when the routing protocol ad

NotInstall

Generally, the route with the highest preference in a routing table is added to the core routing table and advertised. Comparatively, NotInstall routes cannot be added to the core routing table, however, they may be advertised.

Reject

Reject routes do not distribute packets like normal routes. Instead, the packet that selects a reject route will be dropped, and ICMP unreachable messages will be sent to the source end of the packet. Reject routes are generally used in network tests.

Retain

When the routes read by the core routing table are removed, the routes with the “retain” tag will not be removed. You can set some static routes as retain routes so that they can continue to exist in the core routing table.

Static

The static routes manually configured on the router are tagged as static routes, which will not be removed from the routing table if the router is restarted after the save command is executed.

Unicast

Unicast routes

Age

The time during which a route exists in the routing table, expressed in the form of hh:mm:ss.

Cost

Route cost

Tag

Route tag

 

1.1.3  display ip routing-table ip-address

Syntax

display ip routing-table ip-address [ mask ] [ longer-match ] [ verbose ]

View

Any view

Parameter

ip-address: Destination IP address, in dotted decimal notation.

mask: IP address mask, length in dotted decimal notation or expressed as an integer. It ranges from 0 to 32 when expressed as an integer.

longer-match: Specifies to display all the routes that lead to the destination address and match the specified mask. If you do not specify the mask argument, those that match the natural mask will be displayed.

verbose: With the verbose argument specified, this command is used to display the verbose information of both active and inactive routes. Without the argument specified, this command is only used to display the summary of active routes.

Description

Use the display ip routing-table ip-address command to display the routing information of the specified destination address.

With different arguments provided, the output information is different from one another. The following is the command output with different arguments provided:

l           display ip routing-table ip-address

If the destination address specified by ip-address corresponds to a route in the natural mask range, this command is used to display all its subnet routes. Otherwise, this command is used to display the longest matching route based on the destination address specified by ip-address.

l           display ip routing-table ip-address mask

This command is only used to display the routes exactly matching the specified destination address and mask.

l           display ip routing-table ip-address longer-match

This command is used to display all the matched routes leading to the destination address in the natural mask range.

l           display ip routing-table ip-address mask longer-match

This command is used to display all the matched routes leading to the destination address in the specified mask range.

Example

# There is a corresponding route in the natural mask range. Display the summary.

<H3C> display ip routing-table 169.0.0.0

Destination/Mask     Protocol    Pre Cost    Nexthop     Interface

169.0.0.0/16         Static  60  0       2.1.1.1     LoopBack1

For detailed description of the output information, refer to Table 1-1.

# There is no corresponding route (only the longest matched route is displayed) in the natural mask range. Display the summary.

<H3C> display ip routing-table 169.253.0.0

Destination/Mask     Protocol    Pre     Cost    Nexthop     Interface

169.0.0.0/8          Static  60      0       2.1.1.1     LoopBack1

# There are corresponding routes in the natural mask range. Display detailed information.

<H3C> display ip routing-table 169.0.0.0 verbose

Routing Tables:

  Generate Default: no

  + = Active Route, - = Last Active, # = Both    * = Next hop in use

  Summary count:2

**Destination: 169.0.0.0     Mask: 255.0.0.0

        Protocol: #Static        Preference: 60

        *NextHop: 2.1.1.1          Interface: 2.1.1.1(LoopBack1)

        Vlinkindex: 0

        State: <Int ActiveU Static Unicast>

        Age: 3:47    Cost: 0/0   Tag: 0

**Destination: 169.0.0.0     Mask: 255.254.0.0

        Protocol: #Static        Preference: 60

        *NextHop: 2.1.1.1          Interface: 2.1.1.1(LoopBack1)

        Vlinkindex: 0

        State: <Int ActiveU Static Unicast>

        Age: 3:47    Cost: 0/0   Tag: 0

# There is no corresponding route in the natural mask range (only the longest matched route is displayed). Display the detailed information.

<H3C> display ip routing-table 169.253.0.0 verbose

Routing Tables:

  Generate Default: no

  + = Active Route, - = Last Active, # = Both    * = Next hop in use

  Summary count:1

**Destination: 169.0.0.0     Mask: 255.0.0.0

        Protocol: #Static        Preference: 60

        *NextHop: 2.1.1.1          Interface: 2.1.1.1(LoopBack1)

        Vlinkindex: 0

        State: <Int ActiveU Static Unicast>

        Age: 3:47    Cost: 0/0   Tag: 0

For detailed description of the output information, refer to Table 1-2.

1.1.4  display ip routing-table ip-address1 ip-address2

Syntax

display ip routing-table ip-address1 mask1 ip-address2 mask2 [ verbose ]

View

Any view

Parameter

ip-address1, ip-address2: Destination IP address in dotted decimal notation. ip-address1, mask1 and ip-address2, mask2 determine one address range together. ip-address1 ANDed with mask1 specifies the start of the range, and ip-address2 ANDed with mask2 specifies the end of the range. This command is used to display the route in this address range.

mask1, mask2: IP address mask, length in dotted decimal notation or expressed as an integer. It ranges from 0 to 32 when expressed as an integer.

verbose: With the verbose argument provided, this command is used to display the verbose information of both active and inactive routes. Without this argument provided, this command is used to display the summary of active routes only.

Description

Use the display ip routing-table ip-address1 ip-address2 command to display the route information in the specified destination address range.

Example

# Display the routing information of destination addresses ranging from 1.1.1.0 to 2.2.2.0.

<H3C>display ip routing-table 1.1.1.0 24 2.2.2.0 24

Routing tables:

  Summary count: 3

Destination/Mask   Protocol   Pre Cost        Nexthop      Interface

1.1.1.0/24         DIRECT    0  0                  1.1.1.1         Vlan-interface1

1.1.1.1/32         DIRECT    0  0           127.0.0.1    InLoopBack0

2.2.2.0/24         DIRECT    0  0                    2.2.2.1         Vlan-interface2

For detailed description of the output information, refer to Table 1-1.

1.1.5  display ip routing-table ip-prefix

Syntax

display ip routing-table ip-prefix ip-prefix-name [ verbose ]

View

Any view

Parameter

ip-prefix-name: Name of the IP address prefix list, containing 1 to 19 characters.

verbose: Specifies to display the detailed information about active and inactive routes filtered through the ACL rules if this keyword is provided; specifies to display the brief information about the active routes filtered through the ACL rules.

Description

Use the display ip routing-table ip-prefix command to display the routes filtered through the specified ip-prefix list.

This command is used to track and display the routing policy. It is used to display the routes filtering through the rules based on the input ip-prefix list name.

If the specified ip-prefix list does not exist, with the verbose keyword provided, this command is used to display the detailed information about all active and inactive routes; without the verbose argument keyword, this command is used to display the brief information about all active routes only.

Example

# Display the brief information about the active routes filtered through the IP-prefix list named abc2, which permits the route with a prefix of 10.1.1.0 and a mask length of 24 to 32.

<H3C>system-view

System View: return to User View with Ctrl+Z.

[H3C] ip ip-prefix abc2 permit 10.1.1.0 24 less-equal 32

[H3C] display ip routing-table ip-prefix abc2

Routes matched by ip-prefix abc2:

  Summary count: 2

Destination/Mask   Protocol Pre  Cost       Nexthop         Interface

10.1.1.0/24         DIRECT    0 Â