实验16 IPV6路由协议
实验任务一:配置RIPng
-
建立物理连接
-
设置ip地址
[PCB]ipv6 route-static :: 0 3::1
[PCA]ipv6 route-static :: 0 1::1
[PCA-GigabitEthernet0/0]ipv6 ad 1::2 64
[PCB-GigabitEthernet0/0]ipv6 ad 3::2 64
[RTA-GigabitEthernet0/0]ipv6 address 1::1 64
[RTA-GigabitEthernet0/1]ip ad 2::1 64
[RTB-GigabitEthernet0/0]ipv6 address 2::2 64
[RTB-GigabitEthernet0/1]ipv6 address 3::1 64
- 配置RIPng
[RTA]ripng
[RTA-GigabitEthernet0/0]ripng 1 enable
[RTA-GigabitEthernet0/1]ripng 1 enable
[RTA]display ipv6 routing-table
Destinations : 8 Routes : 8
//::1/128环回口
Destination: ::1/128 Protocol : Di rect
NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0
Destination: 1::/64 Protocol : Di rect
NextHop : :: Preference: 0
Interface : GE0/0 Cost : 0
Destination: 1::1/128 Protocol : Di rect
NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0
Destination: 2::/64 Protocol : Di rect
NextHop : :: Preference: 0
Interface : GE0/1 Cost : 0
Destination: 2::1/128 Protocol : Di rect
NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0
Destination: 3::/64 Protocol : RI Png
NextHop : FE80::8EC8:B2FF:FE57:205 Preference: 10 0
Interface : GE0/1 Cost : 1
//学习到的网段下一跳是链路本地地址
Destination: FE80::/10 Protocol : Di rect
NextHop : :: Preference: 0
Interface : InLoop0 Cost : 0
Destination: FF00::/8 Protocol : Di rect
NextHop : :: Preference: 0
Interface : NULL0 Cost : 0
[RTA]display ripng
Public VPN-instance name:
RIPng process: 1
Preference: 100
Checkzero: Enabled
Default cost: 0
Maximum number of load balanced routes: 32
Update time : 30 secs Timeout time : 180 secs
Suppress time : 120 secs Garbage-collect time : 120 secs
Update output delay: 20(ms) Output count: 3
Graceful-restart interval: 60 secs
Triggered Interval : 5 50 200
Number of periodic updates sent: 36
Number of triggered updates sent: 3
周期性发送路由30s。
display ripng 1 route
Route Flags: A - Aging, S - Suppressed, G - Garbage-collect, D - Direct
O - Optimal, F - Flush to RIB
Route Flags: A - Aging, S - Suppressed, G - Garbage-collect, D - Direct
O - Optimal, F - Flush to RIB
Peer FE80::8EC8:B2FF:FE57:205 on GigabitEthernet0/1
Destination 3::/64,
via FE80::8EC8:B2FF:FE57:205, cost 1, tag 0, AOF, 23 secs
Local route
Destination 2::/64,
via ::, cost 0, tag 0, DOF
Destination 1::/64,
via ::, cost 0, tag 0, DOF
Total: 2
Interface: GigabitEthernet0/0
Link-local address: FE80::8EC8:A8FF:FEA0:105
Split-horizon: On Poison-reverse: Off
MetricIn: 0 MetricOut: 1
Default route: Off
Update output delay: 20 (ms) Output count: 3
Interface: GigabitEthernet0/1
Link-local address: FE80::8EC8:A8FF:FEA0:106
Split-horizon: On Poison-reverse: Off
MetricIn: 0 MetricOut: 1
Default route: Off
Update output delay: 20 (ms) Output count: 3
[PCA]ping ipv6 3::2
Ping6(56 data bytes) 1::2 --> 3::2, press CTRL_C to break
56 bytes from 3::2, icmp_seq=0 hlim=62 time=2.000 ms
56 bytes from 3::2, icmp_seq=1 hlim=62 time=1.000 ms
56 bytes from 3::2, icmp_seq=2 hlim=62 time=1.000 ms
56 bytes from 3::2, icmp_seq=3 hlim=62 time=3.000 ms
56 bytes from 3::2, icmp_seq=4 hlim=62 time=2.000 ms
--- Ping6 statistics for 3::2 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 1.000/1.800/3.000/0.748 ms
[PCA]%May 25 01:19:54:645 2018 PCA PING/6/PING_STATISTICS: Ping6 statistics for 3::2: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 1.000/1.800/3.000/0.748 ms.
Hlim相当于IPV4的TTL跳数。
实验任务二:配置OSPFV3
1.建立物理连接
2.设置ip地址
3.配置ospfv3
[RTA-GigabitEthernet0/0]ospfv3 1 area 1
[RTA-GigabitEthernet0/1]ospfv3 1 area 0
[RTB-GigabitEthernet0/0]ospfv3 1 area 0
[RTB-GigabitEthernet0/1]ospfv3 1 area 0
注:必须在ospfv3配置router-id,不然不能建立起邻居。而且router-id的格式是ipv4,只要能标识路由器即可,而且也为了和ospfv2兼容,有利于向ipv6过渡。
[RTA]display ipv6 routing-table
Destinations : 8 Routes : 8
Destination: ::1/128 Protocol : Direct
NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0
Destination: 1::/64 Protocol : Direct
NextHop : :: Preference: 0
Interface : GE0/0 Cost : 0
Destination: 1::1/128 Protocol : Direct
NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0
Destination: 2::/64 Protocol : Direct
NextHop : :: Preference: 0
Interface : GE0/1 Cost : 0
Destination: 2::1/128 Protocol : Direct
NextHop : ::1 Preference: 0
Interface : InLoop0 Cost : 0
Destination: 3::/64 Protocol : O_INTRA
NextHop : FE80::8CD1:9AFF:FE6C:305 Preference: 10
Interface : GE0/1 Cost : 2
Destination: FE80::/10 Protocol : Direct
NextHop : :: Preference: 0
Interface : InLoop0 Cost : 0
Destination: FF00::/8 Protocol : Direct
NextHop : :: Preference: 0
Interface : NULL0 Cost : 0
[PCA]
ping ipv6 3::2
Ping6(56 data bytes) 1::2 --> 3::2, press CTRL_C to break
56 bytes from 3::2, icmp_seq=0 hlim=62 time=1.518 ms
56 bytes from 3::2, icmp_seq=1 hlim=62 time=1.363 ms
56 bytes from 3::2, icmp_seq=2 hlim=62 time=1.354 ms
56 bytes from 3::2, icmp_seq=3 hlim=62 time=2.095 ms
56 bytes from 3::2, icmp_seq=4 hlim=62 time=1.978 ms
--- Ping6 statistics for 3::2 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 1.354/1.662/2.095/0.314 ms
[PCA]%May 25 09:34:26:202 2018 PCA PING/6/PING_STATISTICS: Ping6 statistics for 3::2: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 1.354/1.662/2.095/0.314 ms.
- 查看OSPFV3协议查看
[RTA]display ospfv3
OSPFv3 Process 1 with Router ID 1.1.1.1
RouterID: 1.1.1.1 Router type: ABR
Route tag: 0
Route tag check: Disabled
Multi-VPN-Instance: Disabled
Type value of extended community attributes:
Domain ID : 0x0005
Route type: 0x0306
Router ID : 0x0107
Domain-id: 0.0.0.0
DN-bit check: Enabled
DN-bit set: Enabled
ISPF: Enabled
SPF-schedule-interval: 5 50 200
LSA generation interval: 5
LSA arrival interval: 1000
Transmit pacing: Interval: 20 Count: 3
Default ASE parameters: Tag: 1
Route preference: 10
ASE route preference: 150
SPF calculation count: 13
External LSA count: 0
LSA originated count: 11
LSA received count: 8
SNMP trap rate limit interval: 10 Count: 7
Area count: 2 Stub area count: 0 NSSA area count: 0
ExChange/Loading neighbors: 0
Area: 0.0.0.0
Area flag: Normal
SPF scheduled count: 3
ExChange/Loading neighbors: 0
LSA count: 6
Area: 0.0.0.1
Area flag: Normal
SPF scheduled count: 3
ExChange/Loading neighbors: 0
LSA count: 4
[RTA]display ospfv3 routing
OSPFv3 Process 1 with Router ID 1.1.1.1
I - Intra area route, E1 - Type 1 external route, N1 - Type 1 NSSA route
IA - Inter area route, E2 - Type 2 external route, N2 - Type 2 NSSA route
-
- Selected route
*Destination: 1::/64
Type : I Area : 0.0.0.1
AdvRouter : 1.1.1.1 Preference : 10
NibID : 0x23000001 Cost : 1
Interface : GE0/0 BkInterface: N/A
Nexthop : ::
BkNexthop : N/A
Status : Direct
*Destination: 2::/64
Type : I Area : 0.0.0.0
AdvRouter : 2.2.2.2 Preference : 10
NibID : 0x23000002 Cost : 1
Interface : GE0/1 BkInterface: N/A
Nexthop : ::
BkNexthop : N/A
Status : Direct
*Destination: 3::/64
Type : I Area : 0.0.0.0
AdvRouter : 2.2.2.2 Preference : 10
NibID : 0x23000003 Cost : 2
Interface : GE0/1 BkInterface: N/A
Nexthop : FE80::8CD1:9AFF:FE6C:305
BkNexthop : N/A
Status : Normal
Total: 3
Intra area: 3 Inter area: 0 ASE: 0 NSSA: 0