为什么我们在回送接口上使用ip ospf network point-to-point命令?
interface Loopback0
ip address 2.2.2.2 255.255.255.0
ip ospf network point-to-point请解释一下..。
发布于 2014-11-19 16:24:39
如果我们创建一个回环并给出类地址或无类地址,那么在默认情况下,该循环返回的路由将被公告为最具体的路由: /32前缀,它将忽略任何已配置的前缀。
例:
interface Loopback0
ip address 2.2.2.2 255.255.255.0在这里,回送网络地址是2.2.2.0/24。默认情况下,OSPF会将此路由发布到loopback0为2.2.2.2/32 (该环回的最具体路由)。
要覆盖这一点,我们必须将网络类型更改为点对点。在此之后,OSPF将把地址公布为2.2.2.0/24。
interface Loopback0
ip address 2.2.2.2 255.255.255.0
ip ospf network point-to-point发布于 2014-11-19 15:27:03
通过使用点对点命令,您将覆盖OSPF的默认分类。
根据RFC 2328,OSPF只支持以下类型的链接:
Link type Description Link ID
__________________________________________________
1 Point-to-point Neighbor Router ID
link
2 Link to transit Interface address of
network Designated Router
3 Link to stub IP network number
network
4 Virtual link Neighbor Router ID回送接口分为链接类型3:存根网络.RFC指出:
If the state of the interface is Loopback, add a Type 3
link (stub network) as long as this is not an interface
to an unnumbered point-to-point network. The Link ID
should be set to the IP interface address, the Link Data
set to the mask 0xffffffff (indicating a host route),
and the cost set to 0.谢谢。
发布于 2014-11-19 13:55:35
由于在点对点链路上只有两个路由器,因此没有必要像OSPF在广播网络中那样进行指定路由器( DR )和备用DR的选举。
点到点链路上的OSPF路由器将在链路上多播其OSPF以供另一端接收。在点对点链路上,路由器只能建立一个邻居关系.
OSPF中的回送接口将处于回送模式。将OSPF设置为点对点模式会导致广告中包含实际子网掩码的路由,而不是环回接口的广告/32的默认行为。
Iirc我读到了一些场景,在这些场景中,/32广告而不是实际的掩码会带来麻烦。我只使用这个来开始广告一个尚未连接到路由器的网络。
https://networkengineering.stackexchange.com/questions/13099
复制相似问题