hostname R1
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
interface Serial0
ip address 192.168.1.1 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint non-broadcast //将接口类型指定为点对多点非广播
frame-relay map ip 192.168.1.3 200
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
neighbor 192.168.1.3 //在点对多点非广播中必须指定 neighbor
neighbor 192.168.1.2 //可以从NBMA非广播类型跟这种类型得出一个总结:在非广播网络中必须指定邻居
R1#show ip ospf neig
Neighbor ID Pri State Dead Time Address Interface
2.2.2.2 0 FULL/ - 00:01:42 192.168.1.2 Serial0
3.3.3.3 0 FULL/ - 00:01:42 192.168.1.3 Serial0 //在点对多点网络类型中,没有DR和BDR的选举
R1#show ip route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/65] via 192.168.1.2, 00:01:08, Serial0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/65] via 192.168.1.3, 00:01:08, Serial0
192.168.1.0/24 is variably subnetted, 3 subnets, 2 masks
C 192.168.1.0/24 is directly connected, Serial0
O 192.168.1.3/32 [110/64] via 192.168.1.3, 00:01:08, Serial0
O 192.168.1.2/32 [110/64] via 192.168.1.2, 00:01:08, Serial0
!
hostname R2
!
!
ip subnet-zero
no ip domain-lookup
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
interface Serial1
ip address 192.168.1.2 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint non-broadcast
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R2#show ip ospf neig
Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 1 FULL/ - 00:01:47 192.168.1.1 Serial1
R2#show ip route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/65] via 192.168.1.1, 00:03:24, Serial1
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
3.0.0.0/32 is subnetted, 1 subnets
O 3.3.3.3 [110/129] via 192.168.1.1, 00:03:25, Serial1
192.168.1.0/24 is variably subnetted, 3 subnets, 2 masks
O 192.168.1.1/32 [110/64] via 192.168.1.1, 00:03:25, Serial1
C 192.168.1.0/24 is directly connected, Serial1
O 192.168.1.3/32 [110/128] via 192.168.1.1, 00:03:25, Serial1
!
hostname R3
!
interface Loopback0
ip address 3.3.3.3 255.255.255.0
!
interface Serial0
ip address 192.168.1.3 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint non-broadcast
frame-relay map ip 192.168.1.1 200
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R3#show ip ospf neig
Neighbor ID Pri State Dead Time Address Interface
1.1.1.1 1 FULL/ - 00:01:48 192.168.1.1 Serial0
R3#show ip route
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/65] via 192.168.1.1, 00:05:20, Serial0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/129] via 192.168.1.1, 00:05:21, Serial0
3.0.0.0/24 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Loopback0
192.168.1.0/24 is variably subnetted, 3 subnets, 2 masks
O 192.168.1.1/32 [110/64] via 192.168.1.1, 00:05:21, Serial0
C 192.168.1.0/24 is directly connected, Serial0
O 192.168.1.2/32 [110/128] via 192.168.1.1, 00:05:21, Serial0
本文出自 “xiaomu205.com” 博客,转载请与作者联系!