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

相关推荐
Excuse_lighttime34 分钟前
HTTP / HTTPS 协议
网络·网络协议·http·https
z人间防沉迷k35 分钟前
TCP核心机制
网络·网络协议·tcp/ip·http
像风一样_3 小时前
TCP首部格式及三次握手四次挥手
网络·网络协议·tcp/ip
{{uname}}8 小时前
利用WebSocket实现实时通知
网络·spring boot·websocket·网络协议
我不想当小卡拉米9 小时前
【Linux】操作系统入门:冯诺依曼体系结构
linux·开发语言·网络·c++
思科小白白9 小时前
【无标题】
网络·智能路由器
yayaer210 小时前
GOOSE 协议中MAC配置
服务器·网络·goose
嵌入式在学无敌大神10 小时前
IP协议、以太网包头及UNIX域套接字
网络·tcp/ip·unix
2501_9159090610 小时前
iOS App 安全性探索:源码保护、混淆方案与逆向防护日常
websocket·网络协议·tcp/ip·http·网络安全·https·udp
小突突突11 小时前
个人博客系统测试报告
运维·网络·功能测试