Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [edit]
- root@ISP-2-R1# show
- ## Last changed: 2018-04-15 10:17:35 UTC
- version 14.1R1.10;
- system {
- host-name ISP-2-R1;
- root-authentication {
- encrypted-password "$1$UMny9ixC$mGqZftl9XNKttGpyPeqaA."; ## SECRET-DATA
- }
- syslog {
- user * {
- any emergency;
- }
- file messages {
- any notice;
- authorization info;
- }
- file interactive-commands {
- interactive-commands any;
- }
- }
- }
- interfaces {
- em2 {
- description "ISP-2-R1 to ISP-1-R1";
- unit 0 {
- family inet {
- address 30.30.30.10/30;
- }
- }
- }
- em3 {
- description "ISP-2-R1 to Customer B";
- unit 0 {
- family inet {
- address 40.40.40.5/30;
- }
- }
- }
- em5 {
- description "ISP-2-R1 to Edge-2";
- unit 0 {
- family inet {
- address 40.40.40.1/30;
- }
- }
- }
- lo0 {
- unit 0 {
- family inet {
- address 20.20.20.1/32;
- }
- }
- }
- }
- routing-options {
- static {
- route 0.0.0.0/0 discard;
- route 40.40.40.0/24 discard;
- }
- router-id 20.20.20.1;
- autonomous-system 200;
- }
- protocols {
- bgp {
- group enterprise-edge2 {
- type external;
- import BGP-ENTERPRISE-IN;
- inactive: export BGP-ENTERPRISE-OUT;
- peer-as 10;
- neighbor 40.40.40.2;
- }
- group EBGP-PEER {
- type external;
- export BGP-ISP1-OUT;
- peer-as 100;
- neighbor 30.30.30.9;
- }
- group CUSTOMER-PEER {
- type external;
- import BGP-CUSTOMER-B-IN;
- export STATIC;
- peer-as 400;
- neighbor 40.40.40.6;
- }
- }
- }
- policy-options {
- policy-statement BGP-CUSTOMER-B-IN {
- term ACCEPT {
- then {
- community add CUSTOMER_B_MARK;
- accept;
- }
- }
- }
- policy-statement BGP-ENTERPRISE-IN {
- term 1 {
- then {
- community add ENTERPRISE-MARK;
- accept;
- }
- }
- }
- policy-statement BGP-ENTERPRISE-OUT {
- term DEFAULT {
- from {
- route-filter 0.0.0.0/0 exact;
- }
- then accept;
- }
- term ACCPET {
- from community [ CUSTOMER_A_MARK CUSTOMER_B_MARK ];
- then accept;
- }
- term OTHER {
- then reject;
- }
- }
- policy-statement BGP-ISP1-OUT {
- term CUSTOMERS {
- from community [ CUSTOMER_B_MARK ENTERPRISE-MARK ];
- then accept;
- }
- term AGGREGATES {
- from {
- route-filter 40.40.40.0/24 exact;
- }
- then accept;
- }
- term OTHER {
- then reject;
- }
- }
- policy-statement STATIC {
- term DEFAULT {
- from {
- route-filter 0.0.0.0/0 exact;
- }
- then accept;
- }
- term OTHER {
- then reject;
- }
- }
- community CUSTOMER_A_MARK members 300:100;
- community CUSTOMER_B_MARK members 400:200;
- community ENTERPRISE-MARK members 10:200;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement