Static routes are manually configured. 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.

Figure
1-1 Network diagram for IPv6 static route
configuration
With IPv6 static routes configured, all
hosts and switches can communicate with each other.
|
Product series
|
Software version
|
Hardware version
|
|
S3610 Series Ethernet Switches
|
Release 5301
|
All versions
|
|
S5510 Series Ethernet Switches
|
Release 5301
|
All versions
|
|
S5500-SI Series Ethernet Switches
|
Release 1207
|
All versions, except S5500-20TP-SI
|
|
Release 1301
|
S5500-20TP-SI
|
|
S5500-EI Series Ethernet Switches
|
Release 2102
|
All versions
|
|
S7500E Series Ethernet Switches
|
Release 6100
|
All versions
|
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
# Configure the
default IPv6 static route on Switch C.
<SwitchC>
system-view
[SwitchC] ipv6
[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 : 7 Routes : 7
Destination:
::/0 Protocol : Static
NextHop :
4::2 Preference: 60
Interface :
Vlan200 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 :
Vlan100 Cost : 0
Destination:
1::1/128 Protocol : Direct
NextHop :
::1 Preference: 0
Interface :
InLoop0 Cost : 0
Destination:
4::/64 Protocol : Direct
NextHop :
4::1 Preference: 0
Interface :
Vlan200 Cost : 0
Destination:
4::1/128 Protocol : Direct
NextHop :
::1 Preference: 0
Interface :
InLoop0 Cost : 0
Destination:
FE80::/10 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
l
Configure Switch A.
#
ipv6
#
ipv6
route-static :: 0 4::2
#
l
Configure Switch B.
#
ipv6
#
ipv6
route-static 1:: 64 4::1
ipv6
route-static 3:: 64 5::1
#
l
Configure Switch C.
#
ipv6
#
ipv6
route-static :: 0 5::2
#
When configuring a static route, you can
specify the output interface. If the output interface is a VLAN interface, the
next hop address must be specified.
RIP next generation (RIPng) is an extension
of RIP-2 for IPv4. Most RIP concepts are applicable in RIPng.
RIPng for IPv6 made the following changes
to RIP:
l
UDP port number: RIPng uses UDP port 521 for
sending and receiving routing information.
l
Multicast address: RIPng uses FF02:9 as the
link-local multicast address.
l
Destination Prefix: 128-bit destination address
prefix.
l
Next hop: 128-bit IPv6 address.
l
Source address: RIPng uses FE80::/10 as the
link-local source address

Figure
1-2 Network diagram for RIPng configuration
As shown in the figure above, all switches
run RIPng. Configure Switch B to filter the route (3::/64) learned from Switch
C so that the route will not be added to the routing table of Switch B and
Switch B will not forward it to Switch A.
|
Product series
|
Software version
|
Hardware version
|
|
S3610 Series Ethernet Switches
|
Release 5301
|
All versions
|
|
S5510 Series Ethernet Switches
|
Release 5301
|
All versions
|
|
S5500-SI Series Ethernet Switches
|
Release 1207
|
All versions, except S5500-20TP-SI
|
|
Release 1301
|
S5500-20TP-SI
|
|
S5500-EI Series Ethernet Switches
|
Release 2102
|
All versions
|
|
S7500E Series Ethernet Switches
|
Release 6100
|
All versions
|
1)
Configure the IPv6 address for each interface (omitted)
2)
Configure basic RIPng functions.
# Configure Switch A.
<SwitchA>
system-view
[SwitchA] ipv6
[SwitchA] ripng
1
[SwitchA-ripng-1]
quit
[SwitchA] interface
vlan-interface 100
[SwitchA-Vlan-interface100]
ripng 1 enable
[SwitchA-Vlan-interface100]
quit
[SwitchA] interface
vlan-interface 400
[SwitchA-Vlan-interface400]
ripng 1 enable
[SwitchA-Vlan-interface400]
quit
# Configure Switch B.
<SwitchB>
system-view
[SwitchB] ipv6
[SwitchB] ripng
1
[SwitchB-ripng-1]
quit
[SwitchB] interface
vlan-interface 200
[SwitchB-Vlan-interface200]
ripng 1 enable
[SwitchB-Vlan-interface200]
quit
[SwitchB] interface
vlan-interface 100
[SwitchB-Vlan-interface100]
ripng 1 enable
[SwitchB-Vlan-interface100]
quit
# Configure Switch C.
<SwitchC>
system-view
[SwitchC]
ipv6
[SwitchC] ripng
1
[SwitchC-ripng-1]
quit
[SwitchC] interface
vlan-interface 200
[SwitchC-Vlan-interface200]
ripng 1 enable
[SwitchC-Vlan-interface200]
quit
[SwitchC] interface
vlan-interface 500
[SwitchC-Vlan-interface500]
ripng 1 enable
[SwitchC-Vlan-interface500]
quit
[SwitchC] interface
vlan-interface 600
[SwitchC-Vlan-interface600]
ripng 1 enable
[SwitchC-Vlan-interface600]
quit
# Display the routing table of Switch B.
[SwitchB] display
ripng 1 route
Route
Flags: A - Aging, S - Suppressed, G - Garbage-collect
----------------------------------------------------------------
Peer
FE80::20F:E2FF:FE23:82F5 on Vlan-interface100
Dest
1::/64,
via
FE80::20F:E2FF:FE23:82F5, cost 1, tag 0, A, 6 Sec
Dest
2::/64,
via
FE80::20F:E2FF:FE23:82F5, cost 1, tag 0, A, 6 Sec
Peer
FE80::20F:E2FF:FE00:100 on Vlan-interface200
Dest
3::/64,
via
FE80::20F:E2FF:FE00:100, cost 1, tag 0, A, 11 Sec
Dest
4::/64,
via
FE80::20F:E2FF:FE00:100, cost 1, tag 0, A, 11 Sec
Dest
5::/64,
via FE80::20F:E2FF:FE00:100, cost 1, tag
0, A, 11 Sec
# Display the RIPng routing table of Switch
A.
[SwitchA] display
ripng 1 route
Route
Flags: A - Aging, S - Suppressed, G - Garbage-collect
----------------------------------------------------------------
Peer
FE80::200:2FF:FE64:8904 on Vlan-interface100
Dest
1::/64,
via
FE80::200:2FF:FE64:8904, cost 1, tag 0, A, 31 Sec
Dest
4::/64,
via
FE80::200:2FF:FE64:8904, cost 2, tag 0, A, 31 Sec
Dest
5::/64,
via
FE80::200:2FF:FE64:8904, cost 2, tag 0, A, 31 Sec
Dest
3::/64,
via
FE80::200:2FF:FE64:8904, cost 1, tag 0, A, 31 Sec
3)
Configure Switch B to filter incoming and
outgoing routes.
[SwitchB] acl
ipv6 number 2000
[SwitchB-acl6-basic-2000]
rule deny source 3::/64
[SwitchB-acl6-basic-2000]
rule permit
[SwitchB-acl6-basic-2000]
quit
[SwitchB] ripng
1
[SwitchB-ripng-1]
filter-policy 2000 import
[SwitchB-ripng-1]
filter-policy 2000 export
[SwitchB-ripng-1]
quit
# Display RIPng routing tables of Switch B
and Switch A.
[SwitchB] display
ripng 1 route
Route
Flags: A - Aging, S - Suppressed, G - Garbage-collect
----------------------------------------------------------------
Peer
FE80::20F:E2FF:FE23:82F5 on Vlan-interface100
Dest
1::/64,
via
FE80::20F:E2FF:FE23:82F5, cost 1, tag 0, A, 2 Sec
Dest
2::/64,
via
FE80::20F:E2FF:FE23:82F5, cost 1, tag 0, A, 2 Sec
Peer
FE80::20F:E2FF:FE00:100 on Vlan-interface200
Dest
4::/64,
via
FE80::20F:E2FF:FE00:100, cost 1, tag 0, A, 5 Sec
Dest
5::/64,
via
FE80::20F:E2FF:FE00:100, cost 1, tag 0, A, 5 Sec
[SwitchA] display
ripng 1 route
Route
Flags: A - Aging, S - Suppressed, G - Garbage-collect
----------------------------------------------------------------
Peer
FE80::20F:E2FF:FE00:1235 on Vlan-interface100
Dest
1::/64,
via
FE80::20F:E2FF:FE00:1235, cost 1, tag 0, A, 2 Sec
Dest
4::/64,
via
FE80::20F:E2FF:FE00:1235, cost 2, tag 0, A, 2 Sec
Dest
5::/64,
via FE80::20F:E2FF:FE00:1235, cost 2,
tag 0, A, 2 Sec
l
Configure Switch A.
#
ipv6
#
vlan 100
#
vlan 400
#
interface
Vlan-interface100
ipv6
address 1::1/64
ripng 1
enable
#
interface
Vlan-interface400
ipv6
address 2::1/64
ripng 1
enable
#
ripng 1
#
l
Configure Switch B.
#
ipv6
#
vlan 100
#
vlan 200
#
acl ipv6
number 2000
rule 0
deny source 3::/64
rule 5
permit
#
interface
Vlan-interface100
ipv6
address 1::2/64
ripng 1
enable
#
interface
Vlan-interface200
ipv6
address 3::1/64
ripng 1
enable
#
ripng 1
filter-policy
2000 import
filter-policy
2000 export
#
l
Configure Switch C.
#
ipv6
#
vlan 200
#
vlan 500
#
vlan 600
#
interface
Vlan-interface200
ipv6
address 3::2/64
ripng 1
enable
#
interface
Vlan-interface500
ipv6
address 5::1/64
ripng 1
enable
#
interface
Vlan-interface600
ipv6
address 4::1/64
ripng 1
enable
#
ripng 1
#
If RIPng is not enabled on an interface,
the interface will not send and receive any RIPng route.

Figure 1-3 Network diagram for RIPng
route redistribution
As shown in Figure 1-3, two RIPng processes are
running on Switch B, which communicates with Switch A through RIPng 100 and
with Switch C through RIPng 200.
Configure route redistribution on Switch B,
letting the two RIPng processes redistribute routes from each other. Set the
default cost of redistributed routes from RIPng 200 to 3.
|
Product series
|
Software version
|
Hardware version
|
|
S3610 Series Ethernet Switches
|
Release 5301
|
All versions
|
|
S5510 Series Ethernet Switches
|
Release 5301
|
All versions
|
|
S7500E Series Ethernet Switches
|
Release 6100
|
All versions
|
1)
Configure IPv6 addresses for the interfaces
(omitted).
# Enable RIPng 100 on Switch A.
<SwitchA>
system-view
[SwitchA]
ripng 100
[SwitchA-ripng-100]
quit
[SwitchA]
interface vlan-interface 100
[SwitchA-Vlan-interface100]
ripng 100 enable
[SwitchA-Vlan-interface100]
quit
[SwitchA]
interface vlan-interface 200
[SwitchA-Vlan-interface200]
ripng 100 enable
# Enable RIP 100 and RIP 200 on Switch B.
<SwitchB>
system-view
[SwitchB]
ripng 100
[SwitchB-ripng-100]
quit
[SwitchB]
interface vlan-interface 100
[SwitchB-Vlan-interface100]
ripng 100 enable
[SwitchB-Vlan-interface100]
quit
[SwitchB]
ripng 200
[SwitchB-ripng-200]
quit
[SwitchB]
interface vlan-interface 300
[SwitchA-Vlan-interface300]
ripng 200 enable
# Enable RIPng 200 on Switch C.
<SwitchC>
system-view
[SwitchC]
ripng 200
[SwitchC]
interface vlan-interface 300
[SwitchC-Vlan-interface300]
ripng 200 enable
[SwitchC-Vlan-interface300]
quit
[SwitchC]
interface vlan-interface 400
[SwitchC-Vlan-interface400]
ripng 200 enable
[SwitchC-Vlan-interface400]
quit
# # Display the IPv6 routing table of
Switch A.
[SwitchA] display
ipv6 routing-table
Routing
Table :
Destinations : 6 Routes : 6
Destination:
::1/128 Protocol : Direct
NextHop
: ::1 Preference: 0
Interface
: InLoop0 Cost : 0
Destination:
1::/64 Protocol : Direct
NextHop
: 1::1 Preference: 0
Interface
: Vlan100 Cost : 0
Destination:
1::1/128 Protocol : Direct
NextHop
: ::1 Preference: 0
Interface
: InLoop0 Cost : 0
Destination:
2::/64 Protocol : Direct
NextHop
: 2::1 Preference: 0
Interface
: Vlan200 Cost : 0
Destination:
2::1/128 Protocol : Direct
NextHop
: ::1 Preference: 0
Interface
: InLoop0 Cost : 0
Destination:
FE80::/10 Protocol : Direct
NextHop
: :: Preference: 0
Interface
: NULL0 Cost : 0
2)
Configure RIPng route redistribution.
# Configure route redistribution between
the two RIPng processes on Switch B.
[SwitchB]
ripng 100
[SwitchB-ripng-100]
default cost 3
[SwitchB-ripng-100]
import-route ripng 200
[SwitchB-ripng-100]
quit
[SwitchB]
ripng 200
[SwitchB-ripng-200]
import-route ripng 100
[SwitchB-ripng-200]
quit
# Display the IPv6 routing table of Switch
A.
[SwitchA] display
ipv6 routing-table
Routing
Table :
Destinations : 7 Routes : 7
Destination:
::1/128 Protocol : Direct
NextHop
: ::1 Preference: 0
Interface
: InLoop0 Cost : 0
Destination:
1::/64 Protocol : Direct
NextHop
: 1::1 Preference: 0
Interface
: Vlan100 Cost : 0