CLI Procedures - IPv6 Static Routes
This section includes some basic procedures for managing static routes using the CLI.
To show IPv6 static routes, run
show ipv6 route static
Codes: C - Connected, S - Static, B - BGP, Rg - RIPng, A - Aggregate,
O - OSPFv3 IntraArea (IA - InterArea, E - External),
K - Kernel Remnant, H - Hidden, P - Suppressed
S 3100:55::1/64 is directly connected
S 3200::/64 is a blackhole route
S 3300:123::/64 is a blackhole route
S 3600:20:20:11::/64 is directly connected, eth3
|
To add an IPv6 static route, run:
set ipv6 static-route <Destination> nexthop gateway <gw_ip> on set ipv6 static-route <Destination> nexthop gateway <gw_ip> interface <gw_if> on
- Destination IPv6 address. - Next hop gateway IPv6 address. - Next hop gateway interface name.
Example:
set ipv6 static-route 3100:192::0/64 nexthop gateway 3900:172::1 on
set ipv6 static-route 3100:192::0/64 nexthop gateway 3900:172::1 interface eth3 on
To add an IPv6 static route with paths and priorities, run:
set static-route <Destination> nexthop gateway <gw_id> priority <P Value>
- Destination IP address. - Next hop gateway IP address. - Integer between 1 and 8 (default =1)
Run this command for each path, assigning a priority value to each. You can define two or more paths using the same priority to specify a backup path with equal priority.
Example:
set ipv6 static-route 3100:192::0/64 nexthop gateway 3900:172::1 priority 3 on
To add an IPv6 static route where packets are dropped, run:
set ipv6 static-route <Destination> nexthop reject
set ipv6 static-route <Destination> nexthop blackhole
- Destination IP address. - Drops packets and sends an error message to the traffic source. - Drops packets, but does not send an error message.
Examples:
set ipv6 static-route 3100:192::0/64 nexthop reject
or
set ipv6 static-route 3100:192::0/64 nexthop blackhole
To delete an IPv6 route and all related paths, run:
set ipv6 static-route <Destination> off
- Destination IP address.
Example:
set ipv6 static-route 3100:192::0/64 off
To delete a path only, run:
set static-route <Destination> nexthop gateway <gw_ip> off
- Destination IP address. - Next hop gateway IP address or interface name.
Example:
set ipv6 static-route 3100:192::0/64 nexthop gateway 3900:172::1 off
|