Creating IPv6 Static Routes

To create an IPv6 static route, configure its destination IP address, outbound interface, and next hop.

Context

When creating a static route, you can specify an outbound interface, a next hop address, or both of them, depending on actual requirements.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Configure an IPv6 static route.

    • Run one of the following commands to configure an IPv6 static route for the public network:
      • ipv6 route-static dest-ipv6-address prefix-length interface-type interface-number [ nexthop-ipv6-address ] [ preference preference | tag tag ] * [ description text ]
      • ipv6 route-static dest-ipv6-address prefix-length vpn-instance vpn-instance-name nexthop-ipv6-address [ preference preference | tag tag ] * [ description text ]
      • ipv6 route-static dest-ipv6-address prefix-length vpn-instance vpn-instance-name [ preference preference | tag tag ] * [ description text ]
    • Run one of the following commands to configure an IPv6 static route for a VPN instance:
      • ipv6 route-static vpn-instance vpn-source-name dest-ipv6-address prefix-length { interface-name | interface-type interface-number } [ nexthop-ipv6-address ] [ preference preference | tag tag ] * [ description text ]
      • ipv6 route-static vpn-instance vpn-source-name dest-ipv6-address prefix-length { vpn-instance vpn-instance-name nexthop-ipv6-address | nexthop-ipv6-address [ public ] } [ preference preference | tag tag ] * [ description text ]
      • ipv6 route-static vpn-instance vpn-source-name dest-ipv6-address prefix-length { vpn-instance vpn-instance-name | public } [ preference preference | tag tag ] * [ description text ]
    • Run ipv6 route-static topology topology-name dest-ipv6-address prefix-length { interface-type interface-number [ nexthop-ipv6-address ] | nexthop-ipv6-address } [ preference preference | tag tag ] * [ no-advertise | no-install ] [ description text ]

      An IPv6 route is configured in a non-base topology instance.

  3. Run commit

    The configuration is committed.

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