Any Fool Can Know , the Point is to Understand….!

Rakesh's and His Network Crap……

Hello ,

I was doing some Basic Bgp Stuff just to free my hands on a deployment. I have found an option under BGP “Passive” which is interesting

Go through the documentation here. I promise its very simple ! ;)

http://www.juniper.net/techpubs/software/junos/junos95/swconfig-routing/id-13320480.html

Here is the lab output which i have for the option.

Passive option in BGP

[edit]
lab@MORPHEUS:r6# show protocols bgp
group ebgp {
type external;
neighbor 56.0.0.1 {
peer-as 5;
}
}

[edit]
lab@MORPHEUS:r6#

————————————————————————

lab@MORPHEUS:r6# run show bgp summary
Groups: 1 Peers: 1 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0 0 0 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped…
56.0.0.1 5 11 12 0 0 4:26 0/0/0/0 0/0/0/0

The passive option is configured on the other end of the router , which i dont have access right now , will update accordingly

Regards
Rakesh M

Hello All,

Most of you Know what is a VPLS and how it works. For that we would atleast would require a 5 router topology. Where in you will have 3 routers in the core one router for the Ce side and other router should be on the other side.

I have taken one the MX240 and made with 5 loops which makes VPLS possible on only one router. Here is the below config / Outputs which explains the same.

===================================================================================
Topology

CE1——PE1——-P———PE2———CE2

Loops
—–

ce1-pe1 (ge-1/2/3—ge-1/2/0)
pe1—-p—pe2 (ge-1/0/0—ge-1/0/3)
ce2-pe2 (ge-1/1/6.0—ge-1/1/7.0)

This lab aims at setting up vpls between Two Pe routers and as a result ospf between Two ce’s

==============================================================================================
lab@MX-240-RE0# show logical-systems | display set
set logical-systems ce1 interfaces ge-1/2/3 unit 0 vlan-id 900
set logical-systems ce1 interfaces ge-1/2/3 unit 0 family inet address 101.0.0.1/24
set logical-systems ce1 interfaces lo0 unit 101 family inet address 101.101.101.101/32
set logical-systems ce1 protocols ospf area 0.0.0.0 interface all
set logical-systems ce2 interfaces ge-1/1/7 unit 0 vlan-id 900
set logical-systems ce2 interfaces ge-1/1/7 unit 0 family inet address 101.0.0.2/24
set logical-systems ce2 interfaces lo0 unit 102 family inet address 102.102.102.102/32
set logical-systems ce2 protocols ospf area 0.0.0.0 interface all
set logical-systems p interfaces ge-1/0/3 unit 1 vlan-id 12
set logical-systems p interfaces ge-1/0/3 unit 1 family inet address 12.0.0.2/24
set logical-systems p interfaces ge-1/0/3 unit 1 family mpls
set logical-systems p interfaces ge-1/0/3 unit 2 vlan-id 13
set logical-systems p interfaces ge-1/0/3 unit 2 family inet address 13.0.0.2/24
set logical-systems p interfaces ge-1/0/3 unit 2 family mpls
set logical-systems p interfaces lo0 unit 2 family inet address 2.2.2.2/32
set logical-systems p protocols rsvp interface all
set logical-systems p protocols mpls interface all
set logical-systems p protocols ospf area 0.0.0.0 interface all
set logical-systems pe1 interfaces ge-1/0/0 unit 1 vlan-id 12
set logical-systems pe1 interfaces ge-1/0/0 unit 1 family inet address 12.0.0.1/24
set logical-systems pe1 interfaces ge-1/0/0 unit 1 family mpls
set logical-systems pe1 interfaces ge-1/2/0 unit 0 encapsulation vlan-vpls
set logical-systems pe1 interfaces ge-1/2/0 unit 0 vlan-id 900
set logical-systems pe1 interfaces lo0 unit 1 family inet address 1.1.1.1/32
set logical-systems pe1 protocols rsvp interface all
set logical-systems pe1 protocols mpls label-switched-path pe1-pe2 to 3.3.3.3
set logical-systems pe1 protocols mpls label-switched-path pe1-pe2 no-cspf
set logical-systems pe1 protocols mpls interface all
set logical-systems pe1 protocols bgp group ibgp family l2vpn signaling
set logical-systems pe1 protocols bgp group ibgp neighbor 3.3.3.3 local-address 1.1.1.1
set logical-systems pe1 protocols bgp group ibgp neighbor 3.3.3.3 peer-as 100
set logical-systems pe1 protocols ospf area 0.0.0.0 interface all
set logical-systems pe1 routing-instances ce1 instance-type vpls
set logical-systems pe1 routing-instances ce1 interface ge-1/2/0.0
set logical-systems pe1 routing-instances ce1 route-distinguisher 1.1.1.1:1
set logical-systems pe1 routing-instances ce1 vrf-target target:1.1.1.1:1
set logical-systems pe1 routing-instances ce1 protocols vpls interface ge-1/2/0.0
set logical-systems pe1 routing-instances ce1 protocols vpls site ce2 site-identifier 1
set logical-systems pe1 routing-instances ce1 protocols vpls site ce2 interface ge-1/2/0.0
set logical-systems pe1 routing-options autonomous-system 100
set logical-systems pe2 interfaces ge-1/0/0 unit 2 vlan-id 13
set logical-systems pe2 interfaces ge-1/0/0 unit 2 family inet address 13.0.0.1/24
set logical-systems pe2 interfaces ge-1/0/0 unit 2 family mpls
set logical-systems pe2 interfaces ge-1/1/6 unit 0 encapsulation vlan-vpls
set logical-systems pe2 interfaces ge-1/1/6 unit 0 vlan-id 900
set logical-systems pe2 interfaces lo0 unit 3 family inet address 3.3.3.3/32
set logical-systems pe2 protocols rsvp interface all
set logical-systems pe2 protocols mpls label-switched-path pe3-pe1 to 1.1.1.1
set logical-systems pe2 protocols mpls label-switched-path pe3-pe1 no-cspf
set logical-systems pe2 protocols mpls interface all
set logical-systems pe2 protocols bgp group ibgp family l2vpn signaling
set logical-systems pe2 protocols bgp group ibgp neighbor 1.1.1.1 local-address 3.3.3.3
set logical-systems pe2 protocols bgp group ibgp neighbor 1.1.1.1 peer-as 100
set logical-systems pe2 protocols ospf area 0.0.0.0 interface all
set logical-systems pe2 routing-instances ce2 instance-type vpls
set logical-systems pe2 routing-instances ce2 interface ge-1/1/6.0
set logical-systems pe2 routing-instances ce2 route-distinguisher 3.3.3.3:3
set logical-systems pe2 routing-instances ce2 vrf-target target:1.1.1.1:1
set logical-systems pe2 routing-instances ce2 protocols vpls interface ge-1/1/6.0
set logical-systems pe2 routing-instances ce2 protocols vpls site ce2 site-identifier 2
set logical-systems pe2 routing-instances ce2 protocols vpls site ce2 interface ge-1/1/6.0
set logical-systems pe2 routing-options autonomous-system 100

======================================================================================================

lab@MX-240-RE0# show interfaces | display set
set interfaces ge-1/0/0 vlan-tagging
set interfaces ge-1/0/3 vlan-tagging
set interfaces ge-1/1/6 vlan-tagging
set interfaces ge-1/1/6 encapsulation vlan-vpls
set interfaces ge-1/1/7 vlan-tagging
set interfaces ge-1/2/0 vlan-tagging
set interfaces ge-1/2/0 encapsulation vlan-vpls
set interfaces ge-1/2/3 vlan-tagging

======================================================================================================
Show outputs

[edit]
lab@MX-240-RE0:pe1# run show vpls statistics
VPLS statistics:

Instance: ce1
Local interface: ge-1/2/0.0, Index: 102
Broadcast packets: 1
Broadcast bytes : 64
Multicast packets: 30
Multicast bytes : 2632
Flooded packets : 0
Flooded bytes : 0
Unicast packets : 15
Unicast bytes : 1498
Current MAC count: 1 (Limit 1024)
Local interface: vt-1/0/10.51380480, Index: 107
Remote PE: 3.3.3.3
Broadcast packets: 0
Broadcast bytes : 0
Multicast packets: 34
Multicast bytes : 2992
Flooded packets : 1
Flooded bytes : 106
Unicast packets : 17
Unicast bytes : 1604
Current MAC count: 1

[edit]
lab@MX-240-RE0:pe1#

======================================================================================================

lab@MX-240-RE0:pe1# run show vpls flood

Logical system: pe1
Name: ce1
CEs: 1
VEs: 1
Flood Routes:
Prefix Type Owner NhType NhIndex
0×30007/51 FLOOD_GRP_COMP_NH __ves__ comp 981
0×30006/51 FLOOD_GRP_COMP_NH __all_ces__ comp 959
0×30004/51 FLOOD_GRP_COMP_NH __re_flood__ comp 954

======================================================================================================
[edit]
lab@MX-240-RE0:pe1# run show vpls mac-table

MAC flags (S -static MAC, D -dynamic MAC,
SE -Statistics enabled, NM -Non configured MAC)

Logical system : pe1
Routing instance : ce1
Bridging domain : __ce1__, VLAN : NA
MAC MAC Logical
address flags interface
80:71:1f:10:9b:81 D vt-1/0/10.51380480
80:71:1f:10:9c:22 D ge-1/2/0.0

[edit]
lab@MX-240-RE0:pe1# run show vpls connections extensive
Layer-2 VPN connections:

Legend for connection status (St)
EI — encapsulation invalid NC — interface encapsulation not CCC/TCC/VPLS
EM — encapsulation mismatch WE — interface and instance encaps not same
VC-Dn — Virtual circuit down NP — interface hardware not present
CM — control-word mismatch -> — only outbound connection is up
CN — circuit not provisioned <- -- only inbound connection is up
OR -- out of range Up -- operational
OL -- no outgoing label Dn -- down
LD -- local site signaled down CF -- call admission control failure
RD -- remote site signaled down SC -- local and remote site ID collision
LN -- local site not designated LM -- local site ID not minimum designated
RN -- remote site not designated RM -- remote site ID not minimum designated
XX -- unknown connection status IL -- no incoming label
MM -- MTU mismatch MI -- Mesh-Group ID not availble
BK -- Backup connection ST -- Standby connection
PF -- Profile parse failure PB -- Profile busy
RS -- remote site standby SN -- Static Neighbor

Legend for interface status
Up -- operational
Dn -- down

Instance: ce1
Local site: ce2 (1)
Number of local interfaces: 1
Number of local interfaces up: 1
IRB interface present: no
ge-1/2/0.0
vt-1/0/10.51380480 2 Intf - vpls ce1 local site 1 remote site 2
Label-base Offset Size Range Preference
800000 1 8 8 100
connection-site Type St Time last up # Up trans
2 rmt Up Sep 24 06:52:27 2011 1
Remote PE: 3.3.3.3, Negotiated control-word: No
Incoming label: 800001, Outgoing label: 800000
Local interface: vt-1/0/10.51380480, Status: Up, Encapsulation: VPLS
Description: Intf - vpls ce1 local site 1 remote site 2
Connection History:
Sep 24 06:52:27 2011 status update timer
Sep 24 06:52:26 2011 loc intf up vt-1/0/10.51380480
Sep 24 06:52:26 2011 PE route changed
Sep 24 06:52:26 2011 Out lbl Update 800000
Sep 24 06:52:26 2011 In lbl Update 800001
Sep 24 06:52:26 2011 loc intf down

[edit]

======================================================================================================

[edit]
lab@MX-240-RE0:pe1# run show route

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

1.1.1.1/32 *[Direct/0] 00:54:08
> via lo0.1
2.2.2.2/32 *[OSPF/10] 00:41:26, metric 1
> to 12.0.0.2 via ge-1/0/0.1
3.3.3.3/32 *[OSPF/10] 00:40:37, metric 2
> to 12.0.0.2 via ge-1/0/0.1
12.0.0.0/24 *[Direct/0] 00:58:42
> via ge-1/0/0.1
12.0.0.1/32 *[Local/0] 00:58:42
Local via ge-1/0/0.1
13.0.0.0/24 *[OSPF/10] 00:41:26, metric 2
> to 12.0.0.2 via ge-1/0/0.1
224.0.0.5/32 *[OSPF/10] 00:44:58, metric 1
MultiRecv

inet.3: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, – = Last Active, * = Both

3.3.3.3/32 *[RSVP/7/1] 00:40:19, metric 2
> to 12.0.0.2 via ge-1/0/0.1, label-switched-path pe1-pe2

mpls.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, – = Last Active, * = Both

0 *[MPLS/0] 00:44:58, metric 1
Receive
1 *[MPLS/0] 00:44:58, metric 1
Receive
2 *[MPLS/0] 00:44:58, metric 1
Receive
800001 *[VPLS/7] 00:11:41
> via vt-1/0/10.51380480, Pop
vt-1/0/10.51380480 *[VPLS/7] 00:11:41, metric2 2
> to 12.0.0.2 via ge-1/0/0.1, label-switched-path pe1-pe2

bgp.l2vpn.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)
+ = Active Route, – = Last Active, * = Both

3.3.3.3:3:2:1/96
*[BGP/170] 00:12:48, localpref 100, from 3.3.3.3
AS path: I
> to 12.0.0.2 via ge-1/0/0.1, label-switched-path pe1-pe2

ce1.l2vpn.0: 2 destinations, 2 routes (2 active, 0 holddown, 0 hidden)
+ = Active Route, – = Last Active, * = Both

1.1.1.1:1:1:1/96
*[L2VPN/170/-101] 00:12:40, metric2 1
Indirect
3.3.3.3:3:2:1/96
*[BGP/170] 00:12:40, localpref 100, from 3.3.3.3
AS path: I
> to 12.0.0.2 via ge-1/0/0.1, label-switched-path pe1-pe2

[edit]

==============================================================================

Regards
Rakesh M

Hello All,

Not Often, I post anything of this kind, but i thought the below are useful for any one who is reading

All the quotes are written by Chanakya , if you do not know him , you can always do three things

1. Ignore the post
2. Ignore the person and continue with the quotes
3. Search for him and Then read on ;)

Here we go

—————————————————————————————————

1) “Learn from the mistakes of others… you can’t live long enough to make them all yourselves!!”
- Chanakya

2)”A person should not be too honest. Straight trees are cut first and Honest people are screwed first.”
- Chanakya

3)”Even if a snake is not poisonous, it should pretend to be venomous.”
Chanakya

4)”There is some self-interest behind every friendship. There is no friendship without self-interests. This is a bitter truth.”
- Chanakya

5)” Before you start some work, always ask yourself three questions – Why am I doing it, What the results might be and Will I be successful. Only when you think deeply and find satisfactory answers to these questions, go ahead.”
- Chanakya

6)”As soon as the fear approaches near, attack and destroy it.”
- Chanakya

7)”The world’s biggest power is the youth and beauty of a woman.”
- Chanakya

8)”Once you start a working on something, don’t be afraid of failure and don’t abandon it. People who work sincerely are the happiest.”
- Chanakya

9)”The fragrance of flowers spreads only in the direction of the wind. But the goodness of a person spreads in all direction.”
- Chanakya

10)”God is not present in idols. Your feelings are your god. The soul is your temple.”
- Chanakya

11) “A man is great by deeds, not by birth.”
- Chanakya

12) “Never make friends with people who are above or below you in status. Such friendships will never give you any happiness.”
- Chanakya

13) “Treat your kid like a darling for the first five years. For the next five years, scold them. By the time they turn sixteen, treat them like a friend. Your grown up children are your best friends.”
- Chanakya

14) “Books are as useful to a stupid person as a mirror is useful to a blind person.”
- Chanakya

15) “Education is the best friend. An educated person is respected everywhere. Education beats the beauty and the youth.”
-Chanakya

————————————————————————————————-

Best Regards
Rakesh M

Many of you might have known it , yet for the unknown I am Forwarding it as I found it interesting

Purpose: If you are using Secure CRT , on telnet to your device you can automate the entries of “login name” and “password” Fields without you typing it for each session.Later with the use of a Vb script you can actually record timestamps for all the actions on the terminal itself

Benefit: Time saver
continue reading…

A good website

No comments

Hello,

Morning i was trying to analyze the ip conflicts and found the following website handy

http://www.subnetonline.com/

Regards
Rakesh M