Quantcast
Channel: Routing topics
Viewing all articles
Browse latest Browse all 2062

BGP Path Selection

$
0
0

Hey all, I am labbing up an mx to load balance out two isp connections with a redundancy IBGP link between the two MX L-sys. for some reason i cannot get the isp route to stay the active default route, the backup mx keeps selecting the master mx as its next hop for a default route...config and  show route posted below, the L-sys are physically cabled together so no lt interface is needed. Curiously, when restart routing is run the ebgp route will be selected for about 5 seconds buring the routing restart but then will be discarded from the routing table...

 

 

CONFIG, SHOW ROUTE AND SHOW INTERFACES TERSE DELIMINATED BY BAR OF **************


[edit]
SHUSD@MX_5# show
## Last changed: 2016-04-06 16:13:06 UTC
version 13.3R8.7;
system {
host-name MX_5;
root-authentication {
encrypted-password "$1$VPQ17cMQ$l36Ohu8hts6WEpiCg3epB."; ## SECRET-DATA
}
login {
user SHUSD {
uid 2000;
class super-user;
authentication {
encrypted-password "$1$09uVv0wL$c6ybspNARJNozYdkqaCrS0"; ## SECRET-DATA
}
}
}
services {
ftp;
ssh;
telnet;
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
logical-systems {
ATT_SIM {
interfaces {
ge-1/0/9 {
unit 0 {
family inet {
address 3.3.3.253/30;
}
}
}
ge-1/1/9 {
unit 0 {
family inet {
address 3.3.3.2/30;
}
}
}
}
protocols {
bgp {
group ATT_PEER {
type external;
local-address 3.3.3.2;
export ISP_DEFAULT_EXPORT;
peer-as 500;
neighbor 3.3.3.1;
}
}
}
policy-options {
policy-statement GENERATE_DEFAULT {
term MATCH_DEFAULT {
from protocol [ aggregate static ];
then {
next-hop 3.3.3.253;
accept;
}
}
term REJECT {
then reject;
}
}
policy-statement ISP_DEFAULT_EXPORT {
term MATCH_AGGREGATE {
from {
protocol aggregate;
route-filter 0.0.0.0/0 exact;
}
then accept;
}
}
}
routing-options {
static {
route 1.1.1.0/24 {
next-hop 3.3.3.254;
preference 150;
}
route 9.9.9.0/24 {
next-hop 3.3.3.254;
preference 150;
}
}
aggregate {
route 0.0.0.0/0 policy GENERATE_DEFAULT;
}
autonomous-system 1500;
}
}
COMCAST_SIM {
interfaces {
ge-1/0/0 {
unit 0 {
family inet {
address 1.1.1.253/30;
}
}
}
ge-1/1/0 {
unit 0 {
family inet {
address 1.1.1.1/30;
}
}
}
}
protocols {
bgp {
group COMCAST_PEER {
type external;
local-address 1.1.1.1;
export ISP_DEFAULT_EXPORT;
peer-as 500;
neighbor 1.1.1.2;
}
}
}
policy-options {
policy-statement GENERATE_DEFAULT {
term MATCH_DIRECT {
from protocol [ aggregate static ];
then {
next-hop 1.1.1.253;
accept;
}
}
}
policy-statement ISP_DEFAULT_EXPORT {
term MATCH_AGGREGATE {
from {
protocol aggregate;
route-filter 0.0.0.0/0 exact;
}
then accept;
}
}
}
routing-options {
static {
route 3.3.3.0/24 {
next-hop 1.1.1.254;
preference 150;
}
route 9.9.9.0/24 {
next-hop 1.1.1.254;
preference 150;
}
}
aggregate {
route 0.0.0.0/0 policy GENERATE_DEFAULT;
}
autonomous-system 2500;
}
}
MX-5-Backup {
interfaces {
ge-1/0/2 {
unit 0 {
description "*** LINK TO MASTER ***";
family inet {
address 172.16.250.2/30;
}
}
}
ge-1/0/5 {
unit 0 {
description "***COMCAST SIM TO MX-5-Backup***";
family inet {
address 1.1.1.2/30;
}
}
}
ae2 {
unit 0 {
description "***LINK TO SRX 1500***";
family inet {
address 172.16.250.9/30;
}
}
}
}
protocols {
bgp {
group MX-5-Cluster {
type internal;
preference 180;
import BGP_AS_PREPEND;
export IBGP_NHS;
neighbor 172.16.250.1 {
local-address 172.16.250.2;
}
}
group COMCAST_PEER {
type external;
import DEFAULT_ONLY;
export BGP_EXPORT_TO_ISP;
peer-as 2500;
multipath;
neighbor 1.1.1.1;
}
}
ospf {
traceoptions {
file ospf-log size 10k files 5;
flag lsa-ack;
flag database-description;
flag hello;
flag lsa-update;
flag lsa-request;
}
export DEFAULT-OSPF;
import REJECT_OSPF_DEFAULT;
reference-bandwidth 100g;
area 0.0.0.0 {
interface ae2.0 {
priority 200;
bfd-liveness-detection {
minimum-interval 1000;
}
}
}
}
}
policy-options {
policy-statement BGP_AS_PREPEND {
term PREFER_SELF_DEFAULT {
from {
route-filter 0.0.0.0/0 exact;
}
then {
as-path-prepend 500;
accept;
}
}
}
policy-statement BGP_EXPORT_TO_ISP {
term EXPORT {
from {
route-filter 5.5.5.0/29 exact;
}
then accept;
}
term REJECT {
then reject;
}
}
policy-statement DEFAULT-OSPF {
term DEFAULT {
from {
protocol bgp;
route-filter 0.0.0.0/0 exact;
state active;
}
then {
metric 20;
accept;
}
}
term REJECT {
then reject;
}
}
policy-statement DEFAULT_ONLY {
term MATCH_DEFAULT {
from {
route-filter 0.0.0.0/0 exact;
}
then {
next-hop 1.1.1.1;
accept;
}
}
term REJECT {
then reject;
}
}
policy-statement IBGP_NHS {
term NHS {
then {
next-hop self;
}
}
}
policy-statement REJECT_OSPF_DEFAULT {
term MATCH_DEFAULT {
from {
protocol ospf;
route-filter 0.0.0.0/0 exact;
}
then reject;
}
}
}
routing-options {
autonomous-system 500;
}
system {
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
}
MX-5-Master {
interfaces {
ge-1/1/2 {
unit 0 {
description "*** LINK TO OTHER MX ***";
family inet {
address 172.16.250.1/30;
}
}
}
ge-1/1/5 {
unit 0 {
description "*** LINK TO ATT ***";
family inet {
address 3.3.3.1/30;
}
}
}
ae1 {
unit 0 {
description "***LINK TO SRX1500***";
family inet {
address 172.16.250.5/30;
}
}
}
}
protocols {
bgp {
export OSPF_AREA_0_TO_BGP;
group MX-5-Cluster {
type internal;
preference 180;
export IBGP_NHS;
peer-as 500;
neighbor 172.16.250.2 {
local-address 172.16.250.1;
}
}
group ATT_PEER {
type external;
local-address 3.3.3.1;
import DEFAULT_ONLY;
export BGP_EXPORT_TO_ISP;
peer-as 1500;
neighbor 3.3.3.2;
}
inactive: group COMCAST_PEER {
type external;
peer-as 2500;
neighbor 1.1.1.1;
}
}
ospf {
traceoptions {
file ospf-log size 10k files 5;
flag lsa-ack;
flag database-description;
flag hello;
flag lsa-update;
flag lsa-request;
}
export DEFAULT_OSPF;
import OSPF_REJECT_DEFAULT;
reference-bandwidth 100g;
area 0.0.0.0 {
interface ae1.0 {
bfd-liveness-detection {
minimum-interval 1000;
}
}
}
}
}
policy-options {
policy-statement BGP_EXPORT_TO_ISP {
term EXPORT {
from {
route-filter 5.5.5.0/29 exact;
}
then accept;
}
term REJECT {
then reject;
}
}
policy-statement DEFAULT_ONLY {
term MATCH_DEFAULT {
from {
route-filter 0.0.0.0/0 exact;
}
then accept;
}
term REJECT {
then reject;
}
}
policy-statement DEFAULT_OSPF {
term ACCEPT {
from {
protocol bgp;
route-filter 0.0.0.0/0 exact;
state active;
}
then accept;
}
term REJECT {
then reject;
}
}
policy-statement IBGP_NHS {
term NHS {
then {
next-hop self;
}
}
}
policy-statement OSPF_AREA_0_TO_BGP {
term MATCH_OSPF {
from {
protocol ospf;
area 0.0.0.0;
}
then accept;
}
term REJECT {
then reject;
}
}
policy-statement OSPF_REJECT_DEFAULT {
term OSPF_REJECT {
from {
protocol ospf;
route-filter 0.0.0.0/0 exact;
}
then reject;
}
term ACCEPT_OSPF_ROUTES {
then accept;
}
}
}
routing-options {
traceoptions {
file routing-log;
}
autonomous-system 500;
}
system {
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
}
}
chassis {
aggregated-devices {
ethernet {
device-count 6;
}
}
network-services all-ethernet;
}
interfaces {
ge-1/0/7 {
gigether-options {
802.3ad ae1;
}
}
ge-1/0/8 {
gigether-options {
802.3ad ae2;
}
}
ge-1/1/7 {
gigether-options {
802.3ad ae1;
}
}
ge-1/1/8 {
gigether-options {
802.3ad ae2;
}
}
}
routing-options {
traceoptions {
file routing-log;
}
static {
route 0.0.0.0/0 {
next-hop 172.16.254.1;
preference 200;
}
}
}
protocols {
ospf {
traceoptions {
file ospf-log size 10k files 5;
flag lsa-ack;
flag database-description;
flag hello;
flag lsa-update;
flag lsa-request;
}
reference-bandwidth 100g;
}
}

******************************************************************************************************************************************

[edit]
SHUSD@MX_5# run show interfaces terse
Interface Admin Link Proto Local Remote
lc-0/0/0 up up
lc-0/0/0.32769 up up vpls
pfe-0/0/0 up up
pfe-0/0/0.16383 up up inet
inet6
pfh-0/0/0 up up
pfh-0/0/0.16383 up up inet
ge-1/0/0 up up
ge-1/0/0.0 up up inet 1.1.1.253/30
multiservice
ge-1/0/1 up down
ge-1/0/2 up up
ge-1/0/2.0 up up inet 172.16.250.2/30
multiservice
ge-1/0/3 up down
ge-1/0/4 up down
ge-1/0/5 up up
ge-1/0/5.0 up up inet 1.1.1.2/30
multiservice
ge-1/0/6 up down
ge-1/0/7 up up
ge-1/0/7.0 up up aenet --> ae1.0
ge-1/0/8 up down
ge-1/0/8.0 up down aenet --> ae2.0
ge-1/0/9 up up
ge-1/0/9.0 up up inet 3.3.3.253/30
multiservice
ge-1/1/0 up up
ge-1/1/0.0 up up inet 1.1.1.1/30
multiservice
ge-1/1/1 up up
ge-1/1/2 up up
ge-1/1/2.0 up up inet 172.16.250.1/30
multiservice
ge-1/1/3 up down
ge-1/1/4 up down
ge-1/1/5 up up
ge-1/1/5.0 up up inet 3.3.3.1/30
multiservice
ge-1/1/6 up down
ge-1/1/7 up up
ge-1/1/7.0 up up aenet --> ae1.0
ge-1/1/8 up up
ge-1/1/8.0 up up aenet --> ae2.0
ge-1/1/9 up up
ge-1/1/9.0 up up inet 3.3.3.2/30
multiservice
ae0 up down
ae1 up up
ae1.0 up up inet 172.16.250.5/30
multiservice
ae2 up up
ae2.0 up up inet 172.16.250.9/30
multiservice
ae3 up down
ae4 up down
ae5 up down
cbp0 up up
demux0 up up
dsc up up
em0 up up
em0.0 up up inet 10.0.0.4/8
128.0.0.1/2
128.0.0.4/2
inet6 fe80::200:ff:fe00:4/64
fec0::a:0:0:4/64
tnp 0x4
em1 up down
em1.0 up down inet 10.0.0.1/8
128.0.0.1/2
tnp 0x4
fxp0 up down
gre up up
ipip up up
irb up up
lo0 up up
lo0.16384 up up inet 127.0.0.1 --> 0/0
lo0.16385 up up inet
lsi up up
me0 up up
me0.0 up up
mtun up up
pimd up up
pime up up
pip0 up up
pp0 up up
tap up up

******************************************************************************************************************************************

[edit]
SHUSD@MX_5# run show route logical-system MX-5-Backup

inet.0: 16 destinations, 16 routes (16 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0.0.0.0/0 *[BGP/180] 4d 21:06:41, localpref 100
AS path: 500 1500 I, validation-state: unverified
> to 172.16.250.1 via ge-1/0/2.0
1.1.1.0/30 *[Direct/0] 6d 01:04:14
> via ge-1/0/5.0
1.1.1.2/32 *[Local/0] 6d 01:04:14
Local via ge-1/0/5.0
5.5.5.0/29 *[OSPF/150] 3d 21:12:05, metric 0, tag 0
> to 172.16.250.10 via ae2.0
10.241.0.4/30 *[OSPF/10] 02:53:36, metric 212
> to 172.16.250.10 via ae2.0
10.241.0.8/30 *[OSPF/10] 02:53:36, metric 212
> to 172.16.250.10 via ae2.0
10.241.2.0/23 *[OSPF/10] 02:53:36, metric 302
> to 172.16.250.10 via ae2.0
172.16.100.0/30 *[OSPF/10] 3d 21:12:05, metric 101
> to 172.16.250.10 via ae2.0
172.16.241.0/30 *[OSPF/10] 03:06:50, metric 102
> to 172.16.250.10 via ae2.0
172.16.241.252/30 *[OSPF/10] 02:53:45, metric 202
> to 172.16.250.10 via ae2.0
172.16.250.0/30 *[Direct/0] 6d 00:16:54
> via ge-1/0/2.0
172.16.250.2/32 *[Local/0] 6d 00:16:54
Local via ge-1/0/2.0
172.16.250.4/30 *[OSPF/10] 3d 21:12:05, metric 101
> to 172.16.250.10 via ae2.0
172.16.250.8/30 *[Direct/0] 3d 21:12:06
> via ae2.0
172.16.250.9/32 *[Local/0] 6d 01:04:14
Local via ae2.0
224.0.0.5/32 *[OSPF/10] 6d 01:04:14, metric 1
MultiRecv

******************************************************************************************************************************************

[edit]
SHUSD@MX_5# run show route logical-system MX-5-Master

inet.0: 16 destinations, 16 routes (16 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

0.0.0.0/0 *[BGP/170] 4d 21:06:52, localpref 100
AS path: 1500 I, validation-state: unverified
> to 3.3.3.2 via ge-1/1/5.0
3.3.3.0/30 *[Direct/0] 4w3d 02:56:24
> via ge-1/1/5.0
3.3.3.1/32 *[Local/0] 4w3d 02:56:24
Local via ge-1/1/5.0
5.5.5.0/29 *[OSPF/150] 3d 21:12:06, metric 0, tag 0
> to 172.16.250.6 via ae1.0
10.241.0.4/30 *[OSPF/10] 02:53:47, metric 162
> to 172.16.250.6 via ae1.0
10.241.0.8/30 *[OSPF/10] 02:53:47, metric 162
> to 172.16.250.6 via ae1.0
10.241.2.0/23 *[OSPF/10] 02:53:47, metric 252
> to 172.16.250.6 via ae1.0
172.16.100.0/30 *[OSPF/10] 3d 21:12:06, metric 51
> to 172.16.250.6 via ae1.0
172.16.241.0/30 *[OSPF/10] 03:07:01, metric 52
> to 172.16.250.6 via ae1.0
172.16.241.252/30 *[OSPF/10] 02:53:56, metric 152
> to 172.16.250.6 via ae1.0
172.16.250.0/30 *[Direct/0] 4w3d 02:56:24
> via ge-1/1/2.0
172.16.250.1/32 *[Local/0] 4w3d 02:56:24
Local via ge-1/1/2.0
172.16.250.4/30 *[Direct/0] 3d 21:16:46
> via ae1.0
172.16.250.5/32 *[Local/0] 4w3d 02:56:24
Local via ae1.0
172.16.250.8/30 *[OSPF/10] 3d 21:12:06, metric 51
> to 172.16.250.6 via ae1.0
224.0.0.5/32 *[OSPF/10] 4w3d 02:56:24, metric 1
MultiRecv

[edit]
SHUSD@MX_5#


Viewing all articles
Browse latest Browse all 2062

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>