User Manual

7.7 IPv6 route control
7.7.1 Set IPv6 static route
[Syntax]
ipv6 route ipv6_address/prefix_len gateway [number]
ipv6 route ipv6_address/prefix_len null [number]
no ipv6 route ipv6_address/prefix_len [gateway [number]]
no ipv6 route ipv6_address/prefix_len [null [number]]
[Keyword]
null : Discard packet without forwarding it
[Parameter]
ipv6_address : X:X::X:X
IPv6 address
Set this to :: (abbreviated 0:0:0:0:0:0:0:0) if specifying the default gateway
prefix_len : <1-127>
IPv6 prefix
Set this to 0 if specifying the default gateway
gateway : X:X::X:X
IPv6 address of gateway
If you specify an IPv6 link local address, you must also specify the output interface (fe80::X%vlanN
format)
number : <1-255>
Management route (priority order when selecting route) (if omitted: 1)
Lower numbers have higher priority.
[Input mode]
global configuration mode
[Description]
Adds a static route for IPv6.
If this command is executed with the "no" syntax, the specified route is deleted.
[Note]
For the default gateway setting, the static route setting takes priority over the RA setting.
This command cannot be used if the stack function is enabled.
[Example]
For the destination 2001:db8:2::/64, set the gateway to 2001:db8:1::1.
SWR2310(config)#ipv6 route 2001:db8:2::/64 2001:db8:1::1
Set the default gateway to fe80::2a0:deff:fe:1 on VLAN #1.
SWR2310(config)#ipv6 route ::/0 fe80::2a0:deff:fe:1%vlan1
7.7.2 Show IPv6 Forwarding Information Base
[Syntax]
show ipv6 route [ipv6_address[/prefix_len]]
[Parameter]
ipv6_address : X:X::X:X
IPv6 address
mask : <0-128>
Command Reference | Layer 3 functions | 217