ospf基础实验

1:基于192.168.1.0/24进行子网划分
192.168.1.16/28—R1环回
192.168.1.32/28—R2环回
192.168.1.48/28—R5环回
192.168.1.64/28
192.168.1.64/26
192.168.1.128/26
192.168.1.192/26

以r1为例的基础配置

[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.65 26
Apr  4 2024 22:07:57-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r1]interface l0
[r1-LoopBack0]ip address 192.168.1.17 28

2.以r1为例创建OSPF区域Area 0 和 Area1 并将路由器的接口宣告在相对应的区域中

[r1]ospf 1 router-id 1.1.1.1
Info: The configuration succeeded. You need to restart the OSPF process to valid
ate the new router ID.    
[r1-ospf-1]area 0
[r1-ospf-1-area-0.0.0.0]network 192.168.1.65 0.0.0.0
[r1-ospf-1-area-0.0.0.0]network 192.168.1.17 0.0.0.0

3.r1为dr,r2为bdr

[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ospf dr-priority 2
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]ospf dr-priority 0

4.r5不宣告ospf

[r5-ospf-1]silent-interface LoopBack 0

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值