Ubuntu basic guidelines  

Thursday, November 27, 2008

simple steps to follow ..

* those who want to install ubuntu linux can order their copy for free at

http://www.ubuntu.com/getubuntu

you can either download or request it .. i would ask you to do both of them ....

* check the compatability with your system most of the desktops should not have problems what so ever .. even all of the laptops are covered well except some of the wifi part

* as linux ships with many of the non commercial softwares you cant even play mp3 files .. for that you need enable repositories .. you can find the entire guide here

http://ubuntuguide.org/wiki/Ubuntu:Hardy

* downloading and installing is straight foreward for gns3 ... it should work well other wise browse any of the docs or blindhog ..

after you could install gns3 its all same from there on .... there is a package called compiz fusion which is rocking for eyes .. the guis effects are to bee seen by everyone who hadnt

any help let me know via mail wink.gif

regards
raaki

Linux flavor  

my health is not supporting me these days as there is a climate change .. neverthless .. i have made some advancements ...

i have got craze for linux and installed a red hat 9 in my school days on a old compaq computer .. from then on there was some thing or other which was poking at me .. coming back ..

as i have already told you that i would increase my ram for gns3 soft run . but now i have changed my mind to postpone it .. the reason is linux

beleive me or not .. linux has a better management of ram and memory than windows which i used to use for previous labs ..

i have installed ubuntu 8.04 64 bit edition .. had some problems with wifi and vga stuff fixed all of the issues in these two days .. installed gns3 .. obviously not successful in my first attempt due to some of the mistakes but saw it now and posting it immediately ..

i could start upto 17 routers in gns3 with linux in hand .. dint done any lab on it though ... and observed memory ...

firstly the memory was at 919mb out of total 1.7gb availabe ram memory .. and swap memory was around 3.8 which is double the ram ofcourse ..

now i have installed 4 of routers and ram increased to 1100mb and from there on it stopped increasing even though i have increased the number of routers .. the reason being swap memory is taking over it now .

yes the ram memory increase stopped at 1100 mb and virtual memory began to increase . virtual memory = swap memory and so i could increase number of routers to greater extend without any system hang .

so i would recommend ubuntu for users who has a memory hang experiences with their pc's . also tried with dynamips .. but i couldnt do it for long ... as i am used to gns3 ..

so all in all instruments are sharper again for me ...

guday

done with the shit  

Monday, November 24, 2008

today as mentioned went to prometric partner for the scheduled exam 70-113 which was offered free by microsoft and discovered that information cannot be retrieved from the server for this exam . i am dissapointed as i had put some quality time for the past 4 days and effort .. ne ways got to get down with cisco ... my apologies for giving you the advise to take the exam .. meet you redistribution lab

regards
rakesh

UPDATE ON MY STAT  

Saturday, November 22, 2008

few updates from my side my university exams for this sem have been completed by today and still 3 more sems to go ... ;( and i have paused cisco side a little bit just because of one reasoni got a mail from microsoft website stating that there is a free exam on 70-113 if passed and present in first 3000 would walk away with 3 vouchers .. of course iam not that lucky nor in need of microsoft certs .. but just to attempt a international cert for free .. i have installed windows server 2008 and i must agree its rocking fast .. yes, it is running like dream ... superb effort from microsoft i should say .. i have scheculed from microsoft exam this monday so as i would prepare these two days and leave it off instead of wasting holidays as i need to concentrate on cisco stuff ... and also from the hardware part iam trying to upgrade my ram to 4gb for smooth gns3 run ... this is it . i will let you know how exam went .. i would recommend any one having free time to take this exam as it is of free of cost .. just a small advice .. for further details you can search for 70-113 and you will get to know everything .. guday

Thursday, November 20, 2008

you can reach Mr.darby Weaver at darbylogs.blogspot.com

Setting the Clock and Timezone
------------------------------------

Given the last tip this one goes without saying. Set it as close to real time as possible and use GMT if you have multiple timezones for devices you manage or use the local timezone otherwise.

Very helpful.

Darby# clock set 1:18:00 November 18 2008
Darby# conf t
Darby# clock timezone EST -5
Darby# clock summer-time EDT recurring

Use show clock to verify.

Display an Interface Config
-------------------------------

sh run int f0/0

Now you can do even more:

sh run section router


Erasing an Interface Config
-------------------------------

Simple one but that may not be known about or easily forgotten in a pinch:

default interface f0/0

Works great it just wiped all configuration from that interace. Ready to start again. Kinda like Play-Do or Silly Putty but in a Router or Switch.

Setting the Terminal Length of a Router, Switch, or Firewall.
--------------------------------------------------------------------

24 lines ain't enough sometimes.

I backup configs a lot before and after I am doing things so... I don't like the page breaks that are arbitrarily assumed.

So...

term length 0 works on a router or switch and pager length 0 works on a PIX/ASA.

The default is 24, so...

"term len 24" sets it back to normal on a router/switch or pager length 24 on a PIX/ASA.

I find that a full screen is about 36 lines... but it may vary based on your screen's resolution.

Filtering the Output of commands
--------------------------------------

This is cool but gets even cooler once you begin to master regular expressions.

Here's some simple examples:

sh run begin route eigrp

sh run include ip route

sh ip interface brief exclude Down

I also use it alot when I'm hunting down a mac or ip address... Kewl stuff.

You can use regular expressions to get make if more grep-like...


Also remember show run section XXX works great too.

Do Command
----------------

This command allows us to "execute" commands while we are in configuration mode.

Darby(config-if) do sh run interface f0/0

We can use aliases and emulate the "Do Command's" functionality as well.

Alias Commands
-------------------

We can use this command feature to create our own commands.

alias exec s sh ip interface brief
alias configure s sh ip int brief (note this is so the same shortcuts will work in other modes on the device as well).

Only cause I find myself typing do out of context after I've been using it for a while.

Privilege Levels
------------------

This is a very useful tool for network management. By default all commands are either privilege level 0 or 15.

You are either poor or rich...

The privilege level command allows us the ability to create a few middle classes....


privilege level <0-15>

Darby(config)# privilege exec level 2 show
Darby(config)# privilege exec level 2 show ip route

line vty 0 15
privilege level 2

Assigns the default privilege level of 2 to vty sessions 0-15 for an example.

username Darby privilege level 2 password Darby

line vty 0 15
login local

Assigns the user Darby with a privilege level of 2 for another example. We also ensure that vty logins use the local database in this case.


Stopping "The Runaway Debug"

Plenty of ways to help solve this issue.

1. undebug all - make an alias for it like this

alias exec u undebug all

2. Use conditional debugging

debug interface f0/0

3. Filter the debug

access-list 1 permit ip 10.1.1.1 0.0.0.0

debug ip packet 1

Editing Access-lists
----------------------

Alway try to document when possible - use descriptions and remarks and names that are self-documenting.

Extended Access-lists permit us to edit the acl by line number.

No Service Configuration
-----------------------------

Speaks for itself.

Sometimes you'll find a device that is booting really slow and later find it is trying to boot from tftp somewhere...

Maybe you don't want your device to do this.

This can slow you down a lot. Really. A whole lot.

Hope these tips help you a bit.

CISCO IOS TRICKS AND TIPS  

This is not my work . The entire credit goes to Mr.Darby Weaver . you can reach him at darbylogs.blogspot.com

Cisco IOS Tips and Tricks..

You probably know these by now but jus in case you don't:

- Auto-completing commands
- Disabling DNS server lookup
- Limiting EXEC interruptions
- Setting console speed
- Deprecated commands
- Time-stamping messages
- Setting the clock and time zone
- Displaying the interface of a config
- Filtering the output of commands
- Erasing an interface config
- Setting the Terminal Length of a Router, Switch, or Firewall
- The DO command
- Alias Commands
- Privilege levels
- Changing the TCP timeout
- Stopping "The Runaway Debug"
- Editing access-lists
- No service config



Auto-Completion of commands
-----------------------------------

It's only necessary to type enough letters of any given command to make the command unique at the current configuration mode.

Then use the key to autocomplete.

I normally use this method daily and accompany it with the character to help me remember options or to learn whatever options are available to me just beyond the prompt.

Note: The ? is very helpful since you are probably like me and work with a wide array of devices and IOS versions.

Disable DNS Server Lookups
--------------------------------

When you type something at the prompt that is not a command the IOS tries to telnet to it. It's a smart tool like that and I really appreciate it on my Access Server, example R1, R2, R3, etc.

I do not like what it does to my day to day typos and if you read my posts I make a lot of typos.

"no ip domain lookup" in global configuration mode and this little pesky time-consuming issue is resolved.

Limit EXEC Interruptions
----------------------------

This is a great little tool for me. I love it and use it everywhere. Basically it ensures that no matter how many messages I receive at the prompt while I'm typing I never lose my place. So I do not get "interrupted". Put it in your toolbag. It's very helpful.

conf t
line vty 0 15
no logging synchronous

Setting the Console Speed
------------------------------

This is great just to get access to a Cisco device. But did you ever consider using it as a security tool? I mean if you have junior admins and who doesn't or "helpful peeps" from other departments...

This is priceless. BTW - It has saved me on some otherwise priceless pieces of gear bought on ebay. Note: I always look for the sh ver on "junk" that is sold to be non-working... Some folks never heard of a config register before.

Hah!

Anyway here you go:

line console 0
speed 115200

This also saved me in a pinch when I needed to transfer IOS over the Serial line... It's happened to me and could happen to you. 115200 may not be speeding in some countries, but it beats 9600 bps.

Deprecated Commands
---------------------------

Some very helpful commands are no longer supported by Cisco, but I love em anyway.

OLD Command New Command
wr (write) copy run start
wr er (write erase) erase start
who show users
whe (where) show users

Oh yes... who = "w" for those who don't like to type much.

show alias will show you others...

"p" = ping

How about that for a time saver.


Timestamping Messages
----------------------------

I once worked with a hot-shot Security guy... who... started configuring his Mars and other Logging devices and did not seem to recognize the importance of setting and synchonizing his time servers first...

I even took the time to draw it out in Visio. But since it was his job to make me look like the village idiot... it fell of deaf ears...

True story by the way...

So I did not both finishing my tail about Timestamping with our super-star.

For the rest of the world...

Ever get timestamps with the wrong date or time?
How about debugs too?

Yep... I hate non-timestamped logs...

I love time-stamped logs and debugs.
I love time-stampted loge and debugs with sequence numbers even better.

service timestamps (log|debug) datetime localtime
service sequence-numbers

Use them to your heart's content.

Look like a hero to your boss and coworkers.

My best advice is use them everywhere. Then you can track things when they happen even across an entire enterprise.

Cool huh?

PLAN  

Monday, November 17, 2008


* this completed the eigrp revision and i will be back on redistribution lab 2 very soon ..or may start of with the revision of ospf or bgp depending upon my time availability .. after 24 th i will be surely after redistribution and will knock it off in two days

EIGRP REVISION CONTINUED 2  

Eigrp Authentication:

* 3 parts to remember while configuring Authentication

* key creation and management

* Authentication mode

* assigning key to an interface

* key chain should be configured first and this is done under global configuration mode

* Create key

* Create key string , send lifetime , accept lifetime

* Info configured can be seen by issuing the command SHOW KEY CHAIN

* Next step is to apply it to an interface

* ip authentication eigrp 1 mode md5 ---> this is the authentication mode

* all constructed elements should be relevant and also they must and should be case sensitive with key strings and authentication modes being equal

Default Information originate and How to avoid it :

* In order to suppress the default routes , we can go into the router config mode of eigrp and issue the command as follows

* ROUTER EIGRP 1 ---> NO DEFAULT-INFORMATION IN


CREATION OF DEFAULT ROTUE:

* If we want to have a default route , we have more than one way to do it

* If we have a static route configured , redistribute the static route with a some of the default metric value

* Another way is to use the summary address in the interface level config mode to accomplish this task

* INT FA0/0 ---> IP SUMMARY-ADDRESS 0.0.0.0 0.0.0.0


Eigrp Load Balancing:

* By default eigrp loadbalances across 4 equal cost paths

* We can change the number of paths any where between 0-6 with the issue of MAXIMUM PATH command in router config mode

* For unequal load balancing we can use the VARIANCE COMMAND which ranges from 0-128

* This is done under router config mode
VARIANCE X --->it load balances between the routes which are x times more than the best one

* This is cost based load balancing sharing 1:x(will be done based on the variance level ) ratio of packet traffic

* If we want to alter this , this can be done under router configuration mode

* ROUTER EIGRP 1 ---> TRAFFIC SHARE MIN

* In this way the minimum cost will be preffered

* If we want to revert back to normal behaviour it should be done again in the router config mode
ROUTER EIGRP 1 ----> TRAFFIC SHARE BALANCED ----> defaults will be applied

* As a side note route tagging can also be used to acheive this task


EIGRP TIMERS :

* Update timer : rate at which updates are being sent

* Invalid timer: the time interval after which a route is declared as invalid

* Hold timer: how long the route is holded on depending on the other routes received

* Flush timer: the time after which the route is removed from the routing table

* Hello timer: hello interval defines how often hello packets are sentout which are used to establish neighbouring relationships

* On t1 or faster interfaces the dafault value being 5 secs and on nbma or slower links the timer value being 60 seconds

* If we want to change the timers , it should be done both ends and also this behaviour also applies to bandwidth command

* SHOW IP PROTOCOLS can be used to check the values

* The change should be done across the interface level
IP HELLO-INTERVAL EIGRP 100 15 --> this sets the interval to 15

* The same confiuration can be done for the HOLD time changes

* By default the hold time will be 3 times more than the hello timer

* Changing one timer will not change the other timer

* ACTIVE TIMER : this is used to minimize the effect of STUCK IN ACTIVE problem

* THIS CAN BE DONE ---> ROUTER CONFIG MODE ---> ROUTER EIGRP 1 ---> TIMERS ACTIVE TIME 180

SPLIT HORIZON:

* May arise with secondary/multipoint situations

* can be closed down under interface level configuration mode

* INT FA0/0 ---> NO IP SPLIT HORIZON EIGRP 100 ---> this disable split horizon

* We can also use VALIDATE UPDATE SOURCE command mostly done with secondary address in place

* ROUTER EIGRP 1 ---> NO VALIDATE UPADTE SOURCE

* you may land up with an error in times "ROUTER NOT ON COMMON SUBNET"


EIGRP STUB ROUTING:

* CONFIGURATION IS DONE UNDER ROUTER MODE

* EIGRP STUB ---> can have different parameters

* receive-only , connected , static , summary all of them being obvious and the point is to redistribute



* also not all the config commands are from console line so of them may have hifuns (-) between them or not i just used them


regards
rakesh


EIGRP REVISION CONTINUED 1  

Offset lists:

* Another way to adjust metrics

* No need to modify K-values

* Can be used to manipulate metric for one of the multiple routes pointing to the same destination

Configuration:

* Create an access-list

* Create an offset-list

* ACCESS-LIST 10 PERMIT X.X.X.X Y.Y.Y.Y

* ROUTER EIGRP 4
OFFSET-LIST 13 IN 160000 FA0/0

A metric of 16000 would be added and will replace the old metric which is calculated
Route-summaraisation:

* Turn-off summaraisation with no auto-summary command

* Done under the router eigrp process ROUTER EIGRP 1 ---> NO AUTO

* Interface level summaraisation (this is what we do when we go for manual summaraisation and should be done at interface level)

* INT FA0/0 IP --> IP SUMMARY-ADDRESS EIGRP 1 NETWORK MASK

* Immediately a routing update is sent out

* On local router a summary-address for null0 interface will be generated

* In newer ios images a D route will be generated


Bandwidth:

* Eigrp uses 50% of bandwidth by default

* This may lead to some of the miscalculations which are to be considered crucial in qos and traffic-shaping

* Serial-interface which is t1 line or greater will be considered as 1.5megs as default

* This should be modified with the help of the bandwidth command in the interface level

* Also bandwidth percentage can be controlled with the interface level ip bandwidth-percent command

* ip bandwidth percent eigrp 1 10 to modify the percentage to 10% under as 1



EIGRP REVISION  

Friday, November 14, 2008

the points are scattered so please dont mind

* Eigrp may be termed as enhanced igrp . defined as hybrid with both distance vector and link state .. but to be precise may be termed as advance distance vector routing protocol out there

* It works on on local link multicast exchange 224.0.0.10

* Neighbor process or discovery is done with the help of exchange of hello exchage . neighbours are alive till hellos are exchanged

* For multicast exchange , all of the interfaces must be of multicast capable .. this includes atm / frame - relay concepts

* The neighbor discovery process is done via hello packets that are exchanged via multicast

* Eigrp offers multiprotocol support ip , ipx , appletalk

* Eigrp provides RTP RELIABLE TRANSPORT PROTOCOL . through this packets can be exchanged via unicast / multicast

* The point to remember is that Hello packets are not needed to be reliable

On to the algorithm and routing proc

* DUAL - diffusing update algorithm . responsible for processing , installing and maintaining routes

* Also has to offer list of routes for feasible successors and successors via next hop

* If no feasible successor is present , or route goes down Recomputation is done

* Recomputation is processor intensive and uses dual to see the neig relationships again

* Table in eigrp include NEIGHBOR TABLE , TOPOLOGY TABLE , ROUTING TABLE

* Neighbor table contains adjacent neighbors , how neighbors has been discovered , interfaces , hold time , neighbor id , transmissions

* Topology table . this is done by the protocol module .. ie if we are running eigrp under ip , the table will be populated by ip protocol

* This is the backbone . it contains all destination routes advertised by neigh , metrics , perfixed , list of neigh , and for each route there will be metric which is advertised

* The route with best metric will be forewarded to the routing table . it is termed as successor ie primary path

* Feasible successor more or less like a back up path . one path can have multiple feasible successors . if successor goes down it will replace by fs and for replacement no recomputation is necessary

NEIGHBOR OPTIONS IN EIGRP

* Neighbor table is dynamically built as it receives hellos from different neighbors

* SHOW IP EIGRP NEIGH can be used for viewing neigh , addr , int , neigh

* NEIGHBOR COMMAND is to statically specify neighbors and also should be specified with the interface with which it can be reached . this is used to establish unicast routing

neig 100.0.0.10 fa0/0

* The results can be seen by the SHOW RUN , SHOW IP PROTOCOLS

* SHOW IP EIGRP NEIGHBORS will not list it because you need to have neighbor command done on both neig routers

* PASSIVE INTERFACE cannot be done on eigrp as it uses multicast hellos and hellos are to be sent in order to have a neigbor relation ship

* If we are asked to configure a passive interface in eigrp a simple way to do is to configure DISTRIBUTE LISTS .

* Create an access-list denying all traffic and place in the router process with the help of distribute list

ACCESS-LIST 30 DENY ANY

DISTRIBUTE-LIST 30 OUT


MORE INTO SIMPLE CONFIS AND METRICS

* METRICS OR K VALUES bandwidth , load ,delay , reiablilty , mtu .

* SIA ERROR stuck in active . this is where when mentioned no fs can be found for the topology table . the problem is that it wont have any timeout period and sia packet goes on and on till it gets a yes or no reply from neigh . if the router is busy to respond to this sia packet more time will be taken for recomputation

* Three simple steps

enabling routing protocol

defining as number

giving network command

* ROUTER EIGRP 125
NETWORK X.X.X.X
NO AUTO ------------ to turn off auto summaraisation

* SHOW IP PROTOCOLS can be used to see timers , neigh , metrics

k-values can be seen here .

* A K VALUE IS A 32 BIT NUMBER / MODIFIER .. SO IF YOU CHANGE VALUE OF K OR INCREASE A K VALUE BY ONE IT WILL AFFECT HUGELY

* metric can be best viewed with show ip route command

* K-values can be modified with the help of metric weights command

METRIC WEIGHTS ALWAYS START WITH ZER0 AND FOLLOWED BY K1 . K2 , K3 , K4 , K5

DEFAULT VALUES ARE 1 0 1 0 0

BANDWIDTH , LOAD , DELAY , RELIABILITY , MTU


these are few of the updates from me .. need to update blog ..it is lagging like hell lol smile.gif ... i will continue with the eigrp revision part ..

good luck at what ever you do and also wish me

regards
RAKESH





A SMALL CHANGE IN PROGRAM  


left with 3 of the redistribution labs but my time sucks and the factor is due to my external exams which are going on in my coll .. my bad .. iam after big some thing and i will keep it as a surprise till 24th of this month ..so after 24th probably you may expect me to do the labbing again .... just a zeal for the things which are going or which can be grabbed free of cost officially wink.gif

so i have decided not to go off the track and started revising the router core technologies from various parts of the world wink.gif including both the experts out there

here are some of the points worth noting about eigrp .. and do you know one thing ? it is damn easy to hear a audio boot camp ..but try like this .. try writing down the important points and you will soon see the play and sport in it ..it real hard to jot down the important points ..because of two reasons .one every point in a audio boot camp is important and other you need to revise it for atleast 4 times ... for a 15 min audio i took nearly 1 hr do jot a rough note how horrible my writing and learning speeds are any ways it improves me ..

so i would be highlighting some of the points from eigrp which i found important in my self study

good luck

regards
RAKESH

TWO WAY REDISTRIBUTION  


or use a two way redistribution

CODE
r2(config-router)#redistribute rip subnets ?
metric Metric for redistributed routes
metric-type OSPF/IS-IS exterior metric type for redistributed routes
route-map Route map reference
tag Set tag for routes redistributed into OSPF


r2(config-router)#redistribute rip subnets metric-type ?
1 Set OSPF External Type 1 metrics
2 Set OSPF External Type 2 metrics

r2(config-router)#redistribute rip subnets metric-type 1 metric 1000
r2(config-router)#end
r2#
*Mar 1 01:10:28.123: %SYS-5-CONFIG_I: Configured from console by console
r2#
as#2
[Resuming connection 2 to r3 ... ]

r3#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.30.0/24 is directly connected, Loopback30
C 192.168.25.0/24 is directly connected, Loopback25
C 192.168.40.0/24 is directly connected, Loopback40
172.16.0.0/16 is variably subnetted, 5 subnets, 2 masks
C 172.16.23.0/24 is directly connected, Serial2/1
O E1 172.16.12.0/24 [110/1064] via 172.16.23.2, 00:00:05, Serial2/1
O E1 172.16.1.0/24 [110/1064] via 172.16.23.2, 00:00:05, Serial2/1
C 172.16.3.0/24 is directly connected, Loopback0
O 172.16.2.1/32 [110/65] via 172.16.23.2, 00:04:35, Serial2/1
C 192.168.20.0/24 is directly connected, Loopback20
C 192.168.35.0/24 is directly connected, Loopback35
O E1 192.168.70.0/24 [110/1064] via 172.16.23.2, 00:00:05, Serial2/1
O E1 192.168.48.0/22 [110/1064] via 172.16.23.2, 00:00:05, Serial2/1
r3#

r3#ping 192.168.70.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.70.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 52/79/120 ms
r3#


this is with the redistribution lab 5-1 and all of the redistribution labs are relatively big ...

guday

regards
raaki

SETTING DEFAULT ROUTE  

setting a default route will do the trick

CODE
r2#config t
Enter configuration commands, one per line. End with CNTL/Z.
r2(config)#router ospf 1
r2(config-router)#default-information originate always
r2(config-router)#end
r2#

r1#ping 192.168.30.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.30.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/72/124 ms
r1#


CODE
r3#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 172.16.23.2 to network 0.0.0.0

C 192.168.30.0/24 is directly connected, Loopback30
C 192.168.25.0/24 is directly connected, Loopback25
C 192.168.40.0/24 is directly connected, Loopback40
172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
C 172.16.23.0/24 is directly connected, Serial2/1
C 172.16.3.0/24 is directly connected, Loopback0
O 172.16.2.1/32 [110/65] via 172.16.23.2, 00:02:54, Serial2/1
C 192.168.20.0/24 is directly connected, Loopback20
C 192.168.35.0/24 is directly connected, Loopback35
O*E2 0.0.0.0/0 [110/1] via 172.16.23.2, 00:02:54, Serial2/1 -------*
r3#

REDISTRIBUTION OF PROTOCOLS  

next step is to redistribute two of the protocols for full connectivity

CODE
r2(config-router)#redistribute ospf 1 metric 4
r2(config-router)#end
r2#
*Mar 1 01:01:54.671: %SYS-5-CONFIG_I: Configured from console by console
r2#
as#1
[Resuming connection 1 to r1 ... ]

r1#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

192.168.30.0/32 is subnetted, 1 subnets
R 192.168.30.1 [120/4] via 172.16.12.2, 00:00:07, Serial2/0
192.168.25.0/32 is subnetted, 1 subnets
R 192.168.25.1 [120/4] via 172.16.12.2, 00:00:07, Serial2/0
192.168.40.0/32 is subnetted, 1 subnets
R 192.168.40.1 [120/4] via 172.16.12.2, 00:00:07, Serial2/0
172.16.0.0/16 is variably subnetted, 5 subnets, 2 masks
R 172.16.23.0/24 [120/1] via 172.16.12.2, 00:00:07, Serial2/0
C 172.16.12.0/24 is directly connected, Serial2/0
C 172.16.1.0/24 is directly connected, Loopback0
R 172.16.3.1/32 [120/4] via 172.16.12.2, 00:00:07, Serial2/0
R 172.16.2.0/24 [120/1] via 172.16.12.2, 00:00:07, Serial2/0
192.168.20.0/32 is subnetted, 1 subnets
R 192.168.20.1 [120/4] via 172.16.12.2, 00:00:08, Serial2/0
C 192.168.51.0/24 is directly connected, Loopback51
C 192.168.50.0/24 is directly connected, Loopback50
192.168.35.0/32 is subnetted, 1 subnets
R 192.168.35.1 [120/4] via 172.16.12.2, 00:00:08, Serial2/0
C 192.168.49.0/24 is directly connected, Loopback49
C 192.168.70.0/24 is directly connected, Loopback70
192.168.48.0/24 is subnetted, 1 subnets
C 192.168.48.0 is directly connected, Loopback48
S 192.168.48.0/22 is directly connected, Null0


r1#sir | i R
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
o - ODR, P - periodic downloaded static route
R 192.168.30.1 [120/4] via 172.16.12.2, 00:00:19, Serial2/0
R 192.168.25.1 [120/4] via 172.16.12.2, 00:00:19, Serial2/0
R 192.168.40.1 [120/4] via 172.16.12.2, 00:00:19, Serial2/0
R 172.16.23.0/24 [120/1] via 172.16.12.2, 00:00:19, Serial2/0
R 172.16.3.1/32 [120/4] via 172.16.12.2, 00:00:19, Serial2/0
R 172.16.2.0/24 [120/1] via 172.16.12.2, 00:00:19, Serial2/0
R 192.168.20.1 [120/4] via 172.16.12.2, 00:00:19, Serial2/0
R 192.168.35.1 [120/4] via 172.16.12.2, 00:00:19, Serial2/0
r1#ping 192.168.30.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.30.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
r1#traceroute 192.168.30.1

Type escape sequence to abort.
Tracing the route to 192.168.30.1

1 172.16.12.2 56 msec 72 msec 28 msec
2 * *
r1#

could you see the problem ?

CONFIGURING PASSIVE INTERFACES  

configuring passive interfaces in ospf

CODE
r3#

r3#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.30.0/24 is directly connected, Loopback30
C 192.168.25.0/24 is directly connected, Loopback25
C 192.168.40.0/24 is directly connected, Loopback40
172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks
C 172.16.23.0/24 is directly connected, Serial2/1
C 172.16.3.0/24 is directly connected, Loopback0
O 172.16.2.1/32 [110/65] via 172.16.23.2, 00:34:42, Serial2/1
C 192.168.20.0/24 is directly connected, Loopback20
C 192.168.35.0/24 is directly connected, Loopback35
r3#config t
Enter configuration commands, one per line. End with CNTL/Z.
r3(config)#do siib
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES NVRAM administratively down down
FastEthernet0/1 unassigned YES NVRAM administratively down down
Ethernet1/0 unassigned YES NVRAM administratively down down
Ethernet1/1 unassigned YES NVRAM administratively down down
Ethernet1/2 unassigned YES NVRAM administratively down down
Ethernet1/3 unassigned YES NVRAM administratively down down
Serial2/0 unassigned YES NVRAM administratively down down
Serial2/1 172.16.23.3 YES NVRAM up up
Serial2/2 unassigned YES NVRAM administratively down down
Serial2/3 unassigned YES NVRAM administratively down down
Loopback0 172.16.3.1 YES NVRAM up up
Loopback20 192.168.20.1 YES NVRAM up up
Loopback25 192.168.25.1 YES NVRAM up up
Loopback30 192.168.30.1 YES NVRAM up up
Loopback35 192.168.35.1 YES NVRAM up up
Loopback40 192.168.40.1 YES NVRAM up up


r3(config)#router ospf 1
r3(config-router)#passive-interface default
r3(config-router)#
*Mar 1 00:57:38.575: %OSPF-5-ADJCHG: Process 1, Nbr 172.16.2.1 on Serial2/1 from FULL to DOWN, Neighbor Down: Interface down or detached
r3(config-router)#no passive-interface s2/1
r3(config-router)#
*Mar 1 00:57:47.591: %OSPF-5-ADJCHG: Process 1, Nbr 172.16.2.1 on Serial2/1 from LOADING to FULL, Loading Done

-----------------------------------------------------------------------

r3(config-router)#do show ip proto
Routing Protocol is "ospf 1"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Router ID 192.168.40.1
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Maximum path: 4
Routing for Networks:
172.16.3.1 0.0.0.0 area 0
172.16.23.3 0.0.0.0 area 0
192.168.20.1 0.0.0.0 area 0
192.168.25.1 0.0.0.0 area 0
192.168.30.1 0.0.0.0 area 0
192.168.35.1 0.0.0.0 area 0
192.168.40.1 0.0.0.0 area 0
Reference bandwidth unit is 100 mbps
Passive Interface(s):
FastEthernet0/0
FastEthernet0/1
Ethernet1/0
Ethernet1/1
Ethernet1/2
Ethernet1/3
Serial2/0
Passive Interface(s):
Serial2/2
Serial2/3
Loopback0
Loopback20
Loopback25
Loopback30
Loopback35
Loopback40
Routing Information Sources:
Gateway Distance Last Update
172.16.2.1 110 00:00:19
Distance: (default is 110)

r3(config-router)#

INTERMEDIATE STAGES  


intermediate stage

CODE
r2#sir | i R
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
o - ODR, P - periodic downloaded static route
R 172.16.1.0/24 [120/1] via 172.16.12.1, 00:00:08, Serial2/0
R 192.168.51.0/24 is possibly down, routing via 172.16.12.1, Serial2/0 ----------> ****
R 192.168.50.0/24 is possibly down, routing via 172.16.12.1, Serial2/0
R 192.168.49.0/24 is possibly down, routing via 172.16.12.1, Serial2/0
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:08, Serial2/0
R 192.168.48.0/24 is possibly down,
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:08, Serial2/0
r2#



final stage after filtering and flushing the routes

CODE
r2#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

192.168.30.0/32 is subnetted, 1 subnets
O 192.168.30.1 [110/65] via 172.16.23.3, 00:32:59, Serial2/1
192.168.25.0/32 is subnetted, 1 subnets
O 192.168.25.1 [110/65] via 172.16.23.3, 00:32:59, Serial2/1
192.168.40.0/32 is subnetted, 1 subnets
O 192.168.40.1 [110/65] via 172.16.23.3, 00:32:59, Serial2/1
172.16.0.0/16 is variably subnetted, 5 subnets, 2 masks
C 172.16.23.0/24 is directly connected, Serial2/1
C 172.16.12.0/24 is directly connected, Serial2/0
R 172.16.1.0/24 [120/1] via 172.16.12.1, 00:00:14, Serial2/0
O 172.16.3.1/32 [110/65] via 172.16.23.3, 00:32:59, Serial2/1
C 172.16.2.0/24 is directly connected, Loopback0
192.168.20.0/32 is subnetted, 1 subnets
O 192.168.20.1 [110/65] via 172.16.23.3, 00:33:00, Serial2/1
192.168.35.0/32 is subnetted, 1 subnets
O 192.168.35.1 [110/65] via 172.16.23.3, 00:33:00, Serial2/1
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:15, Serial2/0
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:15, Serial2/0

------------------------------------------------------------------------------------------------
r2#sir | i R
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
o - ODR, P - periodic downloaded static route
R 172.16.1.0/24 [120/1] via 172.16.12.1, 00:00:21, Serial2/0
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:21, Serial2/0
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:21, Serial2/0
r2#



IMLEMENTING DISTRIBUTE LIST  


implementing disribute lists

CODE
r2#sir | i R
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
o - ODR, P - periodic downloaded static route
R 172.16.1.0/24 [120/1] via 172.16.12.1, 00:00:26, Serial2/0
R 192.168.51.0/24 [120/1] via 172.16.12.1, 00:00:26, Serial2/0
R 192.168.50.0/24 [120/1] via 172.16.12.1, 00:00:26, Serial2/0
R 192.168.49.0/24 [120/1] via 172.16.12.1, 00:00:26, Serial2/0
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:26, Serial2/0
R 192.168.48.0 [120/1] via 172.16.12.1, 00:00:26, Serial2/0
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:26, Serial2/0
r2#
as#1
[Resuming connection 1 to r1 ... ]

r1#config t
Enter configuration commands, one per line. End with CNTL/Z.
r1(config)#ip prefix-list ?
WORD Name of a prefix list
sequence-number Include/exclude sequence numbers in NVGEN

r1(config)#ip prefix-list rakesh ?
deny Specify packets to reject
description Prefix-list specific description
permit Specify packets to forward
seq sequence number of an entry

r1(config)#ip prefix-list rakesh permit ?
A.B.C.D IP prefix /, e.g., 35.0.0.0/8

r1(config)#ip prefix-list rakesh permit 192.168.48.0/22
r1(config)#ip prefix-list rakesh deny 192.168.48.0/22 ?
ge Minimum prefix length to be matched
le Maximum prefix length to be matched


r1(config)#ip prefix-list rakesh deny 192.168.48.0/22 le ?
<1-32> Maximum prefix length

r1(config)#ip prefix-list rakesh deny 192.168.48.0/22 le 24
r1(config)#ip prefix-list rakesh permit 0.0.0.0/0 le 32
r1(config)#router rip
r1(config-router)#distribute-list ?
<1-199> IP access list number
<1300-2699> IP expanded access list number
WORD Access-list name
gateway Filtering incoming updates based on gateway
prefix Filter prefixes in routing updates

r1(config-router)#distribute-list prefix ?
WORD Name of an IP prefix-list

r1(config-router)#distribute-list prefix rakesh ?
gateway Filtering incoming updates based on gateway
in Filter incoming routing updates
out Filter outgoing routing updates

r1(config-router)#distribute-list prefix rakesh out serial 2/0
r1(config-router)#
as#3
[Resuming connection 3 to r5 ... ]


r2#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

192.168.30.0/32 is subnetted, 1 subnets
O 192.168.30.1 [110/65] via 172.16.23.3, 00:28:44, Serial2/1
192.168.25.0/32 is subnetted, 1 subnets
O 192.168.25.1 [110/65] via 172.16.23.3, 00:28:44, Serial2/1
192.168.40.0/32 is subnetted, 1 subnets
O 192.168.40.1 [110/65] via 172.16.23.3, 00:28:44, Serial2/1
172.16.0.0/16 is variably subnetted, 5 subnets, 2 masks
C 172.16.23.0/24 is directly connected, Serial2/1
C 172.16.12.0/24 is directly connected, Serial2/0
R 172.16.1.0/24 [120/1] via 172.16.12.1, 00:00:10, Serial2/0
O 172.16.3.1/32 [110/65] via 172.16.23.3, 00:28:44, Serial2/1
C 172.16.2.0/24 is directly connected, Loopback0
192.168.20.0/32 is subnetted, 1 subnets
O 192.168.20.1 [110/65] via 172.16.23.3, 00:28:45, Serial2/1
R 192.168.51.0/24 [120/1] via 172.16.12.1, 00:00:37, Serial2/0
R 192.168.50.0/24 [120/1] via 172.16.12.1, 00:00:37, Serial2/0
192.168.35.0/32 is subnetted, 1 subnets
O 192.168.35.1 [110/65] via 172.16.23.3, 00:28:45, Serial2/1
R 192.168.49.0/24 [120/1] via 172.16.12.1, 00:00:37, Serial2/0
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:11, Serial2/0
192.168.48.0/24 is subnetted, 1 subnets
R 192.168.48.0 [120/1] via 172.16.12.1, 00:00:37, Serial2/0
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:11, Serial2/0
r2#sir | i R
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
o - ODR, P - periodic downloaded static route
R 172.16.1.0/24 [120/1] via 172.16.12.1, 00:00:00, Serial2/0
R 192.168.51.0/24 [120/1] via 172.16.12.1, 00:00:54, Serial2/0
R 192.168.50.0/24 [120/1] via 172.16.12.1, 00:00:54, Serial2/0
R 192.168.49.0/24 [120/1] via 172.16.12.1, 00:00:54, Serial2/0
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:00, Serial2/0
R 192.168.48.0 [120/1] via 172.16.12.1, 00:00:54, Serial2/0
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:00, Serial2/0
r2#sir | i R
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
o - ODR, P - periodic downloaded static route
R 172.16.1.0/24 [120/1] via 172.16.12.1, 00:00:09, Serial2/0
R 192.168.51.0/24 [120/1] via 172.16.12.1, 00:01:03, Serial2/0
R 192.168.50.0/24 [120/1] via 172.16.12.1, 00:01:03, Serial2/0
R 192.168.49.0/24 [120/1] via 172.16.12.1, 00:01:03, Serial2/0
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:09, Serial2/0
R 192.168.48.0 [120/1] via 172.16.12.1, 00:01:03, Serial2/0
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:09, Serial2/0
r2#sir | i R
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
o - ODR, P - periodic downloaded static route
R 172.16.1.0/24 [120/1] via 172.16.12.1, 00:00:12, Serial2/0
R 192.168.51.0/24 [120/1] via 172.16.12.1, 00:01:06, Serial2/0 *
R 192.168.50.0/24 [120/1] via 172.16.12.1, 00:01:06, Serial2/0 *
R 192.168.49.0/24 [120/1] via 172.16.12.1, 00:01:06, Serial2/0 * ----> their timers should be expired first
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:12, Serial2/0
R 192.168.48.0 [120/1] via 172.16.12.1, 00:01:06, Serial2/0
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:12, Serial2/0
r2#

SEEING THE TABLES  


now see this

CODE
r1#config t
Enter configuration commands, one per line. End with CNTL/Z.
r1(config)#router rip
r1(config-router)#do siib
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES NVRAM administratively down down
FastEthernet0/1 unassigned YES NVRAM administratively down down
Ethernet1/0 unassigned YES NVRAM administratively down down
Ethernet1/1 unassigned YES NVRAM administratively down down
Ethernet1/2 unassigned YES NVRAM administratively down down
Ethernet1/3 unassigned YES NVRAM administratively down down
Serial2/0 172.16.12.1 YES NVRAM up up
Serial2/1 unassigned YES NVRAM administratively down down
Serial2/2 unassigned YES NVRAM administratively down down
Serial2/3 unassigned YES NVRAM administratively down down
Loopback0 172.16.1.1 YES NVRAM up up
Loopback48 192.168.48.1 YES NVRAM up up
Loopback49 192.168.49.1 YES NVRAM up up
Loopback50 192.168.50.1 YES NVRAM up up
Loopback51 192.168.51.1 YES NVRAM up up
Loopback70 192.168.70.1 YES NVRAM up up
r1(config-router)#passive-interface l0
r1(config-router)#passive-interface l48
r1(config-router)#passive-interface l49
r1(config-router)#passive-interface l50
r1(config-router)#passive-interface l51
r1(config-router)#passive-interface l70
r1(config-router)#end
r1#
*Mar 1 00:47:28.363: %SYS-5-CONFIG_I: Configured from console by console
r1#debug ip rip events
RIP event debugging is on
r1#
*Mar 1 00:47:43.311: RIP: sending v2 update to 224.0.0.9 via Serial2/0 (172.16.12.1) its now using only serial 2/0 for the updates and it reduces cpu cyc
*Mar 1 00:47:43.319: RIP: Update contains 7 routes
*Mar 1 00:47:43.319: RIP: Update queued
*Mar 1 00:47:43.323: RIP: Update sent via Serial2/0
r1#
*Mar 1 00:47:59.655: RIP: received v2 update from 172.16.12.2 on Serial2/0
*Mar 1 00:47:59.659: RIP: Update contains 2 routes
r1#

A DEBUG OUTPUT  

before that lets see a debug out put of rip

CODE
r1#debug ip rip events
RIP event debugging is on
r1#
*Mar 1 00:44:13.367: RIP: sending v2 update to 224.0.0.9 via Loopback50 (192.168.50.1)
*Mar 1 00:44:13.371: RIP: Update contains 9 routes ---------> *
*Mar 1 00:44:13.375: RIP: Update queued
*Mar 1 00:44:13.375: RIP: Update sent via Loopback50
*Mar 1 00:44:13.379: RIP: ignored v2 packet from 192.168.50.1 (sourced from one of our addresses)
r1#
*Mar 1 00:44:19.699: RIP: received v2 update from 172.16.12.2 on Serial2/0
*Mar 1 00:44:19.703: RIP: Update contains 2 routes
*Mar 1 00:44:20.151: RIP: sending v2 update to 224.0.0.9 via Loopback48 (192.168.48.1) -------->*
*Mar 1 00:44:20.155: RIP: Update contains 9 routes------>*
*Mar 1 00:44:20.159: RIP: Update queued
*Mar 1 00:44:20.159: RIP: Update sent via Loopback48----------->*
*Mar 1 00:44:20.163: RIP: ignored v2 packet from 192.168.48.1 (sourced from one of our addresses)
*Mar 1 00:44:20.527: RIP: sending v2 update to 224.0.0.9 via Loopback51 (192.168.51.1)
*Mar 1 00:44:20.531: RIP: Update contains 9 routes----------->*
*Mar 1 00:44:20.535: RIP: Update queued
r1#
*Mar 1 00:44:20.535: RIP: Update sent via Loopback51
*Mar 1 00:44:20.543: RIP: ignored v2 packet from 192.168.51.1 (sourced from one of our addresses)
r1#
*Mar 1 00:44:26.395: RIP: sending v2 update to 224.0.0.9 via Loopback49 (192.168.49.1)
*Mar 1 00:44:26.399: RIP: Update contains 9 routes
*Mar 1 00:44:26.403: RIP: Update queued
*Mar 1 00:44:26.403: RIP: Update sent via Loopback49
*Mar 1 00:44:26.411: RIP: ignored v2 packet from 192.168.49.1 (sourced from one of our addresses)
*Mar 1 00:44:27.175: RIP: sending v2 update to 224.0.0.9 via Serial2/0 (172.16.12.1)
*Mar 1 00:44:27.179: RIP: Update contains 7 routes
*Mar 1 00:44:27.183: RIP: Update queued
*Mar 1 00:44:27.183: RIP: Update sent via Serial2/0
*Mar 1 00:44:27.319: RIP: sending v2 update to 224.0.0.9 via Loopback70 (192.168.70.1)
r1#
*Mar 1 00:44:27.323: RIP: Update contains 9 routes
*Mar 1 00:44:27.327: RIP: Update queued
*Mar 1 00:44:27.327: RIP: Update sent via Loopback70
*Mar 1 00:44:27.335: RIP: ignored v2 packet from 192.168.70.1 (sourced from one of our addresses)
r1#
*Mar 1 00:44:34.667: RIP: sending v2 update to 224.0.0.9 via Loopback0 (172.16.1.1)
*Mar 1 00:44:34.671: RIP: Update contains 9 routes
*Mar 1 00:44:34.675: RIP: Update queued
*Mar 1 00:44:34.675: RIP: Update sent via Loopback0
*Mar 1 00:44:34.679: RIP: ignored v2 packet from 172.16.1.1 (sourced from one of our addresses)
r1#
*Mar 1 00:44:40.635: RIP: sending v2 update to 224.0.0.9 via Loopback50 (192.168.50.1)
*Mar 1 00:44:40.639: RIP: Update contains 9 routes
*Mar 1 00:44:40.643: RIP: Update queued
*Mar 1 00:44:40.643: RIP: Update sent via Loopback50
*Mar 1 00:44:40.651: RIP: ignored v2 packet from 192.168.50.1 (sourced from one of our addresses)
r1#
*Mar 1 00:44:46.279: RIP: received v2 update from 172.16.12.2 on Serial2/0
*Mar 1 00:44:46.283: RIP: Update contains 2 routes
*Mar 1 00:44:47.087: RIP: sending v2 update to 224.0.0.9 via Loopback51 (192.168.51.1)
*Mar 1 00:44:47.091: RIP: Update contains 9 routes
*Mar 1 00:44:47.095: RIP: Update queued
*Mar 1 00:44:47.095: RIP: Update sent via Loopback51
*Mar 1 00:44:47.099: RIP: ignored v2 packet from 192.168.51.1 (sourced from one of our addresses)
r1#
*Mar 1 00:44:50.135: RIP: sending v2 update to 224.0.0.9 via Loopback48 (192.168.48.1)
*Mar 1 00:44:50.139: RIP: Update contains 9 routes
*Mar 1 00:44:50.143: RIP: Update queued
*Mar 1 00:44:50.143: RIP: Update sent via Loopback48
*Mar 1 00:44:50.151: RIP: ignored v2 packet from 192.168.48.1 (sourced from one of our addresses)
r1#
*Mar 1 00:44:54.911: RIP: sending v2 update to 224.0.0.9 via Serial2/0 (172.16.12.1)
*Mar 1 00:44:54.915: RIP: Update contains 7 routes
*Mar 1 00:44:54.919: RIP: Update queued
*Mar 1 00:44:54.919: RIP: Update sent via Serial2/0
*Mar 1 00:44:55.431: RIP: sending v2 update to 224.0.0.9 via Loopback49 (192.168.49.1)
*Mar 1 00:44:55.435: RIP: Update contains 9 routes
*Mar 1 00:44:55.439: RIP: Update queued
*Mar 1 00:44:55.439: RIP: Update sent via Loopback49
*Mar 1 00:44:55.443: RIP: ignored v2 packet from 192.168.49.1 (sourced from one of our addresses)
r1#
*Mar 1 00:44:56.467: RIP: sending v2 update to 224.0.0.9 via Loopback70 (192.168.70.1)
*Mar 1 00:44:56.467: RIP: Update contains 9 routes
*Mar 1 00:44:56.467: RIP: Update queued
*Mar 1 00:44:56.467: RIP: Update sent via Loopback70
*Mar 1 00:44:56.467: RIP: ignored v2 packet from 192.168.70.1 (sourced from one of our addresses)
r1#u all
All possible debugging has been turned off
r1#
*Mar 1 00:45:03.159: RIP: sending v2 update to 224.0.0.9 via Loopback0 (172.16.1.1)
*Mar 1 00:45:03.163: RIP: Update contains 9 routes
*Mar 1 00:45:03.167: RIP: Update queued
*Mar 1 00:45:03.167: RIP: Update sent via Loopback0
*Mar 1 00:45:03.175: RIP: ignored v2 packet from 172.16.1.1 (sourced from one of our addresses)
r1#


so as we can see updates are being sent vigorously by rip . do we really need those updates ... we dont ..? so lets shut them ?

THE WAY TO DO IT  

this is how we do it

CODE
r1(config)#

r1(config)#ip route 192.168.48.0 255.255.252.0 null0
r1(config)#router rip
r1(config-router)#redistribute static
r1(config-router)#
as#3
[Resuming connection 3 to r5 ... ]


r2#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

192.168.30.0/32 is subnetted, 1 subnets
O 192.168.30.1 [110/65] via 172.16.23.3, 00:17:58, Serial2/1
192.168.25.0/32 is subnetted, 1 subnets
O 192.168.25.1 [110/65] via 172.16.23.3, 00:17:58, Serial2/1
192.168.40.0/32 is subnetted, 1 subnets
O 192.168.40.1 [110/65] via 172.16.23.3, 00:17:58, Serial2/1
172.16.0.0/16 is variably subnetted, 5 subnets, 2 masks
C 172.16.23.0/24 is directly connected, Serial2/1
C 172.16.12.0/24 is directly connected, Serial2/0
R 172.16.1.0/24 [120/1] via 172.16.12.1, 00:00:05, Serial2/0
O 172.16.3.1/32 [110/65] via 172.16.23.3, 00:17:58, Serial2/1
C 172.16.2.0/24 is directly connected, Loopback0
192.168.20.0/32 is subnetted, 1 subnets
O 192.168.20.1 [110/65] via 172.16.23.3, 00:17:59, Serial2/1
R 192.168.51.0/24 [120/1] via 172.16.12.1, 00:00:06, Serial2/0
R 192.168.50.0/24 [120/1] via 172.16.12.1, 00:00:06, Serial2/0
192.168.35.0/32 is subnetted, 1 subnets
O 192.168.35.1 [110/65] via 172.16.23.3, 00:17:59, Serial2/1
R 192.168.49.0/24 [120/1] via 172.16.12.1, 00:00:06, Serial2/0
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:06, Serial2/0
192.168.48.0/24 is subnetted, 1 subnets
R 192.168.48.0 [120/1] via 172.16.12.1, 00:00:06, Serial2/0
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:06, Serial2/0
r2#sir | i R
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
o - ODR, P - periodic downloaded static route
R 172.16.1.0/24 [120/1] via 172.16.12.1, 00:00:10, Serial2/0
R 192.168.51.0/24 [120/1] via 172.16.12.1, 00:00:10, Serial2/0
R 192.168.50.0/24 [120/1] via 172.16.12.1, 00:00:10, Serial2/0
R 192.168.49.0/24 [120/1] via 172.16.12.1, 00:00:10, Serial2/0
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:10, Serial2/0
R 192.168.48.0 [120/1] via 172.16.12.1, 00:00:10, Serial2/0
R 192.168.48.0/22 [120/1] via 172.16.12.1, 00:00:10, Serial2/0 -------------------- ***********
r2#


we see no use for this as more specific routes are obviously preffered over /22 mask ... so lets use distribute list to accomplish it

IMPLENTATION  

leaving the networks 172.16.1.0 and 192.168.70.0 we can summarize all of 48 , 49 , 50 , 51



our summary is 192.168.48.0/22

lets implement our summary addr at r1

CODE
r1#config t
Enter configuration commands, one per line. End with CNTL/Z.
r1(config)#int s2/0
r1(config-if)#ip summary-address ?
eigrp Enhanced Interior Gateway Routing Protocol (EIGRP)
rip Routing Information Protocol (RIP)

r1(config-if)#ip summary-address rip ?
A.B.C.D IP address

r1(config-if)#ip summary-address rip 192.168.48.0 255.255.252.0
Summary mask must be greater or equal to major net ----------------------> this is obvious ? now do we have any solution?
r1(config-if)#

LOOK AT ROUTING TABLES  

take a look at the routing table of r2

CODE
as#3
[Resuming connection 3 to r5 ... ]

r2#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

192.168.30.0/32 is subnetted, 1 subnets
O 192.168.30.1 [110/65] via 172.16.23.3, 00:03:56, Serial2/1
192.168.25.0/32 is subnetted, 1 subnets
O 192.168.25.1 [110/65] via 172.16.23.3, 00:03:56, Serial2/1
192.168.40.0/32 is subnetted, 1 subnets
O 192.168.40.1 [110/65] via 172.16.23.3, 00:03:56, Serial2/1
172.16.0.0/16 is variably subnetted, 5 subnets, 2 masks
C 172.16.23.0/24 is directly connected, Serial2/1
C 172.16.12.0/24 is directly connected, Serial2/0
R 172.16.1.0/24 [120/1] via 172.16.12.1, 00:00:19, Serial2/0
O 172.16.3.1/32 [110/65] via 172.16.23.3, 00:03:56, Serial2/1
C 172.16.2.0/24 is directly connected, Loopback0
192.168.20.0/32 is subnetted, 1 subnets
O 192.168.20.1 [110/65] via 172.16.23.3, 00:03:57, Serial2/1
R 192.168.51.0/24 [120/1] via 172.16.12.1, 00:00:20, Serial2/0
R 192.168.50.0/24 [120/1] via 172.16.12.1, 00:00:20, Serial2/0
192.168.35.0/32 is subnetted, 1 subnets
O 192.168.35.1 [110/65] via 172.16.23.3, 00:03:57, Serial2/1
R 192.168.49.0/24 [120/1] via 172.16.12.1, 00:00:20, Serial2/0
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:20, Serial2/0
R 192.168.48.0/24 [120/1] via 172.16.12.1, 00:00:20, Serial2/0
r2#



now for clarity see this

CODE
r2#sir | i R
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
o - ODR, P - periodic downloaded static route
R 172.16.1.0/24 [120/1] via 172.16.12.1, 00:00:00, Serial2/0
R 192.168.51.0/24 [120/1] via 172.16.12.1, 00:00:00, Serial2/0
R 192.168.50.0/24 [120/1] via 172.16.12.1, 00:00:00, Serial2/0
R 192.168.49.0/24 [120/1] via 172.16.12.1, 00:00:00, Serial2/0
R 192.168.70.0/24 [120/1] via 172.16.12.1, 00:00:00, Serial2/0
R 192.168.48.0/24 [120/1] via 172.16.12.1, 00:00:00, Serial2/0
r2#


dont you think we require summaraisation ? yes we do lets implement

STARTING OSPF PROC  


starting ospf proc

CODE
r2(config-router)#do u all
All possible debugging has been turned off
r2(config-router)#do debug ip ospf events
OSPF events debugging is on
r2(config-router)#router ospf 1
r2(config-router)#network 172.16.23.2 0.0.0.0 area 0
r2(config-router)#net
*Mar 1 00:20:47.943: OSPF: Interface Serial2/1 going Up
*Mar 1 00:20:47.943: OSPF: Send hello to 224.0.0.5 area 0 on Serial2/1 from 172.16.23.2
*Mar 1 00:20:48.055: OSPF: Rcv hello from 192.168.40.1 area 0 from Serial2/1 172.16.23.3
*Mar 1 00:20:48.055: OSPF: 2 Way Communication to 192.168.40.1 on Serial2/1, state 2WAY
*Mar 1 00:20:48.059: OSPF: Send DBD to 192.168.40.1 on Serial2/1 seq 0x4DB opt 0x52 flag 0x7 len 32
*Mar 1 00:20:48.059: OSPF: Send immediate hello to nbr 192.168.40.1, src address 172.16.23.3, on Serial2/1
*Mar 1 00:20:48.059: OSPF: Send hello to 224.0.0.5 area 0 on Serial2/1 from 172.16.23.2
*Mar 1 00:20:48.063: OSPF: End of hello processing
*Mar 1 00:20:48.107: OSPF: Rcv DBD from 192.168.40.1 on Serial2/1 seq 0x1E46 opt 0x52 flag 0x7 len 32 mtu 1500 state EXSTART
*Mar 1 00:20:48.107: OSPF: NBR Negotiation Done. We are the SLAVE
*Mar 1 00:20:48.111: OSPF: Send DBD to 192.168.40.1 on Serial2/1 seq 0x1E46 opt 0x52 flag 0x0 len 32
*Mar 1 00:20:4
r2(config-router)#network 8.167: OSPF: Rcv DBD from 192.168.40.1 on Serial2/1 seq 0x1E47 opt 0x52 flag 0x3 len 52 mtu 1500 state EXCHANGE
*Mar 1 00:20:48.167: OSPF: Send DBD to 192.168.40.1 on Serial2/1 seq 0x1E47 opt 0x52 flag 0x0 len 32
*Mar 1 00:20:48.183: OSPF: Rcv DBD from 192.168.40.1 on Serial2/1 seq 0x1E48 opt 0x52 flag 0x1 len 32 mtu 1500 state EXCHANGE
*Mar 1 00:20:48.183: OSPF: Exchange Done with 192.168.40.1 on Serial2/1
*Mar 1 00:20:48.187: OSPF: Send LS REQ to 192.168.40.1 length 12 LSA count 1
*Mar 1 00:20:48.187: OSPF: Send DBD to 192.168.40.1 on Serial2/1 seq 0x1E48 opt 0x52 flag 0x0 len 32
*Mar 1 00:20:48.207: OSPF: Rcv LS UPD from 192.168.40.1 on Serial2/1 length 136 LSA count 1
*Mar 1 00:20:48.211: OSPF: Synchronized with 192.168.40.1 on Serial2/1, state FULL
*Mar 1 00:20:48.211: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.40.1 on Serial2/1 from LOADING to FULL, Loading Done
*Mar 1 00:20:48.723: OSPF: Rcv LS UPD from 192.168.40.1 on Serial2/1 length 148 LSA count 1
r2(config-router)#network 172.1
*Mar 1 00:20:51.135: OSPF: Rcv hello from 192.168.40.1 area 0 from Serial2/1 172.16.23.3
*Mar 1 00:20:51.135: OSPF: End of hello processing
r2(config-router)#network 172.16.2.1 0.0.0.0 area 0
*Mar 1 00:20:57.943: OSPF: Send hello to 224.0.0.5 area 0 on Serial2/1 from 172.16.23.2
r2(config-router)#network 172.16.2.1 0.0.0.0 area 0
r2(config-router)#
*Mar 1 00:21:00.391: OSPF: Interface Loopback0 going Up -------------> saw this as soon as network is advertised interface goes .. so this is the use of c network command

*Mar 1 00:21:01.167: OSPF: Rcv hello from 192.168.40.1 area 0 from Serial2/1 172.16.23.3
*Mar 1 00:21:01.167: OSPF: End of hello processing
r2(config-router)#
*Mar 1 00:21:07.943: OSPF: Send hello to 224.0.0.5 area 0 on Serial2/1 from 172.16.23.2
r2(config-router)#
*Mar 1 00:21:11.151: OSPF: Rcv hello from 192.168.40.1 area 0 from Serial2/1 172.16.23.3
*Mar 1 00:21:11.151: OSPF: End of hello processing
r2(config-router)#do u all
All possible debugging has been turned off
r2(config-router)#

CONFIGURING OSPF  

on r2 lets configure s2/0 in rip and l0 and s2/1 in ospf

CODE
r2(config-router)#do siib
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset administratively down down
Ethernet1/0 unassigned YES unset administratively down down
Ethernet1/1 unassigned YES unset administratively down down
Ethernet1/2 unassigned YES unset administratively down down
Ethernet1/3 unassigned YES unset administratively down down
Serial2/0 172.16.12.2 YES manual up up
Serial2/1 172.16.23.2 YES manual up up
Serial2/2 unassigned YES unset administratively down down
Serial2/3 unassigned YES unset administratively down down
Loopback0 172.16.2.1 YES manual up up
r2(config-router)#do debug ip rip events
RIP event debugging is on
r2(config-router)#network 172.16.0.0
r2(config-router)#netwo
*Mar 1 00:18:08.503: RIP: add Serial2/0 to RIP idb list
*Mar 1 00:18:08.507: RIP: add Serial2/1 to RIP idb list
*Mar 1 00:18:08.507: RIP: add Loopback0 to RIP idb list
*Mar 1 00:18:08.535: RIP: sending request on Loopback0 to 224.0.0.9
*Mar 1 00:18:08.539: RIP: sending request on Serial2/0 to 224.0.0.9
*Mar 1 00:18:08.539: RIP: sending request on Serial2/1 to 224.0.0.9-------------------------------------------remember this
*Mar 1 00:18:08.543: RIP: ignored v2 packet from 172.16.2.1 (sourced from one of our addresses)
*Mar 1 00:18:08.691: RIP: received v2 update from 172.16.12.1 on Serial2/0
*Mar 1 00:18:08.699: RIP: Update contains 6 routes
*Mar 1 00:18:09.419: RIP: received v2 update from 172.16.12.1 on Serial2/0
r2(config-router)#network
*Mar 1 00:18:09.423: RIP: Update contains 6 routes
*Mar 1 00:18:10.531: RIP: sending v2 flash update to 224.0.0.9 via Serial2/0 (172.16.12.2)
*Mar 1 00:18:10.531: RIP: Update contains 2 routes
*Mar 1 00:18:10.531: RIP: Update queued
*Mar 1 00:18:10.535: RIP: sending v2 flash update to 224.0.0.9 via Serial2/1 (172.16.23.2)
*Mar 1 00:18:10.535: RIP: Update contains 8 routes
*Mar 1 00:18:10.535: RIP: Update queued
*Mar 1 00:18:10.539: RIP: sending v2 flash update to 224.0.0.9 via Loopback0 (172.16.2.1)
*Mar 1 00:18:10.539: RIP: Update contains 8 routes
*Mar 1 00:18:10.539: RIP: Update queued
*Mar 1 00:18:10.543: RIP: Update sent via Serial2/0
*Mar 1 00:18:10.543: RIP: Update sent via Serial2/1
r2(config-router)#network
*Mar 1 00:18:10.543: RIP: Update sent via Loopback0
*Mar 1 00:18:10.547: RIP: ignored v2 packet from 172.16.2.1 (sourced from one of our addresses)
r2(config-router)#

CONFIG FOR R3  


config for r3

CODE
r3>

r3>en
r3#show run
Building configuration...

Current configuration : 1994 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback0
ip address 172.16.3.1 255.255.255.0
!
interface Loopback20
ip address 192.168.20.1 255.255.255.0
!
interface Loopback25
ip address 192.168.25.1 255.255.255.0
!
interface Loopback30
ip address 192.168.30.1 255.255.255.0
!
interface Loopback35
ip address 192.168.35.1 255.255.255.0
!
interface Loopback40
ip address 192.168.40.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/1
ip address 172.16.23.3 255.255.255.0
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
passive-interface default
no passive-interface Serial2/1
network 172.16.3.1 0.0.0.0 area 0
network 172.16.23.3 0.0.0.0 area 0
network 192.168.20.1 0.0.0.0 area 0
network 192.168.25.1 0.0.0.0 area 0
network 192.168.30.1 0.0.0.0 area 0
network 192.168.35.1 0.0.0.0 area 0
network 192.168.40.1 0.0.0.0 area 0
!
ip http server
!
!
!
!
control-plane
!
alias exec sir show ip route
alias exec siib show ip int brief
alias exec sird show ip rip database
alias exec sio show ip ospf
alias exec siod show ip ospf database
alias exec sioi show ip int brief
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

r3#

CONFIG FOR R2  

config for r2

CODE
r2#

r2#show run
Building configuration...

Current configuration : 1423 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback0
ip address 172.16.2.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
ip address 172.16.12.2 255.255.255.0
serial restart-delay 0
!
interface Serial2/1
ip address 172.16.23.2 255.255.255.0
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
ip http server
!
!
!
!
control-plane
!
alias exec sir show ip route
alias exec siib show ip int brief
alias exec sip show ip proto
alias exec sird show ip rip data
alias exec sio show ip ospf
alias exec sioi show ip ospf int
alias exec sion show ip ospf nei
alias exec siod show ip ospf data
alias exec siot show ip ospf topo
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
!
!
end

r2#

INTO CONFIGS  

CONFIG FOR R1

my gns3 messed up so i had to reconfigure one of the routers in topology ..

router 1 and router 3 will have full configs and router 2 will have initial configs

CODE
config for r1

r1>en
r1#show run
Building configuration...

Current configuration : 2393 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback0
ip address 172.16.1.1 255.255.255.0
!
interface Loopback48
ip address 192.168.48.1 255.255.255.0
!
interface Loopback49
ip address 192.168.49.1 255.255.255.0
!
interface Loopback50
ip address 192.168.50.1 255.255.255.0
!
interface Loopback51
ip address 192.168.51.1 255.255.255.0
!
interface Loopback70
ip address 192.168.70.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
ip address 172.16.12.1 255.255.255.0
serial restart-delay 0
!
interface Serial2/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router rip
version 2
redistribute static
passive-interface Loopback0
passive-interface Loopback48
passive-interface Loopback49
passive-interface Loopback50
passive-interface Loopback51
passive-interface Loopback70
network 172.16.0.0
network 192.168.48.0
network 192.168.49.0
network 192.168.50.0
network 192.168.51.0
network 192.168.70.0
distribute-list prefix rakesh out Serial2/0
distribute-list prefix rakesh1 in Serial2/0
no auto-summary
!
ip http server
!
ip route 192.168.48.0 255.255.252.0 Null0
!
!
!
ip prefix-list rakesh seq 5 permit 192.168.48.0/22
ip prefix-list rakesh seq 10 deny 192.168.48.0/22 le 24
ip prefix-list rakesh seq 15 permit 0.0.0.0/0 le 32
!
ip prefix-list rakesh1 seq 5 deny 192.168.20.0/24
ip prefix-list rakesh1 seq 10 deny 192.168.25.0/27
ip prefix-list rakesh1 seq 15 permit 0.0.0.0/0 le 32
!
ip access-list standard rakesh1
!
control-plane
!
alias exec sir show ip route
alias exec siib show ip int brief
alias exec sird show ip rip database
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

r1#

Lab 5-1 Redistribution Between RIP and OSPF  



















Learning Objectives

• Review configuration and verification of RIP and OSPF
• Configure passive interfaces in both RIP and OSPF
• Filter routing updates using distribute lists
• Redistribute static routes into RIP
• Redistribute RIP routes into OSPF
• Redistribute OSPF routes into RIP
• Originate a default route into OSPF
• Set a default seed metric
• Modify OSPF external network types
• Configure summary addresses

Scenario

Two online booksellers, Example.com and Example.net, have merged and now need a short-term solution to interdomain routing. Since these companies
provide client services to Internet users, it is essential to have minimal downtime during the transition. Example.com is a small firm running RIP, while Example.net has a somewhat larger network running OSPF. The diagram identifies R2 as the router that will bridge the two networks. Since it is imperative that the two booksellers continuously deliver Internet services, you should bridge these two routing domains without interfering with each router’s path through its own routing domain to the Internet. The CIO determines that it is preferable to keep the two protocol domains pictured in the diagram during the transition period, because the network engineers on each side need to understand the other’s network before deploying a long-term solution. Redistribution will not be your long-term solution, but will suffice as a short-term solution. Configure the topology above in a lab to verify the short-term solution. In this
scenario, R1 and R2 are running RIPv2, but the 172.16.23.0/24 network between R2 and R3 is running OSPF. You need to configure R2 to enable
these two routing protocols to interact to allow full connectivity between all networks.

PREFIX LIST WITH BGP  

this is how you execute the prefix list command

the requirement was that sanjose2 should not send updates or network info about 199 network

CODE
sanjose2(config)#ip prefix-list rakesh1 deny 199.9.9.0/24
sanjose2(config)#ip prefix-list rakesh1 permit 0.0.0.0/32
sanjose2(config)#end
sanjose2#
as#1

---------------------------------------------------------------


sanjose2(config-router)#nei 192.168.1.5 pre
sanjose2(config-router)#nei 192.168.1.5 prefix-list ?
WORD Name of a prefix list

sanjose2(config-router)#nei 192.168.1.5 prefix-list rakesh1 ?
in Filter incoming updates
out Filter outgoing updates

sanjose2(config-router)#nei 192.168.1.5 prefix-list rakesh1 out
sanjose2(config-router)#
as#2
[Resuming connection 2 to r2 ... ]

sanjose1#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

R 200.100.50.0/24 [120/1] via 192.168.1.6, 00:00:01, Serial2/0
172.24.0.0/24 is subnetted, 1 subnets
R 172.24.1.0 [120/1] via 192.168.1.6, 00:00:01, Serial2/0
192.168.1.0/30 is subnetted, 1 subnets
C 192.168.1.4 is directly connected, Serial2/0
sanjose1#

-------------------------------------

sanjose2#show ip pre
sanjose2#show ip prefix-list
ip prefix-list rakesh1: 2 entries
seq 5 deny 199.9.9.0/24
seq 10 permit 0.0.0.0/32
sanjose2#


*in the lab guide the config is given wrong if any one following it please observe while doing the lab

completed and really went out the guilty feeling now ...

done with bgp from lab guide ... ciao with redisribution

regards
raaki

CONFIGURING AGGREGATE ADDRESS  


aggregate address can be configured with the help of the aggregate-address command in the router configuration mode

you know how dumb iam .. as usually while writing down in this diary i go from backwords using the no version of the commands and show the results ... and i forgot of one prefix list and was troubleshooting like hell till now you get to know and u will laugh seeing that prefix list in action

CODE
sanjose2(config)#router bgp 100
sanjose2(config-router)#nei 172.24.1.18 route-reflector-client
sanjose2(config-router)#nei 192.168.1.5 route-reflector-client
sanjose2(config-router)#
as#2
[Resuming connection 2 to r2 ... ]

sanjose1#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

B 199.9.9.0/24 [200/0] via 172.24.1.18, 00:02:59
R 200.100.50.0/24 [120/1] via 192.168.1.6, 00:00:10, Serial2/0
172.24.0.0/24 is subnetted, 1 subnets
R 172.24.1.0 [120/1] via 192.168.1.6, 00:00:10, Serial2/0
192.168.1.0/30 is subnetted, 1 subnets
C 192.168.1.4 is directly connected, Serial2/0
sanjose1#ping 199.9.9.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 199.9.9.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/64/132 ms
sanjose1#

ADVERTISING NETWORKS  

advertise network 199.9.9.0 on sanjose 3 and see the results both on sanjose2 and sanjose1

CODE
sanjose3(config-router)#network 199.9.9.0 mask 255.255.255.0
sanjose3(config-router)#end
sanjose3#

--------------------------------------------


sanjose2#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

B 199.9.9.0/24 [200/0] via 172.24.1.18, 00:00:59 ---------------------------------> network came up in sanjose2
C 200.100.50.0/24 is directly connected, Loopback0
172.24.0.0/24 is subnetted, 1 subnets
C 172.24.1.0 is directly connected, Serial2/1
192.168.1.0/30 is subnetted, 1 subnets
C 192.168.1.4 is directly connected, Serial2/0
sanjose2#

------------------------------------------------------------------------

sanjose1#clear ip bgp * soft
sanjose1#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set ---------------------------------------------------> no network of 199.9.9.0

R 200.100.50.0/24 [120/1] via 192.168.1.6, 00:00:16, Serial2/0
172.24.0.0/24 is subnetted, 1 subnets
R 172.24.1.0 [120/1] via 192.168.1.6, 00:00:16, Serial2/0
192.168.1.0/30 is subnetted, 1 subnets
C 192.168.1.4 is directly connected, Serial2/0
sanjose1#
as#1
[Resuming connection 1 to r1 ... ]


the network is not advertised from sanjose2 to sanjose1 because all of them are in ibgp relationships .. now configure sanjose1 and sanjose3 are route-reflector clients on sanjose2 and network should be propogated

INTO TOPOLOGY  

there are two things two keep in mind here while configuring

first of all , the primary requirement of this lab was to advertise all of the networks with the help of rip routig protocol , except 199.9.9.0 network

this is done on purpose to test the route reflector purpose

CODE
sanjose2#show ip proto
Routing Protocol is "rip"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Sending updates every 30 seconds, next due in 21 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Redistributing: rip
Default version control: send version 2, receive version 2
Interface Send Recv Triggered RIP Key-chain
Serial2/0 2 2
Serial2/1 2 2
Loopback0 2 2
Automatic network summarization is not in effect
Maximum path: 4
Routing for Networks:
172.24.0.0
192.168.1.0
200.100.50.0
Routing Information Sources:
Gateway Distance Last Update
Distance: (default is 120)

Routing Protocol is "bgp 100"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Route Reflector for address family IPv4 Unicast, 2 clients
Route Reflector for address family VPNv4 Unicast, 2 clients
Route Reflector for address family IPv4 Multicast, 2 clients
IGP synchronization is disabled
Automatic route summarization is disabled
Neighbor(s):
Address FiltIn FiltOut DistIn DistOut Weight RouteMap
172.24.1.18
192.168.1.5
Maximum path: 1
Routing Information Sources:
Gateway Distance Last Update
172.24.1.18 200 00:17:00
Distance: external 20 internal 200 local 200

sanjose2#


now advertise 199.9.9.0 network into bgp on sanjose3 and see the results

CONFIG FOR SANJOSE 3  

config for sanjose3

CODE
sanjose3#

sanjose3#sr
Building configuration...

Current configuration : 1701 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname sanjose3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback0
ip address 199.9.9.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
no fair-queue
!
interface Serial2/1
ip address 172.24.1.18 255.255.255.0
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router rip
version 2
network 172.24.0.0
no auto-summary
!
router bgp 100
no synchronization
bgp log-neighbor-changes
network 172.24.1.0 mask 255.255.255.0
network 199.9.9.0
aggregate-address 199.9.0.0 255.255.255.240
neighbor 172.24.1.17 remote-as 100
no auto-summary
!
ip http server
!
!
!
!
control-plane
!
alias exec sip show ip proto
alias exec sir show ip route
alias exec siib show ip int brief
alias exec sib show ip bgp
alias exec sibn show ip bgp neig
alias exec sibs show ip bgp summ
alias exec cib clear ip bgp
alias exec sr show run
alias exec cibs clear ip bgp * soft
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

sanjose3#

CONFIG FOR SANJOSE2  

config for sanjose2

CODE
sanjose2#sr
Building configuration...

Current configuration : 2008 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname sanjose2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback0
ip address 200.100.50.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
ip address 192.168.1.6 255.255.255.252
serial restart-delay 0
!
interface Serial2/1
ip address 172.24.1.17 255.255.255.0
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router rip
version 2
network 172.24.0.0
network 192.168.1.0
network 200.100.50.0
no auto-summary
!
router bgp 100
no synchronization
bgp log-neighbor-changes
network 172.24.1.0 mask 255.255.255.0
network 192.168.1.4 mask 255.255.255.252
network 200.100.50.0
neighbor 172.24.1.18 remote-as 100
neighbor 172.24.1.18 route-reflector-client
neighbor 192.168.1.5 remote-as 100
neighbor 192.168.1.5 route-reflector-client
neighbor 192.168.1.5 prefix-list rakesh1 out
no auto-summary
!
ip http server
!
!
!
!
ip prefix-list rakesh1 seq 5 deny 199.9.9.0/24
ip prefix-list rakesh1 seq 10 permit 0.0.0.0/32
!
control-plane
!
alias exec sip show ip proto
alias exec sir show ip route
alias exec siib show ip int brief
alias exec sib show ip bgp
alias exec sibn show ip bgp neig
alias exec sibs show ip bgp summ
alias exec cib clear ip bgp
alias exec cibs clear ip bgp soft
alias exec sr show run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
!
!
end

sanjose2#

CONFIG FOR SANJOSE1  


config for router1

CODE
sanjose1#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

R 200.100.50.0/24 [120/1] via 192.168.1.6, 00:00:19, Serial2/0
172.24.0.0/24 is subnetted, 1 subnets
R 172.24.1.0 [120/1] via 192.168.1.6, 00:00:19, Serial2/0
192.168.1.0/30 is subnetted, 1 subnets
C 192.168.1.4 is directly connected, Serial2/0
sanjose1#

sanjose1#sr
Building configuration...

Current configuration : 1583 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname sanjose1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
ip address 192.168.1.5 255.255.255.252
serial restart-delay 0
no fair-queue
!
interface Serial2/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router rip
version 2
network 192.168.1.0
no auto-summary
!
router bgp 100
no synchronization
bgp log-neighbor-changes
network 192.168.1.4 mask 255.255.255.252
neighbor 192.168.1.6 remote-as 100
no auto-summary
!
ip http server
!
!
!
!
control-plane
!
alias exec sip show ip proto
alias exec sir show ip route
alias exec siib show ip int brief
alias exec sib show ip bgp
alias exec sibn show ip bgp neig
alias exec sibs show ip bgp summ
alias exec cib clear ip bgp
alias exec cibs clear ip bgp soft
alias exec sr show run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

sanjose1#

Lab 6-4 BGP Route Reflectors and Route Filters  
















Learning Objective

In this lab, you will configure IBGP routers to use a route reflector and a simple
route filter.

Scenario

The International Travel Agency maintains a full mesh IBGP network that has quickly scaled beyond 100 routers. The company wants to implement route
reflectors to work around the full mesh IBGP requirement. Configure a small cluster and observe how BGP operates in this configuration. Use IP prefix filters
to control the updates between IBGP peers.

router configs to follow



A SMALL ADVICE  

a small advice from me guys/gals ... who ever practicing labs no matter how large or small they may be .i got a great idea last night

use camtasia studio screen recorder for that .. yes you will anyways do the lab right ..so why not just record the lab with your moves and stratagies in your own language or english up to you and see them as revision part ...

it has proved to be effective ..as atleast while revising you can see where you went wrong .. or what the plans were ... this wont take any of your time as the recording goes on and there is nothing you should do except pressing a record button and carry on with your work .. see at the amount of distractions you will get .. i poked several of the websites some of the downloads and what not as greatest distraction tools .. my sincere and effective advice .. if you feel like doing please go ahead and start the one

regards
RAKESH

CREATING DEFAULT NETWORK  

the next was creating a default network to 192.168.100.0 network .. this can be done as below .. also see the routing table for the changes

CODE
//ip default network

sanjose1(config)#ip default-network 192.168.100.0
sanjose1(config)#exit
sanjose1#cibs
sanjose1#
*Mar 1 00:41:56.103: %SYS-5-CONFIG_I: Configured from console by console
sanjose1#sib
BGP table version is 9, local router ID is 172.16.64.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
* i172.16.0.0 172.16.32.1 0 100 0 i
*> 0.0.0.0 0 32768 i
*> 192.168.1.0/30 192.168.1.5 0 150 0 200 i
r> 192.168.1.4/30 192.168.1.5 0 150 0 200 i
*> 192.168.100.0 192.168.1.5 0 150 0 200 i
sanjose1#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 192.168.1.5 to network 192.168.100.0

172.16.0.0/16 is variably subnetted, 4 subnets, 2 masks
D 172.16.32.0/24 [90/2297856] via 172.16.1.2, 00:36:17, Serial2/2
S 172.16.0.0/16 is directly connected, Null0
C 172.16.1.0/24 is directly connected, Serial2/2
C 172.16.64.0/24 is directly connected, Loopback0
192.168.1.0/30 is subnetted, 2 subnets
B 192.168.1.0 [20/0] via 192.168.1.5, 00:14:15
C 192.168.1.4 is directly connected, Serial2/1
B* 192.168.100.0/24 [20/0] via 192.168.1.5, 00:30:24 ----------------------------------------*
sanjose1#


meet you with the final lab 6-4 asap

INITIAL BGP CONFIGS  

the first requirement is that the serial link between sanjose1 should be used rather than sanjose2

here are the configs for that .. i created route maps and applied it on the neig statements

take a look at the values of metric and local pref

CODE
sanjose1#show route
route-map rakesht1pref_1.5, permit, sequence 10
Match clauses:
Set clauses:
local-preference 150
Policy routing matches: 0 packets, 0 bytes
route-map rakesh1_metric1.5, permit, sequence 20
Match clauses:
Set clauses:
metric 50
Policy routing matches: 0 packets, 0 bytes
sanjose1#
as#3
[Resuming connection 3 to r3 ... ]

sanjose2#show route
route-map rakesh1locpref_1.1, permit, sequence 10
Match clauses:
Set clauses:
local-preference 125
Policy routing matches: 0 packets, 0 bytes
route-map rakesh1_metric1.1, permit, sequence 20
Match clauses:
Set clauses:
metric 100
Policy routing matches: 0 packets, 0 bytes
sanjose2#



here is the beauty of extended pings now i wanted to ping 192.168.100.1 ip addr from sanjose 2 look at the path the packets travelled ...

remember to enable the record option if you wanna do that

CODE
//after metric change

sanjose2#

sanjose2#ping
Protocol [ip]:
Target IP address: 192.168.100.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 172.16.32.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]: record
Number of hops [ 9 ]:
Loose, Strict, Record, Timestamp, Verbose[RV]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.100.1, timeout is 2 seconds:
Packet sent with a source address of 172.16.32.1
Packet has IP options: Total option bytes= 39, padded length=40
Record route: <*>
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)

Reply to request 0 (156 ms). Received packet has options
Total option bytes= 40, padded length=40
Record route:
(172.16.1.2)
(192.168.1.6)
(192.168.100.1)
(192.168.1.5)
(172.16.1.1)
(172.16.32.1) <*>
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
End of list

Reply to request 1 (104 ms). Received packet has options
Total option bytes= 40, padded length=40
Record route:
(172.16.1.2)
(192.168.1.6)
(192.168.100.1)
(192.168.1.5)
(172.16.1.1)
(172.16.32.1) <*>
(0.0.0.0)
(0.0.0.0)
(0.0.0.0)
End of list

Success rate is 100 percent (2/2), round-trip min/avg/max = 104/130/156 ms
sanjose2#


no where the path of 192.168.1.1 has been used .. if you wanna check it , disable it and see that it prefers the 1.1 route

ROUTER CONFIG FOR ISP  


router config for isp

CODE
isp#sr
Building configuration...

Current configuration : 1722 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname isp
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback0
ip address 192.168.100.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
ip address 192.168.1.1 255.255.255.252
serial restart-delay 0
!
interface Serial2/1
ip address 192.168.1.5 255.255.255.252
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router bgp 200
no synchronization
bgp log-neighbor-changes
network 192.168.1.0 mask 255.255.255.252
network 192.168.1.4 mask 255.255.255.252
network 192.168.100.0
neighbor 192.168.1.2 remote-as 64512
neighbor 192.168.1.6 remote-as 64512
no auto-summary
!
ip http server
!
!
!
!
control-plane
!
alias exec sr show run
alias exec sir show ip route
alias exec siib show ip int brief
alias exec sip show ip proto
alias exec sien show ip eigrp neig
alias exec sib show ip bgp
alias exec sibn show ip bgp neig
alias exec sibs show ip bgp summ
alias exec cib clear ip bgp *
alias exec cibs clear ip bgp * soft
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

isp#

ROUTER CONFIG FOR SANJOSE2  


routing config for sanjose2

CODE
sanjose2#sr
Building configuration...

Current configuration : 2037 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname sanjose2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback0
ip address 172.16.32.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
ip address 192.168.1.2 255.255.255.252
serial restart-delay 0
!
interface Serial2/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/2
ip address 172.16.1.2 255.255.255.0
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 1
network 172.16.0.0
auto-summary
!
router bgp 64512
no synchronization
bgp log-neighbor-changes
network 172.16.0.0
neighbor 172.16.64.1 remote-as 64512
neighbor 172.16.64.1 update-source Loopback0
neighbor 172.16.64.1 next-hop-self
neighbor 192.168.1.1 remote-as 200
neighbor 192.168.1.1 route-map rakesh1locpref_1.1 in
neighbor 192.168.1.1 route-map rakesh1_metric1.1 out
no auto-summary
!
ip http server
!
ip route 172.16.0.0 255.255.0.0 Null0
!
!
route-map rakesh1locpref_1.1 permit 10
set local-preference 125
!
route-map rakesh1_metric1.1 permit 20
set metric 100
!
!
control-plane
!
alias exec sr show run
alias exec sir show ip route
alias exec siib show ip int brief
alias exec sip show ip proto
alias exec sien show ip eigrp neig
alias exec sib show ip bgp
alias exec sibn show ip bgp neig
alias exec sibs show ip bgp summ
alias exec cib clear ip bgp *
alias exec cibs clear ip bgp * soft
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

sanjose2#

CONFIG FOR SANJOSE1  

as always these are the final configs

config for sanjose 1

CODE
sanjose1#sr
Building configuration...

Current configuration : 2110 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname sanjose1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback0
ip address 172.16.64.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
no fair-queue
!
interface Serial2/1
ip address 192.168.1.6 255.255.255.252
serial restart-delay 0
!
interface Serial2/2
ip address 172.16.1.1 255.255.255.0
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router eigrp 1
network 172.16.64.1 0.0.0.0
network 172.16.0.0
auto-summary
!
router bgp 64512
no synchronization
bgp log-neighbor-changes
network 172.16.0.0
neighbor 172.16.32.1 remote-as 64512
neighbor 172.16.32.1 update-source Loopback0
neighbor 172.16.32.1 next-hop-self
neighbor 192.168.1.5 remote-as 200
neighbor 192.168.1.5 route-map rakesht1pref_1.5 in
neighbor 192.168.1.5 route-map rakesh1_metric1.5 out
no auto-summary
!
ip http server
!
ip default-network 192.168.100.0
ip route 172.16.0.0 255.255.0.0 Null0
!
!
route-map rakesht1pref_1.5 permit 10
set local-preference 150
!
route-map rakesh1_metric1.5 permit 20
set metric 50
!
!
control-plane
!
alias exec sr show run
alias exec sir show ip route
alias exec siib show ip int brief
alias exec sip show ip proto
alias exec sien show ip eigrp neig
alias exec sib show ip bgp
alias exec sibn show ip bgp neig
alias exec sibs show ip bgp summ
alias exec cib clear ip bgp *
alias exec cibs clear ip bgp * soft
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

sanjose1#

Lab 6-3 Configuring IBGP and EBGP Sessions, Local Preference and  



















Learning Objectives

In this lab, you will configure both IBGP and EBGP. For IBGP peers in this lab to correctly exchange routing information, the next-hop-self command must be
used along with the Local-Preference and MED attributes. This is to insure that the flat-rate, unlimited-use T1 link is used for sending and receiving data to and from the AS 200 on ISP. The metered T1 should only be used in the event that the primary T1 link has failed. Traffic sent across the metered T1 link offers the same bandwidth of the primary link but at a huge expense. Ensure that this link is not used unnecessarily.

Scenario

The International Travel Agency runs BGP on its SanJose1 and SanJose2
routers externally with ISP, AS 200. IBGP is run internally between SanJose1
2 - 17 CCNP: Building Scalable Internetworks v5.0 - Lab 6-3 Copyright © 2006, Cisco Systems, Inc
and SanJose2. Your job is to configure both EBGP and IBGP for this
internetwork to allow for redundancy.

this lab has just took me my a** off .. yes i mean it . not that its that a difficult job or practice to have but i was making mistakes of configs or ips or as numbers what not .. i was not in my mind and was wasting time until i decided to knock it off and do it afresh instead of debugging it for mistakes ...

strange experience till now as i was enjoying all my labs without much difficulty

all the configs are straight foreward and doesnt require and explanations .. configuring ibgp and ebgp relationships is quite simple .. the only thing to remember is update source and next hop self commands

the tasks in this lab is to play with local preference and med operators ... having said that , the following are the configs to follow

and by the way i realised the beauty of extended ping now . a special thanks goes to pappyaar for answering and clearing things off along with compy

here are the configs and topology to follow

REGULAR EXPRESSIONS  

and now completely a u turn topic for me .. regular expressions .. not covered extensively ... but the condition is that no routes with as-number 100 must be in router cust routing table .. this is done as below

i know only two things for now

^number$ -- must begin and end with that number

.* -- all of the values just like (permit any as we need to give it as this is based on access-list and implicit deny follows it )

CODE
as#2
[Resuming connection 2 to san ... ]

*Mar 1 02:55:42.083: %BGP-5-ADJCHANGE: neighbor 192.168.1.6 Down Peer closed th
sanjose#
sanjose#sib
BGP table version is 15, local router ID is 201.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 201.0.0.0 0.0.0.0 0 32768 i
*> 202.0.0.0 192.168.1.6 0 0 300 i
*> 203.0.0.0 192.168.1.6 0 300 65000 i
sanjose#
as#1
[Resuming connection 1 to isp ... ]

isp(config-router)#emd
^
% Invalid input detected at '^' marker.

isp(config-router)#end
isp#sib
BGP table version is 4, local router ID is 202.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 201.0.0.0 192.168.1.5 0 0 100 i
*> 202.0.0.0 0.0.0.0 0 32768 i
*> 203.0.0.0 172.24.1.18 0 0 65000 i
isp#
*Mar 1 03:06:44.479: %SYS-5-CONFIG_I: Configured from console by console
isp#

isp#sib
BGP table version is 4, local router ID is 202.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 201.0.0.0 192.168.1.5 0 0 100 i
*> 202.0.0.0 0.0.0.0 0 32768 i
*> 203.0.0.0 172.24.1.18 0 0 65000 i
isp#
as#3
[Resuming connection 3 to cust ... ]

cust#sib
BGP table version is 10, local router ID is 203.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 201.0.0.0 172.24.1.17 0 300 100 i
*> 202.0.0.0 172.24.1.17 0 0 300 i
*> 203.0.0.0 0.0.0.0 0 32768 i
cust#

cust#
as#1
[Resuming connection 1 to isp ... ]

isp#config t
Enter configuration commands, one per line. End with CNTL/Z.
isp(config)#ip as-path ?
access-list Specify an access list number

isp(config)#ip as-path access-list ?
<1-500> AS path access list number

isp(config)#ip as-path access-list 7 ?
deny Specify packets to reject
permit Specify packets to forward

isp(config)#ip as-path access-list 7 deny ^100$ ?
LINE

isp(config)#ip as-path access-list 7 deny ^100$
isp(config)#ip as-path access-list 7 permit .*
isp(config)#router bgp 300
isp(config-router)#neig 172.24.1.18 filter-list ?
<1-500> AS path access list

isp(config-router)#neig 172.24.1.18 filter-list 7 ?
in Filter incoming routes
out Filter outgoing routes

isp(config-router)#neig 172.24.1.18 filter-list 7 out
isp(config-router)#do cibs
isp(config-router)#

as#3
[Resuming connection 3 to cust ... ]

cust#cibs
cust#sib
BGP table version is 11, local router ID is 203.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 202.0.0.0 172.24.1.17 0 0 300 i -------------> no 100
*> 203.0.0.0 0.0.0.0 0 32768 i
cust#


this is lab bgp 2

catch you with bgp lab3 2mrw morning

INTO TOPO  


let us say isp dint wanted to advertise the remote cust router as number .. it can be done like this

CODE
[Resuming connection 1 to isp ... ]

isp#

isp#config t
Enter configuration commands, one per line. End with CNTL/Z.
isp(config)#router bgp 300
isp(config-router)#neig 192.168.1.5 ?
activate Enable the Address Family for this Neighbor
advertise-map specify route-map for conditional advertisement
advertisement-interval Minimum interval between sending BGP routing updates
allowas-in Accept as-path with my AS present in it
capability Advertise capability to the peer
default-originate Originate default route to this neighbor
description Neighbor specific description
disable-connected-check One-hop away EBGP peer using loopback address
distribute-list Filter updates to/from this neighbor
dmzlink-bw Propagate the DMZ link bandwidth
ebgp-multihop Allow EBGP neighbors not on directly connected
networks
fall-over session fall on peer route lost
filter-list Establish BGP filters
inherit Inherit a template
local-as Specify a local-as number
maximum-prefix Maximum number of prefixes accepted from this peer
next-hop-self Disable the next hop calculation for this neighbor
next-hop-unchanged Propagate the iBGP paths's next hop unchanged for
this neighbor
password Set a password
peer-group Member of the peer-group
prefix-list Filter updates to/from this neighbor
remote-as Specify a BGP neighbor
remove-private-as Remove private AS number from outbound updates
route-map Apply route map to neighbor
route-reflector-client Configure a neighbor as Route Reflector client
send-community Send Community attribute to this neighbor
shutdown Administratively shut down this neighbor
soft-reconfiguration Per neighbor soft reconfiguration
timers BGP per neighbor timers
translate-update Translate Update to MBGP format
transport Transport options
ttl-security BGP ttl security check
unsuppress-map Route-map to selectively unsuppress suppressed
routes
update-source Source of routing updates
version Set the BGP version to match a neighbor
weight Set default weight for routes from this neighbor

isp(config-router)#neig 192.168.1.5 remove-private-as
isp(config-router)#do cibs
isp(config-router)#
as#2
[Resuming connection 2 to san ... ]

sanjose#sib
BGP table version is 9, local router ID is 201.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 201.0.0.0 0.0.0.0 0 32768 i
*> 202.0.0.0 192.168.1.6 0 0 300 i
*> 203.0.0.0 192.168.1.6 0 300 i -----------------------> no 65000


CODE
sanjose#ping 203.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 203.0.0.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
sanjose#ping
Protocol [ip]:
Target IP address: 203.0.0.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 201.0.0.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 203.0.0.1, timeout is 2 seconds:
Packet sent with a source address of 201.0.0.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/64/144 ms
sanjose#


the ping is still unclear for me , i will edit it after knowing the reasons as i have posted it in ccnp section

BGP ROUTING TABLE  

with everthing configure primarily here is how the bgp routing table looks like

CODE
as#1
[Resuming connection 1 to isp ... ]

isp#

isp#sib
BGP table version is 4, local router ID is 202.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 201.0.0.0 192.168.1.5 0 0 100 i
*> 202.0.0.0 0.0.0.0 0 32768 i
*> 203.0.0.0 172.24.1.18 0 0 65000 i
isp#
as#2
[Resuming connection 2 to san ... ]

sanjose#sib
BGP table version is 8, local router ID is 201.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 201.0.0.0 0.0.0.0 0 32768 i
*> 202.0.0.0 192.168.1.6 0 0 300 i
*> 203.0.0.0 192.168.1.6 0 300 65000 i
sanjose#
as#3
[Resuming connection 3 to cust ... ]

cust#sib
BGP table version is 4, local router ID is 203.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 201.0.0.0 172.24.1.17 0 300 100 i
*> 202.0.0.0 172.24.1.17 0 0 300 i
*> 203.0.0.0 0.0.0.0 0 32768 i
cust#

RUNNING CONFIG FOR CUST ROUTER  


router config of cust

CODE
cust#sr
Building configuration...

Current configuration : 1567 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname cust
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
--More--
*Mar 1 02:43:42.739: %SYS-5-CONFIG_I: Configured from console by console
!
!
!
interface Loopback0
ip address 203.0.0.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
clock rate 64000
!
interface Serial2/1
ip address 172.24.1.18 255.255.255.252
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router bgp 65000
no synchronization
bgp log-neighbor-changes
network 203.0.0.0
neighbor 172.24.1.17 remote-as 300
neighbor 172.24.1.17 next-hop-self
no auto-summary
!
ip http server
!
!
!
!
control-plane
!
alias exec sir show ip route
alias exec sr show run
alias exec siib show ip int brief
alias exec sib show ip bgp
alias exec sibn show ip bgp nei
alias exec sibs show ip bgp summ
alias exec cibs clear ip bgp * soft
alias exec cib clear ip bgp *
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

cust#

SANJOSE 2 ROUTER  


router config sanjose

CODE
as#2
[Resuming connection 2 to san ... ]

sanjose#sr
Building configuration...

Current configuration : 1550 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname sanjose
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback0
ip address 201.0.0.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
ip address 192.168.1.5 255.255.255.252
serial restart-delay 0
!
interface Serial2/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router bgp 100
no synchronization
bgp log-neighbor-changes
network 201.0.0.0
neighbor 192.168.1.6 remote-as 300
neighbor 192.168.1.6 next-hop-self
no auto-summary
!
ip http server
!
!
!
!
control-plane
!
alias exec sir show ip route
alias exec sr show run
alias exec siib show ip int brief
alias exec sib show ip bgp
alias exec sibn show ip bgp nei
alias exec sibs show ip bgp summ
alias exec cibs clear ip bgp * soft
alias exec cib clear ip bgp *
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

RUNNING CONFIG ISP ROUTER  


let me present you with the router configs

isp router

CODE
isp#sr
Building configuration...

Current configuration : 1668 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname isp
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback0
ip address 202.0.0.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
ip address 192.168.1.6 255.255.255.252
serial restart-delay 0
clock rate 64000
!
interface Serial2/1
ip address 172.24.1.17 255.255.255.252
serial restart-delay 0
clock rate 64000
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router bgp 300
no synchronization
bgp log-neighbor-changes
network 202.0.0.0
neighbor 172.24.1.18 remote-as 65000
neighbor 192.168.1.5 remote-as 100
neighbor 192.168.1.5 next-hop-self
neighbor 192.168.1.5 remove-private-as
no auto-summary
!
ip http server
!
!
!
!
control-plane
!
alias exec sir show ip route
alias exec sr show run
alias exec siib show ip int brief
alias exec sib show ip bgp
alias exec sibn show ip bgp nei
alias exec sibs show ip bgp summ
alias exec cibs clear ip bgp * soft
alias exec cib clear ip bgp *
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
!
!
end

isp#

Lab 6-2 Using the AS_PATH Attribute  





















Learning Objective
In this lab, you will use BGP commands to prevent private AS numbers from being advertised to the outside world. You will also use the AS_PATH attribute to
filter BGP routes based on their source AS numbers.

Scenario

The International Travel Agency’s ISP has been assigned an AS number of 300.This provider uses BGP to exchange routing information with several customernetworks. Each customer network is assigned an AS number from the privaterange, such as AS 65000. Configure ISP to remove the private AS numberswithin the AS_Path information from CustRtr. In addition, the ISP would like to prevent its customer networks from receiving route information from International Travel Agency’s AS 100. Use the AS_PATH attribute to implement this policy.

router configs to follow

VERIFICATION  

and now to verify it we can create a loop back on isp1 and we should not advertise it to bgp .. still as it has a default router our sanjose router should ping it from default gateway

CODE
as#2
[Resuming connection 2 to r2 ... ]

isp1(config-router)#exit
isp1(config)#int l1
isp1(config-if)#int l20
isp1(config-if)#
*Mar 1 02:43:44.887: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up
isp1(config-if)#ip addr 20.20.20.20 mask 255.255.255.255
^
% Invalid input detected at '^' marker.

isp1(config-if)#ip addr 20.20.20.20 255.255.255.255
isp1(config-if)#do siib
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 unassigned YES unset administratively down down
Ethernet1/0 unassigned YES unset administratively down down
Ethernet1/1 unassigned YES unset administratively down down
Ethernet1/2 unassigned YES unset administratively down down
Ethernet1/3 unassigned YES unset administratively down down
Serial2/0 10.0.0.1 YES manual up up
Serial2/1 unassigned YES unset administratively down down
Serial2/2 unassigned YES unset administratively down down
Serial2/3 unassigned YES unset administratively down down
Loopback0 12.0.1.1 YES manual up up
Loopback1 unassigned YES unset up up
Loopback20 20.20.20.20 YES manual up up ----------> int is up but network is not advertised into bgp
isp1(config-if)#
as#1
[Resuming connection 1 to r1 ... ]

sanjose#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 10.0.0.1 to network 0.0.0.0

172.16.0.0/24 is subnetted, 2 subnets
C 172.16.0.0 is directly connected, Serial2/1
B 172.16.1.0 [20/0] via 172.16.0.1, 00:30:58
10.0.0.0/30 is subnetted, 1 subnets
C 10.0.0.0 is directly connected, Serial2/0
C 192.168.0.0/24 is directly connected, Loopback0
12.0.0.0/24 is subnetted, 1 subnets
B 12.0.1.0 [20/0] via 10.0.0.1, 00:33:47
C 192.168.1.0/24 is directly connected, Loopback1
S* 0.0.0.0/0 [210/0] via 10.0.0.1
sanjose# ************************************************ no 20 network


sanjose#ping 20.20.20.20 -------------> it can ping

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.20.20.20, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/41/104 ms
sanjose#traceroute 20.20.20.20

Type escape sequence to abort.
Tracing the route to 20.20.20.20

1 10.0.0.1 48 msec 40 msec * ------------------------> de - gw
sanjose#

for some strange reason i couldnt succeed in ip default-network command to configure the redundant parts now ... i need to see .. apart from that . the labbing part is done and on to lab 2



DEFAULT GATEWAY CONFIGURATION  


here is the configuration of the default gateway

CODE
sanjose#config t
Enter configuration commands, one per line. End with CNTL/Z.
sanjose(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.1 ?
<1-255> Distance metric for this route
name Specify name of the next hop
permanent permanent route
tag Set tag for this route
track Install route depending on tracked item


sanjose(config)#ip route 0.0.0.0 0.0.0.0 10.0.0.1 210
sanjose(config)#ip route 0.0.0.0 0.0.0.0 172.16.0.1 220 ------------> metric is more so will not be preffered
sanjose(config)#end
sanjose#clar
*Mar 1 02:42:02.515: %SYS-5-CONFIG_I: Configured from console by console
sanjose#clear ip bgp * soft
sanjose#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 10.0.0.1 to network 0.0.0.0

172.16.0.0/24 is subnetted, 2 subnets
C 172.16.0.0 is directly connected, Serial2/1
B 172.16.1.0 [20/0] via 172.16.0.1, 00:25:45
10.0.0.0/30 is subnetted, 1 subnets
C 10.0.0.0 is directly connected, Serial2/0
C 192.168.0.0/24 is directly connected, Loopback0
12.0.0.0/24 is subnetted, 1 subnets
B 12.0.1.0 [20/0] via 10.0.0.1, 00:28:34
C 192.168.1.0/24 is directly connected, Loopback1
S* 0.0.0.0/0 [210/0] via 10.0.0.1
sanjose#

CONFIG CONTINUES  

now next part of the configuration is

think that isp1 and isp2 are the two providers for sanjose network and sanjose wants to use isp1 as the preffered router and isp2 as the backup route ..

how do you do this

simple configure two static routes and in that give one of the preffered one low metric hence the problem will be solved . it can done like this


and also can you see anything like default route set or default gateway set for the sanjose network ...

this is the original routing table of sanjose network

CODE
sanjose#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set ------------------------------------- *******

172.16.0.0/24 is subnetted, 2 subnets
C 172.16.0.0 is directly connected, Serial2/1
B 172.16.1.0 [20/0] via 172.16.0.1, 00:24:08
10.0.0.0/30 is subnetted, 1 subnets
C 10.0.0.0 is directly connected, Serial2/0
C 192.168.0.0/24 is directly connected, Loopback0
12.0.0.0/24 is subnetted, 1 subnets
B 12.0.1.0 [20/0] via 10.0.0.1, 00:26:57
C 192.168.1.0/24 is directly connected, Loopback1
sanjose#

APPLYING ACCESS LISTS  

this is as simple as childs play ... first create and access-list and deny 12 traffic and donot forget that there would be an implicit deny so be careful to permit all of the statements ...

CODE
sanjose#

sanjose#config t
Enter configuration commands, one per line. End with CNTL/Z.
sanjose(config)#ip access-list standard 10
sanjose(config-std-nacl)#deny 12.0.0.0 0.0.1.255
sanjose(config-std-nacl)#permit any
sanjose(config-std-nacl)#router bgp 100
sanjose(config-router)#neig 172.16.0.1 ?
activate Enable the Address Family for this Neighbor
advertise-map specify route-map for conditional advertisement
advertisement-interval Minimum interval between sending BGP routing updates
allowas-in Accept as-path with my AS present in it
capability Advertise capability to the peer
default-originate Originate default route to this neighbor
description Neighbor specific description
disable-connected-check One-hop away EBGP peer using loopback address
distribute-list Filter updates to/from this neighbor
dmzlink-bw Propagate the DMZ link bandwidth
ebgp-multihop Allow EBGP neighbors not on directly connected
networks
fall-over session fall on peer route lost
filter-list Establish BGP filters
inherit Inherit a template
local-as Specify a local-as number
maximum-prefix Maximum number of prefixes accepted from this peer
next-hop-self Disable the next hop calculation for this neighbor
next-hop-unchanged Propagate the iBGP paths's next hop unchanged for
this neighbor
password Set a password
peer-group Member of the peer-group
prefix-list Filter updates to/from this neighbor
remote-as Specify a BGP neighbor
remove-private-as Remove private AS number from outbound updates
route-map Apply route map to neighbor
route-reflector-client Configure a neighbor as Route Reflector client
send-community Send Community attribute to this neighbor
shutdown Administratively shut down this neighbor
soft-reconfiguration Per neighbor soft reconfiguration
timers BGP per neighbor timers
translate-update Translate Update to MBGP format
transport Transport options
ttl-security BGP ttl security check
unsuppress-map Route-map to selectively unsuppress suppressed
routes
update-source Source of routing updates
version Set the BGP version to match a neighbor
weight Set default weight for routes from this neighbor

sanjose(config-router)#neig 172.16.0.1 distribute-list ?
<1-199> IP access list number
<1300-2699> IP access list number (expanded range)
WORD IP Access-list name

sanjose(config-router)#neig 172.16.0.1 distribute-list 10 ?
in Filter incoming updates
out Filter outgoing updates

sanjose(config-router)#neig 172.16.0.1 distribute-list 10 out -------------------> sit on router yes imagine sitting on router and controlling traffic you would t know the direction as a piece of cake to configure tip from t.s chris bryant

sanjose(config-router)#end
sanjose#clear
*Mar 1 02:32:27.791: %SYS-5-CONFIG_I: Configured from console by console
sanjose#clear ip bgp * soft --------------------> soft reset which dosent tear any of the neig releationships
sanjose#
as#3
[Resuming connection 3 to r3 ... ]

isp2#show ip bgp
BGP table version is 6, local router ID is 172.16.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path ---------------------------> no 12 network
*> 172.16.1.0/24 0.0.0.0 0 32768 i
*> 192.168.0.0 172.16.0.2 0 0 100 i
*> 192.168.1.0 172.16.0.2 0 0 100 i
isp2#

CONFIG PART FOR BGP  

now from here on we can have some interesting part ...

let us see the routing tables of all the three routers

CODE

sanjose#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.16.0.0/24 is subnetted, 2 subnets
C 172.16.0.0 is directly connected, Serial2/1
B 172.16.1.0 [20/0] via 172.16.0.1, 00:11:43
10.0.0.0/30 is subnetted, 1 subnets
C 10.0.0.0 is directly connected, Serial2/0
C 192.168.0.0/24 is directly connected, Loopback0
12.0.0.0/24 is subnetted, 1 subnets
B 12.0.1.0 [20/0] via 10.0.0.1, 00:14:32
C 192.168.1.0/24 is directly connected, Loopback1
sanjose#
as#2
[Resuming connection 2 to r2 ... ]

isp1(config-router)#do sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

20.0.0.0/32 is subnetted, 1 subnets
C 20.20.20.20 is directly connected, Loopback20
172.16.0.0/24 is subnetted, 1 subnets
B 172.16.1.0 [20/0] via 10.0.0.2, 00:11:20
10.0.0.0/30 is subnetted, 1 subnets
C 10.0.0.0 is directly connected, Serial2/0
B 192.168.0.0/24 [20/0] via 10.0.0.2, 00:14:51
12.0.0.0/24 is subnetted, 1 subnets
C 12.0.1.0 is directly connected, Loopback0
B 192.168.1.0/24 [20/0] via 10.0.0.2, 00:14:51
isp1(config-router)#
as#3
[Resuming connection 3 to r3 ... ]

isp2#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
C 172.16.0.0/30 is directly connected, Serial2/1
C 172.16.1.0/24 is directly connected, Loopback0
B 192.168.0.0/24 [20/0] via 172.16.0.2, 00:11:55
12.0.0.0/24 is subnetted, 1 subnets
B 12.0.1.0 [20/0] via 172.16.0.2, 00:11:55
B 192.168.1.0/24 [20/0] via 172.16.0.2, 00:11:55
isp2#

FEW POINTS AND COMMANDS TILL NOW  


a few points and commands till now

CODE
for establishing peering relations its not the network command but the neig command we use it here ***

for advertising our network we use the network command as usual but if used with mask our subnets will also be advertised as it is without any change

show ip bgp --- you cannot see it unless you use network command

show ip bgp nei --- use this for checking neig relations but better off use show ip bgp summary is gives more details

and if you see only * in show ip bgp its not a best route and so it cannot be pinged make sure you also see > symbol as it indicates best and this route should be pingable in almost all cases with exception of few used with redistribution

CONFIG TABLES FROM ISP2  

these are the configs and tables from isp2

CODE
isp2#sib
BGP table version is 5, local router ID is 172.16.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 12.0.1.0/24 172.16.0.2 0 100 200 i
*> 172.16.1.0/24 0.0.0.0 0 32768 i
*> 192.168.0.0 172.16.0.2 0 0 100 i
*> 192.168.1.0 172.16.0.2 0 0 100 i

-----------------------------------------------------------------------------------
isp2#sibs
BGP router identifier 172.16.1.1, local AS number 300
BGP table version is 5, main routing table version 5
4 network entries using 468 bytes of memory
4 path entries using 208 bytes of memory
4/3 BGP path/bestpath attribute entries using 496 bytes of memory
2 BGP AS-PATH entries using 48 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1220 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
172.16.0.2 4 100 9 7 5 0 0 00:02:55 3

----------------------------------------------------------------------------------------------------------------
isp2#sibn
BGP neighbor is 172.16.0.2, remote AS 100, external link
BGP version 4, remote router ID 192.168.1.1
BGP state = Established, up for 00:02:57
Last read 00:00:57, last write 00:00:57, hold time is 180, keepalive interval is 60 seconds
Neighbor capabilities:
Route refresh: advertised and received(old & new)
Address family IPv4 Unicast: advertised and received
Message statistics:
InQ depth is 0
OutQ depth is 0
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 1 3
Keepalives: 5 5
Route Refresh: 0 0
Total: 7 9
Default minimum time between advertisement runs is 30 seconds

For address family: IPv4 Unicast
BGP table version 5, neighbor version 5/0
Output queue size : 0
Index 1, Offset 0, Mask 0x2
1 update-group member
Sent Rcvd
Prefix activity: ---- ----
Prefixes Current: 1 3 (Consumes 156 bytes)
Prefixes Total: 1 3
Implicit Withdraw: 0 0
Explicit Withdraw: 0 0
Used as bestpath: n/a 3
Used as multipath: n/a 0

Outbound Inbound
Local Policy Denied Prefixes: -------- -------
AS_PATH loop: n/a 1
Bestpath from this peer: 3 n/a
Total: 3 1
Number of NLRIs in the update sent: max 1, min 1

Connections established 1; dropped 0
Last reset never
Connection state is ESTAB, I/O status: 1, unread input bytes: 0
Connection is ECN Disabled, Mininum incoming TTL 0, Outgoing TTL 1
Local host: 172.16.0.1, Local port: 179
Foreign host: 172.16.0.2, Foreign port: 39142

Enqueued packets for retransmit: 0, input: 0 mis-ordered: 0 (0 bytes)

Event Timers (current time is 0x7FA5B0):
Timer Starts Wakeups Next
Retrans 5 0 0x0
TimeWait 0 0 0x0
AckHold 5 1 0x0
SendWnd 0 0 0x0
KeepAlive 0 0 0x0
GiveUp 0 0 0x0
PmtuAger 0 0 0x0
DeadWait 0 0 0x0

iss: 636352389 snduna: 636352582 sndnxt: 636352582 sndwnd: 16192
irs: 3358619869 rcvnxt: 3358620160 rcvwnd: 16094 delrcvwnd: 290

SRTT: 150 ms, RTTO: 1305 ms, RTV: 1155 ms, KRTT: 0 ms
minRTT: 96 ms, maxRTT: 348 ms, ACK hold: 200 ms
Flags: passive open, nagle, gen tcbs
IP Precedence value : 6

Datagrams (max data segment is 1460 bytes):
Rcvd: 13 (out of order: 0), with data: 8, total data bytes: 309
Sent: 8 (retransmit: 0, fastretransmit: 0, partialack: 0, Second Congestion: 0), with data: 6, total data bytes: 211
isp2#


show ip bgp summary is better for knowing for details as you will get most of them .. rather than going for show ip bgp neig commands as you can see the length and details involved in that

DEBUG OUTPUT FROM ISP2  


this is the debug out put from isp2

CODE
as#3
[Resuming connection 3 to r3 ... ]
isp2(config)#
isp2(config)#

isp2(config)#do debug ip bgp events
BGP events debugging is on
isp2(config)#router bgp 300
isp2(config-router)#neig
*Mar 1 02:15:49.667: BGP: reset all neighbors due to BGP protocol initialization
isp2(config-router)#neig 172.
*Mar 1 02:15:50.691: BGP(IPv4 Unicast): computed bestpaths, table version went from 1 to 1
*Mar 1 02:15:50.691: BGP(VPNv4 Unicast): computed bestpaths, table version went from 1 to 1
*Mar 1 02:15:50.691: BGP(IPv4 Multicast): computed bestpaths, table version went from 1 to 1
*Mar 1 02:15:50.691: BGP: notified IGPs about convergence
*Mar 1 02:15:50.691: BGPNSF: Listeners notified about convergence
isp2(config-router)#neig 172.16.0.2 remote-as 100
isp2(config-router)#net
*Mar 1 02:16:00.691: BGP(IPv4 Unicast): will wait 300s for the first peer to establish
isp2(config-router)#net 172.1
*Mar 1 02:16:04.691: BGP: Regular scanner event timer
*Mar 1 02:16:04.691: BGP: Performing BGP general scanning
*Mar 1 02:16:04.691: BGP(0): scanning IPv4 Unicast routing tables
*Mar 1 02:16:04.699: BGP(2): scanning VPNv4 Unicast routing tables
*Mar 1 02:16:04.699: BGP(VPNv4 Unicast): Performing BGP Nexthop scanning for general scan
*Mar 1 02:16:04.699: BGP: Import walker start version 0, end version 1
*Mar 1 02:16:04.699: BGP: ... start import cfg version = 0
*Mar 1 02:16:04.699: BGP(2): Future scanner version: 2, current scanner version: 1
*Mar 1 02:16:04.699: BGP(4): scanning IPv4 Multicast routing tables
isp2(config-router)#net 172.16.1
*Mar 1 02:16:04.707: BGP(IPv4 Multicast): Performing BGP Nexthop scanning for general scan
*Mar 1 02:16:04.707: BGP(4): Future scanner version: 2, current scanner version: 1
isp2(config-router)#net 172.16.1.0 mask 255.255.255.0
isp2(config-router)#
*Mar 1 02:16:19.727: BGP: Regular scanner event timer
*Mar 1 02:16:19.727: BGP: Import timer expired. Walking from 1 to 1
isp2(config-router)#
*Mar 1 02:16:26.283: BGP(0): 172.16.0.2 was the first peer to be established for IPv4 Unicast
*Mar 1 02:16:26.283: %BGP-5-ADJCHANGE: neighbor 172.16.0.2 Up -------------------------------------------*
isp2(config-router)#
*Mar 1 02:16:26.287: BGP(IPv4 Unicast): First peer has been established, delaying initial updates for up to 120 seconds
*Mar 1 02:16:26.343: BGP(IPv4 Unicast): computed bestpaths, table version went from 1 to 5
*Mar 1 02:16:26.347: BGP: notified IGPs about convergence
*Mar 1 02:16:26.347: BGPNSF: Listeners notified about convergence
isp2(config-router)#
*Mar 1 02:16:34.727: BGP: Regular scanner event timer
*Mar 1 02:16:34.727: BGP: Import timer expired. Walking from 1 to 1
isp2(config-router)#


as soon as issuing router bgp command so many process gets started as we have seen .. this is the start lets examine the bgp routing and neighb tables


--------------------

ISP1 DEBUG OUTPUT  

this part of debug out put is from the isp1 router

CODE
isp1(config)#router bgp 200
isp1(config-router)#neig 10
*Mar 1 02:13:03.591: BGP: reset all neighbors due to BGP protocol initialization
isp1(config-router)#neig 10.0.0.
*Mar 1 02:13:04.611: BGP(IPv4 Unicast): computed bestpaths, table version went from 1 to 1
*Mar 1 02:13:04.611: BGP(VPNv4 Unicast): computed bestpaths, table version went from 1 to 1
*Mar 1 02:13:04.611: BGP(IPv4 Multicast): computed bestpaths, table version went from 1 to 1
*Mar 1 02:13:04.611: BGP: notified IGPs about convergence
*Mar 1 02:13:04.611: BGPNSF: Listeners notified about convergence
isp1(config-router)#neig 10.0.0.2 remote-as 100
isp1(config-router)#net
*Mar 1 02:13:16.611: BGP(IPv4 Unicast): will wait 300s for the first peer to establish
isp1(config-router)#net
*Mar 1 02:13:18.615: BGP: Regular scanner event timer
*Mar 1 02:13:18.615: BGP: Performing BGP general scanning
*Mar 1 02:13:18.619: BGP(0): scanning IPv4 Unicast routing tables
*Mar 1 02:13:18.651: BGP(2): scanning VPNv4 Unicast routing tables
*Mar 1 02:13:18.651: BGP(VPNv4 Unicast): Performing BGP Nexthop scanning for general scan
*Mar 1 02:13:18.655: BGP: Import walker start version 0, end version 1
*Mar 1 02:13:18.655: BGP: ... start import cfg version = 0
*Mar 1 02:13:18.655: BGP(2): Future scanner version: 2, current scanner version: 1
*Mar 1 02:13:18.655: BGP(4): scanning IPv4 Multicast routing tables
isp1(config-router)#net
*Mar 1 02:13:18.683: BGP(IPv4 Multicast): Performing BGP Nexthop scanning for general scan
*Mar 1 02:13:18.683: BGP(4): Future scanner version: 2, current scanner version: 1
isp1(config-router)#net
*Mar 1 02:13:25.443: BGP(0): 10.0.0.2 was the first peer to be established for IPv4 Unicast
*Mar 1 02:13:25.443: %BGP-5-ADJCHANGE: neighbor 10.0.0.2 Up
isp1(config-router)#net
*Mar 1 02:13:25.447: BGP(IPv4 Unicast): First peer has been established, delaying initial updates for up to 120 seconds
*Mar 1 02:13:25.455: BGP(IPv4 Unicast): computed bestpaths, table version went from 1 to 3
*Mar 1 02:13:25.459: BGP: notified IGPs about convergence
*Mar 1 02:13:25.459: BGPNSF: Listeners notified about convergence
isp1(config-router)#net 12.0.1.0 mask 255
*Mar 1 02:13:33.703: BGP: Regular scanner event timer
*Mar 1 02:13:33.703: BGP: Import timer expired. Walking from 1 to 1
isp1(config-router)#net 12.0.1.0 mask 255.255.255.0
isp1(config-router)#
*Mar 1 02:13:48.703: BGP: Regular scanner event timer
*Mar 1 02:13:48.703: BGP: Import timer expired. Walking from 1 to 1
isp1(config-router)#


mean while adj came up in sanjose router

CODE
as#1
[Resuming connection 1 to r1 ... ]

*Mar 1 02:13:26.019: %BGP-5-ADJCHANGE: neighbor 10.0.0.1 Up
sanjose(config-router)#

DEBUG OUTPUT  

still not configured on either ends just on one router

this is the initial debug out put

CODE
sanjose#debug ip bgp events
BGP events debugging is on
sanjose#config t
Enter configuration commands, one per line. End with CNTL/Z.
sanjose(config)#router bgp 100
sanjose(config-router)#ne
*Mar 1 01:57:46.891: BGP: reset all neighbors due to BGP protocol initialization
sanjose(config-router)#ne
*Mar 1 01:57:47.915: BGP(IPv4 Unicast): computed bestpaths, table version went from 1 to 1
*Mar 1 01:57:47.915: BGP(VPNv4 Unicast): computed bestpaths, table version went from 1 to 1
*Mar 1 01:57:47.915: BGP(IPv4 Multicast): computed bestpaths, table version went from 1 to 1
*Mar 1 01:57:47.915: BGP: notified IGPs about convergence
*Mar 1 01:57:47.915: BGPNSF: Listeners notified about convergence
sanjose(config-router)#nei 10.0.0.1 remote-as
*Mar 1 01:58:01.915: BGP: Regular scanner event timer
*Mar 1 01:58:01.915: BGP: Performing BGP general scanning
*Mar 1 01:58:01.915: BGP(0): scanning IPv4 Unicast routing tables
*Mar 1 01:58:01.935: BGP(IPv4 Unicast): Performing BGP Nexthop scanning for general scan
*Mar 1 01:58:01.935: BGP(0): Future scanner version: 2, current scanner version: 1
*Mar 1 01:58:01.935: BGP(2): scanning VPNv4 Unicast routing tables
*Mar 1 01:58:01.935: BGP(VPNv4 Unicast): Performing BGP Nexthop scanning for general scan
*Mar 1 01:58:01.939: BGP: Import walker start version 0, end version 1
*Mar 1 01:58:01.939: BGP: ... start import cfg version = 0
sanjose(config-router)#nei 10.0.0.1 remote-as 100
*Mar 1 01:58:01.939: BGP(2): Future scanner version: 2, current scanner version: 1
*Mar 1 01:58:01.939: BGP(4): scanning IPv4 Multicast routing tables
*Mar 1 01:58:01.955: BGP(IPv4 Multicast): Performing BGP Nexthop scanning for general scan
*Mar 1 01:58:01.955: BGP(4): Future scanner version: 2, current scanner version: 1
sanjose(config-router)#nei 10.0.0.1 remote-as 200
sanjose(config-router)#nei
*Mar 1 01:58:07.915: BGP(IPv4 Unicast): will wait 300s for the first peer to establish
sanjose(config-router)#nei 172.16.0.1 remote-as
*Mar 1 01:58:16.967: BGP: Regular scanner event timer
*Mar 1 01:58:16.967: BGP: Import timer expired. Walking from 1 to 1
sanjose(config-router)#nei 172.16.0.1 remote-as 300
sanjose(config-router)#net 192.168.1.0 m
*Mar 1 01:58:31.967: BGP: Regular scanner event timer
*Mar 1 01:58:31.967: BGP: Import timer expired. Walking from 1 to 1
sanjose(config-router)#net 192.168.1.0 mask 255.255.255.0
sanjose(config-router)#net 192.168.0.0 mask 255.255.255.0
sanjose(config-router)#
*Mar 1 01:58:46.967: BGP: Regular scanner event timer
*Mar 1 01:58:46.967: BGP: Import timer expired. Walking from 1 to 1
sanjose(config-router)#


did you not the change of version numbers ?

DEBUGGING INITIAL BGP  

before eshtablishing neigh peerings lets turn on debugging for the detailed effect of bgp

CODE
sanjose#debug ip bgp ?
A.B.C.D BGP neighbor address
all All address families
dampening BGP dampening
events BGP events
groups BGP Config (peer-groups, templates) and Update groups
import BGP import routes to a vrf across address-family
in BGP Inbound information
ipv4 Address family
ipv6 Address family
keepalives BGP keepalives
mpls BGP MPLS label distribution
nsap Address family
out BGP Outbound information
rib-filter Next hop route watch filter events
updates BGP updates
vpnv4 Address family


sanjose#debug ip bgp events
BGP events debugging is on
sanjose#

CONFIG FOR ISP2  


config for isp2

CODE
isp1#
as#3
[Resuming connection 3 to r3 ... ]

isp2#

isp2#sr
Building configuration...

Current configuration : 1548 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname isp2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback0
ip address 172.16.1.1 255.255.255.0
!
interface Loopback1
no ip address
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/1
ip address 172.16.0.1 255.255.255.252
serial restart-delay 0
clock rate 64000
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router bgp 300
no synchronization
bgp log-neighbor-changes
network 172.16.1.0 mask 255.255.255.0
neighbor 172.16.0.2 remote-as 100
no auto-summary
!
ip http server
!
!
!
!
control-plane
!
alias exec siib show ip int brief
alias exec sip show ip proto
alias exec sir show ip route
alias exec sib show ip bgp
alias exec sibs show ip bgp summ
alias exec sibn show ip bgp nei
alias exec sr show run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

isp2#


*note these are the final configs and not the initial ones .. each step config will be shown by me using a no version

CONFIG FOR ISP1  

config for isp1

CODE
as#2
[Resuming connection 2 to r2 ... ]

isp1#

isp1#sr
Building configuration...

Current configuration : 1611 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname isp1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback0
ip address 12.0.1.1 255.255.255.0
!
interface Loopback20
ip address 20.20.20.20 255.255.255.255
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
ip address 10.0.0.1 255.255.255.252
serial restart-delay 0
!
interface Serial2/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router bgp 200
no synchronization
bgp log-neighbor-changes
network 12.0.1.0 mask 255.255.255.0
network 20.20.20.20
network 20.20.20.20 mask 255.255.255.255
neighbor 10.0.0.2 remote-as 100
no auto-summary
!
ip http server
!
!
!
!
control-plane
!
alias exec siib show ip int brief
alias exec sip show ip proto
alias exec sir show ip route
alias exec sib show ip bgp
alias exec sibs show ip bgp summ
alias exec sibn show ip bgp nei
alias exec sr show run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

RUNNING CONFIG FOR R1  


configuration for router r1

CODE
sanjose#sr
Building configuration...

Current configuration : 1676 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname sanjose
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback0
ip address 192.168.0.1 255.255.255.0
!
interface Loopback1
ip address 192.168.1.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
ip address 10.0.0.2 255.255.255.252
serial restart-delay 0
!
interface Serial2/1
ip address 172.16.0.2 255.255.255.0
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router bgp 100
no synchronization
bgp log-neighbor-changes
network 192.168.0.0
network 192.168.1.0
neighbor 10.0.0.1 remote-as 200
neighbor 172.16.0.1 remote-as 300
no auto-summary
!
ip http server
!
ip route 0.0.0.0 0.0.0.0 172.16.0.1 210
ip route 20.0.0.0 255.0.0.0 20.20.20.20
!
!
!
control-plane
!
alias exec siib show ip int brief
alias exec sip show ip proto
alias exec sir show ip route
alias exec sib show ip bgp
alias exec sibs show ip bgp summ
alias exec sibn show ip bgp nei
alias exec sr show run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
!
!
end

BGP LAB 1  



















In this lab, you will configure BGP to exchange routing information with two Internet Service Providers (ISPs).

Scenario

The International Travel Agency relies extensively on the Internet for sales. The company has contracted with two ISPs for Internet connectivity with fault
tolerance. You need to configure BGP, which runs between the San Jose boundary router and the two ISP routers.

following are the router configs to follow

SOME PART OF REDISTRIBUTION  

done with the redistribution part and route-maps and onto lab-1 .. the following are the router configs and lab topologies .. i have to admit that ts is damn boring in route redistribution , but also had important points so i would advice atleast see it once as you would get many real world tips ...

ompelted bgp from ts part and also from cbtt . looking foreward for route redistribution and nat / route-map from ts .. after that lab work to follow there are 14 labs i guess with bgp 4 redistribution 5 and route map 4 -- one on dhcp server which will be done last

i have to admit that ts is little boring and took so much time for me to complete .. but it has details and its real good ... this the part one or phase of the studies so no notes jotting business till now ... after iam done with the labs i would also post some of the important points ...

and also little offtopic is that went to quantam of solace and i have to give it a rating of 5/5 as iam a bond fan ... wink.gif


thinking to complete the redistribution part today at any cost from ts and by tomorrow route-maps part ... after that within a week i would complete the multicast and ipv6 part with a small topic left with dhcp service ... and i should be offically done with lab work and ts and cbtt by nov 20 .. these are just the goals of mine as of now .. but my external exams are approaching real fast and they are scheduled from nov 11 ... holy shit

any ways catch you with redistribution part and the way it is dealt in both vendors

BGP THEORY  

done with cb.t nuggets and onto train signa.l ... decent amount of info is available in cb.t nuggt.s ccnp series ... and t.s have got it all i guess ...completed and only one part of video out of four ... yet to do labs .. what i have learnt is

attributes --- 6 of them weight and local pref are being imp

route maps --- beautiful techniques on filtering the routes

debug bgp commands and their verification

show commands and their details

2 of the labs from nugget.s


catch u with the updates and also there are my sem lab exams gng on which is pain in a55..yes boring and time consuming dirty lab exams ... need to work with mercury and fluids along with carpentry work , soft mud for casting and other process ....pain i need to study them all .... and as opposed to scott morris ...there's everything i can learn the day before for my college lab exam ..hehe

MONSTER BGP  

as i have already mentioned labbing of is-is will be done at last of the bsci course ...

started of with monster .... bgp

started off with cb.t nuggets and i should admit that it really vast in its approach and also i am enjoying it and feeling real easy ... the entire of the protocol is masterly designed and implemented starting from scratch and i could understand the points the mentor jermy was mentioning ...

labbed and could see the results ....

some of the points of my interest are

slow convergence / start


no exchange of updates between ibgp's ----------- beautiful point some how i feel that this concept is great

neighbour and network statements with update source and multihop and also self commands in place


still studying attributes and implementation ... and its way long to go... i have learned new way of approach from one the vendors out there and i try to implement the debugging and labbing approach with respect to that...

still to go with [productbanned] and two other vendors for bgp and after that it would take only few days to complete my bsci...after that a vigours revision schedule for two months and planning to take my exam in feb .... things started nice and cool at this stage ...

bring you with more updates and if possible the lab part of cbt.t nugget.s

i hope this is informative for you and i like to thank you for viewing

RUNNING CONFIG FOR R1, R2 , R3 , R4  

r1#sr
Building configuration...

Current configuration : 1624 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback1
ip address 10.1.1.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
ip address 10.1.123.1 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay map ip 10.1.123.1 102
frame-relay map ip 10.1.123.2 102 broadcast
frame-relay map ip 10.1.123.3 103 broadcast
no frame-relay inverse-arp
!
interface Serial2/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 10.1.1.1 0.0.0.0 area 0
network 10.1.123.1 0.0.0.0 area 0
!
ip http server
!
!
!
!
control-plane
!
alias exec siib show ip int brief
alias exec sir show ip route
alias exec sio show ip ospf
alias exec siod show ip ospf data
alias exec sioi show ip ospf int
alias exec sip show ip proto
alias exec sr show run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

r1#

CODE
r1#
as#2
[Resuming connection 2 to r2 ... ]

r2#sr
Building configuration...

Current configuration : 1777 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
frame-relay switching
!
!
!
!
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
no ip address
encapsulation frame-relay
shutdown
serial restart-delay 0
clock rate 64000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 102 interface Serial2/1 201
frame-relay route 103 interface Serial2/2 301
!
interface Serial2/1
no ip address
encapsulation frame-relay
shutdown
serial restart-delay 0
clock rate 64000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 201 interface Serial2/0 102
!
interface Serial2/2
no ip address
encapsulation frame-relay
shutdown
serial restart-delay 0
clock rate 64000
frame-relay lmi-type cisco
frame-relay intf-type dce
frame-relay route 301 interface Serial2/0 103
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
ip http server
!
!
!
!
control-plane
!
alias exec siib show ip int brief
alias exec sir show ip route
alias exec sio show ip ospf
alias exec siod show ip ospf data
alias exec sioi show ip ospf int
alias exec sip show ip proto
alias exec sr show run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

r2#


CODE
r2#
as#3
[Resuming connection 3 to r3 ... ]

r3#sr
Building configuration...

Current configuration : 1740 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback2
ip address 10.1.2.1 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
ip address 10.1.23.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/1
ip address 10.1.123.2 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint
serial restart-delay 0
frame-relay map ip 10.1.123.1 201 broadcast
frame-relay map ip 10.1.123.2 201
frame-relay map ip 10.1.123.3 201 broadcast
no frame-relay inverse-arp
!
interface Serial2/2
no ip address
ip ospf network point-to-multipoint----------------------------*
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 10.1.2.1 0.0.0.0 area 0
network 10.1.123.2 0.0.0.0 area 0
!
ip http server
!
!
!
!
control-plane
!
alias exec siib show ip int brief
alias exec sir show ip route
alias exec sio show ip ospf
alias exec siod show ip ospf data
alias exec sioi show ip ospf int
alias exec sip show ip proto
alias exec sr show run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

r3#


CODE
r4#sr
Building configuration...

Current configuration : 1708 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r4
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback2
no ip address
!
interface Loopback3
ip address 10.3.1.1 255.255.255.0
!
interface FastEthernet0/0
ip address 10.1.23.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/2
ip address 10.1.123.3 255.255.255.0
encapsulation frame-relay
ip ospf network point-to-multipoint----------------------------------------* default nbma
serial restart-delay 0
frame-relay map ip 10.1.123.1 301 broadcast
frame-relay map ip 10.1.123.2 301 broadcast
frame-relay map ip 10.1.123.3 301
no frame-relay inverse-arp
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 10.1.123.3 0.0.0.0 area 0
network 10.3.1.1 0.0.0.0 area 0
!
ip http server
!
!
!
!
control-plane
!
alias exec siib show ip int brief
alias exec sir show ip route
alias exec sio show ip ospf
alias exec siod show ip ospf data
alias exec sioi show ip ospf int
alias exec sip show ip proto
alias exec sr show run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

r4#

LAB 3-4  
















starting out with lab 3-4 in ospf ... its simple and similar to eigrp frame-relay lab ..not thing there much ..... i have seen is-is and left it for last ... i went after bgp and started the cbtt nuggets .. it will take three more days time to complete the bgp i guess from the video tutors

*is-is labbing will be done at the end of the course

any how here is the 3-4 ospf lab

Lab 3-4a OSPF over Frame Relay

Learning Objectives

• Configure OSPF over Frame Relay
• Use non-broadcast and point-to-multipoint OSPF network types
• Modify default OSPF timers

SCENARIO



You are responsible for configuring the new network to connect your company’seast branch and west branch through the company headquarters represented by loopback interfaces on each of the three routers. The physical devices havejust been installed and connected over Frame Relay hub-and-spoke. Configure OSPF to allow full connectivity between all departments.There will also be an Ethernet connection between East and West. This
represents a backup line given by a service provider.This topology may appear again in future labs, so save your configuration when you are done.


I WOULD JUST POST THE RUNNING CONFIGS AS THERE IS NOTHING HERE I COULD DOCUMENT AS THE PREVIOUS LAB ..EVERYTHING IS OF FRAME-RELAY WHICH IS DONE IN EIGRP SAME MAPPINGS OF IP AND DLCIS ROUTES ..SO NOTHING MORE SPECIFIC

POINT TO REMEMBER IS THAT

BROADCAST HAS A DR AND CARE SHOULD BE TAKEN THAT NO BDR GETS ELECETED SUING IP OSPF PRIOPRITY 0 COMMAND

POINT - POINT DOSENT NEED ANY DR OR BDR IT WONT ELECT AND DONT NEED ANY NEIG STATEMENTS TO CONFIURE .

DEFAULT ROUTE GENERATION  

GENERATING DEFAULT ROUTE IN OSPF


SIMPLE AND STRAIGHT FOREWARD

CODE
default information originate --------> if you have a default route

default information originate always ---------->if you dont have a default route but still wanna advertise it out


CODE
r1#sr | i network
network 10.1.1.1 0.0.0.0 area 0 ---------------------------> think it as a route to internet for whole topology
network 10.1.12.1 0.0.0.0 area 0
network 172.30.30.1 0.0.0.0 area 0
r1#



firstly let us verify the routing table of routers

CODE
r2#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.30.0.0/32 is subnetted, 1 subnets
O 172.30.30.1 [110/65] via 10.1.12.1, 00:29:11, Serial2/0
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 10.1.12.0/24 is directly connected, Serial2/0
O 10.1.3.1/32 [110/65] via 10.1.23.2, 00:29:11, Serial2/1
C 10.1.2.0/24 is directly connected, Loopback2
O 10.1.1.1/32 [110/65] via 10.1.12.1, 00:29:11, Serial2/0
C 10.1.23.0/24 is directly connected, Serial2/1
O IA 192.168.100.0/22 [110/65] via 10.1.23.2, 00:29:11, Serial2/1
r2#
as#3
[Resuming connection 3 to r3 ... ]

r3(config-router)#do sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.30.0.0/32 is subnetted, 1 subnets
O 172.30.30.1 [110/129] via 10.1.23.1, 00:29:17, Serial2/1
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
O 10.1.12.0/24 [110/128] via 10.1.23.1, 00:29:17, Serial2/1
C 10.1.3.0/24 is directly connected, Loopback3
O 10.1.2.0/24 [110/65] via 10.1.23.1, 00:29:17, Serial2/1
O 10.1.1.1/32 [110/129] via 10.1.23.1, 00:29:17, Serial2/1
C 10.1.23.0/24 is directly connected, Serial2/1
C 192.168.102.0/24 is directly connected, Loopback102
C 192.168.103.0/24 is directly connected, Loopback103
C 192.168.100.0/24 is directly connected, Loopback100
C 192.168.101.0/24 is directly connected, Loopback101
O 192.168.100.0/22 is a summary, 00:29:27, Null0
r3(config-router)#



so no default route lets create one ..

CODE
r1(config)#router ospf 1
r1(config-router)#de
r1(config-router)#default-in
r1(config-router)#default-information ori
r1(config-router)#default-information originate always
r1(config-router)#


lets verify the routing table of other if we got any ..


CODE
r1(config-router)#
as#2
[Resuming connection 2 to r2 ... ]
sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 10.1.12.1 to network 0.0.0.0

172.30.0.0/32 is subnetted, 1 subnets
O 172.30.30.1 [110/65] via 10.1.12.1, 00:30:51, Serial2/0
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 10.1.12.0/24 is directly connected, Serial2/0
O 10.1.3.1/32 [110/65] via 10.1.23.2, 00:30:51, Serial2/1
C 10.1.2.0/24 is directly connected, Loopback2
O 10.1.1.1/32 [110/65] via 10.1.12.1, 00:30:51, Serial2/0
C 10.1.23.0/24 is directly connected, Serial2/1
O*E2 0.0.0.0/0 [110/1] via 10.1.12.1, 00:00:43, Serial2/0 -------------------------------*
O IA 192.168.100.0/22 [110/65] via 10.1.23.2, 00:30:51, Serial2/1
r2#
as#3
[Resuming connection 3 to r3 ... ]

r3(config-router)#do sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 10.1.23.1 to network 0.0.0.0

172.30.0.0/32 is subnetted, 1 subnets
O 172.30.30.1 [110/129] via 10.1.23.1, 00:30:59, Serial2/1
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
O 10.1.12.0/24 [110/128] via 10.1.23.1, 00:30:59, Serial2/1
C 10.1.3.0/24 is directly connected, Loopback3
O 10.1.2.0/24 [110/65] via 10.1.23.1, 00:30:59, Serial2/1
O 10.1.1.1/32 [110/129] via 10.1.23.1, 00:30:59, Serial2/1
C 10.1.23.0/24 is directly connected, Serial2/1
C 192.168.102.0/24 is directly connected, Loopback102
C 192.168.103.0/24 is directly connected, Loopback103
C 192.168.100.0/24 is directly connected, Loopback100
C 192.168.101.0/24 is directly connected, Loopback101
O*E2 0.0.0.0/0 [110/1] via 10.1.23.1, 00:00:51, Serial2/1 ---------------------->*
O 192.168.100.0/22 is a summary, 00:31:10, Null0
r3(config-router)#



and there was a simple challenge to configure authentication of simple and md5 no two of the interface on r2 .. i did that if any one want check the running configs ... the documentation is taking more time than labbing lol wink.gif


see you guys with frame-relay beast soon

SUMMARAISATION  

I WENT AGAIN CONFUSED IN SUMMARAISATION WHILE CONFIGURING .... WHETHER TO USE AREA RANGE OR SUMMARY COMMAND .. USED THE OTHER AND COULDNT SEE THE SUMMARY SO AGAIN USED THE ONE WHICH I DINT USED AS SAW THE SUMMARY ADDRESS .. DONT COMMIT THESE SORT OF MISTAKES OR ILL CONCEPTS .. AFTER STUDYING DO WE NEED TO USE HIT AND TRIAL METHODS .. NO WAYS RIGHT ?



REMEMBER TWO SUMMARAISATIONS

INTER AREA SUMMARASIATION ---- MUST AND SHOULD BE DONE ON ABR --- DONE IS ROUTING PROC OF OSPF OBVIOUSLY AREA RANGE

EXTERNAL SUMMARAISATION ---- MUST AND SHOULD BE DONE ON ASBR --- DONE ON INTERFACE -- IP SUMMARY -- THIS IS ALSO OBVIOUS THINK IT ..


so here it is the interarea summaraisation we are looking so perform it on abr ... so now again .. we created a virtual link ... and abr in the sense you should go to r3 and dont commit mistake going to r2 ... yes now r3 is also an abr and we can summaraise on it .... be careful ..

CODE
r3(config-router)#area 100 range 192.168.100.0 255.255.252.0


CODE
r1#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.30.0.0/30 is subnetted, 1 subnets
C 172.30.30.0 is directly connected, Loopback30
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 10.1.12.0/24 is directly connected, Serial2/0
O IA 10.1.3.1/32 [110/129] via 10.1.12.2, 00:19:23, Serial2/0
O IA 10.1.2.0/24 [110/65] via 10.1.12.2, 00:19:23, Serial2/0
C 10.1.1.0/24 is directly connected, Loopback1
O IA 10.1.23.0/24 [110/128] via 10.1.12.2, 00:19:23, Serial2/0
O IA 192.168.100.0/22 [110/129] via 10.1.12.2, 00:19:23, Serial2/0
r1#
as#2
[Resuming connection 2 to r2 ... ]

r2#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 10.1.12.1 to network 0.0.0.0

172.30.0.0/32 is subnetted, 1 subnets
O 172.30.30.1 [110/65] via 10.1.12.1, 00:19:22, Serial2/0
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 10.1.12.0/24 is directly connected, Serial2/0
O 10.1.3.1/32 [110/65] via 10.1.23.2, 00:19:22, Serial2/1
C 10.1.2.0/24 is directly connected, Loopback2
O 10.1.1.1/32 [110/65] via 10.1.12.1, 00:19:22, Serial2/0
C 10.1.23.0/24 is directly connected, Serial2/1
O*E2 0.0.0.0/0 [110/1] via 10.1.12.1, 00:19:22, Serial2/0
O IA 192.168.100.0/22 [110/65] via 10.1.23.2, 00:19:22, Serial2/1
r2#


hence summaraisation in full effect

one last point

CODE
r3(config-router)#do sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 10.1.23.1 to network 0.0.0.0

172.30.0.0/32 is subnetted, 1 subnets
O 172.30.30.1 [110/129] via 10.1.23.1, 00:20:46, Serial2/1
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
O 10.1.12.0/24 [110/128] via 10.1.23.1, 00:20:46, Serial2/1
C 10.1.3.0/24 is directly connected, Loopback3
O 10.1.2.0/24 [110/65] via 10.1.23.1, 00:20:46, Serial2/1
O 10.1.1.1/32 [110/129] via 10.1.23.1, 00:20:46, Serial2/1
C 10.1.23.0/24 is directly connected, Serial2/1
C 192.168.102.0/24 is directly connected, Loopback102
C 192.168.103.0/24 is directly connected, Loopback103
C 192.168.100.0/24 is directly connected, Loopback100
C 192.168.101.0/24 is directly connected, Loopback101
O*E2 0.0.0.0/0 [110/1] via 10.1.23.1, 00:20:46, Serial2/1
O 192.168.100.0/22 is a summary, 00:20:57, Null0 -------------------------> this is avoid routing loops ..when address converd by summary is pinged but not on routing table

VIRTUAL LINK CONTINUED  

before configuring virtual links let me give the ospf proc for routers to determine the router id's and additional details

CODE
r2(config-router)#do sio
Routing Process "ospf 1" with ID 10.1.2.1
Start time: 00:00:14.260, Time elapsed: 00:33:39.676
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
It is an area border router
Router is not originating router-LSAs with maximum metric
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Incremental-SPF disabled
Minimum LSA interval 5 secs
Minimum LSA arrival 1000 msecs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Number of external LSA 1. Checksum Sum 0x005F69
Number of opaque AS LSA 0. Checksum Sum 0x000000
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 2. 2 normal 0 stub 0 nssa
Number of areas transit capable is 1
External flood list length 0
Area BACKBONE(0)
Number of interfaces in this area is 2
Area has no authentication
SPF algorithm last executed 00:03:31.192 ago
SPF algorithm executed 7 times
Area ranges are
Number of LSA 10. Checksum Sum 0x056D2C
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 5
Flood list length 0
Area 23
Number of interfaces in this area is 2
This area has transit capability: Virtual Link Endpoint
Area has no authentication
SPF algorithm last executed 00:03:31.216 ago
SPF algorithm executed 9 times
Area ranges are
Number of LSA 8. Checksum Sum 0x032600
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0

r2(config-router)#


--------------------------------------------------------------------------------------------------

r3#sio
Routing Process "ospf 1" with ID 192.168.103.1
Start time: 00:00:14.616, Time elapsed: 00:34:24.904
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
It is an area border router
Router is not originating router-LSAs with maximum metric
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Incremental-SPF disabled
Minimum LSA interval 5 secs
Minimum LSA arrival 1000 msecs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Number of external LSA 1. Checksum Sum 0x005D6A
Number of opaque AS LSA 0. Checksum Sum 0x000000
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 3. 3 normal 0 stub 0 nssa
Number of areas transit capable is 1
External flood list length 0
Area BACKBONE(0)
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm last executed 00:04:17.788 ago
SPF algorithm executed 3 times
Area ranges are
Number of LSA 10. Checksum Sum 0x057329
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 5
Flood list length 0
Area 23
Number of interfaces in this area is 2 (1 loopback)
This area has transit capability: Virtual Link Endpoint
Area has no authentication
SPF algorithm last executed 00:04:17.796 ago
SPF algorithm executed 12 times
Area ranges are
Number of LSA 8. Checksum Sum 0x032600
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
Area 100
Number of interfaces in this area is 4
Area has no authentication
SPF algorithm last executed 00:04:28.540 ago
SPF algorithm executed 16 times
Area ranges are
192.168.100.0/22 Active(1) Advertise
Number of LSA 8. Checksum Sum 0x03A39D
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0

r3#



CREATING THE LINK

CODE
r2(config-router)#area 23 virtual-link ?
A.B.C.D ID (IP addr) associated with virtual link neighbor

r2(config-router)#area 23 virtual-link 192.168.103.1
r2(config-router)#


r3(config-router)#area 23 virtual-link 10.1.2.1
r3(config-router)#end

*Mar 1 00:30:13.799: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.103.1 on OSPF_VL1 from LOADING to FULL, Loading Done ----- term msgs

*Mar 1 00:30:13.507: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.2.1 on OSPF_VL1 from LOADING to FULL, Loading Done



lets go down and see r2 and r1 table for 192 network

CODE
as#2
[Resuming connection 2 to r2 ... ]

r2(config-router)#do sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 10.1.12.1 to network 0.0.0.0

172.30.0.0/32 is subnetted, 1 subnets
O 172.30.30.1 [110/65] via 10.1.12.1, 00:05:40, Serial2/0
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 10.1.12.0/24 is directly connected, Serial2/0
O 10.1.3.1/32 [110/65] via 10.1.23.2, 00:05:40, Serial2/1
C 10.1.2.0/24 is directly connected, Loopback2
O 10.1.1.1/32 [110/65] via 10.1.12.1, 00:05:40, Serial2/0
C 10.1.23.0/24 is directly connected, Serial2/1
O*E2 0.0.0.0/0 [110/1] via 10.1.12.1, 00:05:40, Serial2/0
O IA 192.168.100.0/22 [110/65] via 10.1.23.2, 00:05:40, Serial2/1
r2(config-router)#
as#1
[Resuming connection 1 to r1 ... ]

r1#do sir
^
% Invalid input detected at '^' marker.

r1#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.30.0.0/30 is subnetted, 1 subnets
C 172.30.30.0 is directly connected, Loopback30
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 10.1.12.0/24 is directly connected, Serial2/0
O IA 10.1.3.1/32 [110/129] via 10.1.12.2, 00:05:52, Serial2/0
O IA 10.1.2.0/24 [110/65] via 10.1.12.2, 00:05:52, Serial2/0
C 10.1.1.0/24 is directly connected, Loopback1
O IA 10.1.23.0/24 [110/128] via 10.1.12.2, 00:05:52, Serial2/0
O IA 192.168.100.0/22 [110/129] via 10.1.12.2, 00:05:52, Serial2/0
r1#



VERIFICATION OF VIRTUAL LINK

CODE
r1#sio vi
r1#show ip ospf virtual-links ------------------> dont get confused here r1 dosent have any virtual links configured under proc ospf ...

r1#
as#2
[Resuming connection 2 to r2 ... ]

r2#
*Mar 1 00:37:00.543: %SYS-5-CONFIG_I: Configured from console by console
r2#sio vi
r2#show ip ospf virtual-links
Virtual Link OSPF_VL1 to router 192.168.103.1 is up
Run as demand circuit
DoNotAge LSA allowed.
Transit area 23, via interface Serial2/1, Cost of using 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:00
Adjacency State FULL (Hello suppressed)
Index 2/3, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec
r2#
as#3
[Resuming connection 3 to r3 ... ]

r3#sio vi
r3#show ip ospf virtual-links
Virtual Link OSPF_VL1 to router 10.1.2.1 is up
Run as demand circuit
DoNotAge LSA allowed.
Transit area 23, via interface Serial2/1, Cost of using 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:08
Adjacency State FULL (Hello suppressed)
Index 1/2, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec
r3#

VIRTUAL LINK  

starting off with VIRTUAL LINK

VIRTUAL LINK :

THE MAIN RULE IN OSPF IS THAT OTHER AREAS IN OSPF MUST CONNECT DIRECTLY TO BACKBONE AREA THROUGH AN ABR. THE ABR IS RESIDENT IN BOTH AREAS AND HOLDS A TOPOLOGICAL DATABASE FOR EACH AREA .IF DIRECT CONNECTION TO BACKBONE IS NOT POSSIBLE FOR THE NEW AREA .. TWO AREAS ARE SET UP TO BRIDGE THROGH A VIRTUAL LINK.


let us look on r3 ... the entire of 192.168.x.x network is not advertised into ospf .... first we will advertise it and later on create a virtual link..

firstly see the routing table on r3 and r2 to see that network 192.168.x.x is not yet advertised

CODE
r3#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 10.1.23.1 to network 0.0.0.0

172.30.0.0/32 is subnetted, 1 subnets
O IA 172.30.30.1 [110/129] via 10.1.23.1, 00:03:44, Serial2/1
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
O IA 10.1.12.0/24 [110/128] via 10.1.23.1, 00:03:44, Serial2/1
C 10.1.3.0/24 is directly connected, Loopback3
O 10.1.2.0/24 [110/65] via 10.1.23.1, 00:03:44, Serial2/1
O IA 10.1.1.1/32 [110/129] via 10.1.23.1, 00:03:44, Serial2/1
C 10.1.23.0/24 is directly connected, Serial2/1
C 192.168.102.0/24 is directly connected, Loopback102
C 192.168.103.0/24 is directly connected, Loopback103
C 192.168.100.0/24 is directly connected, Loopback100
C 192.168.101.0/24 is directly connected, Loopback101
O*E2 0.0.0.0/0 [110/1] via 10.1.23.1, 00:03:44, Serial2/1
r3#
as#2
[Resuming connection 2 to r2 ... ]

r2#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 10.1.12.1 to network 0.0.0.0

172.30.0.0/32 is subnetted, 1 subnets
O 172.30.30.1 [110/65] via 10.1.12.1, 00:05:17, Serial2/0
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 10.1.12.0/24 is directly connected, Serial2/0
O 10.1.3.1/32 [110/65] via 10.1.23.2, 00:05:17, Serial2/1
C 10.1.2.0/24 is directly connected, Loopback2
O 10.1.1.1/32 [110/65] via 10.1.12.1, 00:05:17, Serial2/0
C 10.1.23.0/24 is directly connected, Serial2/1
O*E2 0.0.0.0/0 [110/1] via 10.1.12.1, 00:05:17, Serial2/0
r2#


now on purpose create and advertise all of 192.168.x.x for area 100 in ospf to demonstrate the virtual link

CODE
r3#config t
Enter configuration commands, one per line. End with CNTL/Z.
r3(config)#router ospf 1
r3(config-router)#network 192.168.100.1 0.0.0.0 area 100
r3(config-router)#network 192.168.101.1 0.0.0.0 area 100
r3(config-router)#network 192.168.102.1 0.0.0.0 area 100
r3(config-router)#network 192.168.103.1 0.0.0.0 area 100
r3(config-router)#exit


compare if this is advertised into r2 or r1 ospf proc .. it should not as area 100 is not directly connected to area 0

CODE
r1#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.30.0.0/30 is subnetted, 1 subnets
C 172.30.30.0 is directly connected, Loopback30
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 10.1.12.0/24 is directly connected, Serial2/0
O IA 10.1.3.1/32 [110/129] via 10.1.12.2, 00:10:22, Serial2/0
O IA 10.1.2.0/24 [110/65] via 10.1.12.2, 00:10:22, Serial2/0
C 10.1.1.0/24 is directly connected, Loopback1
O IA 10.1.23.0/24 [110/128] via 10.1.12.2, 00:10:22, Serial2/0
r1#
as#2
[Resuming connection 2 to r2 ... ]

r2#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 10.1.12.1 to network 0.0.0.0

172.30.0.0/32 is subnetted, 1 subnets
O 172.30.30.1 [110/65] via 10.1.12.1, 00:09:17, Serial2/0
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
C 10.1.12.0/24 is directly connected, Serial2/0
O 10.1.3.1/32 [110/65] via 10.1.23.2, 00:09:17, Serial2/1
C 10.1.2.0/24 is directly connected, Loopback2
O 10.1.1.1/32 [110/65] via 10.1.12.1, 00:09:17, Serial2/0
C 10.1.23.0/24 is directly connected, Serial2/1
O*E2 0.0.0.0/0 [110/1] via 10.1.12.1, 00:09:17, Serial2/0
r2#



now create the virtual link

*** IAM A DUMB HERE AND FORGOT WHAT TO DO WHILE CONFIGURING VIRTUAL LINK. YES I WAS CONFUSED WHETHER TO GIVE AREA NUMBER IN COMMAND 0 WHICH RELATES TO NEW AREA OR ABR AREA .... BE CAREFUL ITS ALWAYS THE ABR AREA CONNECTED TO AREA 0 SHOULD BE GIVEN WHICH IS 23 DONT COMMIT THIS MISTAKE PLEASE... IF YOU DO SO NO HARM .. BECAUSE YOU CANNOT SEE IN THE OTHER ROUTING TABLE SO YOU NEED TO GIVE ANOTHER AREA NUMBER OBVIOUSLY .. BUT IS THAT THE CONCEPT OR WHAT WE UNDERSTOOD????


VIRTUAL LINK MUST AND SHOULD BE CONFIGURED ON BOTH OF THE ROUTERS ...DID YOU SEE NOW ROUTER 3 IS ALSO AN ABR ....? SO IT WOULD BE SAFE TO SAY THAT .. VIRTUAL LINKS SHOULD BE CONFIGURED BETWEEN ORIGINAL ABR AND WOULD BE ABR wink.gif

RUNNING CONFIG FOR R3  


running config for r3

CODE
r2#
as#3
[Resuming connection 3 to r3 ... ]

r3>en
r3#sr
Building configuration...

Current configuration : 2186 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback3
ip address 10.1.3.1 255.255.255.0
!
interface Loopback100
ip address 192.168.100.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback101
ip address 192.168.101.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback102
ip address 192.168.102.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback103
ip address 192.168.103.1 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/1
ip address 10.1.23.2 255.255.255.0
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 cisco
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
area 23 virtual-link 10.1.2.1
area 100 range 192.168.100.0 255.255.252.0
summary-address 192.168.100.0 255.255.252.0
network 10.1.3.1 0.0.0.0 area 23
network 10.1.23.2 0.0.0.0 area 23
network 192.168.100.1 0.0.0.0 area 100
network 192.168.101.1 0.0.0.0 area 100
network 192.168.102.1 0.0.0.0 area 100
network 192.168.103.1 0.0.0.0 area 100
!
ip http server
!
!
!
!
control-plane
!
alias exec siib show ip int brief
alias exec sio show ip ospf
alias exec siod show ip ospf data
alias exec sion show ip ospf nei
alias exec sr show run
alias exec sip show ip proto
alias exec sir show ip route
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

r3#

RUNNING CONFIG FOR R2  


running config for r2

CODE
r2>en
r2#sr
Building configuration...

Current configuration : 1635 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback2
ip address 10.1.2.1 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
ip address 10.1.12.2 255.255.255.0
serial restart-delay 0
!
interface Serial2/1
ip address 10.1.23.1 255.255.255.0
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 cisco
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
area 23 virtual-link 192.168.103.1
network 10.1.2.1 0.0.0.0 area 23
network 10.1.12.2 0.0.0.0 area 0
network 10.1.23.1 0.0.0.0 area 23
!
ip http server
!
!
!
!
control-plane
!
alias exec siib show ip int brief
alias exec sio show ip ospf
alias exec siod show ip ospf data
alias exec sion show ip ospf nei
alias exec sr show run
alias exec sip show ip proto
alias exec sir show ip route
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

r2#

RUNNING CONFIG R1  


the following are the router configurations to follow .. as i have already labbed it and completed it .. you may find all of the end configurations there ...

as i go into the topic i would nail down and use no version to view the results

r1 running config

CODE
r1#sr
Building configuration...

Current configuration : 1579 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback1
ip address 10.1.1.1 255.255.255.0
!
interface Loopback30
ip address 172.30.30.1 255.255.255.252
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
ip address 10.1.12.1 255.255.255.0
serial restart-delay 0
!
interface Serial2/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 10.1.1.1 0.0.0.0 area 0
network 10.1.12.1 0.0.0.0 area 0
network 172.30.30.1 0.0.0.0 area 0
default-information originate always
!
ip http server
!
!
!
!
control-plane
!
alias exec siib show ip int brief
alias exec sio show ip ospf
alias exec siod show ip ospf data
alias exec sion show ip ospf nei
alias exec sr show run
alias exec sip show ip proto
alias exec sir show ip route
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

r1#

LAB 3-3 OSPF  


















LAB 3-3 OSPF

Lab 3-3 OSPF Virtual Links and Area Summarization
Learning Objectives

• Configure multiple-area OSPF on a router
• Verify multiple-area behavior
• Create an OSPF virtual link
• Summarize an area
• Generate a default route into OSPF


Scenario

You are responsible for configuring the new network to connect your company’s Engineering, Marketing, and Accounting departments, represented by loopbackinterfaces on each of the three routers. The physical devices have just beeninstalled and connected by serial cables. Configure multiple-area OSPF to allowfull connectivity between all departments.

In addition, R1 will also have a loopback interface representing a connection to the Internet. This connection will not be added into OSPF. R3 will have fouradditional loopback interfaces representing connections to branch offices.This topology may appear again in future labs, so save your configuration when you are done.


running configs and configs to follow







BEFOR NEXT LAB LETS SEE IS-IS PROTOCOL  

hai all .. had a bad i net connection so couldnt upload any thing from the labbing part for yesterday .... i dont know when my i net flaps off .. so let me quickly spend my time here ... before gng on to the labs with ospf (2 labs) i will let you know what i had done last ...

it's the IS-IS protocol ...

the protocol is real simple and easy to configure ...

i had seen cb.t and train.signal and both of them had different points to offer ... over all is is is really simple and piece of cake to configure ...

the terminology is quite different ..but overall the id system and the routing proc is similar to ospf ...

only one bit to explain that is the net id

net id is similar to router id in ospf .. to understand primarily.. the point to remember while configuring net id is simple

net id has --- 3 fields

first field -- type of device -- always 00 for a router so .. as in this case in cisco systems it will be 00 ... ios alerts when wrongly configured ..

second field is ---- system id --- 6 bits or 12 digits --better to have a similar number or mac number upto you -- let us say for r4 : 4444:4444:4444

third field is the area id ----remember two things for exam purpose : 49 and 4 digits ----

49 -- significance of 49 is that it is like a private address in this osi model

and four digits ... simple way ..if you have area 1 --- name it as 0001

four digits are compulsory .. similarly for area 20 --- 0020

so ...

here is the way you write net address

CODE
net addr = third field : second field : first field


ie a sample for a router r1 in area 2 is as follows

49.0001.4444.4444.4444.00


and some of the clns commands ..

show clns neig

show clns neig detail

to start the process : r1(config)#router isis ------------------- this is not supported by all of the ios images .. even i had a 3660 image not supporting this

r1(router-config)#net 49.0002.4444.4444.4444.00

*do not forget to turn is-is on interface also

CODE
int s2/0
ip router isis



some comparisions ..

CODE
there are three types of routers / (router = integrated system)

l1 ---------------------- intra area router in ospf

l2 --------------------- backbone router in area 0 for ospf

l1/l2 ------------------ abr in ospf ----------------------------summaraisation in isis must and should be done on l1/l2 router


this is it i had learned ... back to the labs in ospf

AUTHENTICATION  

next is authentication


simple commands

basic two sides must be configured with same pass and same type

ospf has two types of authentication

type 1

type 2

simple text , md5

everything must be done under interface level

turn on type of authentication ..

CODE
simple

ip ospf authe

ip ospf authentication-key rakesh



CODE
md5

ip ospf authentication message-digest

ip ospf message-digest-key 1 md5 cisco



these are things that i found in this lab..catch with 3-3


NSSA TSA  

NOT SO STUBBY TOTALLY STUBBY AREA : THIS IS SIMILAR TO TSA..


SEE THE SIMILARITIES ARE

STUB ====== NSSA === CONFIG ON BOTH SIDES .. DISPAYS IA ROUTES

TSA=======NSSA TSA ==CONFIG ON ABR/ASBR ONLY ON ONE SIDE ----NOT EVEN ONLY IA ROUTES

configuration fairly simple ..

go to r2 and use no summary that's it

CODE
r2(config-router)#area 23 nssa no-su
r2(config-router)#area 23 nssa no-summary
r2(config-router)#


CODE
r3#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 10.1.23.1 to network 0.0.0.0

172.20.0.0/24 is subnetted, 1 subnets
C 172.20.200.0 is directly connected, Loopback20
10.0.0.0/24 is subnetted, 3 subnets
C 10.1.3.0 is directly connected, Loopback3
O 10.1.2.0 [110/65] via 10.1.23.1, 00:09:14, Serial2/1
C 10.1.23.0 is directly connected, Serial2/1
O*IA 0.0.0.0/0 [110/65] via 10.1.23.1, 00:00:22, Serial2/1 ---------------------------- only one
r3#siod

OSPF Router with ID (172.20.200.1) (Process ID 1)

Router Link States (Area 23)

Link ID ADV Router Age Seq# Checksum Link count
10.1.2.1 10.1.2.1 563 0x8000000D 0x00ED97 3
172.20.200.1 172.20.200.1 562 0x8000000D 0x0019EE 3

Summary Net Link States (Area 23)

Link ID ADV Router Age Seq# Checksum
0.0.0.0 10.1.2.1 26 0x80000001 0x00C265

Type-7 AS External Link States (Area 23)

Link ID ADV Router Age Seq# Checksum Tag
172.20.200.0 172.20.200.1 468 0x80000001 0x0076FC 0
r3#

NSSA  

NSSA --- NOT SO STUBBY AREA : AN NSSA PROVIDES A MECHANISM FOR ASBR'S ATTACHED TO A STUB AREA (NON-BACKBONE) STUB AREA TO PROPOGATE EXTERNAL ROUTES (TYPE 7 LSA'S ) INTO THE ROUTING DOMAIN..

configuration **** one thing to remember is that both sides should be configured unlike the tsa..the stub flags for nssa should be agreed by both of the routers

now we will use redistribute connected subnets --- remember we still dint advertise l20 on r3 ..now using this it will flag it as a n2 route..


CODE
r2(config)#router ospf 1
r2(config-router)#area 23 nssa
OSPF: Area is configured as stub area already ---------------------------> first remove the stub area config on r3 using no version of that
r2(config-router)#



CODE
r3#config
Configuring from terminal, memory, or network [terminal]? t
Enter configuration commands, one per line. End with CNTL/Z.
r3(config)#router ospf 1
r3(config-router)#no area 23 stub
r3(config-router)#area
*Mar 1 01:28:20.359: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.2.1 on Serial2/1 from FULL to DOWN, Neighbor Down: Adjacency forced to reset
r3(config-router)#area 23 nssa
r3(config-router)#
*Mar 1 01:28:25.363: %OSPF-5-ADJCHG: Process 1, Nbr 10.1.2.1 on Serial2/1 from DOWN to DOWN, Neighbor Down: Adjacency forced to reset
r3(config-router)#
as#2
[Resuming connection 2 to r2 ... ]

r2(config-router)#area 23 nssa
OSPF: Area is configured as stub area already
r2(config-router)#no area 23 stub
r2(config-router)#area
*Mar 1 01:28:46.467: %OSPF-5-ADJCHG: Process 1, Nbr 172.20.200.1 on Serial2/1 from FULL to DOWN, Neighbor Down: Adjacency forced to reset
r2(config-router)#area 23 nssa
r2(config-router)#
*Mar 1 01:28:50.551: %OSPF-5-ADJCHG: Process 1, Nbr 172.20.200.1 on Serial2/1 from DOWN to DOWN, Neighbor Down: Adjacency forced to reset
r2(config-router)#
*Mar 1 01:28:58.403: %OSPF-5-ADJCHG: Process 1, Nbr 172.20.200.1 on Serial2/1 from LOADING to FULL, Loading Done
r2(config-router)#


see the ip route table



CODE
r3#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.20.0.0/24 is subnetted, 1 subnets
C 172.20.200.0 is directly connected, Loopback20
10.0.0.0/24 is subnetted, 5 subnets
O IA 10.1.12.0 [110/128] via 10.1.23.1, 00:00:36, Serial2/1
C 10.1.3.0 is directly connected, Loopback3
O 10.1.2.0 [110/65] via 10.1.23.1, 00:00:36, Serial2/1
O IA 10.1.1.0 [110/129] via 10.1.23.1, 00:00:36, Serial2/1
C 10.1.23.0 is directly connected, Serial2/1



CODE
r3#
*Mar 1 01:29:41.883: %SYS-5-CONFIG_I: Configured from console by console
r3#siod

OSPF Router with ID (172.20.200.1) (Process ID 1)

Router Link States (Area 23)

Link ID ADV Router Age Seq# Checksum Link count
10.1.2.1 10.1.2.1 47 0x8000000D 0x00ED97 3
172.20.200.1 172.20.200.1 46 0x8000000D 0x0019EE 3

Summary Net Link States (Area 23)

Link ID ADV Router Age Seq# Checksum
10.1.1.0 10.1.2.1 50 0x80000002 0x00A931
10.1.12.0 10.1.2.1 50 0x80000002 0x0026AA
r3#


CODE
now use redistribute connected to advertise loopback20

[code]r3(config)#router ospf 1
r3(config-router)#redi
r3(config-router)#redistribute con
r3(config-router)#redistribute connected sub
r3(config-router)#redistribute connected subnets
r3(config-router)#end
r3#
*Mar 1 01:30:36.647: %SYS-5-CONFIG_I: Configured from console by console
r3#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.20.0.0/24 is subnetted, 1 subnets
C 172.20.200.0 is directly connected, Loopback20
10.0.0.0/24 is subnetted, 5 subnets
O IA 10.1.12.0 [110/128] via 10.1.23.1, 00:01:33, Serial2/1
C 10.1.3.0 is directly connected, Loopback3
O 10.1.2.0 [110/65] via 10.1.23.1, 00:01:33, Serial2/1
O IA 10.1.1.0 [110/129] via 10.1.23.1, 00:01:33, Serial2/1
C 10.1.23.0 is directly connected, Serial2/1
r3#
as#2
[Resuming connection 2 to r2 ... ]

r2#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.20.0.0/24 is subnetted, 1 subnets
O N2 172.20.200.0 [110/20] via 10.1.23.2, 00:00:09, Serial2/1 ------------------------type 7 on abr
10.0.0.0/24 is subnetted, 5 subnets
C 10.1.12.0 is directly connected, Serial2/0
O 10.1.3.0 [110/65] via 10.1.23.2, 00:01:36, Serial2/1
C 10.1.2.0 is directly connected, Loopback2
O 10.1.1.0 [110/65] via 10.1.12.1, 00:01:46, Serial2/0
C 10.1.23.0 is directly connected, Serial2/1
r2#
as#1
[Resuming connection 1 to r1 ... ]

r1#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.20.0.0/24 is subnetted, 1 subnets
O E2 172.20.200.0 [110/20] via 10.1.12.2, 00:00:14, Serial2/0 ------------------> converted to type 5 by abr
10.0.0.0/24 is subnetted, 5 subnets
C 10.1.12.0 is directly connected, Serial2/0
O IA 10.1.3.0 [110/129] via 10.1.12.2, 00:01:41, Serial2/0
O IA 10.1.2.0 [110/65] via 10.1.12.2, 00:01:50, Serial2/0
C 10.1.1.0 is directly connected, Loopback1
O IA 10.1.23.0 [110/128] via 10.1.12.2, 00:01:50, Serial2/0
r1#


CODE
r2#siod

OSPF Router with ID (10.1.2.1) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count
10.1.1.1 10.1.1.1 726 0x80000008 0x004EDA 3
10.1.2.1 10.1.2.1 176 0x80000008 0x0080C0 2

Summary Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum
10.1.2.0 10.1.2.1 1650 0x80000003 0x0074AA
10.1.3.0 10.1.2.1 161 0x80000001 0x00EFEF
10.1.23.0 10.1.2.1 1650 0x80000003 0x0005C5

Router Link States (Area 23)

Link ID ADV Router Age Seq# Checksum Link count
10.1.2.1 10.1.2.1 168 0x8000000D 0x00ED97 3
172.20.200.1 172.20.200.1 169 0x8000000D 0x0019EE 3

Summary Net Link States (Area 23)

Link ID ADV Router Age Seq# Checksum
10.1.1.0 10.1.2.1 171 0x80000002 0x00A931
10.1.12.0 10.1.2.1 172 0x80000002 0x0026AA

Type-7 AS External Link States (Area 23) ---------------------------------------> see this

Link ID ADV Router Age Seq# Checksum Tag
172.20.200.0 172.20.200.1 76 0x80000001 0x0076FC 0

Type-5 AS External Link States

Link ID ADV Router Age Seq# Checksum Tag
172.20.200.0 10.1.2.1 75 0x80000001 0x00CA2F 0
r2#

TSA  

TSA - TOTALLY STUBBY AREA : A TOTALLY STUBBY AREA ABR ONLY INJECTS THE DEFAULT ROUTE INTO THE AREA . THE TOTALLY STUBBY AREA IS A CISCO PROPIETARY

lets get down to configuration ..

****unlike the previous one .. this can be and should be done on abr

remember .... no specific command ..just include no summary

CODE
r2(config)#router ospf 1
r2(config-router)#area 23 stub no-
r2(config-router)#area 23 stub no-summary
r2(config-router)#


see this routing table

CODE
r3#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 10.1.23.1 to network 0.0.0.0

172.20.0.0/24 is subnetted, 1 subnets
C 172.20.200.0 is directly connected, Loopback20
10.0.0.0/24 is subnetted, 3 subnets
C 10.1.3.0 is directly connected, Loopback3
O 10.1.2.0 [110/65] via 10.1.23.1, 00:06:10, Serial2/1
C 10.1.23.0 is directly connected, Serial2/1
O*IA 0.0.0.0/0 [110/65] via 10.1.23.1, 00:00:44, Serial2/1
r3#


no ia routes ...as specified in the definition..


CODE
r2#siod

OSPF Router with ID (10.1.2.1) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count
10.1.1.1 10.1.1.1 171 0x80000008 0x004EDA 3
10.1.2.1 10.1.2.1 1090 0x80000007 0x007CC7 2

Summary Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum
10.1.2.0 10.1.2.1 1095 0x80000003 0x0074AA
10.1.3.0 10.1.2.1 407 0x80000001 0x00EFEF
10.1.23.0 10.1.2.1 1095 0x80000003 0x0005C5

Router Link States (Area 23)

Link ID ADV Router Age Seq# Checksum Link count
10.1.2.1 10.1.2.1 413 0x8000000A 0x00662C 3
172.20.200.1 172.20.200.1 414 0x8000000B 0x008F84 3

Summary Net Link States (Area 23)

Link ID ADV Router Age Seq# Checksum
0.0.0.0 10.1.2.1 87 0x80000002 0x0039F5 --------------------------->********** compare with previous table
r2#

STUB  

DEFINITION OF STUB AREA : A STUB AREA ABR ONLY INJECTS INTER AREA LSA'S AND A DEFAULT ROUTE INTO THE AREA SPECIFIED

so our configuration after implementing stub area should see only these two ...

important point * stub area should be configured on both the routers ..other wise there would be no adj esthablished .. along with the timers it is also important that two of the routers should also agree upon the stub flag ..

area 23 is gng to be made stub

as you can see adj is lost and regained

CODE
r3(config)#router ospf 1
r3(config-router)#area 23 stub
r3(config-router)#
*Mar 1 01:15:18.331: %OSPF-4-ASBR_WITHOUT_VALID_AREA: Router is currently an ASBR while having only one area which is a stub area
r3(config-router)#
as#2
[Resuming connection 2 to r2 ... ]

r2#config t
Enter configuration commands, one per line. End with CNTL/Z.
r2(config)#router ospf 1
r2(config-router)#area 23 stub
r2(config-router)#
*Mar 1 01:15:29.783: %OSPF-5-ADJCHG: Process 1, Nbr 172.20.200.1 on Serial2/1 from FULL to DOWN, Neighbor Down: Adjacency forced to reset
r2(config-router)#



these are the routing tables .. compare with first one to see the diff

CODE
r3#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 10.1.23.1 to network 0.0.0.0

172.20.0.0/24 is subnetted, 1 subnets
C 172.20.200.0 is directly connected, Loopback20
10.0.0.0/24 is subnetted, 5 subnets
O IA 10.1.12.0 [110/128] via 10.1.23.1, 00:00:29, Serial2/1
C 10.1.3.0 is directly connected, Loopback3
O 10.1.2.0 [110/65] via 10.1.23.1, 00:00:29, Serial2/1
O IA 10.1.1.0 [110/129] via 10.1.23.1, 00:00:29, Serial2/1
C 10.1.23.0 is directly connected, Serial2/1
O*IA 0.0.0.0/0 [110/65] via 10.1.23.1, 00:00:29, Serial2/1
r3#
*Mar 1 01:16:15.303: %SYS-5-CONFIG_I: Configured from console by console
r3#siod

OSPF Router with ID (172.20.200.1) (Process ID 1)

Router Link States (Area 23)

Link ID ADV Router Age Seq# Checksum Link count
10.1.2.1 10.1.2.1 39 0x8000000A 0x00662C 3
172.20.200.1 172.20.200.1 38 0x8000000B 0x008F84 3

Summary Net Link States (Area 23)

Link ID ADV Router Age Seq# Checksum
0.0.0.0 10.1.2.1 48 0x80000001 0x003BF4
10.1.1.0 10.1.2.1 48 0x80000002 0x0022C0
10.1.12.0 10.1.2.1 48 0x80000002 0x009E3A
r3#


here is what indicates the stub area configs on abr

CODE
r2#sio
Routing Process "ospf 1" with ID 10.1.2.1
Start time: 00:13:30.596, Time elapsed: 01:03:34.104
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
It is an area border router
Router is not originating router-LSAs with maximum metric
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Incremental-SPF disabled
Minimum LSA interval 5 secs
Minimum LSA arrival 1000 msecs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Number of external LSA 0. Checksum Sum 0x000000
Number of opaque AS LSA 0. Checksum Sum 0x000000
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 2. 1 normal 1 stub 0 nssa
Number of areas transit capable is 0
External flood list length 0
Area BACKBONE(0)
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm last executed 00:01:35.664 ago
SPF algorithm executed 11 times
Area ranges are
Number of LSA 5. Checksum Sum 0x028ED4
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
Area 23
Number of interfaces in this area is 2
It is a stub area------------------------------------>******************
generates stub default route with cost 1
Area has no authentication
SPF algorithm last executed 00:01:20.668 ago
SPF algorithm executed 17 times
Area ranges are
Number of LSA 5. Checksum Sum 0x028E1C
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0

NOW INTO THE TOPO  

Starting out with configs ... every thing is straigh foreward .. just remember one thing .. loopback 20 on router 3 is not advertised into ospf ... this is done specificially as later it will be used for tpye 7 lsa using redistribute connected subnets command to generate type 7 lsa's more on that later ..

without any altered configs .. this is how the two area of ospf look's like

CODE
as#1
[Resuming connection 1 to r1 ... ]

r1#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 5 subnets
C 10.1.12.0 is directly connected, Serial2/0
O IA 10.1.3.0 [110/129] via 10.1.12.2, 00:05:08, Serial2/0
O IA 10.1.2.0 [110/65] via 10.1.12.2, 00:05:18, Serial2/0
C 10.1.1.0 is directly connected, Loopback1
O IA 10.1.23.0 [110/128] via 10.1.12.2, 00:05:18, Serial2/0
r1#sio
Routing Process "ospf 1" with ID 10.1.1.1
Start time: 00:12:27.968, Time elapsed: 00:57:12.316
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
Router is not originating router-LSAs with maximum metric
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Incremental-SPF disabled
Minimum LSA interval 5 secs
Minimum LSA arrival 1000 msecs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Number of external LSA 0. Checksum Sum 0x000000
Number of opaque AS LSA 0. Checksum Sum 0x000000
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Number of areas transit capable is 0
External flood list length 0
Area BACKBONE(0)
Number of interfaces in this area is 2
Area has no authentication
SPF algorithm last executed 00:05:22.392 ago
SPF algorithm executed 11 times
Area ranges are
Number of LSA 6. Checksum Sum 0x025F3A
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0

r1#siod

OSPF Router with ID (10.1.1.1) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count
10.1.1.1 10.1.1.1 1404 0x80000007 0x0050D9 3
10.1.2.1 10.1.2.1 329 0x80000007 0x007CC7 2

Summary Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum
10.1.2.0 10.1.2.1 334 0x80000003 0x0074AA
10.1.3.0 10.1.2.1 314 0x80000001 0x00EFEF
10.1.23.0 10.1.2.1 334 0x80000003 0x0005C5

Summary ASB Link States (Area 0)

Link ID ADV Router Age Seq# Checksum
172.20.200.1 10.1.2.1 314 0x80000001 0x00273C
r1#


CODE
r2#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 5 subnets
C 10.1.12.0 is directly connected, Serial2/0
O 10.1.3.0 [110/65] via 10.1.23.2, 00:05:48, Serial2/1
C 10.1.2.0 is directly connected, Loopback2
O 10.1.1.0 [110/65] via 10.1.12.1, 00:05:58, Serial2/0
C 10.1.23.0 is directly connected, Serial2/1
r2#sio
Routing Process "ospf 1" with ID 10.1.2.1
Start time: 00:13:30.596, Time elapsed: 00:56:55.916
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
It is an area border router
Router is not originating router-LSAs with maximum metric
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Incremental-SPF disabled
Minimum LSA interval 5 secs
Minimum LSA arrival 1000 msecs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Number of external LSA 0. Checksum Sum 0x000000
Number of opaque AS LSA 0. Checksum Sum 0x000000
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 2. 2 normal 0 stub 0 nssa
Number of areas transit capable is 0
External flood list length 0
Area BACKBONE(0)
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm last executed 00:06:01.244 ago
SPF algorithm executed 10 times
Area ranges are
Number of LSA 6. Checksum Sum 0x02B610
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
Area 23
Number of interfaces in this area is 2
Area has no authentication
SPF algorithm last executed 00:05:51.240 ago
SPF algorithm executed 14 times
Area ranges are
Number of LSA 4. Checksum Sum 0x01EC8A
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0

r2#siod

OSPF Router with ID (10.1.2.1) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count
10.1.1.1 10.1.1.1 1445 0x80000007 0x0050D9 3
10.1.2.1 10.1.2.1 369 0x80000007 0x007CC7 2

Summary Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum
10.1.2.0 10.1.2.1 373 0x80000003 0x0074AA
10.1.3.0 10.1.2.1 354 0x80000001 0x00EFEF
10.1.23.0 10.1.2.1 373 0x80000003 0x0005C5

Summary ASB Link States (Area 0)

Link ID ADV Router Age Seq# Checksum
172.20.200.1 10.1.2.1 354 0x80000001 0x00273C

Router Link States (Area 23)

Link ID ADV Router Age Seq# Checksum Link count
10.1.2.1 10.1.2.1 361 0x80000008 0x004C46 3
172.20.200.1 172.20.200.1 363 0x80000009 0x007B96 3

Summary Net Link States (Area 23)

Link ID ADV Router Age Seq# Checksum
10.1.1.0 10.1.2.1 370 0x80000001 0x0006DB
10.1.12.0 10.1.2.1 370 0x80000001 0x008255
r2#


CODE
r3#sir
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

172.20.0.0/24 is subnetted, 1 subnets
C 172.20.200.0 is directly connected, Loopback20
10.0.0.0/24 is subnetted, 5 subnets
O IA 10.1.12.0 [110/128] via 10.1.23.1, 00:06:23, Serial2/1
C 10.1.3.0 is directly connected, Loopback3
O 10.1.2.0 [110/65] via 10.1.23.1, 00:06:23, Serial2/1
O IA 10.1.1.0 [110/129] via 10.1.23.1, 00:06:23, Serial2/1
C 10.1.23.0 is directly connected, Serial2/1
r3#sio
Routing Process "ospf 1" with ID 172.20.200.1
Start time: 00:16:01.652, Time elapsed: 00:55:00.352
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
It is an autonomous system boundary router
Redistributing External Routes from,
connected
Router is not originating router-LSAs with maximum metric
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Incremental-SPF disabled
Minimum LSA interval 5 secs
Minimum LSA arrival 1000 msecs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Number of external LSA 0. Checksum Sum 0x000000
Number of opaque AS LSA 0. Checksum Sum 0x000000
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Number of areas transit capable is 0
External flood list length 0
Area 23
Number of interfaces in this area is 2
Area has no authentication
SPF algorithm last executed 00:06:26.508 ago
SPF algorithm executed 11 times
Area ranges are
Number of LSA 4. Checksum Sum 0x02BE21
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0

r3#siod

OSPF Router with ID (172.20.200.1) (Process ID 1)

Router Link States (Area 23)

Link ID ADV Router Age Seq# Checksum Link count
10.1.2.1 10.1.2.1 394 0x80000008 0x004C46 3
172.20.200.1 172.20.200.1 393 0x80000009 0x007B96 3

Summary Net Link States (Area 23)

Link ID ADV Router Age Seq# Checksum
10.1.1.0 10.1.2.1 402 0x80000001 0x0006DB
10.1.12.0 10.1.2.1 402 0x80000001 0x008255
r3#


as you can see everything is straight foreward and no issues ...next to follow up with stub area

RUNNING CONFIG FOR R3  

Running config for R3

CODE
r3#show run
Building configuration...

Current configuration : 1675 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback3
ip address 10.1.3.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback20
ip address 172.20.200.1 255.255.255.0
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/1
ip address 10.1.23.2 255.255.255.0
ip ospf authentication
ip ospf authentication-key rakesh
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
area 23 nssa
redistribute connected subnets
network 10.1.3.1 0.0.0.0 area 23
network 10.1.23.2 0.0.0.0 area 23
!
ip http server
!
!
!
!
control-plane
!
alias exec siib show ip int brief
alias exec sir show ip route
alias exec sio show ip ospf
alias exec sioi show ip ospf int
alias exec siod show ip ospf data
alias exec sion show ip ospf nei
alias exec sip show ip proto
alias exec sr show run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

r3#

RUNNING CONFIG FOR R2  

Running config for r2

CODE
r2#show run
Building configuration...

Current configuration : 1716 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback2
ip address 10.1.2.1 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
ip address 10.1.12.2 255.255.255.0
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 cisco
serial restart-delay 0
!
interface Serial2/1
ip address 10.1.23.1 255.255.255.0
ip ospf authentication
ip ospf authentication-key rakesh
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
area 23 nssa no-summary
network 10.1.2.1 0.0.0.0 area 23
network 10.1.12.2 0.0.0.0 area 0
network 10.1.23.1 0.0.0.0 area 23
!
ip http server
!
!
!
!
control-plane
!
alias exec siib show ip int brief
alias exec sir show ip route
alias exec sio show ip ospf
alias exec sioi show ip ospf int
alias exec siod show ip ospf data
alias exec sion show ip ospf nei
alias exec sip show ip proto
alias exec sr show run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
login
!
!
end

r2#

RUNNING CONFIG FOR R1  

firstly with running configs of all the routers ... the running config is same for the access server in lab 3-1 .. so if any one reffering you can go for that .. it is very convenient for any one opting for access server as it is helping me a lot without changing a lot of tabs

the config presented may also include the nssa - not so stubby area configs and also authentication .... the explanation part will be done by me ...erasing or configuring types of stubs

RUNNING CONFIG OF R1

CODE
r1#show run
Building configuration...

Current configuration : 1579 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname r1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
!
!
ip cef
!
!
!
!
!
!
!
interface Loopback1
ip address 10.1.1.1 255.255.255.0
ip ospf network point-to-point
!
interface FastEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Ethernet1/0
no ip address
shutdown
half-duplex
!
interface Ethernet1/1
no ip address
shutdown
half-duplex
!
interface Ethernet1/2
no ip address
shutdown
half-duplex
!
interface Ethernet1/3
no ip address
shutdown
half-duplex
!
interface Serial2/0
ip address 10.1.12.1 255.255.255.0
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 cisco
serial restart-delay 0
!
interface Serial2/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial2/3
no ip address
shutdown
serial restart-delay 0
!
router ospf 1
log-adjacency-changes
network 10.1.1.1 0.0.0.0 area 0
network 10.1.12.1 0.0.0.0 area 0
!
ip http server
!
!
!
!
control-plane
!
alias exec siib show ip int brief
alias exec sir show ip route
alias exec sio show ip ospf
alias exec sioi show ip ospf int
alias exec siod show ip ospf data
alias exec sion show ip ospf nei
alias exec sip show ip proto
alias exec sr show run
!
line con 0
exec-timeout 0 0
logging synchronous
line aux 0
line vty 0 4
!
!
end

r1#

LAB 3-2 OSPF  















Lab 3-2 Multiple-Area OSPF with Stub Areas and Authentication

Learning Objectives

• Configure multiple-area OSPF on a router
• Verify multiple-area behavior
• Configure OSPF stub, totally stubby, and not so stubby areas
• Configure OSPF authentication

You are responsible for configuring the new network to connect your company’sEngineering, Marketing, and Accounting departments, represented by loopback
interfaces on each of the three routers. The physical devices have just beeninstalled and connected by serial cables. Configure multiple-area OSPF to allow
full connectivity between all departments.R3 will also have a loopback representing a connection to another autonomous
system that is not part of OSPF.This topology may appear again in future labs, so save your configuration.



Hello Everyone .  

hello everyone its been a while seeing and blogging as i was busy but was still labbing and today i will update my blog to hundreds of pages ;)

good luck

regards
Rakesh

Design by Blogger Buster | Distributed by Blogging Tips