MY TECH BLOG

Google+ Badge

Friday, 5 July 2013

NAT Network address translation with Cisco command

                     NAT Network address translation

In computer networkingNetwork Address Translation (NAT) is the process of modifying IP address information in IPv4 headers while in transit across a traffic routing device.
The simplest type of NAT provides a one-to-one translation of IP addresses. RFC 2663 refers to this type of NAT as basic NAT, which is often also called a one-to-one NAT. In this type of NAT only the IP addresses, IP header checksum and any higher level checksums that include the IP address are changed. The rest of the packet is left untouched (at least for basic TCP/UDPfunctionality; some higher level protocols may need further translation). Basic NATs can be used to interconnect two IP networks that have incompatible addressing.
CONF T
HOSTNAME BRANCH1
INT S0/0
DESCRIPTION THIS IS CONNECTED TO HQ1 S0/0
1.0.0.1 255.0.0.0
NO SH
CLOCK RATE 64000


CONF T
HOSTNAME BRANCH2
INT S0/0
DESCRIPTION THIS IS CONNECTED TO HQ2 S0/0
2.0.0.1 255.0.0.0
NO SH
CLOCK RATE 64000

CONF T
HOSTNAME BRANCH3
INT S0/0
DESCRIPTION THIS IS CONNECTED TO HQ3 S0/0
3.0.0.1 255.0.0.0
NO SH
CLOCK RATE 64000
INT FA0/0
IP ADDRESS 25.0.0.1 255.0.0.0
NO SHUT


CONF T
HOSTNAME BRANCH4
INT S0/0
DESCRIPTION THIS IS CONNECTED TO HQ1 S0/1
4.0.0.1 255.0.0.0
NO SH
CLOCK RATE 64000


CONF T
HOSTNAME BRANCH5
INT S0/0
DESCRIPTION THIS IS CONNECTED TO HQ3 S0/1
5.0.0.1 255.0.0.0
NO SH
CLOCK RATE 64000
INT FA0/0
IP ADDRESS 35.0.0.1 255.0.0.0
NO SHUT

CONF T
HOSTNAME HQ1
INT S0/0
DESCRIPTION THIS IS CONNECTED TO BRANCH1 S0/0
IP ADD 1.0.0.2 255.0.0.0
NO SHUT
CLOCK RATE 64000
INT S0/1
DESCRIPTION THIS IS CONNECTED TO BRANCH4 S0/0
IP ADDRESS 4.0.0.2 255.0.0.0
NO SHUT
CLOCK RATE 64000
INT S0/2
DESCRIPTION THIS IS CONNECTED TO HQ2 S0/1
IP ADDRESS 10.0.0.1 255.0.0.0
NO SHUT
CLOCK RATE 64000




CONF T
HOSTNAME HQ2
INT S0/0
DESCRIPTION THIS IS CONNECTED TO BRANCH2 S0/0
IP ADD 2.0.0.2 255.0.0.0
NO SHUT
CLOCK RATE 64000
INT S0/1
DESCRIPTION THIS IS CONNECTED TO BRANCH1 S0/2
IP ADDRESS 10.0.0.2 255.0.0.0
NO SHUT
CLOCK RATE 64000
INT S0/2
DESCRIPTION THIS IS CONNECTED TO HQ3 S0/2
IP ADDRESS 20.0.0.1 255.0.0.0
NO SHUT
CLOCK RATE 64000


CONF T
HOSTNAME HQ3
INT S0/0
DESCRIPTION THIS IS CONNECTED TO BRANCH3 S0/0
IP ADD 3.0.0.2 255.0.0.0
NO SHUT
CLOCK RATE 64000
INT S0/1
DESCRIPTION THIS IS CONNECTED TO BRANCH5 S0/0
IP ADDRESS 5.0.0.2 255.0.0.0
NO SHUT
CLOCK RATE 64000
INT S0/2
DESCRIPTION THIS IS CONNECTED TO HQ2 S0/2
IP ADDRESS 20.0.0.2 255.0.0.0
NO SHUT
CLOCK RATE 64000



ROUTING:

BRANCH1
CONF T
ROUTER OSPF 1
NETWORK 1.0.0.0 0.0.0.255 AREA 1

BRANCH2
CONF T
ROUTER OSPF 1
NETWORK 2.0.0.0 0.0.0.255 AREA 2

BRANCH3
CONF T
ROUTER OSPF 1
NETWORK 3.0.0.0 0.0.0.255 AREA 3

BRANCH4
CONF T
ROUTER OSPF 1
NETWORK 4.0.0.0 0.0.0.255 AREA 4

BRANCH5
CONF T
ROUTER OSPF 1
NETWORK 5.0.0.0 0.0.0.255 AREA 5

HQ1
CONF T
ROUTER OSPF 1

BRANCH1(config)#HOSTNAME BRANCH1
BRANCH1(config)#INT S0/0
BRANCH1(config-if)#DESCRIPTION THIS IS CONNECTED TO HQ1 S0/0
BRANCH1(config-if)#IP ADDRESS 1.0.0.1 255.0.0.0
BRANCH1(config-if)#NO SH
BRANCH1(config-if)#CLOCK RATE 64000
BRANCH1(config-if)#


Router(config)#HOSTNAME BRANCH2
BRANCH2(config)#INT S0/0
BRANCH2(config-if)#DESCRIPTION THIS IS CONNECTED TO HQ2 S0/0
BRANCH2(config-if)#IP ADDRESS 2.0.0.1 255.0.0.0
BRANCH2(config-if)#NO SH
BRANCH2(config-if)#CLOCK RATE 64000
BRANCH2(config-if)#

Router(config)#HOSTNAME BRANCH3
BRANCH3(config)#INT S0/0
BRANCH3(config-if)#DESCRIPTION THIS IS CONNECTED TO HQ3 S0/0
BRANCH3(config-if)#IP ADDRESS 3.0.0.1 255.0.0.0
BRANCH3(config-if)#NO SH
BRANCH3(config-if)#CLOCK RATE 64000
BRANCH3(config-if)#INT FA0/0
BRANCH3(config-if)#IP ADDRESS 25.0.0.1 255.0.0.0
BRANCH3(config-if)#NO SHUT
BRANCH3(config-if)#


Router(config)#HOSTNAME BRANCH4
BRANCH4(config)#INT S0/0
BRANCH4(config-if)#DESCRIPTION THIS IS CONNECTED TO HQ1 S0/1
BRANCH4(config-if)#IP ADDRESS 4.0.0.1 255.0.0.0
BRANCH4(config-if)#NO SH
BRANCH4(config-if)#CLOCK RATE 64000
BRANCH4(config-if)#



Router(config)#HOSTNAME BRANCH5
BRANCH5(config)#INT S0/0
BRANCH5(config-if)#DESCRIPTION THIS IS CONNECTED TO HQ3 S0/1
BRANCH5(config-if)#IP ADDRESS 5.0.0.1 255.0.0.0
BRANCH5(config-if)#NO SH
BRANCH5(config-if)#CLOCK RATE 64000
BRANCH5(config-if)#INT FA0/0
BRANCH5(config-if)#IP ADDRESS 35.0.0.1 255.0.0.0
BRANCH5(config-if)#NO SHUT
BRANCH5(config-if)#

Router(config)#HOSTNAME HQ1
HQ1(config)#INT S0/0
HQ1(config-if)#DESCRIPTION THIS IS CONNECTED TO BRANCH1 S0/0
HQ1(config-if)#IP ADD 1.0.0.2 255.0.0.0
HQ1(config-if)#NO SHUT
HQ1(config-if)#CLOCK RATE 64000
HQ1(config-if)#INT S0/1
HQ1(config-if)#DESCRIPTION THIS IS CONNECTED TO BRANCH4 S0/0
HQ1(config-if)#IP ADDRESS 4.0.0.2 255.0.0.0
HQ1(config-if)#NO SHUT
HQ1(config-if)#CLOCK RATE 64000
HQ1(config-if)#INT S0/2
HQ1(config-if)#DESCRIPTION THIS IS CONNECTED TO HQ2 S0/1
HQ1(config-if)#IP ADDRESS 10.0.0.1 255.0.0.0
HQ1(config-if)#NO SHUT
HQ1(config-if)#CLOCK RATE 64000
HQ1(config-if)#



Router(config)#HOSTNAME HQ2
HQ2(config)#INT S0/0
HQ2(config-if)#DESCRIPTION THIS IS CONNECTED TO BRANCH2 S0/0
HQ2(config-if)#IP ADD 2.0.0.2 255.0.0.0
HQ2(config-if)#NO SHUT
HQ2(config-if)#CLOCK RATE 64000
HQ2(config-if)#INT S0/1
HQ2(config-if)#DESCRIPTION THIS IS CONNECTED TO BRANCH1 S0/2
HQ2(config-if)#IP ADDRESS 10.0.0.2 255.0.0.0
HQ2(config-if)#NO SHUT
HQ2(config-if)#CLOCK RATE 64000
HQ2(config-if)#INT S0/2
HQ2(config-if)#DESCRIPTION THIS IS CONNECTED TO HQ3 S0/2
HQ2(config-if)#IP ADDRESS 20.0.0.1 255.0.0.0
HQ2(config-if)#NO SHUT
HQ2(config-if)#CLOCK RATE 64000
HQ2(config-if)#


Router(config)#HOSTNAME HQ3
HQ3(config)#INT S0/0
HQ3(config-if)#DESCRIPTION THIS IS CONNECTED TO BRANCH3 S0/0
HQ3(config-if)#IP ADD 3.0.0.2 255.0.0.0
HQ3(config-if)#NO SHUT
HQ3(config-if)#CLOCK RATE 64000
HQ3(config-if)#INT S0/1
HQ3(config-if)#DESCRIPTION THIS IS CONNECTED TO BRANCH5 S0/0
HQ3(config-if)#IP ADDRESS 5.0.0.2 255.0.0.0
HQ3(config-if)#NO SHUT
HQ3(config-if)#CLOCK RATE 64000
HQ3(config-if)#INT S0/2
HQ3(config-if)#DESCRIPTION THIS IS CONNECTED TO HQ2 S0/2
HQ3(config-if)#IP ADDRESS 20.0.0.2 255.0.0.0
HQ3(config-if)#NO SHUT
HQ3(config-if)#CLOCK RATE 64000
HQ3(config-if)#
HQ3(config-if)#


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

BRANCH1(config)#ROUTER OSPF 1
BRANCH1(config-router)#NETWORK 1.0.0.0 0.0.0.255 AREA 1
BRANCH1(config-router)#

BRANCH2(config)#ROUTER OSPF 1
BRANCH2(config-router)#NETWORK 2.0.0.0 0.0.0.255 AREA 2
BRANCH2(config-router)#


BRANCH3(config)#ROUTER OSPF 1
BRANCH3(config-router)#NETWORK 3.0.0.0 0.0.0.255 AREA 3
BRANCH3(config-router)#


BRANCH3(config)#ROUTER RIP
BRANCH3(config-router)#NETWORK 3.0.0.0
BRANCH3(config-router)#NETWORK 25.0.0.0

BRANCH4(config)#ROUTER OSPF 1
BRANCH4(config-router)#NETWORK 4.0.0.0 0.0.0.255 AREA 4
BRANCH4(config-router)#



BRANCH5(config)#ROUTER EIGRP 1
BRANCH5(config-router)#NETWORK 5.0.0.0
BRANCH5(config-router)#NETWORK 35.0.0.0


HQ1(config)#ROUTER OSPF 1
HQ1(config-router)#NETWORK 1.0.0.0 0.0.0.255 AREA 1
HQ1(config-router)#NETWORK 4.0.0.0 0.0.0.255 AREA 4
HQ1(config-router)#NETWORK 10.0.0.0 0.0.0.255 AREA 0
HQ1(config-router)#

HQ2(config)#ROUTER OSPF 1
HQ2(config-router)#NETWORK 10.0.0.0 0.0.0.255 AREA 0
HQ2(config-router)#NETWORK 2.0.0.0 0.0.0.255 AREA 2
HQ2(config-router)#NETWORK 20.0.0.0 0.0.0.255 AREA 0
HQ2(config-router)#

HQ3(config)#ROUTER OSPF 1
HQ3(config-router)#NETWORK 20.0.0.0 0.0.0.255 AREA 0
HQ3(config-router)#REDISTRIBUTE RIP SUBNETS
HQ3(config-router)#REDISTRIBUTE EIGRP 1 SUBNETS
HQ3(config-router)#ROUTER RIP
HQ3(config-router)#NETWORK 3.0.0.0
HQ3(config-router)#REDISTRIBUTE OSPF 1 METRIC 10
HQ3(config-router)#REDISTRIBUTE EIGRP 1 METRIC 10
HQ3(config-router)#ROUTER EIGRP 1
HQ3(config-router)#NETWORK 5.0.0.0
HQ3(config-router)#REDISTRIBUTE RIP METRIC 100 100 100 100 100
HQ3(config-router)#REDISTRIBUTE OSPF 1 METRIC 100 100 100 100 100
HQ3(config-router)#





VERIFYING NEIGHBORS:
BRANCH1#SH IP OSPF NEIghbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
10.0.0.1          0   FULL/  -        00:00:33    1.0.0.2         Serial0/0
BRANCH1#



BRANCH2#SH IP OSPF NEIghbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
20.0.0.1          0   FULL/  -        00:00:34    2.0.0.2         Serial0/0
BRANCH2#



BRANCH4#SH IP OSPF NEIghbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
10.0.0.1          0   FULL/  -        00:00:32    4.0.0.2         Serial0/0
BRANCH4#
BRANCH4#

BRANCH5#SH IP EIGRP NEIghbors
IP-EIGRP neighbors for process 1
H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq
                                            (sec)         (ms)       Cnt Num
2   35.0.0.3                Fa0/0             10 00:01:47   84   504  0  5
1   35.0.0.2                Fa0/0             13 00:02:17  164   984  0  3
0   5.0.0.2                 Se0/0             10 00:11:17   33   200  0  5
BRANCH5#


HQ1#SH IP OSPF NEIghbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
20.0.0.1          0   FULL/  -        00:00:31    10.0.0.2        Serial0/2
1.0.0.1           0   FULL/  -        00:00:37    1.0.0.1         Serial0/0
4.0.0.1           0   FULL/  -        00:00:39    4.0.0.1         Serial0/1
HQ1#


HQ2#SH IP OSPF NEIghbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
20.0.0.2          0   FULL/  -        00:00:34    20.0.0.2        Serial0/2
10.0.0.1          0   FULL/  -        00:00:31    10.0.0.1        Serial0/1
2.0.0.1           0   FULL/  -        00:00:35    2.0.0.1         Serial0/0
HQ2#

HQ3#SH IP OSPF NEIghbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
20.0.0.1          0   FULL/  -        00:00:33    20.0.0.1        Serial0/2
HQ3#


HQ3#SH IP EIGRP NEIghbors
IP-EIGRP neighbors for process 1
H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq

                                    (sec)         (ms)       Cnt Num
0   5.0.0.1                 Se0/1             12 00:12:24   60   360  0  6
HQ3#


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

VERIFYING ALL NETWORK AVAILABILITY

BRANCH1#SH IP ROUTE
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    1.0.0.0/8 is directly connected, Serial0/0
O E2 35.0.0.0/8 [110/20] via 1.0.0.2, 00:07:15, Serial0/0
O IA 2.0.0.0/8 [110/192] via 1.0.0.2, 00:13:39, Serial0/0
O E2 3.0.0.0/8 [110/20] via 1.0.0.2, 00:12:58, Serial0/0
O IA 4.0.0.0/8 [110/128] via 1.0.0.2, 00:13:58, Serial0/0
O IA 20.0.0.0/8 [110/192] via 1.0.0.2, 00:13:39, Serial0/0
O E2 5.0.0.0/8 [110/20] via 1.0.0.2, 00:12:58, Serial0/0
O E2 25.0.0.0/8 [110/20] via 1.0.0.2, 00:08:49, Serial0/0
O IA 10.0.0.0/8 [110/128] via 1.0.0.2, 00:13:58, Serial0/0
BRANCH1#


BRANCH2#SH IP ROUTE
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

O IA 1.0.0.0/8 [110/192] via 2.0.0.2, 00:13:47, Serial0/0
O E2 35.0.0.0/8 [110/20] via 2.0.0.2, 00:07:36, Serial0/0
C    2.0.0.0/8 is directly connected, Serial0/0
O E2 3.0.0.0/8 [110/20] via 2.0.0.2, 00:13:19, Serial0/0
O IA 4.0.0.0/8 [110/192] via 2.0.0.2, 00:13:47, Serial0/0
O IA 20.0.0.0/8 [110/128] via 2.0.0.2, 00:13:47, Serial0/0
O E2 5.0.0.0/8 [110/20] via 2.0.0.2, 00:13:19, Serial0/0
O E2 25.0.0.0/8 [110/20] via 2.0.0.2, 00:09:09, Serial0/0
O IA 10.0.0.0/8 [110/128] via 2.0.0.2, 00:13:47, Serial0/0
BRANCH2#



BRANCH3#SH IP ROUTE
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    1.0.0.0/8 [120/10] via 3.0.0.2, 00:00:12, Serial0/0
R    35.0.0.0/8 [120/10] via 3.0.0.2, 00:00:12, Serial0/0
R    2.0.0.0/8 [120/10] via 3.0.0.2, 00:00:12, Serial0/0
C    3.0.0.0/8 is directly connected, Serial0/0
R    4.0.0.0/8 [120/10] via 3.0.0.2, 00:00:12, Serial0/0
R    20.0.0.0/8 [120/10] via 3.0.0.2, 00:00:12, Serial0/0
R    5.0.0.0/8 [120/10] via 3.0.0.2, 00:00:12, Serial0/0
C    25.0.0.0/8 is directly connected, FastEthernet0/0
R    10.0.0.0/8 [120/10] via 3.0.0.2, 00:00:12, Serial0/0
BRANCH3#



BRANCH4#SH IP ROUTE
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

O IA 1.0.0.0/8 [110/128] via 4.0.0.2, 00:08:41, Serial0/0
O E2 35.0.0.0/8 [110/20] via 4.0.0.2, 00:08:20, Serial0/0
O IA 2.0.0.0/8 [110/192] via 4.0.0.2, 00:08:41, Serial0/0
O E2 3.0.0.0/8 [110/20] via 4.0.0.2, 00:08:41, Serial0/0
C    4.0.0.0/8 is directly connected, Serial0/0
O IA 20.0.0.0/8 [110/192] via 4.0.0.2, 00:08:41, Serial0/0
O E2 5.0.0.0/8 [110/20] via 4.0.0.2, 00:08:41, Serial0/0
O E2 25.0.0.0/8 [110/20] via 4.0.0.2, 00:08:41, Serial0/0
O IA 10.0.0.0/8 [110/128] via 4.0.0.2, 00:08:41, Serial0/0
BRANCH4#

BRANCH5#SH IP ROUTE
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

D EX 1.0.0.0/8 [170/26137600] via 5.0.0.2, 00:14:10, Serial0/0
C    35.0.0.0/8 is directly connected, FastEthernet0/0
D EX 2.0.0.0/8 [170/26137600] via 5.0.0.2, 00:14:10, Serial0/0
D EX 3.0.0.0/8 [170/26137600] via 5.0.0.2, 00:14:47, Serial0/0
D EX 4.0.0.0/8 [170/26137600] via 5.0.0.2, 00:14:10, Serial0/0
D EX 20.0.0.0/8 [170/26137600] via 5.0.0.2, 00:14:10, Serial0/0
C    5.0.0.0/8 is directly connected, Serial0/0
D EX 25.0.0.0/8 [170/26137600] via 5.0.0.2, 00:10:14, Serial0/0
D EX 10.0.0.0/8 [170/26137600] via 5.0.0.2, 00:14:13, Serial0/0
BRANCH5#

HQ1#SH IP ROUTE
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    1.0.0.0/8 is directly connected, Serial0/0
O E2 35.0.0.0/8 [110/20] via 10.0.0.2, 00:09:02, Serial0/2
O IA 2.0.0.0/8 [110/128] via 10.0.0.2, 00:09:16, Serial0/2
O E2 3.0.0.0/8 [110/20] via 10.0.0.2, 00:09:16, Serial0/2
C    4.0.0.0/8 is directly connected, Serial0/1
O    20.0.0.0/8 [110/128] via 10.0.0.2, 00:14:50, Serial0/2
O E2 5.0.0.0/8 [110/20] via 10.0.0.2, 00:09:16, Serial0/2
O E2 25.0.0.0/8 [110/20] via 10.0.0.2, 00:09:16, Serial0/2
C    10.0.0.0/8 is directly connected, Serial0/2
HQ1#



HQ2#SH IP ROUTE
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

O IA 1.0.0.0/8 [110/128] via 10.0.0.1, 00:15:20, Serial0/1
O E2 35.0.0.0/8 [110/20] via 20.0.0.2, 00:09:32, Serial0/2
C    2.0.0.0/8 is directly connected, Serial0/0
O E2 3.0.0.0/8 [110/20] via 20.0.0.2, 00:15:20, Serial0/2
O IA 4.0.0.0/8 [110/128] via 10.0.0.1, 00:15:20, Serial0/1
C    20.0.0.0/8 is directly connected, Serial0/2
O E2 5.0.0.0/8 [110/20] via 20.0.0.2, 00:15:20, Serial0/2
O E2 25.0.0.0/8 [110/20] via 20.0.0.2, 00:11:06, Serial0/2
C    10.0.0.0/8 is directly connected, Serial0/1
HQ2#


HQ3#SH IP ROUTE
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

O IA 1.0.0.0/8 [110/192] via 20.0.0.1, 00:15:48, Serial0/2
D    35.0.0.0/8 [90/2195456] via 5.0.0.1, 00:09:57, Serial0/1
O IA 2.0.0.0/8 [110/128] via 20.0.0.1, 00:15:48, Serial0/2
C    3.0.0.0/8 is directly connected, Serial0/0
O IA 4.0.0.0/8 [110/192] via 20.0.0.1, 00:15:48, Serial0/2
C    20.0.0.0/8 is directly connected, Serial0/2
C    5.0.0.0/8 is directly connected, Serial0/1
R    25.0.0.0/8 [120/1] via 3.0.0.1, 00:00:25, Serial0/0
O    10.0.0.0/8 [110/128] via 20.0.0.1, 00:15:48, Serial0/2
HQ3#


------------------
VERIFYING REACHABILITY TO ALL NETWORK FROM BRANCHES
BRANCH1#PING 1.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/43/60 ms
BRANCH1#PING 1.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.0.0.2, timeout is 2 seconds:
!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 16/43/60 ms
BRANCH1#PING 1.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/26/40 ms
BRANCH1#PING 2.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/68/92 ms
BRANCH1#PING 2.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/36/60 ms
BRANCH1#PING 3.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/117/188 ms
BRANCH1#PING 3.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/86/156 ms
BRANCH1#PING 4.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/61/88 ms
BRANCH1#PING 4.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/39/92 ms
BRANCH1#PING 5.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/80/128 ms
BRANCH1#PING 5.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 80/96/120 ms
BRANCH1#PING 10.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/36/56 ms
BRANCH1#PING 10.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/57/92 ms
BRANCH1#PING 20.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/68/96 ms
BRANCH1#PING 20.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 76/102/136 ms
BRANCH1#



HQ1(config)#^Z
HQ1#PING 1.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/24/40 ms
HQ1#PING 1.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/43/72 ms
HQ1#PING 2.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/52/76 ms
HQ1#PING 2.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/23/32 ms
HQ1#PING 3.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 64/90/140 ms
HQ1#PING 3.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/51/96 ms
HQ1#PING 4.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/36/48 ms
HQ1#PING 4.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 64/99/120 ms
HQ1#PING 5.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/70/108 ms
HQ1#PING 5.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/52/108 ms
HQ1#PING 10.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/49/76 ms
HQ1#PING 10.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/33/80 ms
HQ1#PING 20.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/24/44 ms
HQ1#PING 20.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/64/124 ms
HQ1#PING 25.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 25.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/61/108 ms
HQ1#PING 25.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 25.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 64/102/144 ms
HQ1#PING 25.0.0.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 25.0.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/96/156 ms
HQ1#PING 35.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 35.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/70/108 ms
HQ1#PING 35.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 35.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/86/136 ms
HQ1#PING 35.0.0.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 35.0.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 88/96/112 ms
HQ1#





CONFIGURING TELNET AND SECURITY ON ALL DEVICES :

BRANCH1(config)#enable secret secret
BRANCH1(config)#line vty 0 4
BRANCH1(config-line)#password telnet
BRANCH1(config-line)#login
BRANCH1(config-line)#line console 0
BRANCH1(config-line)#password console
BRANCH1(config-line)#login
BRANCH1(config-line)#
BRANCH1(config-line)#^Z


BRANCH2(config)#enable secret secret
BRANCH2(config)#line vty 0 4
BRANCH2(config-line)#password telnet
BRANCH2(config-line)#login
BRANCH2(config-line)#line console 0
BRANCH2(config-line)#password console
BRANCH2(config-line)#login
BRANCH2(config-line)#

BRANCH3(config)#enable secret secret
BRANCH3(config)#line vty 0 4
BRANCH3(config-line)#password telnet
BRANCH3(config-line)#login
BRANCH3(config-line)#line console 0
BRANCH3(config-line)#password console
BRANCH3(config-line)#login
BRANCH3(config-line)#

BRANCH4(config)#enable secret secret
BRANCH4(config)#line vty 0 4
BRANCH4(config-line)#password telnet
BRANCH4(config-line)#login
BRANCH4(config-line)#line console 0
BRANCH4(config-line)#password console
BRANCH4(config-line)#login
BRANCH4(config-line)#


BRANCH5(config)#enable secret secret
BRANCH5(config)#line vty 0 4
BRANCH5(config-line)#password telnet
BRANCH5(config-line)#login
BRANCH5(config-line)#line console 0
BRANCH5(config-line)#password console
BRANCH5(config-line)#login
BRANCH5(config-line)#


HQ1(config)#enable secret secret
HQ1(config)#line vty 0 4
HQ1(config-line)#password telnet
HQ1(config-line)#login
HQ1(config-line)#line console 0
HQ1(config-line)#password console
HQ1(config-line)#login
HQ1(config-line)#



HQ2(config)#enable secret secret
HQ2(config)#line vty 0 4
HQ2(config-line)#password telnet
HQ2(config-line)#login
HQ2(config-line)#line console 0
HQ2(config-line)#password console
HQ2(config-line)#login
HQ2(config-line)#


HQ3(config)#enable secret secret
HQ3(config)#line vty 0 4
HQ3(config-line)#password telnet
HQ3(config-line)#login
HQ3(config-line)#line console 0
HQ3(config-line)#password console
HQ3(config-line)#login
HQ3(config-line)#

Applying ACL

BRANCH3(config)#ACCess-list 100 DENY TCP HOST 25.0.0.2 HOST 100.0.0.2 EQ 53
BRANCH3(config)#ACCess-list 100 DENY TCP HOST 25.0.0.2 HOST 100.0.0.2 EQ 443
BRANCH3(config)#ACCess-list 100 DENY TCP HOST 25.0.0.2 HOST 100.0.0.2 EQ 25
BRANCH3(config)#ACCess-list 100 DENY TCP HOST 25.0.0.2 HOST 100.0.0.2 EQ 20
BRANCH3(config)#ACCess-list 100 DENY TCP HOST 25.0.0.2 HOST 100.0.0.2 EQ 21
BRANCH3(config)#ACCess-list 100 DENY TCP HOST 25.0.0.2 HOST 100.0.0.2 EQ 69
BRANCH3(config)#ACCess-list 100 DENY TCP HOST 25.0.0.2 HOST 100.0.0.2 EQ 80
BRANCH3(config)#ACCess-list 100 DENY TCP HOST 25.0.0.2 HOST 100.0.0.2 EQ 110
BRANCH3(config)#ACCess-list 100 DENY TCP HOST 25.0.0.2 HOST 1.0.0.2 EQ 53

BRANCH3(config)#ACCESS-LIST 100 PERMIT IP ANY ANY
BRANCH3(config)#INT FA0/0
BRANCH3(config-if)#IP ACCESS-GROUP 100 IN
BRANCH3(config-if)#

APPLYING NAT 


BRANCH5#CONF T
Enter configuration commands, one per line.  End with CNTL/Z.
BRANCH5(config)#IP NAT INSIDE SOURCE STATIC 35.0.0.2 5.0.0.100

BRANCH5(config)#IP NAT INSIDE SOURCE STATIC 35.0.0.30 5.0.0.101
BRANCH5(config)#IP NAT INSIDE SOURCE STATIC 35.0.0.21 5.0.0.102
BRANCH5(config)#IP NAT INSIDE SOURCE STATIC 35.0.0.29 5.0.0.103
BRANCH5(config)#IP NAT INSIDE SOURCE STATIC 35.0.0.29 5.0.0.104
BRANCH5(config)#IP NAT INSIDE SOURCE STATIC 35.0.0.22 5.0.0.104
BRANCH5(config)#IP NAT INSIDE SOURCE STATIC 35.0.0.20 5.0.0.105
BRANCH5(config)#
BRANCH5(config-if)#INT FA0/0
BRANCH5(config-if)#IP NAT INSIDE
BRANCH5(config-if)#INT S0/0
BRANCH5(config-if)#IP NAT OUTSIDE
BRANCH5(config-if)#



CREATING AREAS :

STUB ON BRANCH1



HQ1(config)#router ospf 1
HQ1(config-router)#area 1 stub
HQ1(config-router)#^Z
HQ1#
*Mar  1 00:51:04.271: %OSPF-5-ADJCHG: Process 1, Nbr 1.0.0.1 on Serial0/0 from FULL to DOWN, Neighbor Down: Adjacency forced to reset

BRANCH1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
BRANCH1(config)#router ospf 1
BRANCH1(config-router)#area 1
*Mar  1 00:51:51.491: %OSPF-5-ADJCHG: Process 1, Nbr 10.0.0.1 on Serial0/0 from FULL to DOWN, Neighbor Down: Dead timer expiredstub
BRANCH1(config-router)#
*Mar  1 00:52:02.851: %OSPF-5-ADJCHG: Process 1, Nbr 10.0.0.1 on Serial0/0 from LOADING to FULL, Loading Done

BRANCH1#sh ip route
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 1.0.0.2 to network 0.0.0.0

C    1.0.0.0/8 is directly connected, Serial0/0
O IA 2.0.0.0/8 [110/192] via 1.0.0.2, 00:00:00, Serial0/0
O IA 4.0.0.0/8 [110/128] via 1.0.0.2, 00:00:00, Serial0/0
O IA 20.0.0.0/8 [110/192] via 1.0.0.2, 00:00:00, Serial0/0
O IA 10.0.0.0/8 [110/128] via 1.0.0.2, 00:00:00, Serial0/0
O*IA 0.0.0.0/0 [110/65] via 1.0.0.2, 00:00:00, Serial0/0
BRANCH1#
All external routes are gone .....



CREATING STUB NO-SUMMARY
HQ1(config)#router ospf 1
HQ1(config-router)#area 4 stub no-summary
HQ1(config-router)#
*Mar  1 00:53:36.851: %OSPF-5-ADJCHG: Process 1, Nbr 4.0.0.1 on Serial0/1 from FULL to DOWN, Neighbor Down: Adjacency forced to reset

BRANCH4(config)#router ospf 1
BRANCH4(config-router)#AREA 4 STUB NO-SUMMARY
*Mar  1 00:54:47.587: %OSPF-5-ADJCHG: Process 1, Nbr 10.0.0.1 on Serial0/0 from FULL to DOWN, Neighbor Down: Dead timer expired4 STUB NO-SUMMARY
BRANCH4(config-router)#
*Mar  1 00:55:03.731: %OSPF-5-ADJCHG: Process 1, Nbr 10.0.0.1 on Serial0/0 from LOADING to FULL, Loading Done
BRANCH4(config-router)#



BRANCH4#SH IP ROUTE
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 4.0.0.2 to network 0.0.0.0

C    4.0.0.0/8 is directly connected, Serial0/0
O*IA 0.0.0.0/0 [110/65] via 4.0.0.2, 00:01:07, Serial0/0

ALL INTER AREA AND EXTERNAL ROUTES ARE GONE AND A DEFAULT ROUTE INSTALLED IN ROUTING TABLE.



NOW WE HAVE BRANCH2 WITH EXTERNAL PROTOCOL CONFIGURED :

BRANCH2(config)#router rip
BRANCH2(config-router)#network 85.0.0.1
BRANCH2(config-router)#network 85.0.0.0
BRANCH2(config-router)#net
BRANCH2(config-router)#network 86.0.0.0
BRANCH2(config-router)#net
BRANCH2(config-router)#network 87.0.0.0
BRANCH2(config-router)#redistribute ospf 1 metric 10
BRANCH2(config-router)#router ospf 1
BRANCH2(config-router)#red
BRANCH2(config-router)#redistribute rip subnets
BRANCH2(config-router)#



ON HQ WE HAVE ALL ROUTES 

HQ1#SH IP ROUTE
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

O E2 85.0.0.0/8 [110/20] via 10.0.0.2, 00:00:26, Serial0/2
C    1.0.0.0/8 is directly connected, Serial0/0
O E2 35.0.0.0/8 [110/20] via 10.0.0.2, 00:01:30, Serial0/2
O IA 2.0.0.0/8 [110/128] via 10.0.0.2, 00:04:37, Serial0/2
O E2 87.0.0.0/8 [110/20] via 10.0.0.2, 00:00:05, Serial0/2
O E2 3.0.0.0/8 [110/20] via 10.0.0.2, 00:01:30, Serial0/2
O E2 86.0.0.0/8 [110/20] via 10.0.0.2, 00:00:12, Serial0/2
C    4.0.0.0/8 is directly connected, Serial0/1
O    20.0.0.0/8 [110/128] via 10.0.0.2, 00:05:48, Serial0/2
O E2 5.0.0.0/8 [110/20] via 10.0.0.2, 00:01:32, Serial0/2
O E2 25.0.0.0/8 [110/20] via 10.0.0.2, 00:01:32, Serial0/2
C    10.0.0.0/8 is directly connected, Serial0/2
HQ1#

WE WANT TO STOP ALL EXTERNAL AND INRTER AREA ROUTES TOWARDS BRANCH2 AND WANT TO RECEIVE ALL ROUTES FROM BRANCH2
STOP SENDING
ALLOW RECEIVING


HQ2(config)#router ospf 1
HQ2(config-router)#area 2 nssa no-summary
HQ2(config-router)#
*Mar  1 01:03:23.019: %OSPF-5-ADJCHG: Process 1, Nbr 2.0.0.1 on Serial0/0 from FULL to DOWN, Neighbor Down: Adjacency forced to reset

BRANCH2(config)#router ospf 1
BRANCH2(config-router)#area 2 nssa no-summary
BRANCH2(config-router)#
*Mar  1 01:03:31.287: %OSPF-5-ADJCHG: Process 1, Nbr 20.0.0.1 on Serial0/0 from FULL to DOWN, Neighbor Down: Adjacency forced to reset
*Mar  1 01:03:36.227: %OSPF-5-ADJCHG: Process 1, Nbr 20.0.0.1 on Serial0/0 from LOADING to FULL, Loading Done


verifying

BRANCH2#sh ip route
*Mar  1 01:03:46.939: %SYS-5-CONFIG_I: Configured from console by console
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 2.0.0.2 to network 0.0.0.0

C    85.0.0.0/8 is directly connected, Loopback85
C    2.0.0.0/8 is directly connected, Serial0/0
C    87.0.0.0/8 is directly connected, Loopback87
C    86.0.0.0/8 is directly connected, Loopback86
O*IA 0.0.0.0/0 [110/65] via 2.0.0.2, 00:00:02, Serial0/0
BRANCH2#
 now no external or interarea route
a default route is installed


HQ2#sh ip route
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

O N2 85.0.0.0/8 [110/20] via 2.0.0.1, 00:00:49, Serial0/0
O IA 1.0.0.0/8 [110/128] via 10.0.0.1, 00:00:49, Serial0/1
O E2 35.0.0.0/8 [110/20] via 20.0.0.2, 00:00:49, Serial0/2
C    2.0.0.0/8 is directly connected, Serial0/0
O N2 87.0.0.0/8 [110/20] via 2.0.0.1, 00:00:49, Serial0/0
O E2 3.0.0.0/8 [110/20] via 20.0.0.2, 00:00:49, Serial0/2
O N2 86.0.0.0/8 [110/20] via 2.0.0.1, 00:00:49, Serial0/0
O IA 4.0.0.0/8 [110/128] via 10.0.0.1, 00:00:49, Serial0/1
C    20.0.0.0/8 is directly connected, Serial0/2
O E2 5.0.0.0/8 [110/20] via 20.0.0.2, 00:00:51, Serial0/2
O E2 25.0.0.0/8 [110/20] via 20.0.0.2, 00:00:51, Serial0/2
C    10.0.0.0/8 is directly connected, Serial0/1
HQ2#

hq is getting all routes..







------------------
BRANCHES OF EXTERNAL PROTOCOLS ALSO GETTING ALL ROUTES
BRANCH3#sh ip route
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    85.0.0.0/8 [120/10] via 3.0.0.2, 00:00:20, Serial0/0
R    1.0.0.0/8 [120/10] via 3.0.0.2, 00:00:20, Serial0/0
R    35.0.0.0/8 [120/10] via 3.0.0.2, 00:00:20, Serial0/0
R    2.0.0.0/8 [120/10] via 3.0.0.2, 00:00:20, Serial0/0
R    87.0.0.0/8 [120/10] via 3.0.0.2, 00:00:20, Serial0/0
C    3.0.0.0/8 is directly connected, Serial0/0
R    86.0.0.0/8 [120/10] via 3.0.0.2, 00:00:20, Serial0/0
R    4.0.0.0/8 [120/10] via 3.0.0.2, 00:00:20, Serial0/0
R    20.0.0.0/8 [120/10] via 3.0.0.2, 00:00:20, Serial0/0
R    5.0.0.0/8 [120/10] via 3.0.0.2, 00:00:22, Serial0/0
C    25.0.0.0/8 is directly connected, FastEthernet0/0
R    10.0.0.0/8 [120/10] via 3.0.0.2, 00:00:22, Serial0/0
BRANCH3#

BRANCH5#sh ip route
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

D EX 85.0.0.0/8 [170/26137600] via 5.0.0.2, 00:10:15, Serial0/0
D EX 1.0.0.0/8 [170/26137600] via 5.0.0.2, 00:59:07, Serial0/0
C    35.0.0.0/8 is directly connected, FastEthernet0/0
D EX 2.0.0.0/8 [170/26137600] via 5.0.0.2, 00:59:07, Serial0/0
D EX 87.0.0.0/8 [170/26137600] via 5.0.0.2, 00:10:15, Serial0/0
D EX 3.0.0.0/8 [170/26137600] via 5.0.0.2, 00:59:43, Serial0/0
D EX 86.0.0.0/8 [170/26137600] via 5.0.0.2, 00:10:15, Serial0/0
D EX 4.0.0.0/8 [170/26137600] via 5.0.0.2, 00:59:07, Serial0/0
D EX 20.0.0.0/8 [170/26137600] via 5.0.0.2, 00:59:09, Serial0/0
C    5.0.0.0/8 is directly connected, Serial0/0
D EX 25.0.0.0/8 [170/26137600] via 5.0.0.2, 00:55:12, Serial0/0
D EX 10.0.0.0/8 [170/26137600] via 5.0.0.2, 00:59:09, Serial0/0
BRANCH5#


now check the connectivity :


BRANCH5#ping 1.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/90/128 ms
BRANCH5#ping 1.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/68/96 ms
BRANCH5#ping 2.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 52/68/96 ms
BRANCH5#ping 2.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/41/92 ms
BRANCH5#ping 3.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/52/76 ms
BRANCH5#ping 3.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/33/48 ms
BRANCH5#ping 4.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/86/128 ms

BRANCH5#ping 4.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/80/108 ms
BRANCH5#ping 4.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/64/96 ms
BRANCH5#ping 5.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/46/76 ms
BRANCH5#ping 5.0.0.2

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

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/77/140 ms
BRANCH5#ping 10.0.0.2

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

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/43/60 ms
BRANCH5#ping 20.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/22/44 ms
BRANCH5#ping 25.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 25.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/44/72 ms
BRANCH5#ping 25.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 25.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 64/84/124 ms
BRANCH5#ping 25.0.0.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 25.0.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 76/99/140 ms
BRANCH5#ping 35.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 35.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
BRANCH5#ping 35.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 35.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/48/64 ms
BRANCH5#ping 35.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 35.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/55/76 ms
BRANCH5#ping 35.0.0.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 35.0.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/36/48 ms
BRANCH5#ping 85.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 85.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/76/96 ms
BRANCH5#ping 86.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 86.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/76/140 ms
BRANCH5#ping 87.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 87.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/68/108 ms
BRANCH5#


BRANCH3#ping 1.0.0.1


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/68/128 ms
BRANCH3#ping 1.0.0.2.
% Unrecognized host or address, or protocol not running.

BRANCH3#ping 1.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/71/96 ms
BRANCH3#ping 2.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/89/128 ms
BRANCH3#ping 2.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/48/64 ms
BRANCH3#ping 3.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/64/92 ms
BRANCH3#ping 3.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 3.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/29/44 ms
BRANCH3#ping 4.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/80/96 ms
BRANCH3#ping 4.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/67/92 ms
BRANCH3#ping 5.0.0.1

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

BRANCH3#ping 10.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/68/96 ms
BRANCH3#ping 10.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/64/76 ms
BRANCH3#ping 20.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/55/76 ms
BRANCH3#ping 20.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/39/56 ms
BRANCH3#ping 25.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 25.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/4 ms
BRANCH3#ping 25.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 25.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/55/104 ms
BRANCH3#ping 25.0.0.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 25.0.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/33/60 ms
BRANCH3#ping 35.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 35.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/43/64 ms
BRANCH3#ping 35.0.0.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 35.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/99/128 ms
BRANCH3#ping 35.0.0.3

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 35.0.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/68/112 ms
BRANCH3#ping 85.0.0.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 85.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/80/140 ms
BRANCH3#ping 86.0..1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 86.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/76/96 ms
BRANCH3#ping 87.0.0.1

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