SWR2311P>show ipv6 interface brief
Interface IPv6-Address Admin-Status
Link-Status
vlan1 2001:db8:1::2/64
fe80::2a0:deff:fe:2/64 up up
vlan2 2001:db8:2::2/64
fe80::2a0:deff:fe:2/64 up
down
vlan3 unassigned up
down
7.6 IPv6 route control
7.6.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.
[Example]
For the destination 2001:db8:2::/64, set the gateway to 2001:db8:1::1.
SWR2311P(config)#ipv6 route 2001:db8:2::/64 2001:db8:1::1
Set the default gateway to fe80::2a0:deff:fe:1 on VLAN #1.
SWR2311P(config)#ipv6 route ::/0 fe80::2a0:deff:fe:1%vlan1
7.6.2 Show IPv6 Forwarding Information Base
[Syntax]
show
ipv6
route
[
ipv6_address
[/
prefix_len
]]
Command Reference | Layer 3 functions |
201