当前位置:网站首页>Hcia-r & s self use notes (17) OSPF experiment and routing comprehensive experiment
Hcia-r & s self use notes (17) OSPF experiment and routing comprehensive experiment
2022-07-22 14:46:00 【Master basket ladle Xiao Lu】
OSPF experiment
① Configure hostname and address ( List only R1)
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R1
[R1]int gi0/0/0
[R1-GigabitEthernet0/0/0]ip add 192.168.0.1 24
②③④ Turn on OSPF Process and configuration Rid( With R1 For example ,R2 Interface priority is lower than R1)
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]qu
[R1]int GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ospf dr-priority 200
verification R1 Whether to become DR, as follows , Has become a DR
[R1-ospf-1]dis ospf interface GigabitEthernet 0/0/0
OSPF Process 1 with Router ID 1.1.1.1
Interfaces
Interface: 192.168.0.1 (GigabitEthernet0/0/0)
Cost: 1 State: DR Type: Broadcast MTU: 1500
Priority: 200
Designated Router: 192.168.0.1
Backup Designated Router: 192.168.0.2
Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1
⑤R3 And R4 Enable between MD5 type ( List only R3)
[R3]int Serial 4/0/0
[R3-Serial4/0/0]ospf authentication-mode md5 1 cipher ayanami
⑥ verification R1 to 4.4.4.4 The cost of , as follows , by 49
[R1]dis ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 9 Routes : 9
Destination/Mask Proto Pre Cost Flags NextHop Interface
4.4.4.4/32 OSPF 10 49 D 192.168.0.3 GigabitEthernet
0/0/0
34.0.0.0/8 OSPF 10 49 D 192.168.0.3 GigabitEthernet
0/0/0
---- More ----
stay R1 The output port of Gi0/0/0 Check the cost on , stay R3 Of S4/0/0 View the cost , Add to 49( List only R4)
[R3]dis ospf int Serial 4/0/0
OSPF Process 1 with Router ID 3.3.3.3
Interfaces
Interface: 34.0.0.3 (Serial4/0/0) --> 34.0.0.4
Cost: 48 State: P-2-P Type: P2P MTU: 1500
Timers: Hello 10 , Dead 40 , Poll 120 , Retransmit 5 , Transmit Delay 1
R1 Of Gi 0/0/0 The cost is 1,R3 Of S 4/0/0 The cost is 48, Add to 49
⑦⑧R8 Simulate operator network
R8 For operator networks , explain R4 There is only one to R8 Static or default routing
[R4]ip route-static 0.0.0.0 0 48.0.0.8
Be careful ,R8( Operator, ) There should be a default route for the return trip ( Actually, it is impossible in the production environment )
[R8]ip route-static 0.0.0.0 0.0.0.0 48.0.0.4
here ASBR(R4) Release OSPF The default route can realize all Netcom
[R4]ospf 1
[R4-ospf-1]default-route-advertise
notes : if R8 No default route ,R4 Release OSPF The default route can not realize all Netcom ( Lack of backhaul routing ), At this point, you can achieve full Netcom by injecting direct routes ( The experiment shows that )
Routing comprehensive experiment (7/21,21min)
Omit interface address configuration and RIP、OSPF Announcement configuration (OSPF Router id by x.x.x.x, namely R4 by 4.4.4.4, List in sequence )
R1、R2、R4 Only one static route can be configured :
[R1]ip route-static 0.0.0.0 0 192.168.255.1
[R2]ip route-static 0.0.0.0 0 10.1.1.1
[R4]ip route-s 0.0.0.0 0.0.0.0 151.151.1.2
R3 Only static addresses can be configured ( There is no limit to the number of hops )
[R3]ip route-s 10.1.1.0 30 192.168.255.2
[R3]ip route-s 2.2.2.2 32 192.168.255.2
[R3]ip route-s 131.131.255.0 28 151.151.1.1
[R3]ip route-s 7.7.7.7 32 151.151.1.1
// Be careful ,ip route-s 131.131.255.0 28 It's actually 131.131.255.0 /30、131.131.255.4 /30、131.131.255.8 /30, Here's a summary
R4 Need to publish OSPF Default route
[R4]ospf 1
[R4-ospf-1]default-route-advertise
So far, all Netcom , Verified as follows :
[R2]ping -a 2.2.2.2 7.7.7.7
PING 7.7.7.7: 56 data bytes, press CTRL_C to break
Reply from 7.7.7.7: bytes=56 Sequence=1 ttl=250 time=50 ms
Reply from 7.7.7.7: bytes=56 Sequence=2 ttl=250 time=70 ms
Reply from 7.7.7.7: bytes=56 Sequence=3 ttl=250 time=50 ms
Reply from 7.7.7.7: bytes=56 Sequence=4 ttl=250 time=40 ms
Reply from 7.7.7.7: bytes=56 Sequence=5 ttl=250 time=50 ms
--- 7.7.7.7 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 40/52/70 ms
[R2]tracert 7.7.7.7
traceroute to 7.7.7.7(7.7.7.7), max hops: 30 ,packet length: 40,press CTRL_C t
o break
1 10.1.1.1 20 ms 20 ms 10 ms
2 192.168.255.1 20 ms 20 ms 20 ms
3 151.151.1.1 30 ms 30 ms 30 ms
4 131.131.255.14 40 ms 40 ms 30 ms
5 131.131.255.9 40 ms 40 ms 40 ms
6 131.131.255.2 40 ms 50 ms 40 ms
Add :
Upon confirmation of OSPF Whether the neighbors are established , stay R6 It is more convenient to view commands on , Because the device has more neighbors ;
If R4 And R5 Between or R5 And R6 There is a problem with the line between ,2.2.2.2 Still ping through 7.7.7.7( adopt 131.131.255.4 /30), After the line is restored ,OSPF After the neighbors are re established ,2.2.2.2 Still pass R5 arrive 7.7.7.7(Cost Less valuable ,Serial Interface cost The value is 48)
边栏推荐
- 109. 有序链表转换二叉搜索树 ●●
- 2022熔化焊接与热切割操作证考试题库模拟考试平台操作
- 深度学习-神经网络-循环神经网络(一):RNN(Recurrent Neural Network,循环神经网络;1990年)
- Utilisation et cas de regexp pour les déclarations MySQL
- Mysql語句的RegExp的用法與案例
- LabVIEW cluster cannot contain input and output controls at the same time
- 剑指offer专项突击版第6天
- 2022r1 fast opening pressure vessel operation test and simulation test
- url链接中特殊字符转义方法
- [wechat applet] choosebao - the Savior of choice difficulties
猜你喜欢
【HMS core】【FAQ】Account Kit、MDM能力、push Kit典型问题合集6
How to do a good job in analyzing credit derivatives and credit card data scenarios? This time series feature method needs to be learned | what financial and credit analysts must learn
AOSP ~ Camera - YUV格式简介
HCIA-R&S自用笔记(14)RIP协议
【攻防世界WEB】难度二星6分入门题(上):webshell、command_execution、xff_referer、php_rce、Web_php_include、NewsCenter
刚考完 热的 PCA 国家证书 考了个满分丢。 公司不敢B出来 怕被 下面NB的公司锤。。
[server data recovery] data recovery case of a Huawei server raid6
Session layer and addressing mode of UDS diagnostic service
Checking the wide IP range of SPF records will undermine the security of e-mail
【Try to Hack】Syn Flood和CC攻击
随机推荐
Single page reference record last sliding position
SOC first project
Spoole TCP server
OS8-基于资源的优先级反转和优先级天花板协议
Network analysis -- making difference on the search set
How to solve the problem of IDM downloader software activation serial number error?
DCM09- ReadDataByIdentifier ($22)的功能和配置【基于DaVinci Configurator Classic】
用腾讯云服务器安装wamp,显示MySQL连不上
Install Wamp with Tencent ECs, which shows that MySQL cannot be connected
DevEco Studio3.0下载失败,提示An unknown error occurred
2022熔化焊接与热切割操作证考试题库模拟考试平台操作
What are the products with high loan passing rate? Share 5 small loans that can be lent on the same day
UDS03-根据标识符写入数据服务【ServiceID = 0x2E】
OS8 resource based priority inversion and priority ceiling protocol
openresty lua-resty-lock数据库锁
The difference between using @fastnative and @criticalnative
Wechat applet development process
6、学习MySQL 删除数据库
【HMS core】【FAQ】【Account Kit】典型问题集2
DCM10- 安全访问 ($27)的功能和配置【基于DaVinci Configurator Classic】