设为首页 收藏本站
查看: 713|回复: 0

[经验分享] Juniper Mpls ***学习

[复制链接]

尚未签到

发表于 2018-7-27 13:29:26 | 显示全部楼层 |阅读模式
  闲来无事,在单位做了一个MPLS实验,贴上配置分享大家。Mpls *** Option A.
  est@RTE-10.0.3.4# show logical-systems
  r4 {
  interfaces {
  fe-0/3/1 {
  unit 230 {
  description TO_r5;
  vlan-id 230;
  family inet {
  address 21.21.21.1/30;
  }
  family mpls;
  }
  }
  fe-0/3/2 {
  unit 220 {
  description TO_r3;
  vlan-id 220;
  family inet {
  address 20.20.20.2/30;
  }
  family mpls;
  }
  lo0 {
  unit 4 {
  family inet {
  address 4.4.4.4/32;
  }
  }
  }
  }
  protocols {
  rsvp {
  interface all;
  }
  mpls {
  label-switched-path TO_r2 {
  to 2.2.2.2;
  }
  interface all;
  }
  bgp {
  group r2 {
  type internal;
  local-address 4.4.4.4;
  family inet {
  unicast;
  }
  family inet-*** {
  unicast;
  }
  neighbor 2.2.2.2;
  }
  }
  ospf {
  traffic-engineering;
  area 0.0.0.0 {
  interface fe-0/3/2.220;
  interface lo0.4;
  }
  }
  }
  routing-instances {
  to-r5 {
  instance-type vrf;
  interface fe-0/3/1.230;
  route-distinguisher 2:200;
  vrf-target target:1:100;
  protocols {
  bgp {
  group r5 {
  neighbor 21.21.21.2 {
  peer-as 200;
  }
  }
  }
  }
  }
  }
  routing-options {
  autonomous-system 100;
  }
  }
  r5 {
  interfaces {
  fe-0/3/1 {
  unit 240 {
  description TO_r6;
  vlan-id 240;
  family inet {
  address 22.22.22.1/30;
  }
  family mpls;
  }
  }
  fe-0/3/2 {
  unit 230 {
  description TO_r4;
  vlan-id 230;
  family inet {
  address 21.21.21.2/30;
  }
  family mpls;
  }
  }
  lo0 {
  unit 5 {
  family inet {
  address 5.5.5.5/32;
  }
  }
  }
  }
  protocols {
  rsvp {
  interface all;
  }
  mpls {
  label-switched-path r7 {
  to 7.7.7.7;
  }
  interface all;
  }
  bgp {
  group r7 {
  type internal;
  local-address 5.5.5.5;
  family inet {
  unicast;
  }
  family inet-*** {
  unicast;
  }
  neighbor 7.7.7.7;
  }
  }
  ospf {
  traffic-engineering;
  area 0.0.0.0 {
  interface fe-0/3/1.240;
  interface lo0.5;
  }
  }
  }
  routing-instances {
  to-r4 {
  instance-type vrf;
  interface fe-0/3/2.230;
  route-distinguisher 3:300;
  vrf-target target:1:100;
  protocols {
  bgp {
  group r4 {
  peer-as 100;
  neighbor 21.21.21.1;
  }
  }
  }
  }
  }
  routing-options {
  autonomous-system 200;
  }
  }
  r1 {
  interfaces {
  fe-0/3/1 {
  unit 200 {
  description TO_r1;
  vlan-id 200;
  family inet {
  address 18.18.18.1/30;
  }
  family mpls;
  }
  }
  lo0 {
  unit 1 {
  family inet {
  address 1.1.1.1/32;
  }
  }
  }
  }
  protocols {
  ospf {
  area 0.0.0.2 {
  interface fe-0/3/1.200;
  interface lo0.1;
  }
  }
  }
  }
  r8 {
  interfaces {
  fe-0/3/2 {
  unit 260 {
  vlan-id 260;
  family inet {
  address 24.24.24.2/30;
  }
  family mpls;
  }
  }
  lo0 {
  unit 8 {
  family inet {
  address 8.8.8.8/32;
  }
  }
  }
  }
  protocols {
  bgp {
  export direct;
  group r8 {
  type internal;
  neighbor 24.24.24.1;
  }
  }
  }
  policy-options {
  policy-statement direct {
  term 1 {
  from {
  protocol direct;
  interface lo0.8;
  }
  then accept;
  }
  }
  }
  routing-options {
  autonomous-system 20;
  }
  }
  r3 {
  interfaces {
  fe-0/3/1 {
  unit 220 {
  description TO_r4;
  vlan-id 220;
  family inet {
  address 20.20.20.1/30;
  }
  family mpls;
  }
  }
  fe-0/3/2 {
  unit 210 {
  description TO_r2;
  vlan-id 210;
  family inet {
  address 19.19.19.2/30;
  }
  family mpls;
  }
  }
  lo0 {
  unit 3 {
  family inet {
  address 3.3.3.3/32;
  }
  }
  }
  }
  protocols {
  rsvp {
  interface all;
  }
  mpls {
  interface all;
  }
  ospf {
  traffic-engineering;
  area 0.0.0.0 {
  interface all;
  }
  }
  }
  }
  r6 {
  interfaces {
  fe-0/3/1 {
  unit 250 {
  description TO_r7;
  vlan-id 250;
  family inet {
  address 23.23.23.1/30;
  }
  family mpls;
  }
  }
  fe-0/3/2 {
  unit 240 {
  description TO_r5;
  vlan-id 240;
  family inet {
  address 22.22.22.2/30;
  }
  family mpls;
  }
  }
  lo0 {
  unit 6 {
  family inet {
  address 6.6.6.6/32;
  }
  }
  }
  }
  protocols {
  rsvp {
  interface all;
  }
  mpls {
  interface all;
  }
  ospf {
  traffic-engineering;
  area 0.0.0.0 {
  interface all;
  }
  }
  }
  }
  r2 {
  interfaces {
  fe-0/3/1 {
  unit 210 {
  description TO_r3;
  vlan-id 210;
  family inet {
  address 19.19.19.1/30;
  }
  family mpls;
  }
  }
  fe-0/3/2 {
  unit 200 {
  description TO_r1;
  vlan-id 200;
  family inet {
  address 18.18.18.2/30;
  }
  family mpls;
  }
  }
  lo0 {
  unit 2 {
  family inet {
  address 2.2.2.2/32;
  }
  }
  }
  }
  protocols {
  rsvp {
  interface all;
  }
  mpls {
  label-switched-path TO_r4 {
  to 4.4.4.4;
  }
  interface all;
  }
  bgp {
  group r2 {
  type internal;
  local-address 2.2.2.2;
  family inet {
  unicast;
  }
  family inet-*** {
  unicast;
  }
  neighbor 4.4.4.4;
  }
  }
  ospf {
  traffic-engineering;
  area 0.0.0.0 {
  interface fe-0/3/1.210;
  interface lo0.2;
  }
  }
  }
  policy-options {
  policy-statement bgp-ospf {
  term 1 {
  from protocol bgp;
  then accept;
  }
  term 2 {
  then reject;
  }
  }
  policy-statement ***export {
  term 1 {
  from protocol ospf;
  then {
  community add test_comm;
  accept;
  }
  }
  term 2 {
  then reject;
  }
  }
  policy-statement ***import {
  term 1 {
  from {
  protocol bgp;
  community test_comm;
  }
  then accept;
  }
  term 2 {
  then reject;
  }
  }
  community test_comm members target:1:100;
  }
  routing-instances {
  r1 {
  instance-type vrf;
  interface fe-0/3/2.200;
  route-distinguisher 1:100;
  vrf-import ***import;
  vrf-export ***export;
  protocols {
  ospf {
  export bgp-ospf;
  area 0.0.0.2 {
  interface fe-0/3/2.200;
  }
  }
  }
  }
  }
  routing-options {
  autonomous-system 100;
  }
  }
  r7 {
  interfaces {
  fe-0/3/1 {
  unit 260 {
  description TO_r8;
  vlan-id 260;
  family inet {
  address 24.24.24.1/30;
  }
  family mpls;
  }
  }
  fe-0/3/2 {
  unit 250 {
  description TO_r6;
  vlan-id 250;
  family inet {
  address 23.23.23.2/30;
  }
  family mpls;
  }
  }
  lo0 {
  unit 7 {
  family inet {
  address 7.7.7.7/32;
  }
  }
  }
  }
  protocols {
  rsvp {
  traceoptions {
  file r7-rsvp;
  flag all;
  }
  interface fe-0/3/2.250;
  interface all;
  }
  mpls {
  label-switched-path r7 {
  to 5.5.5.5;
  }
  interface fe-0/3/2.250;
  interface all;
  }
  bgp {
  group r7 {
  type internal;
  local-address 7.7.7.7;
  family inet {
  unicast;
  }
  family inet-*** {
  unicast;
  }
  neighbor 5.5.5.5;
  }
  }
  ospf {
  traffic-engineering;
  area 0.0.0.0 {
  interface fe-0/3/2.250;
  interface lo0.7;
  }
  }
  }
  policy-options {
  policy-statement ***export {
  term 1 {
  from protocol bgp;
  then {
  community add comm;
  accept;
  }
  }
  term 2 {
  then reject;
  }
  }
  policy-statement ***import {
  term 1 {
  from {
  protocol bgp;
  community comm;
  }
  then accept;
  }
  term 2 {
  then reject;
  }
  }
  community comm members target:1:100;
  }
  routing-instances {
  r8 {
  instance-type vrf;
  interface fe-0/3/1.260;
  route-distinguisher 4:400;
  vrf-import ***import;
  vrf-export ***export;
  protocols {
  bgp {
  group r8 {
  type internal;
  local-as 20;
  neighbor 24.24.24.2;
  }
  }
  }
  }
  }
  routing-options {
  autonomous-system 200;
  }
  }
  [edit]
  test@RTE-10.0.3.4#
  [edit]

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-542135-1-1.html 上篇帖子: Juniper 之旅一 下篇帖子: juniper SRX 常用维护命令
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表