hcia ospf

预配

用ospf宣告

下面为宣告后状态

Nov 21 2022 15:50:09-08:00 r6 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.56, NeighborE
vent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r6-ospf-1-area-0.0.0.0]
Nov 21 2022 15:50:09-08:00 r6 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.56, NeighborE
vent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[r6-ospf-1-area-0.0.0.0]
Nov 21 2022 15:50:09-08:00 r6 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.56, Neighbor
Event=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[r6-ospf-1-area-0.0.0.0]
Nov 21 2022 15:50:09-08:00 r6 %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.56, Neighbor
Event=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Excha
nge) 
[r6-ospf-1-area-0.0.0.0]
Nov 21 2022 15:50:09-08:00 r6 %%01OSPF/4/NBR_CHANGE_E(l)[12]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.56, Neighbor
Event=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading

[r6-ospf-1-area-0.0.0.0]
Nov 21 2022 15:50:09-08:00 r6 %%01OSPF/4/NBR_CHANGE_E(l)[13]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.56, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[r6-ospf-1-area-0.0.0.0]
Nov 21 2022 15:57:44-08:00 r6 %%01OSPF/3/NBR_DOWN_REASON(l)[14]:Neighbor state l
eaves full or changed to Down. (ProcessId=256, NeighborRouterId=5.5.5.5, Neighbo
rAreaId=0, NeighborInterface=GigabitEthernet0/0/1,NeighborDownImmediate reason=N
eighbor Down Due to 1-Wayhello Received, NeighborDownPrimeReason=1-Wayhello Rece
ived, NeighborChangeTime=2022-11-21 15:57:44-08:00) 
[r6-ospf-1-area-0.0.0.0]
Nov 21 2022 15:57:44-08:00 r6 %%01OSPF/4/NBR_CHANGE_E(l)[15]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.56, Neighbor
Event=1-Way, NeighborPreviousState=Full, NeighborCurrentState=Init) 
[r6-ospf-1-area-0.0.0.0]
Nov 21 2022 15:57:47-08:00 r6 %%01OSPF/4/NBR_CHANGE_E(l)[16]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.56, Neighbor
Event=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart) 
[r6-ospf-1-area-0.0.0.0]
Nov 21 2022 15:57:47-08:00 r6 %%01OSPF/4/NBR_CHANGE_E(l)[17]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.56, Neighbor
Event=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Excha
nge) 
[r6-ospf-1-area-0.0.0.0]
Nov 21 2022 15:57:47-08:00 r6 %%01OSPF/4/NBR_CHANGE_E(l)[18]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.56, Neighbor
Event=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading

[r6-ospf-1-area-0.0.0.0]
Nov 21 2022 15:57:47-08:00 r6 %%01OSPF/4/NBR_CHANGE_E(l)[19]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.56, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 

干涉路由器3、4、5、6的ospf选举

[r4]interface g0/0/0

[r4-GigabitEthernet0/0/0]ospf dr-priority 0

结果如下

 OSPF Process 1 with Router ID 5.5.5.5

               Neighbors

 Area 0.0.0.0 interface 56.1.1.1(GigabitEthernet0/0/0)'s neighbors

 Router ID: 6.6.6.6          Address: 56.1.1.2       

   State: Full  Mode:Nbr is  Master  Priority: 0

   DR: 123.1.1.3   BDR: None   MTU: 0   

   Dead timer due in 34  sec

   Retrans timer interval: 0

   Neighbor is up for 00:00:00    

   Authentication Sequence: [ 0 ]

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

每个接口都做一下配置

[r1]in     

[r1]info-center     

[r1]interface g0/0/0

[r1-GigabitEthernet0/0/0]os

[r1-GigabitEthernet0/0/0]ospf t 

[r1-GigabitEthernet0/0/0]ospf trans-delay

[r1-GigabitEthernet0/0/0]ospf timer h     

[r1-GigabitEthernet0/0/0]ospf timer hello 5

[r1-GigabitEthernet0/0/0]os

[r1-GigabitEthernet0/0/0]ospf t 

[r1-GigabitEthernet0/0/0]ospf trans-delay

[r1-GigabitEthernet0/0/0]ospf timer d     

[r1-GigabitEthernet0/0/0]ospf timer dead 20

设置r4换回为缺省全网可达

[r4]ip route-static 0.0.0.0 0 loopback

[r4]ospf 1

[r4-ospf-]default-route-advertise

pc设置dhcp

[r1]dhcp e    
[r1]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[r1]ip p    
[r1]ip policy-based-route
[r1]ip pool 1
Info: It's successful to create an IP address pool.
[r1-ip-pool-1]n    
[r1-ip-pool-1]nbns-list
[r1-ip-pool-1]netbios-type     
[r1-ip-pool-1]network 192.168.1.0 m    
[r1-ip-pool-1]network 192.168.1.0 mask 255.255.255.0
[r1-ip-pool-1]g    
[r1-ip-pool-1]gateway-list 192.168.1.1
[r1-ip-pool-1]d    
[r1-ip-pool-1]dialer
[r1-ip-pool-1]display
[r1-ip-pool-1]dns-list
[r1-ip-pool-1]domain-name
[r1-ip-pool-1]dialer
[r1-ip-pool-1]display
[r1-ip-pool-1]dns-list 8.8.8.8 114.114.114.114
[r1-ip-pool-1]quit
[r1]in    
[r1]info-center
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]d    
[r1-GigabitEthernet0/0/0]ddns
[r1-GigabitEthernet0/0/0]description
[r1-GigabitEthernet0/0/0]dhcp s    
[r1-GigabitEthernet0/0/0]dhcp select g    
[r1-GigabitEthernet0/0/0]dhcp select global 
[r1-GigabitEthernet0/0/0]quit
[r1]quit
<r1>sy
Enter system view, return user view with Ctrl+Z.
[r1]in    
[r1]info-center
[r1]ip p    
[r1]ip policy-based-route
[r1]ip pool 2
Info: It's successful to create an IP address pool.
[r1-ip-pool-2]n    
[r1-ip-pool-2]nbns-list
[r1-ip-pool-2]netbios-type
[r1-ip-pool-2]network172.16.2.0 m    

[r1-ip-pool-2]network 172.16.2.0 m    
[r1-ip-pool-2]network 172.16.2.0 mask 255.255.255.0
[r1-ip-pool-2]g    
[r1-ip-pool-2]gateway-list 172.16.2.1
[r1-ip-pool-2]d    
[r1-ip-pool-2]dialer
[r1-ip-pool-2]display
[r1-ip-pool-2]dns-list 8.8.8.8 114.114.114.114
[r1-ip-pool-2]quit
[r1]in    
[r1]info-center
[r1]interface g0/0/1
[r1-GigabitEthernet0/0/1]dh    
[r1-GigabitEthernet0/0/1]dhcp s    
[r1-GigabitEthernet0/0/1]dhcp selectg    
[r1-GigabitEthernet0/0/1]dhcp select g    
[r1-GigabitEthernet0/0/1]dhcp select global 

a1明文 a2密文

a1做一下配置

[r1]in    
[r1]info-center
[r1]interface g0/0/2
[r1-GigabitEthernet0/0/2]os    
[r1-GigabitEthernet0/0/2]ospf a    
[r1-GigabitEthernet0/0/2]quit
[r1]osp    
[r1]ospf 1
[r1-ospf-1]a    
[r1-ospf-1]arp-ping
[r1-ospf-1]asbr-summary
[r1-ospf-1]area 1
[r1-ospf-1-area-0.0.0.1]a    
[r1-ospf-1-area-0.0.0.1]arp-ping
[r1-ospf-1-area-0.0.0.1]authentication-mode s    
[r1-ospf-1-area-0.0.0.1]authentication-mode simple c    
[r1-ospf-1-area-0.0.0.1]    
[r1-ospf-1-area-0.0.0.1]authentication-mode simple c    
[r1-ospf-1-area-0.0.0.1]authentication-mode simple cipher 123

a2做一下配置
[r4]os    
[r4]ospf 1
[r4-ospf-1]a    
[r4-ospf-1]arp-ping
[r4-ospf-1]asbr-summary
[r4-ospf-1]area 2
[r4-ospf-1-area-0.0.0.2]os    
[r4-ospf-1-area-0.0.0.2]a    
[r4-ospf-1-area-0.0.0.2]arp-ping
[r4-ospf-1-area-0.0.0.2]authentication-mode s
[r4-ospf-1-area-0.0.0.2]authentication-mode s    
[r4-ospf-1-area-0.0.0.2]authentication-mode simple  c    
[r4-ospf-1-area-0.0.0.2]authentication-mode simple  cipher 123
[r4-ospf-1-area-0.0.0.2]a    
[r4-ospf-1-area-0.0.0.2]abr-summary
[r4-ospf-1-area-0.0.0.2]arp-ping
[r4-ospf-1-area-0.0.0.2]authentication-mode m    
[r4-ospf-1-area-0.0.0.2]authentication-mode md5

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值