====================================================== Eastcoast cfg ============================================================ ## Last commit: version 9.3R3.8; groups { /* Applied GLOBALY */ re0 { system { host-name east-coast-core-0; } } } apply-groups re0; system { host-name east-coast; domain-name; time-zone ; no-redirects; ports { console { log-out-on-disconnect; type vt100; } } root-authentication { } accounting { events [ login change-log interactive-commands ]; destination; } login { message "\n\n\n\n\n"; class { idle-timeout 15; } user { full-name ; uid ; class ; authentication { } } } services { ftp; ssh { protocol-version v2; connection-limit 20; } } } chassis { routing-engine { on-disk-failure disk-failure-action reboot; } } interfaces { ge-0/1/0 { unit 0 { family inet { address 192.168.6.1/24; } } } ge-0/2/0 { unit 0 { family inet { address 192.168.7.1/24; } } } ge-0/3/0 { unit 0 { family inet { address 192.168.9.1/24; } } } ge-1/0/0 { unit 0 { family inet { address 192.168.0.1/24 { preferred; } } } } ge-1/1/0 { unit 0 { family inet { address 192.168.5.1/24; } } } lo0 { unit 0 { family inet { address 172.16.0.1/24; } } } } routing-options { graceful-restart { restart-duration 120; } } protocols { bgp { preference 0; family inet { unicast; multicast; } local-as 65533; group EBGP_01 { type external; local-address 192.168.6.1; import EBGP; export Direct; peer-as 65539; neighbor 192.168.6.4; } group EBGP_02 { type external; local-address 192.168.7.1; import EBGP; export Direct; peer-as 65540; neighbor 192.168.7.4; } group EBGP_03 { type external; local-address 192.168.0.1; advertise-inactive; import EBGP; export Direct; peer-as 65536; neighbor 192.168.0.2; } group EBGP_04 { type external; local-address 192.168.9.1; advertise-inactive; import EBGP; export Direct; peer-as 65535; neighbor 192.168.9.4; } } } policy-options { prefix-list Loopback { 172.16.0.0/24; } policy-statement Direct { term 1 { from { protocol direct; prefix-list Loopback; } then accept; } term 2 { from { route-filter 172.16.6.0/24 exact; route-filter 172.16.7.0/24 exact; route-filter 172.16.8.0/24 exact; route-filter 192.168.6.0/24 exact; route-filter 192.168.7.0/24 exact; route-filter 192.168.8.0/24 exact; route-filter 10.6.6.0/24 exact; route-filter 10.7.7.0/24 exact; route-filter 10.8.8.0/24 exact; route-filter 192.168.0.0/24 exact; route-filter 172.16.9.0/24 exact; route-filter 192.168.9.0/24 exact; route-filter 192.168.5.0/24 exact; } then accept; } term 3 { from protocol static; then accept; } } policy-statement EBGP { term 1 { from protocol bgp; then accept; } } } ====================================================== EastCoast - show route ====================================================== root@east-coast-core# run show route | no-more inet.0: 29 destinations, 31 routes (29 active, 0 holddown, 0 hidden) Restart Complete + = Active Route, - = Last Active, * = Both 10.2.2.0/24 *[BGP/0] 1d 00:32:24, localpref 100 AS path: 65536 65537 ? > to 192.168.0.2 via ge-1/0/0.0 10.3.3.0/24 *[BGP/0] 1d 00:32:24, localpref 100 AS path: 65536 65538 ? > to 192.168.0.2 via ge-1/0/0.0 10.4.1.0/24 *[Direct/0] 1d 00:34:15 > via fxp0.0 10.4.1.60/32 *[Local/0] 1d 00:34:15 Local via fxp0.0 10.6.6.0/24 *[BGP/0] 1d 00:32:02, MED 55, localpref 100 AS path: 65539 ? > to 192.168.6.4 via ge-0/1/0.0 10.7.7.0/24 *[BGP/0] 1d 00:32:03, MED 55, localpref 100 AS path: 65540 ? > to 192.168.7.4 via ge-0/2/0.0 10.8.8.0/24 *[BGP/0] 1d 00:32:38, localpref 100 AS path: 65535 65534 ? > to 192.168.9.4 via ge-0/3/0.0 172.16.0.0/24 *[Direct/0] 1d 00:34:15 > via lo0.0 172.16.0.1/32 *[Local/0] 1d 00:34:15 Local via lo0.0 172.16.1.0/24 *[BGP/0] 1d 00:32:24, localpref 100 AS path: 65536 I > to 192.168.0.2 via ge-1/0/0.0 172.16.2.0/24 *[BGP/0] 1d 00:32:24, localpref 100 AS path: 65536 65537 ? > to 192.168.0.2 via ge-1/0/0.0 172.16.3.0/24 *[BGP/0] 1d 00:32:24, localpref 100 AS path: 65536 65538 ? > to 192.168.0.2 via ge-1/0/0.0 172.16.6.0/24 *[BGP/0] 1d 00:32:02, MED 55, localpref 100 AS path: 65539 ? > to 192.168.6.4 via ge-0/1/0.0 172.16.7.0/24 *[BGP/0] 1d 00:32:03, MED 55, localpref 100 AS path: 65540 ? > to 192.168.7.4 via ge-0/2/0.0 172.16.8.0/24 *[BGP/0] 1d 00:32:38, localpref 100 AS path: 65535 65534 ? > to 192.168.9.4 via ge-0/3/0.0 192.168.0.0/24 *[Direct/0] 1d 00:32:32 > via ge-1/0/0.0 [BGP/0] 1d 00:32:24, localpref 100 AS path: 65536 I > to 192.168.0.2 via ge-1/0/0.0 192.168.0.1/32 *[Local/0] 1d 00:32:37 Local via ge-1/0/0.0 192.168.1.0/24 *[BGP/0] 1d 00:18:32, localpref 100 AS path: 65536 I > to 192.168.0.2 via ge-1/0/0.0 192.168.2.0/24 *[BGP/0] 1d 00:32:24, localpref 100 AS path: 65536 I > to 192.168.0.2 via ge-1/0/0.0 192.168.3.0/24 *[BGP/0] 1d 00:32:24, localpref 100 AS path: 65536 I > to 192.168.0.2 via ge-1/0/0.0 192.168.5.0/24 *[Direct/0] 1d 00:17:16 > via ge-1/1/0.0 192.168.5.1/32 *[Local/0] 1d 00:17:16 Local via ge-1/1/0.0 192.168.6.0/24 *[Direct/0] 1d 00:32:40 > via ge-0/1/0.0 192.168.6.1/32 *[Local/0] 1d 00:32:44 Local via ge-0/1/0.0 192.168.7.0/24 *[Direct/0] 1d 00:32:40 > via ge-0/2/0.0 192.168.7.1/32 *[Local/0] 1d 00:32:44 Local via ge-0/2/0.0 192.168.8.0/24 *[BGP/0] 1d 00:32:38, localpref 100 AS path: 65535 I > to 192.168.9.4 via ge-0/3/0.0 192.168.9.0/24 *[Direct/0] 1d 00:32:42 > via ge-0/3/0.0 [BGP/0] 1d 00:32:38, localpref 100 AS path: 65535 I > to 192.168.9.4 via ge-0/3/0.0 192.168.9.1/32 *[Local/0] 1d 00:32:43 Local via ge-0/3/0.0 __juniper_private1__.inet.0: 4 destinations, 4 routes (3 active, 0 holddown, 1 hidden) + = Active Route, - = Last Active, * = Both 10.0.0.0/8 *[Direct/0] 1d 00:34:15 > via bcm0.0 10.0.0.4/32 *[Local/0] 1d 00:34:15 Local via bcm0.0 128.0.0.0/2 *[Direct/0] 1d 00:34:15 > via bcm0.0 __juniper_private2__.inet.0: 1 destinations, 1 routes (0 active, 0 holddown, 1 hidden) __juniper_private1__.inet6.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both fe80::/64 *[Direct/0] 1d 00:34:15 > via bcm0.0 fe80::200:ff:fe00:4/128 *[Local/0] 1d 00:34:15 Local via bcm0.0 fe80::200:1ff:fe00:4/128 *[Local/0] 1d 00:34:15 Reject fec0::/64 *[Direct/0] 1d 00:34:15 > via bcm0.0 fec0::a:0:0:4/128 *[Local/0] 1d 00:34:15 Local via bcm0.0