Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dean@lab# show logical-systems | no-more
- A {
- interfaces {
- lt-0/0/10 {
- unit 1 {
- description "Link to B";
- encapsulation ethernet;
- bandwidth 10g;
- peer-unit 2;
- family inet {
- address 10.0.1.1/24;
- }
- family iso;
- family mpls;
- }
- unit 3 {
- description "Link to C - Expensive";
- encapsulation ethernet;
- bandwidth 1g;
- peer-unit 4;
- family inet {
- address 10.0.2.1/24;
- }
- family iso;
- family mpls;
- }
- unit 11 {
- description "HE Simulation";
- encapsulation ethernet;
- peer-unit 12;
- family inet {
- address 10.50.50.2/30;
- }
- }
- }
- lo0 {
- unit 2 {
- family inet {
- address 10.10.10.3/32;
- }
- family iso {
- address 49.0001.0100.1001.0003.00;
- }
- family mpls;
- }
- }
- }
- protocols {
- rsvp {
- interface lt-0/0/10.1;
- interface lt-0/0/10.3;
- interface lo0.2;
- }
- mpls {
- inactive: traffic-engineering {
- bgp-igp;
- }
- label-switched-path LSP-A-B {
- from 10.10.10.3;
- to 10.10.10.2;
- bandwidth 1g;
- priority 7 1;
- }
- label-switched-path LSP-A-C {
- from 10.10.10.3;
- to 10.10.10.1;
- bandwidth 1g;
- priority 7 1;
- }
- interface lo0.2;
- interface lt-0/0/10.1;
- interface lt-0/0/10.3;
- }
- bgp {
- group HE {
- peer-as 6939;
- neighbor 10.50.50.1;
- }
- group internal {
- local-address 10.10.10.3;
- export next-hop-self;
- peer-as 5000;
- neighbor 10.10.10.1;
- neighbor 10.10.10.2;
- }
- }
- isis {
- level 1 disable;
- interface lt-0/0/10.1 {
- bfd-liveness-detection {
- minimum-interval 50;
- }
- }
- interface lt-0/0/10.3 {
- bfd-liveness-detection {
- minimum-interval 50;
- }
- }
- interface lo0.2 {
- passive;
- }
- }
- }
- policy-options {
- policy-statement next-hop-self {
- term term-1 {
- then {
- next-hop self;
- }
- }
- }
- }
- routing-options {
- autonomous-system 5000;
- }
- }
- B {
- interfaces {
- lt-0/0/10 {
- unit 2 {
- description "Link to A";
- encapsulation ethernet;
- bandwidth 10g;
- peer-unit 1;
- family inet {
- address 10.0.1.2/24;
- }
- family iso;
- family mpls;
- }
- inactive: unit 5 {
- description "Link to C";
- encapsulation ethernet;
- bandwidth 10g;
- peer-unit 6;
- family inet {
- address 10.0.3.1/24;
- }
- family iso;
- family mpls;
- }
- unit 7 {
- description "Link to CE1";
- encapsulation ethernet-ccc;
- peer-unit 8;
- family ccc;
- }
- }
- lo0 {
- unit 6 {
- family inet {
- address 10.10.10.2/32;
- }
- family iso {
- address 49.0001.0100.1001.0002.00;
- }
- family mpls;
- }
- }
- }
- protocols {
- rsvp {
- interface lo0.6;
- interface lt-0/0/10.2;
- interface lt-0/0/10.5;
- }
- mpls {
- inactive: traffic-engineering {
- bgp-igp;
- }
- label-switched-path LSP-B-A {
- from 10.10.10.2;
- to 10.10.10.3;
- bandwidth 1g;
- priority 7 1;
- }
- label-switched-path LSP-B-C {
- from 10.10.10.2;
- to 10.10.10.1;
- bandwidth 1g;
- priority 7 1;
- }
- label-switched-path LSP-B-C-L2VPN {
- from 10.10.10.2;
- to 10.10.10.1;
- bandwidth 500m;
- priority 0 0;
- }
- interface lt-0/0/10.2;
- interface lt-0/0/10.5;
- }
- bgp {
- local-as 5000;
- group internal {
- local-address 10.10.10.2;
- export next-hop-self;
- peer-as 5000;
- neighbor 10.10.10.1;
- neighbor 10.10.10.3;
- }
- }
- isis {
- level 1 disable;
- interface lt-0/0/10.2 {
- bfd-liveness-detection {
- minimum-interval 50;
- }
- }
- interface lt-0/0/10.5 {
- bfd-liveness-detection {
- minimum-interval 50;
- }
- }
- interface lo0.6 {
- passive;
- }
- }
- ldp {
- interface lo0.6;
- }
- l2circuit {
- neighbor 10.10.10.1 {
- interface lt-0/0/10.7 {
- virtual-circuit-id 1;
- community test-community;
- }
- }
- }
- }
- policy-options {
- policy-statement load-balancing-policy {
- then {
- load-balance per-packet;
- }
- }
- policy-statement map-l2circuit-to-lsp {
- term 1 {
- from {
- protocol l2circuit;
- community test-community;
- }
- then {
- install-nexthop lsp LSP-B-C-L2VPN;
- }
- }
- }
- policy-statement next-hop-self {
- term term-1 {
- then {
- next-hop self;
- }
- }
- }
- community test-community members 300:300;
- }
- routing-options {
- autonomous-system 5000;
- forwarding-table {
- export [ load-balancing-policy map-l2circuit-to-lsp ];
- }
- }
- }
- C {
- interfaces {
- lt-0/0/10 {
- unit 4 {
- description "Link to A - Expensive";
- encapsulation ethernet;
- bandwidth 1g;
- peer-unit 3;
- family inet {
- address 10.0.2.2/24;
- }
- family iso;
- family mpls;
- }
- unit 6 {
- description "Link to B";
- encapsulation ethernet;
- bandwidth 10g;
- peer-unit 5;
- family inet {
- address 10.0.3.2/24;
- }
- family iso;
- family mpls;
- }
- unit 9 {
- description "Link to CE2";
- encapsulation ethernet-ccc;
- peer-unit 10;
- family ccc;
- }
- unit 13 {
- description "Cogent Simulation";
- encapsulation ethernet;
- peer-unit 14;
- family inet {
- address 10.50.51.2/30;
- }
- }
- }
- lo0 {
- unit 5 {
- family inet {
- address 10.10.10.1/32;
- }
- family iso {
- address 49.0001.0100.1001.0001.00;
- }
- family mpls;
- }
- }
- }
- protocols {
- rsvp {
- interface lo0.5;
- interface lt-0/0/10.4;
- interface lt-0/0/10.6;
- }
- mpls {
- inactive: traffic-engineering {
- bgp-igp;
- }
- label-switched-path LSP-C-A {
- from 10.10.10.1;
- to 10.10.10.3;
- bandwidth 1g;
- priority 7 1;
- }
- label-switched-path LSP-C-B {
- from 10.10.10.1;
- to 10.10.10.2;
- bandwidth 1g;
- priority 7 1;
- }
- label-switched-path LSP-C-B-L2VPN {
- from 10.10.10.1;
- to 10.10.10.2;
- bandwidth 500m;
- priority 0 0;
- }
- interface lt-0/0/10.4;
- interface lt-0/0/10.6;
- }
- bgp {
- group COGENT {
- peer-as 174;
- neighbor 10.50.51.1;
- }
- group internal {
- local-address 10.10.10.1;
- export next-hop-self;
- peer-as 5000;
- neighbor 10.10.10.2;
- neighbor 10.10.10.3;
- }
- }
- isis {
- level 1 disable;
- interface lt-0/0/10.4 {
- bfd-liveness-detection {
- minimum-interval 50;
- }
- }
- interface lt-0/0/10.6 {
- bfd-liveness-detection {
- minimum-interval 50;
- }
- }
- interface lo0.5 {
- passive;
- }
- }
- ldp {
- interface lo0.5;
- }
- l2circuit {
- neighbor 10.10.10.2 {
- interface lt-0/0/10.9 {
- virtual-circuit-id 1;
- community test-community;
- }
- }
- }
- }
- policy-options {
- policy-statement load-balancing-policy {
- then {
- load-balance per-packet;
- }
- }
- policy-statement map-l2circuit-to-lsp {
- term 1 {
- from {
- protocol l2circuit;
- community test-community;
- }
- then {
- install-nexthop lsp LSP-C-B-L2VPN;
- }
- }
- }
- policy-statement next-hop-self {
- term term-1 {
- then {
- next-hop self;
- }
- }
- }
- community test-community members 300:300;
- }
- routing-options {
- autonomous-system 5000;
- forwarding-table {
- export [ load-balancing-policy map-l2circuit-to-lsp ];
- }
- }
- }
- CE1 {
- interfaces {
- lt-0/0/10 {
- unit 8 {
- description "Link to B";
- encapsulation ethernet;
- peer-unit 7;
- family inet {
- address 10.99.99.1/24 {
- arp 10.99.99.2 mac 5c:5e:ab:d5:f4:00;
- }
- }
- }
- }
- }
- }
- CE2 {
- interfaces {
- lt-0/0/10 {
- unit 10 {
- description "Link to C";
- encapsulation ethernet;
- peer-unit 9;
- family inet {
- address 10.99.99.2/24 {
- arp 10.99.99.1 mac 5c:5e:ab:d5:f4:00;
- }
- }
- }
- }
- }
- }
- COGENT {
- interfaces {
- lt-0/0/10 {
- unit 14 {
- description "Cogent Simulation";
- encapsulation ethernet;
- peer-unit 13;
- family inet {
- address 10.50.51.1/30;
- }
- }
- unit 16 {
- description Peering;
- encapsulation ethernet;
- peer-unit 15;
- family inet {
- address 10.60.60.2/30;
- }
- }
- }
- }
- protocols {
- bgp {
- group Customer {
- export customer-out;
- peer-as 5000;
- neighbor 10.50.51.2;
- }
- group Peering {
- import peers-in;
- export peers-out;
- peer-as 6939;
- neighbor 10.60.60.1;
- }
- }
- }
- policy-options {
- policy-statement customer-out {
- term accept-originated {
- from community originate-routes;
- then accept;
- }
- term accept-peers {
- from community peers;
- then accept;
- }
- term reject-all {
- then reject;
- }
- }
- policy-statement peers-in {
- term routes-in {
- then {
- community set peers;
- accept;
- }
- }
- }
- policy-statement peers-out {
- term routes-out {
- from community peers;
- then accept;
- }
- term accept-originated {
- from community originate-routes;
- then accept;
- }
- }
- community originate-routes members 174:100;
- community peers members 174:101;
- }
- routing-options {
- static {
- route 2.2.2.0/24 {
- discard;
- community 174:100;
- }
- }
- autonomous-system 174;
- }
- }
- HE {
- interfaces {
- lt-0/0/10 {
- unit 12 {
- description "HE Simulation";
- encapsulation ethernet;
- peer-unit 11;
- family inet {
- address 10.50.50.1/30;
- }
- }
- unit 15 {
- description Peering;
- encapsulation ethernet;
- peer-unit 16;
- family inet {
- address 10.60.60.1/30;
- }
- }
- }
- }
- protocols {
- bgp {
- group Customer {
- export customer-out;
- peer-as 5000;
- neighbor 10.50.50.2;
- }
- group Peering {
- import peers-in;
- export peers-out;
- peer-as 174;
- neighbor 10.60.60.2;
- }
- }
- }
- policy-options {
- policy-statement customer-out {
- term accept-originated {
- from community originate-routes;
- then accept;
- }
- term accept-peers {
- from community peers;
- then accept;
- }
- term reject-all {
- then reject;
- }
- }
- policy-statement peers-in {
- term routes-in {
- then {
- community set peers;
- accept;
- }
- }
- }
- policy-statement peers-out {
- term routes-out {
- from community peers;
- then accept;
- }
- term accept-originated {
- from community originate-routes;
- then accept;
- }
- }
- community originate-routes members 6939:100;
- community peers members 6939:101;
- }
- routing-options {
- static {
- route 1.1.1.0/24 {
- discard;
- community 6939:100;
- }
- }
- autonomous-system 6939;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement