综测hcia

 1 划分网络

172.16.0.0/18
172.16.64.0/18
172.16.128.0/18
172.16.192.0/18 

2 ospf

[r1]o    
[r1]os    
[r1]ospf 1 r    
[r1]ospf 1 router-id 1.1.1.1
[r1-ospf-1]ar    
[r1-ospf-1]area 1
[r1-ospf-1-area-0.0.0.1]net    
[r1-ospf-1-area-0.0.0.1]network 172.16.1.0 0.0.63.255
[r1-ospf-1-area-0.0.0.1]ar    
[r1-ospf-1-area-0.0.0.1]area 0
[r1-ospf-1-area-0.0.0.0]net    
[r1-ospf-1-area-0.0.0.0]network 172.16.64.0 0.0.63.255
[r1-ospf-1-area-0.0.0.0]
 

r6]ospf 1 rou    
[r6]ospf 1 router-id 6.6.6.6
[r6-ospf-1]ar    
[r6-ospf-1]area 1
[r6-ospf-1-area-0.0.0.1]nte    
[r6-ospf-1-area-0.0.0.1]nt    
[r6-ospf-1-area-0.0.0.1]ne    
[r6-ospf-1-area-0.0.0.1]network 172.16.1.0 0.0.63.255
[r6-ospf-1-area-0.0.0.1]
 

[r2-ospf-1-area-0.0.0.0]area 2
[r2-ospf-1-area-0.0.0.2]net    
[r2-ospf-1-area-0.0.0.2]network 172.16.128.0 0.0.63.255
[r2-ospf-1-area-0.0.0.2]
 

r8]ospf 1r    
[r8]ospf 1 r    
[r8]ospf 1 router-id 8.8.8.8
[r8-ospf-1]ar    
[r8-ospf-1]area 2
[r8-ospf-1-area-0.0.0.2]net    
[r8-ospf-1-area-0.0.0.2]network 172.16.128.0 0.0.63.255
[r8-ospf-1-area-0.0.0.2]
 

r3 r4一样
 

r3]ospf 1
[r3-ospf-1]area 3
[r3-ospf-1-area-0.0.0.3]au    
[r3-ospf-1-area-0.0.0.3]authentication-mode si    
[r3-ospf-1-area-0.0.0.3]authentication-mode simple ci    
[r3-ospf-1-area-0.0.0.3]authentication-mode simple cipher 
                                                          ^
Error:Incomplete command found at '^' position.
[r3-ospf-1-area-0.0.0.3]au    
[r3-ospf-1-area-0.0.0.3]authentication-mode si    
[r3-ospf-1-area-0.0.0.3]authentication-mode simple ci    
[r3-ospf-1-area-0.0.0.3]authentication-mode simple cipher 123
[r3-ospf-1-area-0.0.0.3]qu    
[r3-ospf-1-area-0.0.0.3]quit 
[r3-ospf-1]qu    
[r3-ospf-1]quit 
[r3]ospf 1
[r3-ospf-1]area 0
[r3-ospf-1-area-0.0.0.0]au    
[r3-ospf-1-area-0.0.0.0]authentication-mode si    
[r3-ospf-1-area-0.0.0.0]authentication-mode simple ci    
[r3-ospf-1-area-0.0.0.0]authentication-mode simple cipher 123
[r3-ospf-1-area-0.0.0.0]
 

3 加快收敛

r2]int    
[r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]os    
[r2-GigabitEthernet0/0/0]ospf t    
[r2-GigabitEthernet0/0/0]ospf ti    
[r2-GigabitEthernet0/0/0]ospf timer h    
[r2-GigabitEthernet0/0/0]ospf timer hello 5
[r2-GigabitEthernet0/0/0]qu    
[r2-GigabitEthernet0/0/0]quit 
[r2]int    
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]os    
[r2-GigabitEthernet0/0/1]ospf ti    
[r2-GigabitEthernet0/0/1]ospf timer h    
[r2-GigabitEthernet0/0/1]ospf timer hello 5
[r2-GigabitEthernet0/0/1]
 

r1]int    
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ospf t    
[r1-GigabitEthernet0/0/0]ospf timer h    
[r1-GigabitEthernet0/0/0]ospf timer hello 5
[r1-GigabitEthernet0/0/0]int    
[r1-GigabitEthernet0/0/0]qu    
[r1-GigabitEthernet0/0/0]quit 
[r1]int    
[r1]interface g0/0/1
[r1-GigabitEthernet0/0/1]os    
[r1-GigabitEthernet0/0/1]ospf t    
[r1-GigabitEthernet0/0/1]ospf ti    
[r1-GigabitEthernet0/0/1]ospf timer he    
[r1-GigabitEthernet0/0/1]ospf timer hello 5
[r1-GigabitEthernet0/0/1]

[r6]int    
[r6]interface t    
[r6]interface ti    
[r6]interface g0/0/0
[r6-GigabitEthernet0/0/0]os    
[r6-GigabitEthernet0/0/0]ospf ti    
[r6-GigabitEthernet0/0/0]ospf timer he    
[r6-GigabitEthernet0/0/0]ospf timer hello 
                                          ^
Error:Incomplete command found at '^' position.
[r6-GigabitEthernet0/0/0]os    
[r6-GigabitEthernet0/0/0]ospf ti    
[r6-GigabitEthernet0/0/0]ospf timer he    
[r6-GigabitEthernet0/0/0]ospf timer hello 5
 

r8]int    
[r8]interface g0/0/0
[r8-GigabitEthernet0/0/0]os    
[r8-GigabitEthernet0/0/0]ospf ti    
[r8-GigabitEthernet0/0/0]ospf timer he    
[r8-GigabitEthernet0/0/0]ospf timer hello 5
[r8-GigabitEthernet0/0/0]
 

r3 r4一样

4 dr

r2]interface g0/0/0
[r2-GigabitEthernet0/0/0]os    
[r2-GigabitEthernet0/0/0]ospf dr    
[r2-GigabitEthernet0/0/0]ospf dr-priority 0
[r2-GigabitEthernet0/0/0]qu    
[r2-GigabitEthernet0/0/0]quit 
[r2]int    
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]os    
[r2-GigabitEthernet0/0/1]ospf dr    
[r2-GigabitEthernet0/0/1]ospf dr-priority 0
Nov 29 2022 15:16:33-08:00 r2 %%01OSPF/3/NBR_CHG_DOWN(l)[7]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=8.8.8.8, NeighborEven
t=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[r2-GigabitEthernet0/0/1]
[r2-GigabitEthernet0/0/1]
Nov 29 2022 15:16:33-08:00 r2 %%01OSPF/3/NBR_DOWN_REASON(l)[8]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=8.8.8.8, Neighbor
AreaId=33554432, NeighborInterface=GigabitEthernet0/0/1,NeighborDownImmediate re
ason=Neighbor Down Due to Kill Neighbor, NeighborDownPrimeReason=Interface Param
eter Mismatch, NeighborChangeTime=2022-11-29 15:16:33-08:00) 
[r2-GigabitEthernet0/0/1]
Nov 29 2022 15:16:38-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.128.16.172, Neigh
borEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r2-GigabitEthernet0/0/1]
Nov 29 2022 15:16:38-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.128.16.172, Neig
hborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[r2-GigabitEthernet0/0/1]
Nov 29 2022 15:16:38-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.128.16.172, Neig
hborEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[r2-GigabitEthernet0/0/1]
Nov 29 2022 15:16:38-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[12]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.128.16.172, Neig
hborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=E
xchange) 
[r2-GigabitEthernet0/0/1]
Nov 29 2022 15:16:38-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[13]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.128.16.172, Neig
hborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loa
ding) 
[r2-GigabitEthernet0/0/1]
Nov 29 2022 15:16:38-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[14]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.128.16.172, Neig
hborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
 
[r2-GigabitEthernet0/0/1]
Nov 29 2022 15:18:49-08:00 r2 %%01OSPF/3/NBR_DOWN_REASON(l)[15]:Neighbor state l
eaves full or changed to Down. (ProcessId=256, NeighborRouterId=8.8.8.8, Neighbo
rAreaId=33554432, NeighborInterface=GigabitEthernet0/0/1,NeighborDownImmediate r
eason=Neighbor Down Due to 1-Wayhello Received, NeighborDownPrimeReason=1-Wayhel
lo Received, NeighborChangeTime=2022-11-29 15:18:49-08:00) 
[r2-GigabitEthernet0/0/1]
Nov 29 2022 15:18:49-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[16]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.128.16.172, Neig
hborEvent=1-Way, NeighborPreviousState=Full, NeighborCurrentState=Init) 
[r2-GigabitEthernet0/0/1]
Nov 29 2022 15:18:54-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[17]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.128.16.172, Neig
hborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[r2-GigabitEthernet0/0/1]
Nov 29 2022 15:18:54-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[18]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.128.16.172, Neig
hborEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=2Way) 
[r2-GigabitEthernet0/0/1]
 

r3-GigabitEthernet0/0/1]os    
[r3-GigabitEthernet0/0/1]ospf dr    
[r3-GigabitEthernet0/0/1]ospf dr-priority 0
[r3-GigabitEthernet0/0/1]qu    
[r3-GigabitEthernet0/0/1]quit 

r6-GigabitEthernet0/0/0]ospf dr    
[r6-GigabitEthernet0/0/0]ospf dr-priority 0
[r6-GigabitEthernet0/0/0]ospf 1rou    
[r6-GigabitEthernet0/0/0]ospf 1 rou    
[r6-GigabitEthernet0/0/0]qu    
[r6-GigabitEthernet0/0/0]quit 
 

5 自动获取ip

r8-GigabitEthernet0/0/1.1]dot1q termination vid 2
[r8-GigabitEthernet0/0/1.1]ip address 192.168.1.2 24

[r8]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[r8]ip p 2

Info: It's successful to create an IP address pool.   
[r8-ip-pool-2]network 192.168.1.0 mask 24  
[r8-ip-pool-2]gateway-list 192.168.1.1
[r8-ip-pool-2]dns-list 8.8.8.8 114.114.114.114
[r8-ip-pool-2]qu
[r8]int g0/0/1.1    
[r8-GigabitEthernet0/0/1.1]dhcp select global 

[r8]int g0/0/1.2
[r8-GigabitEthernet0/0/1.2]dot1q termination vid 3   
[r8-GigabitEthernet0/0/1.2]ip address 192.168.2.1 24

[r8]int g0/0/1.2
[r8-GigabitEthernet0/0/1.2]dot1q termination vid 3
[r8-GigabitEthernet0/0/1.2]ip address 192.168.2.1 24
Nov 28 2022 15:01:48-08:00 r8 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP 
on the interface GigabitEthernet0/0/1.2 has entered the UP state. 
[r8-GigabitEthernet0/0/1.2]qu    
[r8]ip p 3  
[r8-ip-pool-3]network 192.168.2.0 mask 24    
[r8-ip-pool-3]gateway-list 192.168.2.1
[r8-ip-pool-3]dns-list 8.8.8.8 114.114.114.114
[r8-ip-pool-3]qu    
[r8]interface g0/0/1.2
[r8-GigabitEthernet0/0/1.2]dhcp select global 


L2]vlan batch 2 3
Info: This operation may take a few seconds. Please wait for a moment...done.
[L2]interface e0/0/2
[L2-Ethernet0/0/2]port link-type access 
[L2-Ethernet0/0/2]port default vlan 2  
[L2-Ethernet0/0/2]int e0/0/3
[L2-Ethernet0/0/3]port link-type  access 
[L2-Ethernet0/0/3]port default vlan 3
[L2-Ethernet0/0/3]int e0/0/1 
[L2-Ethernet0/0/1]port link-type  trunk 
 

6 只配ip

r7]interface g0/0/0  
[r7-GigabitEthernet0/0/0]ip address 11.1.1.2 24. 
[r7-GigabitEthernet0/0/0]quit
[r7]interface g0/0/1
[r7-GigabitEthernet0/0/1]ip address 10.1.1.2 24

r6]acl 3000   
[r6-acl-adv-3000]rule deny tcp source 172.16.64.1 0.0.0.0 destination-port 192.1
68.3.2 destination-port eq 23                                                           
[r6-acl-adv-3000]quit
[r6]int    
[r6]interface g0/0/1 
[r6-GigabitEthernet0/0/1]traffic-filter inbound acl 3000

8

r6]acl 3000
[r6-acl-adv-3000]rule deny tcp source 172.16.1.1 0.0.0.0 destination 192.168.3.254 0.0.0.0 destination-port eq 23
[r6]int g0/0/1
[r6-GigabitEthernet0/0/1]traffic-filter inbound acl 3000
 

9

]acl 3000
[r4-acl-adv-3000]rule deny icmp source 192.168.4.254 0.0.0.0 destination 192.168.1.254 0.0.0.0 icmp-type echo
[r4]interface g0/0/1
[r4-GigabitEthernet0/0/1]traffic-filter inbound  acl 3000

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值