You are on page 1of 2

172.16.0.0/20 -172.16.0.1-172.16.15.254 172.16.15.

255
172.16.16.0/20
255.255.240.0

128+64+32+16=240

R3:ISP router
conf t
int g1/0
Desc ISP router
ip add dhcp
int g0/0
Desc conn to Customer ABC
ip add 192.168.1.2 255.255.255.252
no sh
exi
ip domain lookup

ip route 172.16.0.0 255.255.240.0 g0/0 192.168.1.1


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

R1:
conf t
int g0/0
Desc conn to ISP router
ip add 192.168.1.1 255.255.255.252
no sh
int g1/0
Desc conn to internal router R1
ip add 172.16.1.1 255.255.255.252
no sh
int g2/0
Desc conn to LAN
ip add 172.16.2.1 255.255.255.0
no sh

! Default route towards ISP


ip route 0.0.0.0 0.0.0.0 g0/0 192.168.1.2

! Static to internal router R1's LAN


ip route 172.16.3.0 255.255.255.0 g1/0 172.16.1.2

! STatic null route to prevent loops

ip route 172.16.0.0 255.255.240.0 null0

ip domain lookup
ip name-server 8.8.8.8

R2: Internal router

conf t
int g0/0
Desc conn to internal router R1
ip add 172.16.1.2 255.255.255.252
no sh
int g1/0
Desc conn to LAN
ip add 172.16.3.2 255.255.255.252
no sh

! Default route to reach ISp and R1's LAN


ip route 0.0.0.0 0.0.0.0 g0/0 172.16.1.1

ip domain lookup
ip name-server 8.8.8.8

You might also like