- Table of Contents
-
- H3C S9500 Operation Manual-Release2132[V2.03]-03 IP Routing Volume
- 00-1Cover
- 01-IP Routing Overview
- 02-BGP Configuration
- 03-IS-IS Configuration
- 04-OSPF Configuration
- 05-RIP Configuration
- 06-Routing Policy Configuration
- 07-Static Routing Configuration
- 08-IPv6 BGP Configuration
- 09-IPv6 IS-IS Configuration
- 10-IPv6 OSPFv3 Configuration
- 11-IPv6 RIPng Configuration
- 12-IPv6 Static Routing Configuration
- Related Documents
-
Title | Size | Download |
---|---|---|
12-IPv6 Static Routing Configuration | 80.1 KB |
Table of Contents
Chapter 1 IPv6 Static Routing Configuration
1.1 Introduction to IPv6 Static Routing
1.1.1 Features of IPv6 Static Routes
1.2 Configuring an IPv6 Static Route
1.2.1 Configuration prerequisites
1.2.2 Configuring an IPv6 Static Route
1.3 Displaying and Maintaining IPv6 Static Routes
1.4 IPv6 Static Routing Configuration Example
Chapter 1 IPv6 Static Routing Configuration
When configuring IPv6 Static Routing, go to these sections for information you are interested in:
l Introduction to IPv6 Static Routing
l Configuring an IPv6 Static Route
l Displaying and Maintaining IPv6 Static Routes
l IPv6 Static Routing Configuration Example
& Note:
The term “router” in this document refers to either a router in a generic sense or an Ethernet switch running routing protocols.
1.1 Introduction to IPv6 Static Routing
Static routes are special routes that are manually configured by network administrators. They work well in simple networks. Configuring and using them properly can improve the performance of networks and guarantee enough bandwidth for important applications.
However, static routes also have shortcomings: any topology changes could result in unavailable routes, requiring the network administrator to manually configure and modify the static routes.
1.1.1 Features of IPv6 Static Routes
Similar to IPv4 static routes, IPv6 static routes work well in simple IPv6 network environments.
Their major difference lies in the destination and next hop addresses. IPv6 static routes use IPv6 addresses whereas IPv4 static routes use IPv4 addresses. Currently, IPv6 static routes do not support VPN instance.
1.1.2 Default IPv6 Route
The IPv6 static route that has the destination address configured as “::/0” (indicating 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.
1.2 Configuring an IPv6 Static Route
In small IPv6 networks, IPv6 static routes can be used to forward packets. In comparison to dynamic routes, it helps to save network bandwidth.
1.2.1 Configuration prerequisites
l Configuring parameters for the related interfaces
l Configuring link layer attributes for the related interfaces
l Enabling IPv6 packet forwarding
l Ensuring that the neighboring nodes are IPv6 reachable
1.2.2 Configuring an IPv6 Static Route
To do… |
Use the commands… |
Remarks |
Enter system view |
System-view |
— |
Configure an IPv6 static route with the output interface being a broadcast or NBMA interface |
ipv6 route-static ipv6-address prefix-length [ interface-type interface-number ] nexthop-address [ preference preference-value ] |
Required Not configured by default The default preference of IPv6 static routes is 60. |
Configure an IPv6 static route with the output interface being a point-to-point interface |
ipv6 route-static ipv6-address prefix-length { interface-type interface-number | nexthop-address } [ preference preference-value ] |
& Note:
While configuring a static route, you can configure either the output interface or the next-hop address depending on the situations:
l If the output interface is a broadcast interface, or an NBMA interface, the next hop address must be specified.
l If the output interface is a point-to-point interface, you can specify either the output interface or the next hop address, but not both.
1.3 Displaying and Maintaining IPv6 Static Routes
To do… |
Use the command… |
Remarks |
Display IPv6 static route information |
display ipv6 routing-table protocol static [ inactive | verbose ] |
Available in any view |
Remove all IPv6 static routes |
delete ipv6 static-routes all |
Available in system view |
& Note:
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.
1.4 IPv6 Static Routing Configuration Example
I. Network requirements
With IPv6 static routes configured, all hosts and switches can interact with each other.
II. Network diagram
Figure 1-1 Network diagram for static routes (on switches)
III. 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 route-static :: 0 4::2
# Configure two IPv6 static routes on Switch B.
<SwitchB> system-view
[SwitchB] ipv6 route-static 1:: 64 4::1
[SwitchB] ipv6 route-static 3:: 64 5::1
# Configure the default IPv6 static route on Switch C.
<SwitchC> system-view
[SwitchC] ipv6 route-static :: 0 5::2
3) Configure the IPv6 addresses of hosts and gateways.
Configure the IPv6 addresses of all the hosts based upon the network diagram, configure the default gateway of Host A as 1::1, that of Host B as 2::1, and that of Host C as 3::1.
4) Display configuration information
# Display the IPv6 routing table of Switch A.
[SwitchA] display ipv6 routing-table
Routing Table :
Destinations : 5 Routes : 5
Destination : ::/128 Protocol : Static
NextHop : FE80::510A:0:8D7:1 Preference : 60
Interface : Vlan-interface200 Cost : 0
Destination : ::1/128 Protocol : Direct
NextHop : ::1 Preference : 0
Interface : InLoop0 Cost : 0
Destination : 1::/64 Protocol : Direct
NextHop : 1::1 Preference : 0
Interface : Vlan-interface100 Cost : 0
Destination : 1::1/64 Protocol : Direct
NextHop : ::1 Preference : 0
Interface : InLoop0 Cost : 0
Destination : FE80::/64 Protocol : Direct
NextHop : :: Preference : 0
Interface : NULL0 Cost : 0
# Verify the connectivity with the ping command.
[SwitchA] ping ipv6 3::1
PING 3::1 : 56 data bytes, press CTRL_C to break
Reply from 3::1
bytes=56 Sequence=1 hop limit=254 time = 63 ms
Reply from 3::1
bytes=56 Sequence=2 hop limit=254 time = 62 ms
Reply from 3::1
bytes=56 Sequence=3 hop limit=254 time = 62 ms
Reply from 3::1
bytes=56 Sequence=4 hop limit=254 time = 63 ms
Reply from 3::1
bytes=56 Sequence=5 hop limit=254 time = 63 ms
--- 3::1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 62/62/63 ms