06-Routing Protocol Command

Table of Contents

Chapter 1 Load Sharing Configuration Commands. 1-1

1.1 User-based Load Sharing Configuration Commands. 1-1

1.1.1 display ip user-based-sharing interface-assignment 1-1

1.1.2 display ip user-based-sharing statistic. 1-2

1.1.3 ip user-based-sharing acl 1-3

1.1.4 ip user-based-sharing aging-time. 1-4

1.1.5 ip user-based-sharing enable. 1-4

1.1.6 ip user-based-sharing route. 1-5

1.1.7 ip user-based-sharing stat-interval 1-5

1.1.8 reset ip user-based-sharing cache. 1-6

Chapter 2 Static Route Configuration Commands. 2-1

2.1 Routing Table Displaying Commands. 2-1

2.1.1 display ip routing-table. 2-1

2.1.2 display ip routing-table acl 2-2

2.1.3 display ip routing-table ip-address. 2-3

2.1.4 display ip routing-table ip-address1 ip-address2. 2-5

2.1.5 display ip routing-table ip-prefix. 2-6

2.1.6 display ip routing-table protocol 2-8

2.1.7 display ip routing-table radix. 2-9

2.1.8 display ip routing-table statistics. 2-10

2.1.9 display ip routing-table verbose. 2-11

2.1.10 display ip routing-table vpn-instance. 2-12

2.1.11 reset ip routing-table. 2-13

2.2 Static Route Configuration Commands. 2-14

2.2.1 delete static-routes all 2-14

2.2.2 ip route-static. 2-15

2.3 Bandwidth-Based Unbalanced Load Sharing Commands. 2-17

2.3.1 band-based-sharing. 2-17

2.3.2 display loadsharing ip address. 2-18

2.3.3 loadbandwidth. 2-19

2.3.4 reset loadsharing. 2-19

Chapter 3 RIP Configuration Commands. 3-1

3.1 RIP Configuration Commands. 3-1

3.1.1 checkzero. 3-1

3.1.2 debugging rip. 3-2

3.1.3 default cost 3-2

3.1.4 display rip. 3-3

3.1.5 display rip interface. 3-4

3.1.6 display rip routing. 3-5

3.1.7 display rip vpn-instance. 3-6

3.1.8 filter-policy export 3-7

3.1.9 filter-policy import 3-7

3.1.10 host-route. 3-9

3.1.11 import-route. 3-9

3.1.12 ipv4-family vpn-instance. 3-10

3.1.13 network. 3-11

3.1.14 peer 3-12

3.1.15 preference. 3-13

3.1.16 reset 3-13

3.1.17 rip. 3-14

3.1.18 rip authentication-mode. 3-15

3.1.19 rip input 3-16

3.1.20 rip metricin. 3-16

3.1.21 rip metricout 3-17

3.1.22 rip output 3-18

3.1.23 rip split-horizon. 3-19

3.1.24 rip triggered. 3-20

3.1.25 rip version. 3-20

3.1.26 rip work. 3-21

3.1.27 summary. 3-22

3.1.28 timers. 3-23

3.1.29 traffic-share-across-interface. 3-24

3.1.30 validate-source-address. 3-24

Chapter 4 OSPF Configuration Commands. 4-1

4.1 OSPF Configuration Commands. 4-1

4.1.1 abr-summary. 4-1

4.1.2 area. 4-2

4.1.3 asbr-summary. 4-2

4.1.4 authentication-mode. 4-3

4.1.5 debugging ospf 4-4

4.1.6 default cost 4-5

4.1.7 default interval 4-6

4.1.8 default limit 4-7

4.1.9 default tag. 4-7

4.1.10 default type. 4-8

4.1.11 default-cost 4-9

4.1.12 default-route-advertise. 4-10

4.1.13 display debugging ospf 4-11

4.1.14 display ospf abr-asbr 4-12

4.1.15 display ospf asbr-summary. 4-12

4.1.16 display ospf brief 4-14

4.1.17 display ospf cumulative. 4-16

4.1.18 display ospf error 4-17

4.1.19 display ospf interface. 4-20

4.1.20 display ospf lsdb. 4-21

4.1.21 display ospf memory. 4-24

4.1.22 display ospf nexthop. 4-25

4.1.23 display ospf peer 4-26

4.1.24 display ospf request-queue. 4-28

4.1.25 display ospf retrans-queue. 4-29

4.1.26 display ospf routing. 4-30

4.1.27 display ospf vlink. 4-31

4.1.28 filter-policy export 4-32

4.1.29 filter-policy import 4-33

4.1.30 import-route. 4-34

4.1.31 log-peer-change. 4-36

4.1.32 multi-path-number 4-37

4.1.33 network. 4-37

4.1.34 nssa. 4-39

4.1.35 opaque-capability. 4-40

4.1.36 ospf 4-40

4.1.37 ospf authentication-mode. 4-41

4.1.38 ospf cost 4-42

4.1.39 ospf dr-priority. 4-43

4.1.40 ospf mib-binding. 4-44

4.1.41 ospf mtu-enable. 4-44

4.1.42 ospf network-type. 4-45

4.1.43 ospf timer dead. 4-46

4.1.44 ospf timer hello. 4-47

4.1.45 ospf timer poll 4-48

4.1.46 ospf timer retransmit 4-49

4.1.47 ospf trans-delay. 4-49

4.1.48 peer 4-50

4.1.49 preference. 4-51

4.1.50 reset ospf 4-52

4.1.51 router id. 4-53

4.1.52 silent-interface. 4-54

4.1.53 snmp-agent trap enable ospf 4-54

4.1.54 spf-schedule-interval 4-56

4.1.55 stub. 4-56

4.1.56 vlink-peer 4-57

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

5.1 Integrated IS-IS Configuration Commands. 5-1

5.1.1 area-authentication-mode. 5-1

5.1.2 cost-style. 5-2

5.1.3 debugging isis. 5-3

5.1.4 default-route-advertise. 5-4

5.1.5 display isis brief 5-5

5.1.6 display isis interface. 5-6

5.1.7 display isis lsdb. 5-7

5.1.8 display isis mesh-group. 5-7

5.1.9 display isis peer 5-8

5.1.10 display isis routing. 5-8

5.1.11 display isis spf-log. 5-10

5.1.12 domain-authentication-mode. 5-11

5.1.13 filter-policy export 5-12

5.1.14 filter-policy import 5-12

5.1.15 ignore-lsp-checksum-error 5-13

5.1.16 import-route. 5-14

5.1.17 import-route isis. 5-15

5.1.18 isis. 5-16

5.1.19 isis authentication-mode. 5-17

5.1.20 isis circuit-level 5-18

5.1.21 isis cost 5-18

5.1.22 isis dis-priority. 5-19

5.1.23 isis enable. 5-20

5.1.24 isis mesh-group. 5-21

5.1.25 isis small-hello. 5-22

5.1.26 isis timer csnp. 5-22

5.1.27 isis timer hello. 5-23

5.1.28 isis timer holding-multiplier 5-24

5.1.29 isis timer lsp. 5-25

5.1.30 isis timer retransmit 5-26

5.1.31 is-level 5-26

5.1.32 log-peer-change. 5-28

5.1.33 md5-compatible. 5-28

5.1.34 network-entity. 5-29

5.1.35 preference. 5-30

5.1.36 reset isis all 5-30

5.1.37 reset isis peer 5-31

5.1.38 set-overload. 5-31

5.1.39 silent-interface. 5-32

5.1.40 spf-delay-interval 5-33

5.1.41 spf-slice-size. 5-34

5.1.42 summary. 5-34

5.1.43 timer lsp-max-age. 5-35

5.1.44 timer lsp-refresh. 5-36

5.1.45 timer spf 5-37

Chapter 6 BGP Configuration Commands. 6-1

6.1 BGP Configuration Commands. 6-1

6.1.1 aggregate. 6-1

6.1.2 balance. 6-2

6.1.3 bgp. 6-3

6.1.4 compare-different-as-med. 6-4

6.1.5 confederation id. 6-4

6.1.6 confederation nonstandard. 6-5

6.1.7 confederation peer-as. 6-6

6.1.8 dampening. 6-7

6.1.9 debugging bgp. 6-8

6.1.10 default-route imported. 6-9

6.1.11 default local-preference. 6-9

6.1.12 default med. 6-10

6.1.13 display bgp group. 6-11

6.1.14 display bgp network. 6-12

6.1.15 display bgp paths. 6-13

6.1.16 display bgp peer 6-14

6.1.17 display bgp routing. 6-16

6.1.18 display bgp routing as-path-acl 6-18

6.1.19 display bgp routing cidr 6-20

6.1.20 display bgp routing community. 6-21

6.1.21 display bgp routing community-list 6-21

6.1.22 display bgp routing dampened. 6-22

6.1.23 display bgp routing different-origin-as. 6-24

6.1.24 display bgp routing flap-info. 6-24

6.1.25 display bgp routing peer 6-26

6.1.26 display bgp routing peer dampened. 6-27

6.1.27 display bgp routing peer regular-expression. 6-28

6.1.28 display bgp routing regular-expression. 6-29

6.1.29 display bgp routing statistic. 6-30

6.1.30 filter-policy export 6-31

6.1.31 filter-policy import 6-31

6.1.32 group. 6-32

6.1.33 import-route. 6-33

6.1.34 ip as-path-acl 6-34

6.1.35 ip community-list 6-35

6.1.36 log-peer-change. 6-36

6.1.37 network. 6-37

6.1.38 peer advertise-community. 6-37

6.1.39 peer allow-as-loop. 6-38

6.1.40 peer as-number 6-39

6.1.41 peer as-path-acl 6-39

6.1.42 peer connect-interface. 6-40

6.1.43 peer default-route-advertise. 6-41

6.1.44 peer description. 6-42

6.1.45 peer ebgp-max-hop. 6-43

6.1.46 peer enable. 6-43

6.1.47 peer filter-policy. 6-45

6.1.48 peer group. 6-46

6.1.49 peer ip-prefix. 6-47

6.1.50 peer next-hop-local 6-48

6.1.51 peer password. 6-49

6.1.52 peer public-as-only. 6-50

6.1.53 peer reflect-client 6-50

6.1.54 peer route-policy. 6-51

6.1.55 peer route-update-interval 6-52

6.1.56 peer shutdown. 6-53

6.1.57 peer timer 6-53

6.1.58 preference. 6-54

6.1.59 reflect between-clients. 6-55

6.1.60 reflector cluster-id. 6-56

6.1.61 refresh bgp. 6-57

6.1.62 reset bgp. 6-57

6.1.63 reset bgp flap-info. 6-58

6.1.64 reset bgp group. 6-59

6.1.65 reset bgp dampening. 6-59

6.1.66 summary. 6-60

6.1.67 timer keep-alive hold. 6-61

6.1.68 undo synchronization. 6-61

6.2 MBGP Configuration Commands. 6-62

6.2.1 ipv4-family. 6-62

6.2.2 ipv4-family vpnv4. 6-63

Chapter 7 IP Routing Policy Configuration Commands. 7-1

7.1 IP Routing Policy Configuration Commands. 7-1

7.1.1 apply as-path. 7-1

7.1.2 apply community. 7-1

7.1.3 apply cost 7-2

7.1.4 apply cost-type. 7-3

7.1.5 apply ip-address. 7-4

7.1.6 apply isis. 7-4

7.1.7 apply local-preference. 7-5

7.1.8 apply origin. 7-6

7.1.9 apply tag. 7-6

7.1.10 display ip ip-prefix. 7-7

7.1.11 display route-policy. 7-8

7.1.12 filter-policy export 7-8

7.1.13 filter-policy import 7-9

7.1.14 if-match acl 7-10

7.1.15 if-match as-path. 7-11

7.1.16 if-match community. 7-12

7.1.17 if-match cost 7-13

7.1.18 if-match interface. 7-13

7.1.19 if-match ip next-hop. 7-14

7.1.20 if-match ip-prefix. 7-15

7.1.21 if-match tag. 7-16

7.1.22 ip ip-prefix. 7-17

7.1.23 route-policy. 7-18

Chapter 8 Route Capacity Configuration Commands. 8-1

8.1 Route Capacity Configuration Commands. 8-1

8.1.1 display memory. 8-1

8.1.2 memory auto-establish disable. 8-2

8.1.3 memory auto-establish enable. 8-3

8.1.4 memory. 8-4

 


Chapter 1  Load Sharing Configuration Commands

1.1  User-based Load Sharing Configuration Commands

1.1.1  display ip user-based-sharing interface-assignment

Syntax

display ip user-based-sharing interface-assignment [ ip-address ]

View

Any view

Parameter

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

Description

Use the display ip user-based-sharing interface-assignment command to display the assignment of the outgoing interfaces to users.

If no user IP address is specified, the assignment of the outgoing interfaces to all users will be displayed.

Example

# Display the assignment of the outgoing interfaces to all the users.

<H3C> display ip user-based-sharing interface

Total: 7 entry(s).

User IP         Route              Interface             Next-hop

10.0.1.12       0.0.0.0/0          Ethernet0/0           202.22.56.1

10.0.1.13       0.0.0.0/0          Ethernet0/1           198.223.16.1

10.0.1.14       0.0.0.0/0          Ethernet0/0           202.22.56.1

10.0.1.15       0.0.0.0/0          Ethernet0/0           202.22.56.1

10.0.1.16       0.0.0.0/0          Ethernet0/1           198.223.16.1

10.0.1.17       0.0.0.0/0          Ethernet0/0           202.22.56.1

10.0.1.18       0.0.0.0/0          Ethernet0/1           198.223.16.1

Table 1-1 Description on the fields of the display ip user-based-sharing interface command

Field

Description

User IP

User IP address

Route

Route entry

Interface

Outgoing interface assigned to the user

Next-hop

Nexthop address

 

1.1.2  display ip user-based-sharing statistic

Syntax

display ip user-based-sharing statistic [ ip-address | sort-by-load ]

View

Any view

Parameter

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

sort-by-load: Displays user traffic statistics in a descending order of load.

Description

Use the display ip user-based-sharing statistic command to display user traffic statistics.

If no user IP address is specified, the traffic statistics of all the users will be displayed.

Example

# Display the traffic statistics of all the users.

<H3C> display ip user-based-sharing statistic

Total: 7 entry(s).

Unit:kilobytes/second

User IP         SUM-IN SUM-OUT  TCP-IN TCP-OUT UDP-IN UDP-OUT ICMP-IN ICMP-OUT

10.0.1.12         86.0    24.0    78.0    22.0    7.8     2.2     0.1      0.0

10.0.1.13         60.0    11.0    47.0    11.0   12.0     1.0     0.2      0.1

10.0.1.14          7.3    24.0     5.4     1.2    1.9    23.0     0.0      0.0

10.0.1.15         54.0    24.0    44.0    12.0   10.0    12.0     0.0      0.0

10.0.1.16         29.0     8.1     6.8     2.3   22.0     5.6     0.1      0.3

10.0.1.17         35.0    11.0    33.0     9.2    2.2     0.2     0.1      0.2

10.0.1.18        290.0    33.0   283.0    10.0    0.1    11.0     0.0      0.0

Table 1-2 Description on the fields of the display ip user-based-sharing statistic command

Field

Description

User IP

User IP address

SUM-IN

Total incoming traffic, in kbps

SUM-OUT

Total outgoing traffic, in kbps

TCP-IN

Incoming TCP traffic, in kbps

TCP-OUT

Outgoing TCP traffic, in kbps

UDP-IN

Incoming UDP traffic, in kbps

UDP-OUT

Outgoing UDP traffic, in kbps

ICMP-IN

Incoming ICMP traffic, in kbps

ICMP-OUT

Outgoing ICMP traffic, in kbps

 

1.1.3  ip user-based-sharing acl

Syntax

ip user-based-sharing acl acl-number

undo ip user-based-sharing acl

View

System view

Parameter

acl-number: ACL number, in the range 2000 to 3999.

Description

Use the ip user-based-sharing acl command to reference an ACL for packets filtering.

Use the undo ip user-based-sharing acl command to disable the ACL based packet filtering.

The system records the source IP addresses of load balanced packets in a user table. Therefore, large numbers of different source IP addresses will fill up the user table, causing user-based load sharing to fail. In such a case, use the user-based-sharing acl command to ensure that user-based load sharing is performed on only the packets permitted by the ACL. The traffic denied by the ACL will still be forwarded, but no entry for the traffic will be installed in the user table.

Example

# Filter the packets using ACL 3000.

[H3C] ip user-based-sharing acl 3001

1.1.4  ip user-based-sharing aging-time

Syntax

ip user-based-sharing aging-time seconds

undo ip user-based-sharing aging-time

View

System view

Parameter

seconds: User entry aging time, in seconds. It is in the range 30 to 7200 and defaults to 300.

Description

Use the ip user-based-sharing aging-time command to configure the user entry aging time.

Use the undo ip user-based-sharing aging-time command to restore the default user entry aging time.

Example

# Configure the user entry aging time.

[H3C] ip user-based-sharing aging-time 30

1.1.5  ip user-based-sharing enable

Syntax

ip user-based-sharing enable

undo ip user-based-sharing enable

View

System view

Parameter

None

Description

Use the ip user-based-sharing enable command to enable user-based load sharing.

Use the undo ip user-based-sharing enable command to disable user-based load sharing.

By default, user-based load sharing is disabled.

Example

# Enable user-based load sharing.

[H3C] ip user-based-sharing enable

1.1.6  ip user-based-sharing route

Syntax

ip user-based-sharing route ip-address net-mask

undo ip user-based-sharing route ip-address net-mask

View

System view

Parameter

ip-address: Destination IP address of a matching route, in dotted decimal notation.

net-mask: Mask of the IP address, in dotted decimal notation or a mask length.

Description

Use the ip user-based-sharing route command to specify a matching route for user-based load sharing.

Use the undo ip user-based-sharing route command to remove a matching route for user-based load sharing.

You can specify more than one route by executing this command multiple times. User-based load sharing is performed on the packets forwarded through the specified routes.

Example

# Specify a matching route for user-based load sharing.

[H3C] ip user-based-sharing route 0.0.0.0 0

1.1.7  ip user-based-sharing stat-interval

Syntax

ip user-based-sharing stat-interval seconds

undo ip user-based-sharing stat-interval

View

System view

Parameter

seconds: Interval for collecting traffic statistics, in seconds. It can be 5, 10, 15, 30, 45, and 60, and defaults to 10.

Description

Use the ip user-based-sharing stat-interval command to specify an interval for collecting traffic statistics.

Use the undo ip user-based-sharing stat-interval command to restore the default interval.

Example

# Specify the interval for collecting traffic statistics.

[H3C] ip user-based-sharing stat-interval 45

1.1.8  reset ip user-based-sharing cache

Syntax

reset ip user-based-sharing cache [ ip-address ]

View

User view

Parameter

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

Description

Use the reset ip user-based-sharing cache command to clear the specified user entry or all the user entries.  

Example

# Clear the user entry of 10.0.1.25.

<H3C> reset ip user-based-sharing cache 10.0.1.25

 


Chapter 2  Static Route Configuration Commands

 

&  Note:

For the specific examples and parameter explanation of VPN instance, refer to the “MPLS” module of this manual.

 

2.1  Routing Table Displaying Commands

2.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 view the routing table summary.

This command views routing table information in summary form. Each line represents one route. The contents include destination address/mask length, protocol, preference, cost, next hop and output interface.

Only current used route, i.e., best route, is displayed via the display ip routing-table command.

Example

# View the summary of current routing table.

<H3C> display ip routing-table

Routing Table: public net

Destination/Mask   Proto   Pre Cost    Nexthop      Interface

1.1.1.0/24         DIRECT    0     0 &