ENSP MPLS 3层专线

编程入门 行业动态 更新时间:2024-10-23 21:27:12

ENSP MPLS 3层<a href=https://www.elefans.com/category/jswz/34/1768758.html style=专线"/>

ENSP MPLS 3层专线

拓扑图

左边使用OSPF,右边使用ISIS。双边做路由引入,全部路由器开启MPLS。R3R4使用EBGP互通。两台交换机用来打VLAN对接路由器的子接口。
R1配置:

<r1>dis cu
#
sysname r1
#
mpls lsr-id 1.1.1.1
mpls
#
mpls ldp#
interface GigabitEthernet0/0/0ip address 10.0.100.1 255.255.255.252mplsmpls ldp
#
interface GigabitEthernet0/0/1ip address 10.0.0.1 255.255.255.252mplsmpls ldp
#interface LoopBack0ip address 1.1.1.1 255.255.255.255
#
ospf 1import-route directarea 0.0.0.0network 1.1.1.1 0.0.0.0network 10.0.0.0 0.0.0.3network 10.0.100.0 0.0.0.3
#

R2配置:

<r2>dis cu
#
sysname r2
#
mpls lsr-id 2.2.2.2
mpls
#
mpls ldp
#isis 100network-entity 49.0001.0222.2000.0000.00import-route directimport-route ospf 1
#interface GigabitEthernet0/0/0ip address 10.0.100.2 255.255.255.252isis enable 100mplsmpls ldp
#
interface GigabitEthernet0/0/1ip address 10.0.1.1 255.255.255.252isis enable 100mplsmpls ldp
#interface LoopBack0ip address 2.2.2.2 255.255.255.255isis enable 100
#
ospf 1import-route isis 100area 0.0.0.0network 0.0.0.0 255.255.255.255

R3配置:

#
sysname r3
#
ip vpn-instance vpnaipv4-familyroute-distinguisher 100:1vpn-target 111:1 export-extcommunityvpn-target 111:1 import-extcommunity
#
mpls lsr-id 3.3.3.3
mpls
#
mpls ldp
#interface GigabitEthernet0/0/0ip address 10.0.0.2 255.255.255.252mplsmpls ldp
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/1.10dot1q termination vid 10ip binding vpn-instance vpnaip address 10.0.10.1 255.255.255.252
#interface LoopBack0ip address 3.3.3.3 255.255.255.255
#
bgp 100router-id 3.3.3.3peer 4.4.4.4 as-number 200peer 4.4.4.4 ebgp-max-hop 10peer 4.4.4.4 connect-interface LoopBack0#ipv4-family unicastundo synchronizationpeer 4.4.4.4 enablepeer 4.4.4.4 next-hop-local#ipv4-family vpnv4policy vpn-targetpeer 4.4.4.4 enable#ipv4-family vpn-instance vpnaimport-route directimport-route static
#
ospf 1area 0.0.0.0network 3.3.3.3 0.0.0.0network 10.0.0.0 0.0.0.3

R4配置

#
sysname r4
#
ip vpn-instance vpnaipv4-familyroute-distinguisher 100:1vpn-target 111:1 export-extcommunityvpn-target 111:1 import-extcommunity
#
mpls lsr-id 4.4.4.4
mpls
#
mpls ldp
#isis 100network-entity 49.0001.0444.4000.0000.00
#interface GigabitEthernet0/0/0ip address 10.0.1.2 255.255.255.252isis enable 100mplsmpls ldp
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/1.20dot1q termination vid 20ip binding vpn-instance vpnaip address 10.0.20.1 255.255.255.252
#
interface GigabitEthernet0/0/2ip binding vpn-instance vpnaip address 10.0.30.1 255.255.255.252
#interface LoopBack0ip address 4.4.4.4 255.255.255.255isis enable 100
#
bgp 200router-id 4.4.4.4peer 3.3.3.3 as-number 100peer 3.3.3.3 ebgp-max-hop 10peer 3.3.3.3 connect-interface LoopBack0#ipv4-family unicastundo synchronizationimport-route staticpeer 3.3.3.3 enablepeer 3.3.3.3 next-hop-local#ipv4-family vpnv4policy vpn-targetpeer 3.3.3.3 enable#ipv4-family vpn-instance vpnaimport-route directimport-route static
#3台主机可以互ping,R1R2间抓包有MPLS标签

更多推荐

ENSP MPLS 3层专线

本文发布于:2024-02-06 11:16:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1748428.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:专线   ENSP   MPLS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!