配置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地址,避免发布非预期路由‌

相关推荐
日更嵌入式的打工仔2 小时前
PHY的自适应协商简析
网络·嵌入式硬件·自适应·phy
XMYX-03 小时前
解决 Apache/WAF SSL 证书链不完整导致的 PKIX path building failed 问题
网络协议·apache·ssl
XXYBMOOO3 小时前
Qt UDP 通信类详解与实现
开发语言·网络·c++·qt·网络协议·ui·udp
Jayyih3 小时前
嵌入式系统学习Day29(tcp)
网络·学习·tcp/ip
dog2503 小时前
乐观并发: TCP 与编程实践
网络·网络协议·tcp/ip
MoloXuanhe3 小时前
[TryHackMe]Wordpress: CVE-2021-29447(wp漏洞利用-SSRF+WpGetShell)
运维·网络·安全·tryhackme·thm
wanhengidc4 小时前
网页版的云手机都有哪些优势?
运维·网络·安全·游戏·智能手机
Hello.Reader4 小时前
一文吃透 Protobuf “Editions” 模式从概念、语法到迁移与实战
linux·服务器·网络·protobuf·editions
長琹5 小时前
AES加密算法详细加密步骤代码实现--身份证号码加解密系统
网络·数据库·人工智能·python·密码学
TechubNews6 小时前
Webus 与中国国际航空合作实现 XRP 支付
大数据·网络·人工智能·web3·区块链