当前位置:网站首页>Layer 3 Switch/Router OSPF Configuration Details [Huawei eNSP Experiment]
Layer 3 Switch/Router OSPF Configuration Details [Huawei eNSP Experiment]
2022-08-04 09:01:00 【Progressive small vegetable pig】
Article table of contents
I. Preface
We have successfully configured the use of VRRP+MSTP between Layer 3 switches and routers before.
Now let's record the detailed explanation of OSPF configuration of Layer 3 switches/routers.
The requirements are as follows:
5. The company network needs to configure ospf routing protocol on two aggregation layer switches and one core router to realize internal network communication.
Look at the topology first:
Screenshot of the requirements we need to implement;
1.1OSPF
Before OSPF appeared, RIP (Routing Information Protocol) was widely used on the network as an interior gateway protocol.
Because RIP is a routing protocol based on the distance vector algorithm, it has problems such as slow convergence, routing loops, and poor scalability, so it is gradually replaced by OSPF.
OSPF, as a link-state-based protocol, can solve many problems faced by RIP.In addition, OSPF has the following advantages:
OSPF uses multicast to send and receive packets, which can reduce the impact on other routers that do not run OSPF.
OSPF supports Typeless Inter-Domain Routing (CIDR).
OSPF supports load balancing for equal-cost routes.
OSPF supports packet encryption.
Because of the above advantages of OSPF, OSPF is quickly accepted and widely used as an excellent interior gateway protocol.
Two. Experiment started
Look at my topology first:
The Layer 3 switches at the aggregation layer are configured as follows:
First configure the ip address of the following vlan10 port as:
interface Vlanif10
ip address 192.168.10.124 25
The vlan60 configuration of the link router is:
interface Vlanif60
ip address 19.0.0.1 255.255.255.252

Marked in the picture:
interface Vlanif60
ip address 29.0.0.1 255.255.255.252
Release the vlan of the above ports, allowing the specified vlan
OSPF:
Network current network segment anti-mask
ospf 1
area 0.0.0.0
network 192.168.20.0 0.0.0.255
network 192.168.30.0 0.0.0.255
network 11.1.1.1 0.0.0.0
network 19.0.0.1 0.0.0.0
network 192.168.10.0 0.0.0.255
The router configuration is as follows:
First configure the interface ip:
The GigabitEthernet0/0/1 port is configured as follows:
interface GigabitEthernet0/0/1
ip address 19.0.0.2 255.255.255.252
The GigabitEthernet0/0/2 port is configured as follows:
interface GigabitEthernet0/0/2
ip address 29.0.0.2 255.255.255.252

Configure ospf:
Enter ospf 1 to view:
ospf 1
default-route-advertise
area 0.0.0.0
network 19.0.0.2 0.0.0.0
network 29.0.0.2 0.0.0.0
network 33.1.1.1 0.0.0.0
Network current network segment anti-mask
Communication detection:
ping 29.0.0.2
ping 33.1.1.1
OSPF configuration is basically completedneed.
Check the router's routing table;
display ip routing-table
Layer 3 switch:
边栏推荐
- yuv420sp转jpg
- 字符串与正则表达式(C#)
- Thread类的基本使用。
- 外包干了四年,秋招终于上岸了
- 三层交换机/路由器OSPF配置详解【华为eNSP实验】
- Apache Druid 实时分析数据库入门介绍
- 【论文笔记】Understanding Long Programming Languages with Structure-Aware Sparse Attention
- Occupy, fill in later
- [NOI Simulation Competition] Paper Tiger Game (Game Theory SG Function, Long Chain Division)
- Fiddler(一)安装
猜你喜欢
随机推荐
【论文笔记】Delving into the Estimation Shift of Batch Normalization in a Network
【虚幻引擎UE】UE5实现WEB和UE通讯思路
如何快速将Zabbix5.0升级至6.0?
inject() can only be used inside setup() or functional components.
【Attention】Dual Attention(DANet) & Fully Attention(FLA)
csdn图片去水印 | 其他方法无效时的解决方案
Apache Druid 实时分析数据库入门介绍
华为设备配置VRRP与NQA联动监视上行链路
记录十条工作中便利的API小技巧
Oracle怎么获取当前库或者同一台服务器上某几个库的数据总行数?
经典二分法查找的进阶题目——LeetCode33 搜索旋转排序数组
软件工程国考总结——判断题
DeLighT:深度和轻量化的Transformer
并查集介绍和基于并查集解决问题——LeetCode 952 按公因数计算最大组件大小
将jpg图片转换成yuv420(NV12)数据文件
async - await
VRRP+MSTP配置详解【华为eNSP实验】
Yolov5 replaces the backbone network of "Megvii Lightweight Convolutional Neural Network ShuffleNetv2"
Grafana9.0发布,Prometheus和Loki查询生成器、全新导航、热图面板等新功能!
【虚幻引擎UE】UE5基于Gltf加载插件实现gltf格式骨骼动画在线/本地导入和切换









