428
C
32: IP
6 S
HAPTER
V
Displaying and
Maintaining IPv6
Static Routes
IPv6 Static Routing
Configuration
Example
R
C
TATIC
OUTING
ONFIGURATION
To do...
Display IPv6 static route
information
Remove all IPv6 static routes
n
Using the undo ipv6 route-static command can delete a single IPv6 static route,
while using the delete ipv6 static-routes all command deletes all IPv6 static
routes including the default route.
Network requirements
With IPv6 static routes configured, all hosts and switches can interact with each
other.
Network diagram
Figure 138 Network diagram for static routes
Vlan- int100
1 ::1/64
Host A
1 ::2/64
Configuration procedure
1 Configure the IPv6 addresses of all VLAN interfaces (Omitted)
2 Configure IPv6 static routes.
# Configure the default IPv6 static route on Switch A.
<SwitchA> system-view
[SwitchA] ipv6
[SwitchA] ipv6 route-static :: 0 4::2
# Configure two IPv6 static routes on Switch B.
<SwitchB> system-view
[SwitchB] ipv6
[SwitchB] ipv6 route-static 1:: 64 4::1
[SwitchB] ipv6 route-static 3:: 64 5::1
Use the command...
display ipv6 routing-table
protocol static [ inactive |
verbose ]
delete ipv6 static-routes all Available in system view
Vlan -int400
2::1/64
Vlan-int200
4::2/64
Switch B
Vlan -int200
4::1/64
Switch A
Remarks
Available in any view
Host B
2::2/64
Vlan -int300
5::2 /64
Vlan-int300
5::1/64
Vlan -int500
3 ::1/64
Switch C
Host C
3::2/64