04-Layer 3 Command Reference

HomeSupportReference GuidesCommand ReferencesH3C WA Series Access Points Command References(R1507P09)-6W10104-Layer 3 Command Reference
02-Static Routing Commands
Title Size Download
02-Static Routing Commands 52.60 KB

ip route-static

Use ip route-static to configure a unicast static route.

Use undo ip route-static to delete a unicast static route.

Syntax

ip route-static dest-address { mask | mask-length } next-hop-address [ preference preference-value ]

undo ip route-static dest-address { mask | mask-length } next-hop-address [ preference preference-value ]

Default

No unicast static route is configured.

Views

System view

Default command level

2: System level

Parameters

dest-address: Specifies a destination IP address of the static route, in dotted decimal notation.

mask: Specifies mask of the IP address, in dotted decimal notation.

mask-length: Specifies mask length, in the range of 0 to 32.

next-hop-address: Specifies IP address of the next hop, in dotted decimal notation.

preference preference-value : Specifies a preference for the static route, in the range of 1 to 255. The default is 60. If no preference is specified, the default preference is used. When the default preference is re-configured, it applies to only newly added static routes.

Usage guidelines

When you configure a unicast static route, follow these guidelines:

·          If the destination IP address and the mask are both 0.0.0.0 (or 0), the configured route is a default route. The default route is used for forwarding packets that match no specific entry in the routing table.

·          Implement different routing policies to tune route preferences. To enable them to back up one another, assign different preferences to them.

·          The next hop address of a static route cannot be the IP address of a local interface. Otherwise, the static does not take effect.

Examples

# Configure a static route, whose destination address is 1.1.1.1/24 and next hop address is 2.2.2.2.

<Sysname> system-view

[Sysname] ip route-static 1.1.1.1 24 2.2.2.2

Related commands

display ip routing-table

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网