/images/logo.png
A Network Blog by a Network Engineer

Junos – Route Filtering

Junos_sw_logo

And now the final post before the whole workbook is posted, Route Filtering
 

RouteFilter

Ok, lets discuss Route Filtering in this lab, and to keep is simple, we will use eBGP for the routing protocol.  For this lab we will need to create another loopback on R4 for 44.44.44.44/32.

The goal of this lab is in 3 parts.

Junos – System Services

Junos_sw_logo

Now to talk about some of the system services.  Services like NTP, Telnet, SSH, SNMP, Monitor and LAG interfaces.  This is a biggie!

Basicfunctions

There are a few services that I wanted to cover but wanted to wait until near the end.  The reason for waiting is that I wanted you to focus on the configuration on the protocols and not so much the access and supporting features.   Plus, having a routing protocol configured simplifies the testing of these commands.

Junos – NHRP

Junos_sw_logo

 
Ok, now we can reset back to some basic stuff –  NHRP or VRRP!

NHRP

Before beginning, reset all configs back to rescue/base.

 

Junos only supports the standard NHRP, VRRP.  For this lab we will configure a VRRP address of 192.168.23.23 on the link between J2 and J3.  We will then PING that address from R4 to validate traffic.  In order to test failover, we will deactivate an interface on J2 (Master VRRP) and check that J3 is now the active VRRP device.

Junos – eBGP Juniper to Juniper

Junos_sw_logo

Time for some eBGP between Juniper devices

Ebgp J to J

Ok, time for some eBGP configurations.  Of course, first thing we need to do – reset to the rescue/base configs.  You can do that now.

 

We will create an iBGP session between J1 and R4 using ASN 14 and we will also create an iBGP session between J2 and J3 using ASN 23.

Apple iPad and T-Mobile SIM Swap

AppleTmobileLogo

Ok I finally tried it –  swapping in a T-Mobile SIM into an Apple iPad Air that was running a AT&T SIM for cellular data –  and you know what, it works!

It was as easy as ording a Bring your own tablet T-Mobile Nano SIM at –  http://prepaid-phones.t-mobile.com/sim-card?cm_sp=tmo_landingpage-_-yorktown-_-prepaidSIM

I got the card in a few days, popped out the AT&T SIM and insterted the T-Mobile SIM and set the SIM up for the iPad.

Here are some quick screen shots after I swapped the nano sim. I used a paper clip to pop the old one you, worked well.

First –  screen shot of my iPad with the ATT Cellular Data

2013-12-30 10.51.13

Junos – iBGP with Juniper and Cisco

Junos_sw_logo

Now time for some iBGP with Cisco and Juniper

IBGP Cisco Lab Topology

Ok, again we need to reset the lab to the rescue config on J1, J2 and J3, and load the base on R4.

 

Now that you have done that, we can configure OSPF area 0 on J1, J2, and J3.  We will advertise the loopbacks into OSPF as well.

 

J1:

jfry@J1> edit   

Entering configuration mode

 

[edit]

jfry@J1# edit protocols ospf area 0

 

[edit protocols ospf area 0.0.0.0]

jfry@J1# set interface ge-0/0/0

 

[edit protocols ospf area 0.0.0.0]

jfry@J1# set interface fe-0/0/2 

 

Cisco CSR1000v For Home Labs

CSR1000V

I have been using the Cisco CSR1000V for my home lab setup for a little bit now.  There have been some questions on how to set this up for a home lab and I figured I would cover how I am using it.
For this post, here is what we are going to build –  a three (3) node CSR1000V network and three (3) vSwitch Networks to connect the CSR1000Vs together.  We will also configure the CSR1000V to have connectivity back to the “home production” network so that we can SSH/Telnet to these routers when we are labbing.
Diagram

Obtaining the CSR1000V Router Software

To obtain the Cisco CSR1000V you need to download it from Cisco at this LINK and click on the Download software as seen circled below

Junos – iBGP Route Reflector

Junos_sw_logo

Ok, time for some BGP Route Reflectors!
 

IBGP RR

Now onto BGP Route-Reflectors.  For this lab our IGP will be OSPF, our BGP will be done via the connected interfaces, J1 will be the RR, and we will advertise our loopbacks into BGP.

 

First though, reset the lab to the rescue config on J1, J2 and J3, and load the base on R4.

Ok, now to configure OSPF and BGP on R4:

R4#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

R4(config)#router ospf 123

R4(config-router)#no au

R4(config-router)#net 192.168.14.0 0.0.0.255 a 0

Junos – iBGP

Junos_sw_logo

Ok, time for some iBGP!

Ibgp Lab Topology

Ok, BGP time.  First thing we need to do is rollback all configs to the base.  You should be Ok with doing that now on your own, so I will skip documenting that again here.  Again, all configs, J1 – J2 – J3 – J4, are all back at their base/rescue level.

 

Now we need to configure R4 with a static default route to J1 for this lab.

R4#conf t

Enter configuration commands, one per line.  End with CNTL/Z.

R4(config)#ip route 0.0.0.0 0.0.0.0 192.168.14.1

R4(config)#^Z

 

Now we can configure a static route on J1 to R4 4.4.4.4/32

[edit]

jfry@J1# set routing-options static route 4.4.4.4/32 next-hop 192.168.14.4 install               

[edit]

jfry@J1# commit and-quit