Layer 3 - IP Routing Command Reference

HomeSupportWLANH3C WA2200 Series WLAN Access PointsReference GuidesCommand ReferencesH3C WA Series WLAN Access Points Command Reference-6W100Layer 3 - IP Routing Command Reference
04-Static Routing Commands
Title Size Download
04-Static Routing Commands 33.54 KB

l          The models listed in this document are not applicable to all regions. Please consult your local sales office for the models applicable to your region.

l          Support of the H3C WA series WLAN access points (APs) for commands may vary by AP model. For more information, see Feature Matrix.

l          The interface types and the number of interfaces vary by AP model.

 

 

The term router in this document refers to both routers and APs configured with routing capabilities.

 

Static Routing Configuration Commands

ip route-static

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 ]

View

System view

Default Level

2: System level

Parameters

dest-address: Destination IP address of the static route, in dotted decimal notation.

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

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

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

preference preference-value : Specifies the preference of the static route, which is in the range of 1 to 255 and defaults to 60.

Description

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

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

When configuring a unicast static route, note that:

1)        If the destination IP address and the mask are both 0.0.0.0, the configured route is a default route. If routing table searching fails, the router will use the default route for packet forwarding.

2)        Different route management policies can be implemented for different route preference configurations. For example, specifying the same preference for different routes to the same destination address enables load sharing, while specifying different preferences for these routes enables route backup.

3)        Do not specify the IP address of a local interface as the next hop address. Otherwise, the route configuration does not take effect.

Related commands: display ip routing-table (IP Routing Basics in the Layer 3 – IP Routing Command Reference).

 

The static route does not take effect if you specify its next hop address first and then configure the address as the IP address of a local interface, such as a VLAN interface.

 

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

 

  • 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 Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网