4-2
ipv6 route-static
Syntax
ipv6 route-static
ipv6-address prefix-length
[
interface-type interface-number
]
nexthop-address
[
preference
preference-value
]
undo ipv6 route-static
ipv6-address prefix-length
[
interface-type interface-number
]
[
nexthop-address
] [
preference
preference-value
]
View
System view
Default Level
2: System level
Parameters
ipv6-address prefix-length
: IPv6 address and prefix length.
interface-type interface-number
: Interface type and interface number of the output interface.
nexthop-address
: Next hop IPv6 address.
preference-value
: Route preference value, in the range of 1 to 255. The default is 60.
Description
Use the
ipv6 route-static
command to configure an IPv6 static route.
Use the
undo ipv6 route-static
command to remove an IPv6 static route.
An IPv6 static route that has the destination address configured as
::/0
(a prefix length of 0) is the
default IPv6 route. If the destination address of an IPv6 packet does not match any entry in the routing
table, this default route will be used to forward the packet.
Related commands:
display ipv6 routing-table
,
delete ipv6 static-routes all
.
Examples
# Configure a static IPv6 route, with the destination address being 1:1:2::/24 and next hop being
1:1:3::1.
<Sysname> system-view
[Sysname] ipv6 route-static 1:1:2:: 24 1:1:3::1
Содержание E4510-48G
Страница 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Страница 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Страница 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Страница 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Страница 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Страница 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Страница 857: ...iii 7 Track Configuration Commands 7 1 Track Configuration Commands 7 1 display track 7 1 track nqa 7 2 ...
Страница 914: ...5 17 Sysname reset oam ...
Страница 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Страница 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...