Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@PE22# show | display set
- set version 17.1R1.8
- set system host-name PE22
- set system domain-name testlab.com
- set system root-authentication encrypted-password "$6$Y2bLvBI8$gz4cHHJzuLBuYX5t5SldPm65UTzxTjNWzU2hKYzzrZKyD4lenLkrogtCP2ok3fMUprxHddUkB1ndkq4vlWqJH."
- set system login user the-packet-thrower uid 2000
- set system login user the-packet-thrower class super-user
- set system login user the-packet-thrower authentication encrypted-password "$6$lenXqvWs$PUpUBmZvhy4s1UsYIzeXjekXy5rXKECugHlW4jO4J3BeTMmVpLdZZX/7.BGznLdgG7JLJgV5DZ0FY6c3ziXAs0"
- set system services ssh
- set system syslog user * any emergency
- set system syslog file messages any notice
- set system syslog file messages authorization info
- set system syslog file interactive-commands interactive-commands any
- set logical-systems RR02 interfaces ge-0/0/2 unit 3123 vlan-id 3123
- set logical-systems RR02 interfaces ge-0/0/2 unit 3123 family inet address 10.1.123.254/24
- set logical-systems RR02 interfaces ge-0/0/2 unit 3123 family mpls
- set logical-systems RR02 interfaces lo0 unit 1 family inet address 192.168.255.254/32
- set logical-systems RR02 protocols mpls interface all
- set logical-systems RR02 protocols bgp group PE-INTERNAL type internal
- set logical-systems RR02 protocols bgp group PE-INTERNAL local-address 192.168.255.254
- set logical-systems RR02 protocols bgp group PE-INTERNAL family inet-vpn unicast
- set logical-systems RR02 protocols bgp group PE-INTERNAL cluster 192.168.255.254
- set logical-systems RR02 protocols bgp group PE-INTERNAL neighbor 192.168.255.11
- set logical-systems RR02 protocols bgp group PE-INTERNAL neighbor 192.168.255.22
- set logical-systems RR02 protocols bgp group PE-INTERNAL neighbor 192.168.255.33
- set logical-systems RR02 protocols bgp group PE-INTERNAL neighbor 192.168.255.44
- set logical-systems RR02 protocols ospf area 0.0.0.0 interface all
- set logical-systems RR02 protocols ldp interface all
- set logical-systems RR02 routing-options autonomous-system 65123
- set interfaces ge-0/0/0 unit 0 family inet address 10.20.2.202/24
- set interfaces ge-0/0/1 vlan-tagging
- set interfaces ge-0/0/1 unit 3022 vlan-id 3022
- set interfaces ge-0/0/1 unit 3022 family inet address 10.2.22.254/24
- set interfaces ge-0/0/1 unit 3022 family mpls
- set interfaces ge-0/0/1 unit 3123 vlan-id 3123
- set interfaces ge-0/0/1 unit 3123 family inet address 10.1.123.22/24
- set interfaces ge-0/0/1 unit 3123 family mpls
- set interfaces ge-0/0/2 vlan-tagging
- set interfaces ge-0/0/5 unit 0 family inet address 192.168.2.254/24
- set interfaces lo0 unit 0 family inet address 192.168.255.22/32
- set interfaces lo0 unit 0 family mpls
- set routing-options static route 0.0.0.0/0 next-hop 10.20.2.1
- set routing-options router-id 192.168.255.22
- set routing-options autonomous-system 65123
- set protocols mpls interface all
- set protocols bgp group PE-Internal type internal
- set protocols bgp group PE-Internal local-address 192.168.255.22
- set protocols bgp group PE-Internal family inet-vpn unicast
- set protocols bgp group PE-Internal neighbor 192.168.255.11
- set protocols bgp group PE-Internal neighbor 192.168.255.33
- set protocols bgp group PE-Internal neighbor 192.168.255.44
- deactivate protocols bgp group PE-Internal
- set protocols bgp group RR type internal
- set protocols bgp group RR local-address 192.168.255.22
- set protocols bgp group RR family inet-vpn unicast
- set protocols bgp group RR neighbor 192.168.255.154
- set protocols bgp group RR neighbor 192.168.255.254
- set protocols ospf area 0.0.0.0 interface all
- set protocols ospf area 0.0.0.0 interface lo0.0 passive
- set protocols ldp deaggregate
- set protocols ldp interface all
- set protocols lldp interface all
- set policy-options policy-statement EXPORT-BGP then accept
- set policy-options policy-statement EXPORT-CE02 term EXPORT from protocol direct
- set policy-options policy-statement EXPORT-CE02 term EXPORT from protocol bgp
- set policy-options policy-statement EXPORT-CE02 term EXPORT from protocol rip
- set policy-options policy-statement EXPORT-CE02 term EXPORT from protocol ospf
- set policy-options policy-statement EXPORT-CE02 term EXPORT then community add RT-EXPORT-CE02
- set policy-options policy-statement EXPORT-CE02 term EXPORT then accept
- set policy-options policy-statement EXPORT-CE02 term REJECT then reject
- set policy-options policy-statement EXPORT-OSPF from protocol bgp
- set policy-options policy-statement EXPORT-OSPF then accept
- set policy-options policy-statement EXPORT-RIP then metric 5
- set policy-options policy-statement EXPORT-RIP then accept
- set policy-options policy-statement IMPORT-CE02 term IMPORT from protocol bgp
- set policy-options policy-statement IMPORT-CE02 term IMPORT from community RT-IMPORT-CE02
- set policy-options policy-statement IMPORT-CE02 term IMPORT from community RT-IMPORT-CE01
- set policy-options policy-statement IMPORT-CE02 term IMPORT then accept
- set policy-options policy-statement IMPORT-CE02 term REJECT then reject
- set policy-options community RT-EXPORT-CE02 members target:65123:102
- set policy-options community RT-IMPORT-CE01 members target:65123:101
- set policy-options community RT-IMPORT-CE02 members target:65123:102
- set policy-options community RT-IMPORT-CE03 members target:65123:103
- set policy-options community RT-IMPORT-CE04 members target:65123:104
- set routing-instances CE02 instance-type vrf
- set routing-instances CE02 interface ge-0/0/5.0
- set routing-instances CE02 route-distinguisher 65123:102
- set routing-instances CE02 vrf-import IMPORT-CE02
- set routing-instances CE02 vrf-export EXPORT-CE02
- set routing-instances CE02 vrf-table-label
- set routing-instances CE02 routing-options router-id 192.168.255.22
- set routing-instances CE02 protocols rip group CUST-A export EXPORT-RIP
- set routing-instances CE02 protocols rip group CUST-A neighbor ge-0/0/5.0
- set routing-instances MGMT instance-type virtual-router
- set routing-instances MGMT interface ge-0/0/0.0
- set routing-instances MGMT routing-options static route 0.0.0.0/0 next-hop 10.20.2.1
- root@PE22# show
- ## Last changed: 2017-09-19 18:02:44 UTC
- version 17.1R1.8;
- system {
- host-name PE22;
- domain-name testlab.com;
- root-authentication {
- encrypted-password "$6$Y2bLvBI8$gz4cHHJzuLBuYX5t5SldPm65UTzxTjNWzU2hKYzzrZKyD4lenLkrogtCP2ok3fMUprxHddUkB1ndkq4vlWqJH."; ## SECRET-DATA
- }
- login {
- user the-packet-thrower {
- uid 2000;
- class super-user;
- authentication {
- encrypted-password "$6$lenXqvWs$PUpUBmZvhy4s1UsYIzeXjekXy5rXKECugHlW4jO4J3BeTMmVpLdZZX/7.BGznLdgG7JLJgV5DZ0FY6c3ziXAs0"; ## SECRET-DATA
- }
- }
- }
- services {
- ssh;
- }
- syslog {
- user * {
- any emergency;
- }
- file messages {
- any notice;
- authorization info;
- }
- file interactive-commands {
- interactive-commands any;
- }
- }
- }
- logical-systems {
- RR02 {
- interfaces {
- ge-0/0/2 {
- unit 3123 {
- vlan-id 3123;
- family inet {
- address 10.1.123.254/24;
- }
- family mpls;
- }
- }
- lo0 {
- unit 1 {
- family inet {
- address 192.168.255.254/32;
- }
- }
- }
- }
- protocols {
- mpls {
- interface all;
- }
- bgp {
- group PE-INTERNAL {
- type internal;
- local-address 192.168.255.254;
- family inet-vpn {
- unicast;
- }
- cluster 192.168.255.254;
- neighbor 192.168.255.11;
- neighbor 192.168.255.22;
- neighbor 192.168.255.33;
- neighbor 192.168.255.44;
- }
- }
- ospf {
- area 0.0.0.0 {
- interface all;
- }
- }
- ldp {
- interface all;
- }
- }
- routing-options {
- autonomous-system 65123;
- }
- }
- }
- interfaces {
- ge-0/0/0 {
- unit 0 {
- family inet {
- address 10.20.2.202/24;
- }
- }
- }
- ge-0/0/1 {
- vlan-tagging;
- unit 3022 {
- vlan-id 3022;
- family inet {
- address 10.2.22.254/24;
- }
- family mpls;
- }
- unit 3123 {
- vlan-id 3123;
- family inet {
- address 10.1.123.22/24;
- }
- family mpls;
- }
- }
- ge-0/0/2 {
- vlan-tagging;
- }
- ge-0/0/5 {
- unit 0 {
- family inet {
- address 192.168.2.254/24;
- }
- }
- }
- lo0 {
- unit 0 {
- family inet {
- address 192.168.255.22/32;
- }
- family mpls;
- }
- }
- }
- routing-options {
- static {
- route 0.0.0.0/0 next-hop 10.20.2.1;
- }
- router-id 192.168.255.22;
- autonomous-system 65123;
- }
- protocols {
- mpls {
- interface all;
- }
- bgp {
- inactive: group PE-Internal {
- type internal;
- local-address 192.168.255.22;
- family inet-vpn {
- unicast;
- }
- neighbor 192.168.255.11;
- neighbor 192.168.255.33;
- neighbor 192.168.255.44;
- }
- group RR {
- type internal;
- local-address 192.168.255.22;
- family inet-vpn {
- unicast;
- }
- neighbor 192.168.255.154;
- neighbor 192.168.255.254;
- }
- }
- ospf {
- area 0.0.0.0 {
- interface all;
- interface lo0.0 {
- passive;
- }
- }
- }
- ldp {
- deaggregate;
- interface all;
- }
- lldp {
- interface all;
- }
- }
- policy-options {
- policy-statement EXPORT-BGP {
- then accept;
- }
- policy-statement EXPORT-CE02 {
- term EXPORT {
- from protocol [ direct bgp rip ospf ];
- then {
- community add RT-EXPORT-CE02;
- accept;
- }
- }
- term REJECT {
- then reject;
- }
- }
- policy-statement EXPORT-OSPF {
- from protocol bgp;
- then accept;
- }
- policy-statement EXPORT-RIP {
- then {
- metric 5;
- accept;
- }
- }
- policy-statement IMPORT-CE02 {
- term IMPORT {
- from {
- protocol bgp;
- community [ RT-IMPORT-CE02 RT-IMPORT-CE01 ];
- }
- then accept;
- }
- term REJECT {
- then reject;
- }
- }
- community RT-EXPORT-CE02 members target:65123:102;
- community RT-IMPORT-CE01 members target:65123:101;
- community RT-IMPORT-CE02 members target:65123:102;
- community RT-IMPORT-CE03 members target:65123:103;
- community RT-IMPORT-CE04 members target:65123:104;
- }
- routing-instances {
- CE02 {
- instance-type vrf;
- interface ge-0/0/5.0;
- route-distinguisher 65123:102;
- vrf-import IMPORT-CE02;
- vrf-export EXPORT-CE02;
- vrf-table-label;
- routing-options {
- router-id 192.168.255.22;
- }
- protocols {
- rip {
- group CUST-A {
- export EXPORT-RIP;
- neighbor ge-0/0/5.0;
- }
- }
- }
- }
- MGMT {
- instance-type virtual-router;
- interface ge-0/0/0.0;
- routing-options {
- static {
- route 0.0.0.0/0 next-hop 10.20.2.1;
- }
- }
- }
- }
- [edit]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement