144
default-gateway ipv6-gateway-address
: Specifies the IPv6 address of the default gateway. If you
specify this option, the command not only assigns an IPv6 gateway address to the interface, but also
specifies a default route for the device. For this option to take effect, make sure the
ipv6-gateway-address
setting is in the same segment with the
ipv6-address
setting.
Usage guidelines
You can use either of the following methods to assign an IPv6 global unicast address to
VLAN-interface 1:
•
Auto
—Automatically generates an IPv6 global unicast address through stateless
autoconfiguration by using the
ipsetup ipv6 auto
command.
•
Manual
—Allows you to use the
ipsetup ipv6 address
command to assign an IPv6 global
unicast address to this interface.
Whichever method is used, the newly obtained IPv6 address overwrites the existing IPv6 address.
Examples
# Assign 2::2 with prefix length 64 to VLAN-interface 1, and specify 2::3 as the default gateway.
<Sysname> ipsetup ipv6 address 2::2 64 default-gateway 2::3
Related commands
ipsetup ipv6 auto
ipsetup ipv6 auto
Use
ipsetup ipv6 auto
to configure VLAN-interface 1 to obtain an IPv6 global unicast address
through stateless autoconfiguration.
Syntax
ipsetup ipv6 auto
Default
No IPv6 global unicast address can be obtained for VLAN-interface 1 through stateless
autoconfiguration.
Views
User view
Predefined user roles
network-admin
Usage guidelines
You can use either of the following methods to assign an IPv6 global unicast address to
VLAN-interface 1:
•
Auto
—Automatically generates an IPv6 global unicast address through stateless
autoconfiguration by using the
ipsetup ipv6 auto
command.
•
Manual
—Allows you to use the
ipsetup ipv6 address
command to assign an IPv6 global
unicast address to this interface.
Whichever method is used, the newly obtained IPv6 address overwrites the existing IPv6 address.
Examples
# Configure VLAN-interface 1 to obtain an IPv6 global unicast address through stateless
autoconfiguration.
<Sysname> ipsetup ipv6 auto