Saturday, June 28, 2008

BGP-LAB on OLIVE

While i was doing my JNCIA, i was also doing labs , one out of three OLIVE started crashing during the BGP lab, this OLIVE router had both IBGP & EBGP sessions. The problem got resloved after the implementation of vlan-taging on interface and multihop in BGP.

The topology of BGP lab is pasted below.

My routers configuration look likes

---------------------OLIVE-R1-----------------------

root@OLIVE-R1# show
## Last changed: 2008-06-28 20:43:32 UTC
version 8.5R1.14;
system {
host-name OLIVE-R1;
root-authentication {
encrypted-password "$1$zF.CaZ4G$5TG9KcfyrXXaJHDfijA3Q0"; ## SECRET-DATA
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
fxp0 {
vlan-tagging;
unit 0 {
vlan-id 10;
family inet {
address 202.123.240.1/24;
address 202.123.240.6/24;
}
family mpls;
}
}
fxp1 {
vlan-tagging;
unit 0 {
vlan-id 13;
family inet {
address 202.123.245.1/24;
}
}
}
}
routing-options {
static {
route 202.123.241.0/24 next-hop 202.123.240.2;
route 202.123.244.0/24 next-hop 202.123.240.2;
}
autonomous-system 29992;
}
protocols {
bgp {
group ext {
type external;
multihop;
export static-exp;
neighbor 202.123.240.2 {
peer-as 29991;
}
}
}
}
policy-options {
policy-statement static-exp {
from protocol static;
then accept;
}
}


--------------------OLIVE-R2---------------

root@OLIVE-R2# show
## Last changed: 2008-06-28 20:50:34 UTC
version 8.5R1.14;
system {
host-name OLIVE-R2;
root-authentication {
encrypted-password "$1$n1OnMRWz$XAleXeHPArW1mzoGFHnKS0"; ## SECRET-DATA
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
fxp0 {
vlan-tagging;
unit 0 {
vlan-id 10;
family inet {
address 202.123.240.2/24;
}
family mpls;
}
}
fxp1 {
vlan-tagging;
unit 0 {
vlan-id 11;
family inet {
address 202.123.241.1/24;
}
family mpls;
}
}
}
routing-options {
static {
route 202.123.245.0/24 next-hop 202.123.240.1;
}
autonomous-system 29991;
}
protocols {
bgp {
group ext {
type external;
multihop;
export static-exp;
neighbor 202.123.240.1 {
peer-as 29992;
}
}
group int {
type internal;
multihop;
local-address 202.123.241.1;
export static-exp;
neighbor 202.123.241.2;
}
}
}
policy-options {
policy-statement static-exp {
from protocol static;
then accept;
}
}


----------OLIVE-R3--------------------

root@OLIVE-R3# show
## Last changed: 2008-06-28 20:47:54 UTC
version 8.5R1.14;
system {
host-name OLIVE-R3;
root-authentication {
encrypted-password "$1$hvEE7u3l$F4cZsUfGSD0Z7Y8HdefxR/"; ## SECRET-DATA
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
fxp0 {
vlan-tagging;
unit 0 {
vlan-id 11;
family inet {
address 202.123.241.2/24;
}
family mpls;
}
}
fxp1 {
vlan-tagging;
unit 0 {
vlan-id 12;
family inet {
address 202.123.244.2/24;
}
}
}
}
routing-options {
static {
route 202.123.240.0/24 next-hop 202.123.241.1;
}
autonomous-system 29991;
}
protocols {
bgp {
group int {
type internal;
multihop;
local-address 202.123.241.2;
neighbor 202.123.241.1 {
export static-exp;
}
}
}
}
policy-options {
policy-statement static-exp {
from protocol static;
then accept;
}
}

And for verification of the configuration

root@OLIVE-R3# run show route protocol bgp

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

202.123.245.0/24 *[BGP/170] 00:29:48, localpref 100
AS path: I
> to 202.123.241.1 via fxp0.0, label-switched-path 3-to-1

So the doubt about for QEMU regarding BGP is no more in my mind.

No comments: