华为OSPF单区域配置

  • 格式:docx
  • 大小:28.73 KB
  • 文档页数:3

下载文档原格式

  / 7
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

1. 拓扑图:

2.配置:

AR1:

interface Ethernet0/0/0

ip address 10.1.1.1 255.255.255.252 interface Serial0/0/0

link-protocol ppp

ip address 192.1.1.1 255.255.255.252 interface LoopBack0

ip address 1.1.1.1 255.255.255.255 ospf 1

area 0.0.0.0

network 10.1.1.0 0.0.0.3

network 192.1.1.0 0.0.0.3

network 1.1.1.1 0.0.0.0

AR2:

interface Ethernet0/0/0

ip address 10.1.1.2 255.255.255.252 interface Serial0/0/0

link-protocol ppp

ip address 192.2.2.2 255.255.255.252 interface LoopBack0

ip address 2.2.2.2 255.255.255.255 ospf 1

area 0.0.0.0

network 192.2.2.0 0.0.0.3

network 2.2.2.2 0.0.0.0

network 10.1.1.0 0.0.0.3

AR3:

interface Ethernet0/0/0

ip address 10.2.2.2 255.255.255.252 nterface Serial0/0/0

link-protocol ppp

ip address 192.2.2.1 255.255.255.252 interface LoopBack0

ip address 3.3.3.3 255.255.255.255 ospf 1

area 0.0.0.0

network 192.2.2.0 0.0.0.3

network 10.2.2.0 0.0.0.3

network 3.3.3.3 0.0.0.0

AR4:

interface Ethernet0/0/0

ip address 10.2.2.1 255.255.255.252 interface Serial0/0/0

link-protocol ppp

ip address 192.1.1.2 255.255.255.252 interface LoopBack0

ip address 4.4.4.4 255.255.255.255

# ospf 1

area 0.0.0.0

network 10.2.2.0 0.0.0.3

network 192.1.1.0 0.0.0.3

network 4.4.4.4 0.0.0.0

#

3.查看命令:

3.1 :display ip routing-table 查看路由表

3.2 display ip routing-table protocol ospf 查看路由表只运行OSPF

3.3 display IP routing-table protocol direct 查看路由关于直连

3.4 display ospf lsdb 查看OSPF数据库 3.5 display ospf routing 查看OSPF路由表 3.6 display ospf brief 查看OPSF总结信息 3. 7 display ospf peer 看对端的领接信息

4.收集的信息:

串口线的COST值为:1562

以太网线的COST值为:1

环回口的COST值为:1