news 2026/10/6 12:35:30

MV专线-客户两端运行IPSEC隧道打通

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
MV专线-客户两端运行IPSEC隧道打通

一 组网说明

 

①运营商为某客户提供MV专线,实现总部和分支三层互通;

②客户总部和分支通过运营商MV专线建立IPSEC隧道

③总部内网、分支内网全部配置的静态路由;

二 设备配置

2.1 运营商MV专线配置

2.1.1 PE1设备配置

sysname PE1

#

ip vpn-instance 1

route-distinguisher 1:1

vpn-target 1:1 import-extcommunity

vpn-target 1:1 export-extcommunity

#

ospf 1 router-id 9.9.9.1

area 0.0.0.0

 network 1.1.1.1 0.0.0.0

 network 9.9.9.1 0.0.0.0

#

ip unreachables enable

ip ttl-expires enable

#

lldp global enable

#

mpls lsr-id 9.9.9.1

#

mpls ldp

#

interface LoopBack0

ip address 9.9.9.1 255.255.255.255

#

interface GigabitEthernet0/0

port link-mode route

combo enable copper

ip address 1.1.1.1 255.255.255.0

mpls enable

mpls ldp enable

#

interface GigabitEthernet0/1

port link-mode route

combo enable copper

ip binding vpn-instance 1

ip address 192.168.1.1 255.255.255.0

#

interface GigabitEthernet0/2

port link-mode route

combo enable copper

#

bgp 100

peer 9.9.9.3 as-number 100

peer 9.9.9.3 connect-interface LoopBack0

#

address-family vpnv4

 peer 9.9.9.3 enable

#

ip vpn-instance 1

 #

 address-family ipv4 unicast

 import-route direct

#

2.1.2 P设备配置

sysname P

#

ospf 1 router-id 9.9.9.2

area 0.0.0.0

 network 1.1.1.2 0.0.0.0

 network 2.2.2.1 0.0.0.0

 network 9.9.9.2 0.0.0.0

#

ip unreachables enable

ip ttl-expires enable

#

lldp global enable

#

mpls lsr-id 9.9.9.2

#

mpls ldp

#

interface LoopBack0

ip address 9.9.9.2 255.255.255.255

#

interface GigabitEthernet0/0

port link-mode route

combo enable copper

ip address 1.1.1.2 255.255.255.0

mpls enable

mpls ldp enable

#

interface GigabitEthernet0/1

port link-mode route

combo enable copper

ip address 2.2.2.1 255.255.255.0

mpls enable

mpls ldp enable

#

2.1.3 PE2设备配置

sysname PE2

#

ip vpn-instance 1

route-distinguisher 1:1

vpn-target 1:1 import-extcommunity

vpn-target 1:1 export-extcommunity

#

ospf 1 router-id 9.9.9.3

area 0.0.0.0

 network 2.2.2.2 0.0.0.0

 network 9.9.9.3 0.0.0.0

#

ip unreachables enable

ip ttl-expires enable

#

lldp global enable

#

mpls lsr-id 9.9.9.3

#

mpls ldp

#

interface LoopBack0

ip address 9.9.9.3 255.255.255.255

#

interface GigabitEthernet0/0

port link-mode route

combo enable copper

ip address 2.2.2.2 255.255.255.0

mpls enable

mpls ldp enable

#

interface GigabitEthernet0/1

port link-mode route

combo enable copper

ip binding vpn-instance 1

ip address 192.168.2.1 255.255.255.0

#

interface GigabitEthernet0/2

port link-mode route

combo enable copper

#

bgp 100

peer 9.9.9.1 as-number 100

peer 9.9.9.1 connect-interface LoopBack0

#

address-family vpnv4

 peer 9.9.9.1 enable

#

ip vpn-instance 1

 #

 address-family ipv4 unicast

 import-route direct

#

2.2 总部和分支出口R配置地址和默认路由可测试地址可达

2.2.1 ZB-R地址和默认路由配置

sysname ZB-R

#

ip unreachables enable

ip ttl-expires enable

#

lldp global enable

#

interface GigabitEthernet0/0

port link-mode route

combo enable copper

ip address 192.168.1.2 255.255.255.0

#

ip route-static 0.0.0.0 0 192.168.1.1

#

2.2.2 FZ-R地址和默认路由配置

sysname FZ-R

#

ip unreachables enable

ip ttl-expires enable

#

lldp global enable

#

interface GigabitEthernet0/0

port link-mode route

combo enable copper

ip address 192.168.2.2 255.255.255.0

#

ip route-static 0.0.0.0 0 192.168.2.1

#

2.2.3 

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/10/6 12:34:52

2026多语言录音软件推荐:语种覆盖和功能差异

多语言场景下的录音转写翻车问题,在实际使用中出现频率很高。跨国会议里中英文混合发言识别错位,留学生课堂上多语种口音转写偏差,海外办公时APP界面语言切换不及时,这些都是用户高频遇到的实际问题。核心参数横向对比工具名称多语…

作者头像 李华
网站建设 2026/10/6 12:30:23

TIM定时中断(第一节)

目录 TIM简介定时器类型 一句话理解三档对比(从强到弱)几个名词翻译一下跟我们手上那块芯片的关系实际写代码时怎么选例 2:PWM 输出 —— 做 LED 呼吸灯例 3:输入捕获 —— 读红外遥控器的按键值三个例子串起来看*底层逻辑&#…

作者头像 李华
网站建设 2026/10/6 12:23:01

鸣潮后台自动战斗完全指南:ok-ww 一键日常与 4C 声骸刷取配置

鸣潮后台自动战斗完全指南:ok-ww 一键日常与 4C 声骸刷取配置 【免费下载链接】ok-wuthering-waves 鸣潮 后台自动战斗 自动刷声骸 一键日常 Automation for Wuthering Waves 项目地址: https://gitcode.com/GitHub_Trending/ok/ok-wuthering-waves 深夜想上…

作者头像 李华