配置p2p网络类型

复制代码
<Huawei>system-view
[Huawei]undo info-center enable
[Huawei]sysname AR1
[AR1]interface s4/0/0
[AR1-Serial4/0/0]ip address 12.1.1.1 24
[AR1-Serial4/0/0]quit
[AR1]interface LoopBack 0
[AR1-LoopBack0]ip address 1.1.1.1 32
[AR1-LoopBack0]quit
[AR1]ospf router-id 1.1.1.1
[AR1-ospf-1]area 0
[AR1-ospf-1-area-0.0.0.0]network 12.1.1.0 0.0.0.255
[AR1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[AR1-ospf-1-area-0.0.0.0]quit
[AR1-ospf-1]q
[AR1]display interface s4/0/0
Serial4/0/0 current state : UP
Line protocol current state : UP
Last line protocol up time : 2025-02-27 21:06:44 UTC-08:00
Description:HUAWEI, AR Series, Serial4/0/0 Interface
Route Port,The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
Internet Address is 12.1.1.1/24
Link layer protocol is PPP
LCP opened, IPCP opened
Last physical up time   : 2025-02-27 20:54:23 UTC-08:00
Last physical down time : 2025-02-27 20:54:21 UTC-08:00
Current system time: 2025-02-27 21:12:02-08:00
Physical layer is synchronous, Virtualbaudrate is 64000 bps
Interface is DTE, Cable type is V11, Clock mode is TC
Last 300 seconds input rate 10 bytes/sec 80 bits/sec 0 packets/sec
Last 300 seconds output rate 8 bytes/sec 64 bits/sec 0 packets/sec

Input: 239 packets, 8534 bytes
  Broadcast:              0,  Multicast:              0
  Errors:                 0,  Runts:                  0
  Giants:                 0,  CRC:                    0

  Alignments:             0,  Overruns:               0
  Dribbles:               0,  Aborts:                 0
  No Buffers:             0,  Frame Error:            0

Output: 251 packets, 4536 bytes
  Total Error:            0,  Overruns:               0
  Collisions:             0,  Deferred:               0
    Input bandwidth utilization  :    0%
    Output bandwidth utilization :    0%

[AR1]
[AR1]
[AR1]display ospf interface s4/0/0

	 OSPF Process 1 with Router ID 1.1.1.1
		 Interfaces 


 Interface: 12.1.1.1 (Serial4/0/0) --> 12.1.1.2
 Cost: 48      State: P-2-P     Type: P2P       MTU: 1500  
 Timers: Hello 10 , Dead 40 , Poll  120 , Retransmit 5 , Transmit Delay 1 
[AR1]

一、OSPF接口配置与链路状态分析

‌接口物理层与协议层状态‌

Serial4/0/0 接口物理状态为 ‌UP‌(current state: UP),协议状态为 ‌UP‌(Line protocol current state: UP),表明物理链路及PPP协议协商成功,基础通信无异常‌。

‌OSPF网络类型与参数配置‌

接口网络类型为 ‌P2P‌(Type: P2P),适用于点对点链路,OSPF会自动建立邻接关系且无需DR/BDR选举‌7。当前Hello间隔为10秒,Dead定时器为40秒,需确保对端设备参数一致(默认P2P模式Hello=10秒,Dead=40秒)‌

‌MTU与链路层协议匹配性‌

接口MTU值为1500(MTU: 1500),需验证对端MTU配置相同,避免因MTU不匹配导致OSPF邻接关系卡在ExStart状态‌。链路层协议为PPP(Link layer protocol is PPP),需检查两端PPP认证配置(如PAP/CHAP)是否一致‌

复制代码
<Huawei>system-view
[Huawei]undo info-center enable
[Huawei]sysname AR2
[AR2]interface s4/0/1
[AR2-Serial4/0/1]ip address 12.1.1.2 24
[AR2-Serial4/0/1]quit
[AR2]interface LoopBack 0
[AR2-LoopBack0]ip address 2.2.2.2 32
[AR2-LoopBack0]quit
[AR2]ospf router-id 2.2.2.2
[AR2-ospf-1]area 0
[AR2-ospf-1-area-0.0.0.0]network 12.1.1.0 0.0.0.255
[AR2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[AR2-ospf-1-area-0.0.0.0]quit
[AR2-ospf-1]q
[AR2]

一、配置关键点分析

‌基础配置与信息中心关闭‌

undo info-center enable 已关闭信息中心功能,设备将不再记录系统日志和告警信息,可能影响故障排查效率‌。此操作常用于实验室环境简化输出,生产环境建议保持默认开启‌。

‌接口与OSPF配置验证‌

‌接口IP与子网一致性‌:

Serial4/0/1 配置为 12.1.1.2/24,需确认对端设备(如AR1)接口IP为 12.1.1.1/24,子网掩码一致(24位)‌

‌Loopback接口配置优化‌:

LoopBack0 使用32位掩码(2.2.2.2/32),避免因广播地址冲突导致路由异常‌

‌OSPF网络宣告与Router-ID‌

‌Router-ID设置‌:ospf router-id 2.2.2.2 正确指向Loopback地址,确保全网唯一性‌。

‌网络宣告精确性‌:

network 12.1.1.0 0.0.0.255 宣告接口所在网段。

network 2.2.2.2 0.0.0.0 精确宣告Loopback地址,避免发布非预期路由‌

相关推荐
秦少游在淮海1 小时前
网络缓冲区 · 通过读写偏移量维护数据区间的高效“零拷贝” Buffer 设计
linux·开发语言·网络·tcp协议·muduo·网络缓冲区
濊繵1 小时前
Linux网络--IP 分片和组装的具体过程
linux·网络·tcp/ip
JY.yuyu1 小时前
ACL访问控制列表
运维·服务器·网络
濊繵1 小时前
Linux网络--NAT、代理服务、内网穿透
网络
while(1){yan}1 小时前
HTTP的加密过程
java·开发语言·网络·网络协议·http·青少年编程
重生之我是Java开发战士1 小时前
【计算机网络】数据链路层:从帧传输到高速以太网的完整梳理
网络·网络协议·计算机网络
运维行者_1 小时前
APM 性能监控是什么?从应用监控与网站监控了解基础概念
网络·数据库·云原生·容器·kubernetes·智能路由器·运维开发
yy我不解释1 小时前
关于电脑支不支持5Gwifi、无法找到5Gwifi、5Gwifi没有网络的配置问题
网络·5g·电脑
十月南城1 小时前
统一日志与链路ID的价值——为什么要结构化日志、如何通过关联ID提升排障效率
运维·网络