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

Rakesh's and His Network Crap……

three color two rate fw lab

-----
[edit]
lab# show firewall
family inet {
filter threecolor {
term 1 {
then {
three-color-policer {
two-rate threecolor;
}
forwarding-class expedited-forwarding;
}
}
}
}
three-color-policer threecolor {
two-rate {
committed-information-rate 2m;
committed-burst-size 500k;
peak-information-rate 3m;
peak-burst-size 500k;
}
}

[edit]
lab# show interfaces ge-3/0/5
vlan-tagging;
unit 0 {
vlan-id 1;
family inet {
filter {
input threecolor;
}
address 2.0.0.1/24;
}
}
unit 1 {
vlan-id 2;
family inet {
address 3.0.0.1/24;
}
}

[edit]
lab# run show interfaces ge-3/0/7 extensive | match expedited-fo | except forwarding
1 expedited-fo 3038684 3038684 0

[edit]
lab# run show interfaces ge-3/0/7 extensive | match expedited-fo | except forwarding
1 expedited-fo 3055910 3055911 0

[edit]
-----------------

Hello All,

I have tested some labs and deployments exclusively on CoS and Cos by default is the most feared Topics for most people (includes me and my Rank #1). But Not until I started to lab it up and see the Magic. It gets so easy when you have a lab and some devices to start testing some minor labs . Here is my Cos Setup.

I had the advantage of Traffic generator which made is whole lot easier for testing

Down below we are looking at a standard interface policer. I had some notes on this, But i thought the simplicity of the lab should explain it all . What say ;)

IXIA PORT 11 ->GE-3/0/4 MX240 GE-3/0/7 ------- MX80------IXIA PORT 12

Standard interface policer

[edit]
lab# show firewall
policer tworateinterface {
if-exceeding {
bandwidth-limit 2m;
burst-size-limit 15140;
}
then forwarding-class expedited-forwarding;
}

[edit]
lab# show interfaces ge-3/0/5
unit 0 {
family inet {
policer {
input tworateinterface;
}
address 2.0.0.1/24;
}
}

[edit]
lab# run show interfaces ge-3/0/7 extensive | find best
0 best-effort 384760 384760 0
1 expedited-fo 15442 15442 0
2 assured-forw 29855324 29855324 0
3 network-cont 953 953 0

Best Regards
Rakesh M

Ospf stub

No comments

This is a quick lab which demonstrates OSPF stub lab in Juniper Networks.
As you have already guessed it, In Junos 0/0 route is not generated automatically and it has to be done Manually

ospf stub area configuration

lab@NEO:r10> show configuration protocols ospf
area 0.0.0.1 {
stub;
interface ge-3/0/7.5;
interface lo0.10;
}

lab@NEO:r10>

lab@NEO:r10> show ospf database

OSPF database, Area 0.0.0.1
Type ID Adv Rtr Seq Age Opt Cksum Len
Router 2.2.2.2 2.2.2.2 0x80000005 144 0x20 0xc18e 36
Router *10.10.10.10 10.10.10.10 0x80000003 143 0x20 0x15c4 48
Network *102.0.0.2 10.10.10.10 0x80000002 143 0x20 0x179 32
Summary 1.1.1.1 2.2.2.2 0x80000001 223 0x20 0x47ea 28
Summary 2.2.2.2 2.2.2.2 0x80000001 223 0x20 0xf20 28
Summary 3.3.3.3 2.2.2.2 0x80000001 223 0x20 0x91e 28
Summary 5.5.5.5 2.2.2.2 0x80000001 223 0x20 0xa27d 28
Summary 6.6.6.6 2.2.2.2 0x80000001 223 0x20 0x6ab2 28
Summary 8.8.8.8 2.2.2.2 0x80000001 223 0x20 0x22f0 28
Summary 12.0.0.0 2.2.2.2 0x80000001 223 0x20 0xd851 28
Summary 16.0.0.0 2.2.2.2 0x80000001 223 0x20 0xae76 28
Summary 35.0.0.0 2.2.2.2 0x80000001 223 0x20 0xca45 28
Summary 56.0.0.0 2.2.2.2 0x80000001 223 0x20 0xae4d 28
Summary 67.0.0.0 2.2.2.2 0x80000001 223 0x20 0x1fd1 28
Summary 78.0.0.0 2.2.2.2 0x80000001 223 0x20 0x994b 28
Summary 138.0.0.0 2.2.2.2 0x80000001 223 0x20 0x9413 28

lab@NEO:r10>

Best Regards
Rakesh M

Hi All,

I am Bad :) , Extremely Bad that I had all the material prepared for the website but could not post it to the website. You Probably know that how a person can loose himself. If you don’t , then please contact me and I can show you 1k ways.

Well getting down to the business , I have the below OSPF sample lab which i found good and also a recap

P.S This is On Juniper Routers

ospf.summarization

-> I did a common mistake here.
I tried to summarize routes coming from area 1 -> area 0 under area 0 with area-range statement
This should have been applied within area 1 to start with . Hence i corrected it and applied it within area 1 nssa

[edit]
lab@NEO:r2# show protocols ospf
area 0.0.0.1 {
nssa {
default-lsa default-metric 10;
area-range 192.168.0.0/21;
}
interface ge-3/0/5.5;
}
area 0.0.0.0 {
interface lo0.2;
interface ge-3/0/5.2;
}

[edit]
lab@NEO:r2#

[edit]
lab@NEO:r1# run show route | match 192
192.168.0.0/21 *[OSPF/150] 00:01:54, metric 1, tag 0

[edit]
lab@NEO:r1#

I will post frequently from now , as i have adequate labs and just have to post them to the site

Regards
Rakesh M

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