eNSP笔记之OSPF虚链路实验

Published 2023-05-23 22:00 413 words 3 min read ... Page views

This post is not yet available in English. Showing the original.
eNSP的ospf虚链路实验记录,记录学习心得

本章记录一个关于 ospf 虚链路的小作业实验。

实验概述

实验拓扑
实验拓扑
  1. 搭建ospf网络
  2. 使用虚链路使区域A2A0逻辑相连
  3. 修改ospf开销值优先使用R1路径,R2路径备用
  4. 使用虚链路作为区域0冗余备份
  5. 配置虚链路的认证
  6. 利用GRE Tunnel实现区域A2A0逻辑相连

实验步骤参考

IP 配置省略

R1 参考配置:

sysname R1
un in en

ospf 10 router-id 10.0.1.1 
 area 0.0.0.0 
  network 10.0.1.0 0.0.0.255 
  network 10.0.12.0 0.0.0.255 
 area 0.0.0.1 
  network 10.0.13.0 0.0.0.255 
  vlink-peer 10.0.2.2 hmac-md5 1 plain nilaogou
  vlink-peer 10.0.3.3 hmac-md5 1 plain nilaogou

R2 参考配置:

un in en
int G0/0/2
ospf cost 10

interface Tunnel0/0/0
 ip address 1.1.1.1 255.255.255.0 
 tunnel-protocol gre
 source 10.0.23.2
 destination 10.0.23.3

ospf 10 router-id 10.0.2.2 
 area 0.0.0.0 
  network 10.0.2.0 0.0.0.255 
  network 10.0.12.0 0.0.0.255 
 area 0.0.0.1 
  network 10.0.23.0 0.0.0.255 
  vlink-peer 10.0.1.1 hmac-md5 1 plain nilaogou
  vlink-peer 10.0.3.3 hmac-md5 1 plain nilaogou

R3 参考配置:

un in en

int G0/0/2
ospf cost 10

interface Tunnel0/0/1
 description 10.0.23.2
 ip address 1.1.1.2 255.255.255.0 
 tunnel-protocol gre
 source 10.0.23.3
 destination 10.0.23.2
 
ospf 10 router-id 10.0.3.3 
 area 0.0.0.1 
  network 10.0.3.3 0.0.0.0 
  network 10.0.13.0 0.0.0.255 
  network 10.0.23.0 0.0.0.255 
  vlink-peer 10.0.1.1 hmac-md5 1 plain nilaogou
  vlink-peer 10.0.2.2
 area 0.0.0.2 
  network 10.0.34.0 0.0.0.255 

R4 参考配置:

un in en

ospf 10 router-id 10.0.4.4 
 area 0.0.0.2 
  network 10.0.4.4 0.0.0.0 
  network 10.0.34.0 0.0.0.255 

知识点

GRE 隧道

interface Tunnel0/0/1   指定Tunnel接口
 description 10.0.23.2   指定Tunnel接口描述信息
 ip address 1.1.1.2 255.255.255.0 
 tunnel-protocol gre   Tunnel接口的隧道协议为GRE
 source 10.0.23.3   指定Tunnel的源地址
 destination 10.0.23.2   指定Tunnel的目的地址

OSPF 虚链路及认证

vlink-peer 10.0.1.1 hmac-md5 1 plain nilaogou
vlink-peer    ID    MD5加密  标识符1 plain明文 nilaogou密码

详细可查看:点击查看华为命令手册

If you enjoyed this, leave a comment~

... Page views
© 2021 - 2026 Vullfin @VV
Powered by theme astro-koharu · Inspired by Shoka