当前位置:网站首页>Configuration of OSPF protocol (take Huawei ENSP as an example)
Configuration of OSPF protocol (take Huawei ENSP as an example)
2022-07-25 10:31:00 【m0_ fifty-four million eight hundred and three thousand seven h】
If there is a mistake , Please kindly understanding !
This article is only for my study notes , For reference only , If offended , Please contact the author for deletion !!!
Basic knowledge of :
lsa Link status notification (11 class lsa) lsdb Link state database
ospf Of 5 A packet :
1.hello Find out maintain establish Neighborhood
2.dbd Database summary
3.lsr Link status request
4.lsu Link status update
5.lsack Link state acknowledgement packet
ospf Configuration of :
[r2]ospf 100 router-id 2.2.2.2 [r2-ospf-100]area 0 [r2-ospf-100-area-0.0.0.0]network 2.2.2.2 0.0.0.0 [r2-ospf-100-area-0.0.0.0]network 12.1.1.0 0.0.0.255 Note that it is unmaskedThe first ⼆ Kind of declaration ⽅ type :
[r1]interface g0/0/0 [r1-GigabitEthernet0/0/0]ospf enable 100 area 0ospf Rules of area division :
1. It has to be full ⾜ Star structure
2. There must be abr( Area border router )
ospf Of dr/bdr The election rules of :
1.⽐ Higher priority ( The more ⼤ Better )
2.⽐ a router-id ( The more ⼤ Better )
3.⾮ Preemptive
Experimental Topology :

One 、 First of all to PC1-PC4 Delegate designation IP
With PC1、PC2 For example :
[r1] interface LoopBack 0
[r1-LoopBack0] ip address 0.0.0.0 32
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[r1]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[r1]ip pool 1
Info: It's successful to create an IP address pool.
[r1-ip-pool-1]network 192.168.1.0 mask 255.255.255.0
[r1-ip-pool-1]dns-list 8.8.8.8
[r1-ip-pool-1]static-bind ip-address 192.168.1.11 mac-address 5489-98AD-75D9
[r1-ip-pool-1]static-bind ip-address 192.168.1.22 mac-address 5489-9808-2C85
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]dhcp select global
Similarly, the above operation is PC3、PC4 To configure IP.
Two 、 Configure each node of the router IP
With routers 6 For example :
[r6]interface g0/0/0
[r6-GigabitEthernet0/0/0]ip address 123.1.1.4 24.
[r6-GigabitEthernet0/0/0]quit
[r6]interface g0/0/1
[r6-GigabitEthernet0/0/1]ip address 46.1.1.2 24
The remaining routers are configured according to this operation .
3、 ... and 、OSPF Configuration of
Configuration steps :
1、 Create and run OSPF process
2、 Create and enter OSPF Area
3、 Run the specified OSPF Interface
With r3 For example :
[R3] ospf 1 router-id 2.2.2.2
[R3-ospf-1] area 1
[R3-ospf-1-area-0.0.0.0] network 23.1.1.2 0.0.0.255
[R3-ospf-1-area-0.0.0.0] area 0
[R3-ospf-1-area-0.0.0.1] network 123.1.1.1 0.0.0.255
Four 、 Realization r3/r4/r5 Between r3 Yes br nothing bdr
Set the priority to 0:
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/0]ospf dr-priority 05、 ... and 、 Speed up convergence
With routers r1 For example :
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ospf timer hello 56、 ... and 、 Regional certification
area 1 Area plaintext Authentication :
[r2]ospf 100
[r2-ospf-100]area 1
[r2-ospf-100-area-0.0.0.1]authentication-mode simple cipher123area 2 Regional ciphertext authentication :
[r5]ospf 100
[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
7、 ... and 、 Enforce decentralized routing
[r4]ospf 100
[r4-ospf-100]default-route-advertise always8、 ... and 、 View routing configuration

Nine 、 test
PC>ping 6.6.6.6
Ping 6.6.6.6: 32 data bytes, Press Ctrl_C to break
From 6.6.6.6: bytes=32 seq=1 ttl=128 time=31 ms
From 6.6.6.6: bytes=32 seq=2 ttl=128 time=32 ms
From 6.6.6.6: bytes=32 seq=3 ttl=128 time=47 ms
From 6.6.6.6: bytes=32 seq=4 ttl=128 time=31 ms
From 6.6.6.6: bytes=32 seq=5 ttl=128 time=31 ms
--- 6.6.6.6 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 31/34/47 ms
The above process is what we want , Welcome friends to correct ! Thank you very much !
边栏推荐
- For cycle: daffodil case
- The ultimate summary of jsonobject parsing JSON format
- 11. Iptables firewall
- Selenium waits for the occurrence of elements and the conditions under which the waiting operation can be performed
- Number theory -- Research on divisor
- MySQL offline deployment
- 安装mysql时,string the service 安装失败>mysql80启动失败
- Ansible Deployment Guide
- Storage, computing and distributed computing (collection and sorting is suitable for Xiaobai)
- 测试计划、测试方案
猜你喜欢

Ansible部署指南

Angr(五)——angr_ctf
Notes on building dompteur container

2. Conditional statements of shell script

6. Regular expression of shell

微信小程序WxPrase中包含文件无法点击解决

PyTorch 对 Batch 中每个样本计算损失 Loss for each sample

Angr (II) -- angr_ ctf

5.NFS共享服务和ssh远程控制服务

Supervisor deployment (offline deployment requires downloading the deployment package in advance)
随机推荐
Angr (x) - official document (Part1)
Pytorch calculates the loss for each sample in the batch
2.介绍部署LAMP平台+DISCUZ论坛
6.PXE结合Kickstart原理和配置实现无人值守自动装机
安装mysql时,string the service 安装失败>mysql80启动失败
测试计划、测试方案
Supervisor deployment (offline deployment requires downloading the deployment package in advance)
After switching the shell command line terminal (bash/zsh), CONDA cannot be used: command not found
Number theory --- the greatest common divisor and the least common multiple
Supervisor部署(离线部署需要提前下载部署包)
Storage, computing, distributed Virtualization (collection and sorting is suitable for Xiaobai)
Deploy master-slave database
Open虚拟专线网络负载均衡
Several common network diagnostic commands
Bug分类和定级
2. Introduce the deployment of lamp platform +discuz Forum
3.信你能理解的!shell脚本之循环语句与函数,数组,冒泡排序
Multithreading - five states
The ultimate summary of jsonobject parsing JSON format
Open virtual private line network load balancing