OSPF unicast

来源:互联网 发布:结构化数据的存储方式 编辑:程序博客网 时间:2024/04/28 21:04
hostname r2

interface Loopback0
ip address 167.8.2.2 255.255.255.0

interface Serial0/0.2 point-to-point
ip address 167.8.25.2 255.255.255.0
ip nat outside
frame-relay interface-dlci 205

router ospf 1
router-id 255.255.255.255
network 167.8.2.2 0.0.0.0 area 0
network 167.8.25.0 0.0.0.255 area 0

ip nat outside source static 167.8.25.5 224.0.0.5


--------------------------------------------------------------------
hostname r5

interface Loopback0
ip address 167.8.5.5 255.255.255.0

interface Serial0/0
ip address 167.8.25.5 255.255.255.0
ip nat outside
encapsulation frame-relay
ip ospf network point-to-multipoint
ip ospf hello-interval 10
frame-relay map ip 167.8.25.2 502 broadcast
no frame-relay inverse-arp

router ospf 1
network 167.8.5.5 0.0.0.0 area 0
network 167.8.25.0 0.0.0.255 area 0

ip nat outside source static 167.8.25.2 224.0.0.5
-----------------------------------------------------------------------
r2#sh ip os nei

Neighbor ID Pri State Dead Time Address Interface
167.8.5.5 0 FULL/ - 00:00:36 167.8.25.5 Serial0/0.2
-----------------------------------------------------------------------
r5#sh ip os nei

Neighbor ID Pri State Dead Time Address Interface
255.255.255.255 0 FULL/ - 00:00:28 167.8.25.2 Serial0/0
------------------------------------------------------------------------
--------------------------------------------------------------
r2#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

167.8.0.0/16 is variably subnetted, 4 subnets, 2 masks
C 167.8.2.0/24 is directly connected, Loopback0
O 167.8.5.5/32 [110/65] via 167.8.25.5, 00:00:01, Serial0/0.2
O 167.8.25.5/32 [110/64] via 167.8.25.5, 00:00:01, Serial0/0.2
C 167.8.25.0/24 is directly connected, Serial0/0.2
---------------------------------------------------------------------------
r5#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

167.8.0.0/16 is variably subnetted, 3 subnets, 2 masks
C 167.8.5.0/24 is directly connected, Loopback0
O 167.8.2.2/32 [110/65] via 167.8.25.2, 00:01:20, Serial0/0
C 167.8.25.0/24 is directly connected, Serial0/0
------------------------------------------------------------------------------
r2#deb ip pac
IP packet debugging is on
r2#
*Aug 27 20:19:04.167: IP: s=167.8.25.5 (Serial0/0.2), d=167.8.25.2, len 80, rcvd 0
*Aug 27 20:19:08.943: IP: s=167.8.25.2 (local), d=224.0.0.5 (Serial0/0.2), len 80, sending broad/multicast
*Aug 27 20:19:14.167: IP: s=167.8.25.5 (Serial0/0.2), d=167.8.25.2, len 80, rcvd 0
*Aug 27 20:19:18.943: IP: s=167.8.25.2 (local), d=224.0.0.5 (Serial0/0.2), len 80, sending broad/multicast
*Aug 27 20:19:24.167: IP: s=167.8.25.5 (Serial0/0.2), d=167.8.25.2, len 80, rcvd 0
---------------------------------------------------------------------------------
r5#deb ip pac
IP packet debugging is on
r5#
*Apr 2 23:14:04.899: IP: s=167.8.25.2 (Serial0/0), d=167.8.25.5, len 80, rcvd 0
*Apr 2 23:14:10.120: IP: s=167.8.25.5 (local), d=224.0.0.5 (Serial0/0), len 80, sending broad/multicast
*Apr 2 23:14:14.900: IP: s=167.8.25.2 (Serial0/0), d=167.8.25.5, len 80, rcvd 0
*Apr 2 23:14:20.120: IP: s=167.8.25.5 (local), d=224.0.0.5 (Serial0/0), len 80, sending broad/multicast 
原创粉丝点击