你好,
1楼答案中,若把端口类型设置为Point-To-Point模式,是否需要在OSPF设置中手工指定OSPF的邻居关系?
没有硬件设备,只是用Cisco Packet Tracer5.3做了下实验,因为是
模拟器,所以难免在真实环境中有疏忽之处。
R1配置如下:
R1#show run
Building configuration...
Current configuration : 956 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1 //路由器命名
!
!
username R4 password 0 123 //此
用户名及密码用于路由器PPP链路上的PAP认证(R4和R1通过PPP链路相连)
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
shutdown
!
interface FastEthernet0/1 //此接口对应
拓扑图中的e0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0 //此接口对应拓扑图中的s0,用于
帧中继连接
ip address 10.0.1.1 255.255.255.0
encapsulation frame-relay
frame-relay map ip 10.0.1.2 102 broadcast //帧中继是在二层根据DLCI号寻址,这里手工指定DLCI对应的
IP地址 frame-relay map ip 10.0.1.3 103 broadcast
frame-relay lmi-type ansi
no frame-relay inverse-arp //关闭接口的ARP逆向解析,即禁止本地DLCI向帧中继交换机发出反向地址解析,例如DLCI“102”对应的IP地址为“10.0.1.2”,该接口有两个DLCI号,动态解析在多链路环境下容易出错,所以建议关闭,而是手工指定。
ip ospf network broadcast //帧中继接口默认是NBMA(非广播多点接入类型),而OSPF的邻居关系是通过广播hello包协商的,所以此处将指定该接口在
OSPF协议中的类型为广播多点接入类型。此外,如果设置为Point-To-Point类型,则需要在OSPF配置中手工指定OSPF邻居。
!
interface Serial0/1 //此接口对应拓扑图中的s1
ip address 10.0.2.1 255.255.255.0
encapsulation ppp //封装类型为PPP
ppp authentication pap //R1作为主验证方,认证协议为pap (R4为被验证方,在其端口设置中,应配置正确的用户名及密码,即“R4/123”)
clock rate 64000
!
router ospf 100 //OSPF配置
log-adjacency-changes
network 10.0.1.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
network 10.0.2.0 0.0.0.255 area 1
!
ip classless
!
!
line con 0
line vty 0 4
login
!
end
以上,供参考
本回答被提问者和网友采纳