HCIA第四天作业

本文涉及OSPF路由器配置,包括DR/BDR选举、接口认证、路由宣告及IP分配。R3在r3456网络中未设置BDR,R1和R4间OSPF邻居建立成功但全网可达性受限。此外,DHCP服务器配置了IP地址池并实现了静态绑定。部分设备间ping测试显示通信不稳定。最后,OSPF的area1区域采用明文认证,area2使用混合加密方式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 1.r3456之间只有r3为没有bdr

 Router ID: 5.5.5.5        Address: 123.1.1.3       
   State: 2-Way  Mode:Nbr is  Master  Priority: 0
   DR: 123.1.1.1  BDR: None   MTU: 0    
   Dead timer due in 31  sec 
   Retrans timer interval: 0 
   Neighbor is up for 00:00:00     
   Authentication Sequence: [ 0 ]

 2.保证更新安全加快收敛速度

[r1]interface g0/0/2
[r1-GigabitEthernet0/0/2]ospf authentication-mode simple cipher 123
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/2]ospf authentication-mode simple ciph

[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]ospf authentication-mode simple cipher 123
[r2-GigabitEthernet0/0/1]ospf authentication-mode md5
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]ospf authentication-mode simple cipher 123
[r3-GigabitEthernet0/0/0]ospf authentication-mode md5



[r1]interface g0/0/2
[r1-GigabitEthernet0/0/2]ospf timer hello 5
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/2]ospf timer hello 5
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/2]ospf timer hello 5
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/2]ospf timer hello 5
[r3]interface g0/0/1
[r3-GigabitEthernet0/0/2]ospf timer hello 5
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/2]ospf timer hello 5 

 3.r4换回不能宣告全网可达

[r4-ospf-100]display this 
[V200R003C00]
#
ospf 100 router-id 4.4.4.4 
 area 0.0.0.0 
  network 45.1.1.1 0.0.0.0 
  network 123.1.1.2 0.0.0.0 
 area 0.0.0.2 
#
return



[r4]ospf 100
[r4-ospf-100]default-route-advertise always 

R1 pin R4的环回 

[r1]pin 4.4.4.4
  PING 4.4.4.4: 56  data bytes, press CTRL_C to break
    Reply from 4.4.4.4: bytes=56 Sequence=1 ttl=166 time=1000 ms
    Reply from 4.4.4.4: bytes=56 Sequence=2 ttl=252 time=60 ms
    Request time out
    Request time out
    Reply from 4.4.4.4: bytes=56 Sequence=5 ttl=216 time=450 ms

PC1 pin 4.4.4.4

PC>ping 4.4.4.4

Ping 4.4.4.4: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 4.4.4.4: bytes=32 seq=2 ttl=187 time=765 ms
Request timeout!
Request timeout!
From 4.4.4.4: bytes=32 seq=5 ttl=251 time=78 ms

PC1pin 5和6的环回

PC>ping 6.6.6.6

Ping 6.6.6.6: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 6.6.6.6: bytes=32 seq=2 ttl=206 time=563 ms
Request timeout!
Request timeout!
From 6.6.6.6: bytes=32 seq=5 ttl=252 time=93 ms


PC>ping 5.5.5.5

Ping 5.5.5.5: 32 data bytes, Press Ctrl_C to break
From 5.5.5.5: bytes=32 seq=1 ttl=226 time=360 ms
Request timeout!
Request timeout!
From 5.5.5.5: bytes=32 seq=4 ttl=252 time=109 ms
Request timeout!

4.IP自动下放

[dhcp]ip pool 1
Info: It's successful to create an IP address pool.
[dhcp-ip-pool-1]network 192.168.1.0 mask 255.255.255.0
[dhcp-ip-pool-1]gateway-list 192.168.1.1
[dhcp-ip-pool-1]dns-list 8.8.8.8
[dhcp-ip-pool-1]static-bind ip-address 192.168.1.33 mac-address 5489-98EF-415D
[dhcp-ip-pool-1]static-bind ip-address 192.168.1.33 mac-address 5489-9850-4252
[dhcp]interface g0/0/0
[dhcp-GigabitEthernet0/0/0]dhcp select global

[dhcp]ip pool 2
Info: It's successful to create an IP address pool.
[dhcp-ip-pool-1]network 172.16.2.0 mask 255.255.255.0
[dhcp-ip-pool-1]gateway-list 172.16.2.1
[dhcp-ip-pool-1]dns-list 8.8.8.8
[dhcp-ip-pool-1]static-bind ip-address 172.16.2.11 mac-address 5489-98EF-415D
[dhcp-ip-pool-1]static-bind ip-address 172.16.2.22 mac-address 5489-9850-4252
[dhcp]interface g0/0/1
[dhcp-GigabitEthernet0/0/1]dhcp select global


IPv4 address......................: 192.168.1.11
IPv4 address......................: 192.168.1.22
IPv4 address......................: 172.16.2.11
IPv4 address......................: 172.16.2.22

5.area1区域铭文认证 area2密文 

[r1]ospf 100	
[r1-ospf-100]area 1
[r1-ospf-100-area-0.0.0.1]authentication-mode simple cipher 123

[r2]ospf 100 	
[r2-ospf-100]area 1
[r2-ospf-100-area-0.0.0.1]authentication-mode simple cipher 123

[r3]ospf 100
[r3-ospf-100]are	
[r3-ospf-100]area 1
[r3-ospf-100-area-0.0.0.1]authentication-mode simple cipher 123
[r3-ospf-100-area-0.0.0.1]q
[r3-ospf-100]are	
[r3-ospf-100]area 2
[r3-ospf-100-area-0.0.0.2]authentication-mode simple cipher 123
[r3-ospf-100-area-0.0.0.2]authentication-mode md5

[r4]ospf 100	
[r4-ospf-100]area 2
[r4-ospf-100-area-0.0.0.2]authentication-mode simple cipher 123
[r4-ospf-100-area-0.0.0.2]authentication-mode md5

[r5]ospf 100
[r5-ospf-100]are	
[r5-ospf-100]area 2	
[r5-ospf-100-area-0.0.0.2]authentication-mode simple cipher 123
[r5-ospf-100-area-0.0.0.2]authentication-mode md5

[r6]ospf 100	
[r6-ospf-100]area 2
[r6-ospf-100-area-0.0.0.2]authentication-mode simple cipher 123
[r6-ospf-100-area-0.0.0.2]authentication-mode md5

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值