7.3. IPv6UC Commands
7.3.1. ipv6 enable
Command Purpose
Use this command to enable ipv6 function. Use the no form of this command to disable ipv6 function.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
ipv6 enable
no ipv6 enable
Command Mode
Global Config
Default
Ipv6 function is disabled by default.
Usage
This command is used to enable the ipv6 function globally. Ipv6 packet should be processed as a L2 packet when ipv6 function is disabled.
Examples
The following example shows how to enable IPv6:
Switch# configure terminal
Switch(config)# ipv6 enable
7.3.2. max-static-v6routes
Command Purpose
To configure the maximum ipv6 static routes in system, use the max-static-v6routes command in Global Config mode. To configure the maximum static routes to default value, use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
max-static-v6routes COUNT
no max-static-v6routes
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
COUNT |
The count of maximum ipv6 static routes. |
1-65535 |
Command Mode
Global Config
Default
Please reference the current TCAM profile.
Usage
Users should not configure the maximum ipv6 static routes more than system profile of FIB. Also, users should not configure the maximum ipv6 static routes less than the current static routes count.
Examples
The following example displays how to change maximum ipv6 static routes to 10:
Switch# configure terminal
Switch(config)# max-static-v6routes 10
Related Commands
show ipv6 route
7.3.3. ipv6 route
Command Purpose
To establish ipv6 static routes, use the ipv6 route command in global configuration mode.
To remove ipv6 static routes, use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
ipv6 route vrf NAME DEST_PREFIX ( GLOBAL_PREFIX | LINK_LOCAL IFNAME | IFNULL ) ( ADMIN_DISTANCE | )
ipv6 route DEST_PREFIX ( GLOBAL_PREFIX | LINK_LOCAL IFNAME | IFTUNNEL | IFNULL ) ( ADMIN_DISTANCE | )
no ipv6 route vrf NAME DEST_PREFIX ( GLOBAL_PREFIX | LINK_LOCAL ( IFNAME | ) | IFNULL | )
no ipv6 route DEST_PREFIX ( GLOBAL_PREFIX | LINK_LOCAL ( IFNAME | ) | IFTUNNEL | IFNULL | )
ipv6 route ( vrf NAME | ) DEST_PREFIX ( GLOBAL_PREFIX | IFNULL ) ( ADMIN_DISTANCE | ) ( track NUMBER | )
no ipv6 route ( vrf NAME | ) DEST_PREFIX ( GLOBAL_PREFIX | IFNULL | ) ( track | )
( no | ) ipv6 route ( vrf NAME | ) DEST_PREFIX REMOTE-VTEP
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
vrf NAME |
VRF instance name |
Up to 15 characters |
DEST_PREFIX |
IPv6 route prefix (in format X:X::X:X/M) for the destination |
IPv6 Address and mask length in X:X::X:X/M format |
GLOBAL_PREFIX |
IPv6 route global unicast address (in format X:X::X:X) for the nexthop |
IPv6 Address in X:X::X:X format |
LINK_LOCAL |
IPv6 route link local address (FE80::/10) for the nexthop |
IPv6 Address in X:X::X:X format |
IFNAME |
Outgoing interface for the ipv6 route |
Support physical/aggregation/vlan/tunnel ports |
IFTUNNEL |
Tunnel interface name for the ipv6 route |
tunnel <0-1023> |
IFNULL |
null 0 interface for the ipv6 route |
null 0 |
ADMIN_DISTANCE |
(Optional) An administrative distance. The default administrative distance for a static route is 1. This configuration is optional. |
1-255 |
track NUMBER |
Specify the ID of track object |
1-500 |
REMOTE-VTEP |
Overlay tunnel of the next hop that can be used to reach that network. |
remote-vtep index |
Command Mode
Global Config
Default
There is not any static IPv6 route configured by default.
Usage
None
Examples
Switch# configure terminal
Switch(config)# ipv6 route 3001::1/64 fe80::1234 eth-0-2
Switch(config)# ipv6 route vrf a 3002::1/64 3001::1
Related Commands
show ipv6 route
7.3.4. ipv6 address
Command Purpose
To set an IPv6 address for an interface, use the ipv6 address command in interface configuration mode. To remove an IPv6 address, use the no form of this command.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
ipv6 address GOLBAL_FREFIX ( eui-64 | )
no ipv6 address GOLBAL_FREFIX ( eui-64 | )
ipv6 address LINK-LOCAL link-local
no ipv6 address LINK-LOCAL link-local
ipv6 address auto link-local
no ipv6 address auto link-local
no ipv6 address
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
GOLBAL_FREFIX |
Global IPv6 address and prefix length. In X:X::X:X/M format |
IPv6 Address and mask length in X:X::X:X/M format |
LINK-LOCAL |
Link-local IPv6 address. In X:X::X:X format |
IPv6 Address in X:X::X:X format |
Command Mode
Interface Configuration
Default
There is not any ipv6 address on the interface by default.
Usage
Use this command to configure ipv6 address on the interface. Use the no form of this command to remove the ipv6 address. This configuration should not affect the ipv4 functions and other ipv6 configuration on the interface.
The maximum count of the Link-local address is 1; the maximum count of the global address address is 8.
Use this command with the keyword “auto link-local” to automatically generate a link-local address, if there is no link-local address on this interface. Use the no form of this command with the keyword “auto link-local” to remove the automatically generated link-local address, if there is only that automatically generated link-local address left on this interface.
Use this command with a specified ipv6 address (e.g. 3ffe:506::1/48) to configure a global unicast ipv6 address. Use this command with the keyword “eui-64” to generate interface id automatically by the eui-64 algorithm. The global address should not be same. Use the no form of this command the remove the specified ipv6 global unicast address.
If there is no link-local address on the interface, system should automatically generate one when configure a global unicast ipv6 address.
Use this command with a specified ipv6 address (e.g. fe80::1) and a keyword “link-local” to configure a link-local address. Use the no form of this command with the specified ipv6 address and the keyword “link-local” to remove the specified ipv6 link-local address. The specified link-local address has a higher priority than the automatically generated the link-local address, that can overwrite the automatically generated one.
Use the no form of this command without any parameters or keywords to remove all ipv6 addresses on the interface, include ipv6 global addresses and link-local addresses.
Examples
The following example shows how to configure link local address and global unicast address:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ipv6 address fe80::1233 link-local
Switch(config-if)# ipv6 address 3001:1::1234/64
Related Commands
show ipv6 interface
7.3.5. show ipv6 route
Command Purpose
Use this command to show the ipv6 routes.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show ipv6 route ( vrf NAME | ) ( database | )
show ipv6 route ( vrf NAME | ) ( database | ) ( bgp | connected | ospf | rip | static )
show ipv6 route ( vrf NAME | ) IPV6_ADDRESS
show ipv6 route ( vrf NAME | ) IPV6_PREFIX
show ipv6 route ( vrf NAME | )
show ipv6 route ( vrf NAME | ) summary
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
IPV6_PREFIX |
IPv6 prefix in X:X::X:X/M format |
IPv6 Address and mask length in X:X::X:X/M format |
Command Mode
Privileged EXEC
Default
None
Usage
Use this command to show the ipv6 routes
Examples
The following example shows the result of this command:
Switch# show ipv6 route
IPv6 Routing Table
Codes: C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B -BGP
[*] - [AD/Metric]
Timers: Uptime
S 3001::/64 \[1/0\]
via fe80::1234, eth-0-2, 04:09:56
C 3001:1::/64
via ::, eth-0-1, 01:39:07
C 3001:1::1234/128
via ::1, eth-0-1, 01:39:07
S 3002::/64 \[1/0\]
via 3001::1 (recursive via fe80::1234), eth-0-2, 04:09:19
C 3ffe:2::/64
via ::, eth-0-2, 1d19h37m
C 3ffe:2::10/128
via ::1, eth-0-2, 1d19h37m
C fe80::/10
via ::, Null0, 1d19h53m
Switch# show ipv6 route database
IPv6 Routing Table
Codes: C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP
[*] - [AD/Metric]
> - selected route, * - FIB route, p - stale info
Timers: Uptime
S > 3001::/64 [1/0]
* via fe80::1234, eth-0-2, 04:10:45
C > 3001:1::/64
* via ::, eth-0-1, 01:39:56
C > 3001:1::1234/128
* via ::1, eth-0-1, 01:39:56
S > 3002::/64 [1/0]
* via 3001::1 (recursive via fe80::1234), eth-0-2, 04:10:08
C > 3ffe:2::/64
* via ::, eth-0-2, 1d19h37m
C > 3ffe:2::10/128
* via ::1, eth-0-2, 1d19h37m
C > fe80::/10
* via ::, Null0, 1d19h54m
Switch# show ipv6 route static
IPv6 Routing Table
Codes: C - connected, S - static, R - RIP, O - OSPF, I - IS-IS, B - BGP
[*] - [AD/Metric]
Timers: Uptime
S 3001::/64 [1/0]
via fe80::1234, eth-0-2, 04:11:42
S 3002::/64 [1/0]
via 3001::1 (recursive via fe80::1234), eth-0-2, 04:11:05
Switch# show ipv6 route 3001::64
Routing entry for 3001::/64
Known via "static", distance 1, metric 0, best
Last update 04:12:32 ago
* via fe80::1234, eth-0-2
Switch# show ipv6 route 3001::64/64
Routing entry for 3001::/64
Known via "static", distance 1, metric 0, best
Last update 04:13:03 ago
* via fe80::1234, eth-0-2
Switch# show ipv6 route summary
IPv6 routing table name is Default-IPv6-Routing-Table(0)
IPv6 routing table maximum-paths is 8
Route source networks
connected 5
static 2
Total 7
Related Commands
ipv6 route
7.3.6. show ipv6 interface
Command Purpose
Use this command to show the ipv6 ipv6 statues on the interface.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
show ipv6 interface ( IFNAME | ) ( brief | )
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
IFNAME |
IPv6 interface status and configuration |
Support physical/aggregation/loopback/vlan/tunnel ports |
brief |
Brief summary of IPv6 status and configuration |
- |
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following example shows the result of this command:
Switch# show ipv6 interface eth-0-1
Interface eth-0-1
Interface current state: UP
The maximum transmit unit is 1500 bytes
IPv6 is enabled, link-local address is fe80::1233
Global unicast address(es):
3001:1::1234, subnet is 3001:1::/64
Joined group address(es):
ff02::1:ff00:1234
ff02::1:ff00:0
ff02::1:ff00:1233
ff02::2
ff02::1
ICMP error messages limited to one every 2000 milliseconds
ICMP redirects are always sent
ND DAD is enabled, number of DAD attempts: 1
ND router advertisement is disabled
ND reachable time is 30000 milliseconds
ND advertised reachable time is 0 milliseconds
ND retransmit interval is 1000 milliseconds
ND advertised retransmit interval is 0 milliseconds
ND router advertisements max interval: 600 secs
ND router advertisements min interval: 198 secs
ND router advertisements live for 1800 seconds
ND router advertisements hop-limit is 0
Hosts use stateless autoconfig for addresses.
Switch # show ipv6 interface eth-0-1 brief
*down: administratively down
Interface Status Protocol IPv6 address
eth-0-1 up up 3001:1::1234
fe80::1233
Switch# show ipv6 interface eth-0-1 brief
*down: administratively down
Interface Status Protocol IPv6 address
eth-0-1 up up 3001:1::1234
fe80::1233
Related Commands
ipv6 enable
ipv6 address
7.3.7. ipv6 verify unicast reverse-path
Command Purpose
Use this command to enable urpf (unicast reverse path forwarding) on the interface. Use the no form of this command to disable urpf on the interface.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
ipv6 verify unicast reverse-path
no ipv6 verify unicast reverse-path
Command Mode
Interface Configuration
Default
Urpf is disabling on the interface by default.
Usage
Use this command to enable urpf (unicast reverse path forwarding) on the interface. Use the no form of this command to disable urpf on the interface.
Examples
The following example shows how to enable URPF for IPv6:
Switch# configure terminal
Switch(config)# interface eth-0-1
Switch(config-if)# ipv6 verify unicast reverse-path
Related Commands
show ipv6 interface
7.3.8. ipv6 icmp error-interval
Command Purpose
Use this command to set the ipv6 icmp error-interval. Use the no form of this command to set the ipv6 icmp error-interval to default.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
no ipv6 icmp error-interval ERROR_INTERVAL
no ipv6 icmp error-interval
Parameter |
Parameter Description |
Parameter Value |
---|---|---|
error-interval |
ICMPv6 Error message interval. |
0–2147483647 ms |
Command Mode
Global Config
Default
1000 milliseconds.
Usage
None
Examples
The following example shows how to set the ICMPv6 error interval:
Switch# configure terminal
Switch(config)# ipv6 icmp error-interval 2000
Related Commands
None
7.3.9. clear ipv6 route static
Command Purpose
Use this command to clear static ipv6 routes.
Prerequisites
Platform |
Software |
License |
Comments |
---|---|---|---|
AQ-N3000 |
7.0 |
Base |
|
AQ-N5000 |
7.0 |
Base |
|
AQ-N6000 |
7.0 |
Base |
Command Syntax
clear ipv6 route static
Command Mode
Privileged EXEC
Default
None
Usage
None
Examples
The following example shows how to clear ipv6 static routes:
Switch# clear ipv6 route static
Related Commands
None