04-Layer 3 Command Reference

HomeSupportReference GuidesCommand ReferencesH3C WX Series Access Controllers Command References(R3308 R2308)-6W10704-Layer 3 Command Reference
15-IPv6 Static Routing Commands
Title Size Download
15-IPv6 Static Routing Commands 58.09 KB

delete ipv6 static-routes all

Syntax

delete ipv6 static-routes all

View

System view

Default level

2: System level

Parameters

None

Description

Use delete ipv6 static-routes all to delete all IPv6 static routes including the default route.

When you use this command, the system will prompt you to confirm the operation before you deleting all the IPv6 static routes.

Related commands: ipv6 route-static and display ipv6 routing-table.

Examples

# Delete all IPv6 static routes.

<Sysname> system-view

[Sysname] delete ipv6 static-routes all

This will erase all ipv6 static routes and their configurations, you must reconfigure all static routes

Are you sure?[Y/N]Y

ipv6 route-static

Syntax

ipv6 route-static ipv6-address prefix-length { interface-type interface-number [ next-hop-address ] | next-hop-address } [ preference preference-value ]

undo ipv6 route-static ipv6-address prefix-length [ interface-type interface-number [ next-hop-address ] | next-hop-address ] [ preference preference-value ]

View

System view

Default level

2: System level

Parameters

ipv6-address prefix-length: IPv6 address and prefix length.

interface-type interface-number: Specifies an output interface by its type and number. If the output interface is an NBMA interface or broadcast interface (such as an Ethernet interface, a virtual template interface, or a VLAN interface), rather than a point-to-point (P2P) interface, the next hop address must be specified.

nexthop-address: Next hop IPv6 address.

preference preference-value: Specifies a preference for IPv6 static routes, in the range of 1 to 255. The default is 60.

Description

Use ipv6 route-static to configure an IPv6 static route.

Use undo ipv6 route-static to remove an IPv6 static route.

An IPv6 static route that has the destination address configured as ::/0 (a prefix length of 0) is the default IPv6 route. If the destination address of an IPv6 packet does not match any entry in the routing table, this default route is used to forward the packet.

Related commands: delete ipv6 static-routes all and display ipv6 routing-table.

Examples

# Configure an IPv6 static route, with the destination address 1:1:2::/24 and next hop 1:1:3::1.

<Sysname> system-view

[Sysname] ipv6 route-static 1:1:2:: 24 1:1:3::1

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
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
新华三官网