ospf初学

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

r1-GigabitEthernet0/0/0]ip address 192.168.1.1
                                                ^
Error:Incomplete command found at '^' position.
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
Nov 20 2022 13:50:13-08:00 r1 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r1-GigabitEthernet0/0/0]qu
[r1]initer	
[r1]inter	
[r1]interface g0/0/1
[r1-GigabitEthernet0/0/1]ip ad	
[r1-GigabitEthernet0/0/1]ip address 172.16.2.1 24
Nov 20 2022 13:51:03-08:00 r1 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r1-GigabitEthernet0/0/1]qu
[r1]inter	
[r1]interface g0/0/2
[r1-GigabitEthernet0/0/2]ip ad	
[r1-GigabitEthernet0/0/2]ip address 12.1.1.1 24\
                                             ^
Error: Wrong parameter found at '^' position.
[r1-GigabitEthernet0/0/2]ip address 12.1.1.1 24
[r1-GigabitEthernet0/0/2]
Nov 20 2022 13:51:30-08:00 r1 %%01IFNET/4/LINK_STATE(l)[5]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[r1-GigabitEthernet0/0/2]qu
[r1]inter	
[r1]interface lo	
[r1]interface LoopBack 0
[r1-LoopBack0]ip ad	
[r1-LoopBack0]ip address 1.1.1.1 32
[r1-LoopBack0]qu
[r1]dis	
[r1]display ip int	
[r1]display ip interface br	
[r1]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 0

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.1/24       up         up        
GigabitEthernet0/0/1              172.16.2.1/24        up         up        
GigabitEthernet0/0/2              12.1.1.1/24          up         up        
LoopBack0                         1.1.1.1/32           up         up(s)     
NULL0                             unassigned           up         up(s)     
[r1]
<r1>sy
Enter system view, return user view with Ctrl+Z.
[r1]dhcp en	
[r1]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[r1]ip po 	
[r1]ip policy-based-route
[r1]ip pool 1
Info: It's successful to create an IP address pool.
[r1-ip-pool-1]net	
[r1-ip-pool-1]netbios-type
[r1-ip-pool-1]network 192.168.1.0 mas	
[r1-ip-pool-1]network 192.168.1.0 mask 24
[r1-ip-pool-1]ga	
[r1-ip-pool-1]gateway-list 192.168.1.1
[r1-ip-pool-1]st	
[r1-ip-pool-1]static-bind ip	
[r1-ip-pool-1]static-bind ip-address 192.168.1.11 ma	
[r1-ip-pool-1]static-bind ip-address 192.168.1.11 mac-address 5489-9846-067A
[r1-ip-pool-1]st	
[r1-ip-pool-1]static-bind ip	
[r1-ip-pool-1]static-bind ip-address 192.168.1.13 ma	
[r1-ip-pool-1]static-bind ip-address 192.168.1.13 mac-address 5489-9843-2636
[r1-ip-pool-1]
[r1-ip-pool-1]
[r1-ip-pool-1]qu
[r1]inter	
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]dhcp se	
[r1-GigabitEthernet0/0/0]dhcp select gl	
[r1-GigabitEthernet0/0/0]dhcp select global


 

 

[r2-GigabitEthernet0/0/0]ip address 12.1.1.2 24
[r2-GigabitEthernet0/0/0]
Nov 20 2022 13:53:11-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r2-GigabitEthernet0/0/0]qu
[r2]inter	
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]ip add	
[r2-GigabitEthernet0/0/1]ip address 23.1.1.1 24
Nov 20 2022 13:53:28-08:00 r2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r2-GigabitEthernet0/0/1]qu
[r2]inter	
[r2]interface lo	
[r2]interface LoopBack 0
[r2-LoopBack0]ip add	
[r2-LoopBack0]ip address 2.2.2.2 32
[r2-LoopBack0]qu
[r2]dis	
[r2]display ip inter	
[r2]display ip interface br	
[r2]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              12.1.1.2/24          up         up        
GigabitEthernet0/0/1              23.1.1.1/24          up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         2.2.2.2/32           up         up(s)     
NULL0  



[r3-GigabitEthernet0/0/0]
Nov 20 2022 13:54:41-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r3-GigabitEthernet0/0/0]qu
[r3]inter	
[r3]interface g0/0/1
[r3-GigabitEthernet0/0/1]ip ad	
[r3-GigabitEthernet0/0/1]ip address 123.1.1.1 24
Nov 20 2022 13:55:14-08:00 r3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r3-GigabitEthernet0/0/1]qu
[r3]inter	
[r3]interface lo	
[r3]interface LoopBack 0
[r3-LoopBack0]ip ad	
[r3-LoopBack0]ip address 3.3.3.3 32
[r3-LoopBack0]qu
[r3]ds	
[r3]dis	
[r3]display ip int	
[r3]display ip interface br	
[r3]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              23.1.1.2/24          up         up        
GigabitEthernet0/0/1              123.1.1.1/24         up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         3.3.3.3/32           up         up(s)     
NULL0                             unassigned           up         up(s)     
[r3]


[r4-GigabitEthernet0/0/0]ip address 123.1.1.2 24
Nov 20 2022 13:56:27-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r4-GigabitEthernet0/0/0]qu
[r4]inter	
[r4]interface g0/0/1
[r4-GigabitEthernet0/0/1]ip ad	
[r4-GigabitEthernet0/0/1]ip address 56.1.1.1 24
Nov 20 2022 13:56:49-08:00 r4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r4-GigabitEthernet0/0/1]ip add	
[r4-GigabitEthernet0/0/1]ip address 46.1.1.1 24
[r4-GigabitEthernet0/0/1]qu
[r4]inter	
[r4]interface lo	
[r4]interface LoopBack 0
[r4-LoopBack0]ip ad	
[r4-LoopBack0]ip address 4.
                         ^
Error: Wrong parameter found at '^' position.
[r4-LoopBack0]ip address 4.4.4.4 32
[r4-LoopBack0]qu
[r4]dis`	
[r4]dis	
[r4]display ip 	
[r4]display ip initer	
[r4]display ip inter	
[r4]display ip interface br	
[r4]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              123.1.1.2/24         up         up        
GigabitEthernet0/0/1              46.1.1.1/24          up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         4.4.4.4/32           up         up(s)     
NULL0                             unassigned           up         up(s)     
[r4]

[r5-GigabitEthernet0/0/2]ip address 45.1.1.2 24
[r5-GigabitEthernet0/0/2]
Nov 20 2022 14:08:31-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[r5-GigabitEthernet0/0/2]QU
[r5]interr	
[r5]inter	
[r5]interface g0/0/1
[r5-GigabitEthernet0/0/1]
[r5-GigabitEthernet0/0/1]ip ad	
[r5-GigabitEthernet0/0/1]ip address 56.1.1.1 24
Nov 20 2022 14:09:03-08:00 r5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r5-GigabitEthernet0/0/1]qu
[r5]inter	
[r5]interface g0/0/0
[r5-GigabitEthernet0/0/0]ip ad	
[r5-GigabitEthernet0/0/0]ip address 123.1.1.3 24
[r5-GigabitEthernet0/0/0]
Nov 20 2022 14:09:19-08:00 r5 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r5-GigabitEthernet0/0/0]qu
[r5]inter	
[r5]interface lo	
[r5]interface LoopBack 0
[r5-LoopBack0]ip ad	
[r5-LoopBack0]ip address 5
                         ^
Error: Wrong parameter found at '^' position.
[r5-LoopBack0]ip address 5.5.5.5 32
[r5-LoopBack0]qu
[r5]dis	
[r5]display ip inter	
[r5]display ip interface br	
[r5]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 0

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              123.1.1.3/24         up         up        
GigabitEthernet0/0/1              56.1.1.1/24          up         up        
GigabitEthernet0/0/2              45.1.1.2/24          up         up        
LoopBack0                         5.5.5.5/32           up         up(s)     
NULL0                             unassigned           up         up(s)     
[r5]

[r6-GigabitEthernet0/0/0]ip ad	
[r6-GigabitEthernet0/0/0]ip address 123.1.1.4 24
Nov 20 2022 14:10:30-08:00 r6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r6-GigabitEthernet0/0/0]qu
[r6]inter	
[r6]interface g0/0/1
[r6-GigabitEthernet0/0/1]ip ad	
[r6-GigabitEthernet0/0/1]ip address 56.1.1.2 24
Nov 20 2022 14:10:45-08:00 r6 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r6-GigabitEthernet0/0/1]qu
[r6]inter	
[r6]interface lo	
[r6]interface LoopBack 0\
                       ^
Error: Wrong parameter found at '^' position.
[r6]interface LoopBack 0
[r6-LoopBack0]ip ad	
[r6-LoopBack0]ip address 6.6.6.6 32
[r6-LoopBack0]qu
[r6]dis	
[r6]display ip inter	
[r6]display ip interface br	
[r6]display ip interface brief \
                               ^
Error: Wrong parameter found at '^' position.
[r6]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              123.1.1.4/24         up         up        
GigabitEthernet0/0/1              56.1.1.2/24          up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         6.6.6.6/32           up         up(s)     
NULL0                             unassigned           up         up(s)     
[r6]
[r6]display ospf peer 

	 OSPF Process 100 with Router ID 6.6.6.6
		 Neighbors 

 Area 0.0.0.0 interface 123.1.1.4(GigabitEthernet0/0/0)'s neighbors
 Router ID: 3.3.3.3          Address: 123.1.1.1       
   State: Full  Mode:Nbr is  Slave  Priority: 1
   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:59     
   Authentication Sequence: [ 0 ] 

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

 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 29  sec 
   Retrans timer interval: 0 
   Neighbor is up for 00:00:00     
   Authentication Sequence: [ 0 ] 

		 Neighbors 

 Area 0.0.0.0 interface 56.1.1.2(GigabitEthernet0/0/1)'s neighbors

[r6]

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

[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]os	
[r1-GigabitEthernet0/0/0]ospf ti	
[r1-GigabitEthernet0/0/0]ospf timer he	
[r1-GigabitEthernet0/0/0]ospf timer hello 5
[r1-GigabitEthernet0/0/0]os	
[r1-GigabitEthernet0/0/0]ospfti	
[r1-GigabitEthernet0/0/0]ospf tri	
[r1-GigabitEthernet0/0/0]ospf ti	
[r1-GigabitEthernet0/0/0]ospf timer dea	
[r1-GigabitEthernet0/0/0]ospf timer dead 20

3.r4不能宣告全网可达

[r4]display ip routing-table protocol ospf 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 11       Routes : 12       

OSPF routing table status : <Active>
         Destinations : 11       Routes : 12

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  OSPF    10   3           D   123.1.1.1       GigabitEthernet
0/0/0
        2.2.2.2/32  OSPF    10   2           D   123.1.1.1       GigabitEthernet
0/0/0
        3.3.3.3/32  OSPF    10   1           D   123.1.1.1       GigabitEthernet
0/0/0
        5.5.5.5/32  OSPF    10   1           D   123.1.1.3       GigabitEthernet
0/0/0
        6.6.6.6/32  OSPF    10   1           D   123.1.1.4       GigabitEthernet
0/0/0
       12.1.1.0/24  OSPF    10   3           D   123.1.1.1       GigabitEthernet
0/0/0
       23.1.1.0/24  OSPF    10   2           D   123.1.1.1       GigabitEthernet
0/0/0
       45.1.1.0/24  OSPF    10   2           D   123.1.1.3       GigabitEthernet
0/0/0
       56.1.1.0/24  OSPF    10   2           D   123.1.1.3       GigabitEthernet
0/0/0
                    OSPF    10   2           D   123.1.1.4       GigabitEthernet
0/0/0
     172.16.2.0/24  OSPF    10   4           D   123.1.1.1       GigabitEthernet
0/0/0
    192.168.1.0/24  OSPF    10   4           D   123.1.1.1       GigabitEthernet
0/0/0

OSPF routing table status : <Inactive>
         Destinations : 0        Routes : 0

4.pc自动获取ip地址

 

 

 

5.area1明文认证 area2密文认证

 

[r4]ospf 1
[r4-ospf-1]sr	
[r4-ospf-1]ar	
[r4-ospf-1]arp-ping
[r4-ospf-1]area 2
[r4-ospf-1-area-0.0.0.2]au	
[r4-ospf-1-area-0.0.0.2]authentication-mode xi	
[r4-ospf-1-area-0.0.0.2]authentication-mode si	
[r4-ospf-1-area-0.0.0.2]authentication-mode simple ci	
[r4-ospf-1-area-0.0.0.2]authentication-mode simple cipher 123
[r4-ospf-1-area-0.0.0.2]au	
[r4-ospf-1-area-0.0.0.2]authentication-mode md5
[r4-ospf-1-area-0.0.0.2]

[r1]ospf 1
[r1-ospf-1]ar	
[r1-ospf-1]arp-ping
[r1-ospf-1]area 1
[r1-ospf-1-area-0.0.0.1]au	
[r1-ospf-1-area-0.0.0.1]authentication-mode si	
[r1-ospf-1-area-0.0.0.1]authentication-mode simple ci	
[r1-ospf-1-area-0.0.0.1]authentication-mode simple cipher 123
[r1-ospf-1-area-0.0.0.1]

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

不会取名余

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值