< Home

Creating IPv6 Static Routes

Context

When creating IPv6 static routes, you can specify both the outbound interface and next hop. Alternatively, you can specify only the outbound interface or next hop, depending on the interface type:
  • For point-to-point (P2P) interfaces, specify the outbound interface.

  • For non-broadcast multiple access (NBMA) interfaces, specify the next hop.

  • For broadcast interfaces, specify the outbound interface. If the next hop address is also specified, it does not need to be a link-local address.

Specifying the same preference value for IPv6 static routes to the same destination implements load balancing among these routes. Conversely, specifying different preference values for IPv6 static routes to the same destination implements route backup among the routes.

Setting the destination IP address and mask to all 0s configures the default IPv6 static route. By default, no default IPv6 static route is configured.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Configure IPv6 static routes.
    • Run ipv6 route-static dest-ipv6-address prefix-length { interface-type interface-number [ nexthop-ipv6-address ] | nexthop-ipv6-address } [ preference preference | tag tag ] * [ description text ]

      Or run ipv6 route-static dest-ipv6-address prefix-length vpn-instance vpn-destination-name [ preference preference | tag tag ] * [ description text ]

      An IPv6 static route is configured on the public network.

      An IPv6 static route is configured on the public network.

    • Run ipv6 route-static vpn-instance vpn-instance-name dest-ipv6-address prefix-length { [ interface-type interface-number ] nexthop-ipv6-address | nexthop-ipv6-address [ public ] | vpn-instance vpn-destination-name nexthop-ipv6-address } [ preference preference | tag tag ] * [ description text ]

      Or run ipv6 route-static vpn-instance vpn-instance-name dest-ipv6-address prefix-length { public | vpn-instance vpn-destination-name } [ preference preference | tag tag ] * [ description text ]

      An IPv6 static route is configured on a VPN instance.

    To implement load balancing among an Ethernet interface's static route and other static routes, configure the outbound interface and next hop.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >