Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [edit]
- root@ISP-1-R1# show
- ## Last changed: 2018-04-11 07:49:32 UTC
- version 14.1R1.10;
- system {
- host-name ISP-1-R1;
- root-authentication {
- encrypted-password "$1$jN9xg82/$gUal2CRqIlldjMNTNYD/N/"; ## SECRET-DATA
- }
- syslog {
- user * {
- any emergency;
- }
- file messages {
- any notice;
- authorization info;
- }
- file interactive-commands {
- interactive-commands any;
- }
- }
- }
- interfaces {
- em2 {
- description "ISP-1-R1 to ISP-2-R1";
- unit 0 {
- family inet {
- address 30.30.30.9/30;
- }
- }
- }
- em3 {
- description "ISP-1-R1 to Customer A";
- unit 0 {
- family inet {
- address 30.30.30.13/30;
- }
- }
- }
- em4 {
- description "ISP-1-R1 to ISP-1-R2";
- unit 0 {
- family inet {
- address 50.50.50.2/30;
- }
- }
- }
- em5 {
- description "ISP-1-R1 to Edge-1";
- unit 0 {
- family inet {
- address 30.30.30.1/30;
- }
- }
- }
- lo0 {
- description Loopback;
- unit 0 {
- family inet {
- address 10.10.10.1/32;
- }
- }
- }
- }
- routing-options {
- static {
- route 0.0.0.0/0 discard;
- route 30.30.30.0/24 discard;
- route 50.50.50.0/24 discard;
- }
- router-id 10.10.10.1;
- autonomous-system 100;
- }
- protocols {
- bgp {
- group IBGP-PEERS {
- type internal;
- local-address 10.10.10.1;
- export STATIC;
- neighbor 10.10.10.2;
- }
- group enterprise-edge1 {
- type external;
- export BGP-ENTERPRISE-OUT;
- peer-as 10;
- neighbor 30.30.30.2;
- }
- group EBGP-PEER {
- type external;
- export BGP-ISP2-OUT;
- peer-as 200;
- neighbor 30.30.30.10;
- }
- group CUSTOMER-PEER {
- type external;
- import BGP-CUSTOMER-A-IN;
- export STATIC;
- peer-as 300;
- neighbor 30.30.30.14;
- }
- }
- ospf {
- area 0.0.0.0 {
- interface em4.0 {
- interface-type p2p;
- }
- interface lo0.0 {
- passive;
- }
- interface em5.0 {
- passive;
- }
- interface em2.0 {
- passive;
- }
- interface em3.0 {
- passive;
- }
- }
- }
- }
- policy-options {
- policy-statement BGP-CUSTOMER-A-IN {
- term ACCEPT {
- then {
- community add CUSTOMER_A_MARK;
- accept;
- }
- }
- }
- policy-statement BGP-ENTERPRISE-OUT {
- term DEFAULT {
- from {
- route-filter 0.0.0.0/0 exact;
- }
- then accept;
- }
- term ACCEPT {
- from community [ CUSTOMER_A_MARK CUSTOMER_B_MARK ];
- then accept;
- }
- term OTHER {
- then reject;
- }
- }
- policy-statement BGP-ISP2-OUT {
- term CUSTOMERS {
- from community CUSTOMER_A_MARK;
- then accept;
- }
- term AGGREGATES {
- from {
- route-filter 30.30.30.0/24 exact;
- route-filter 50.50.50.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;
- }
- }
- community CUSTOMER_A_MARK members 300:100;
- community CUSTOMER_B_MARK members 400:200;
- }
- [edit]
- root@ISP-1-R1#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement