0% found this document useful (0 votes)
25 views3 pages

Lab 3

The document contains configurations for setting up DHCP, HSRP, NAT, and OSPF on multiple routers. DHCP is configured to serve IP addresses from pool 10.10.10.0/24. HSRP is configured with the main router having priority 120 and backup 80 to provide redundant gateway access. NAT is configured to translate private IP addresses to public IP addresses on interface f0/1. OSPF is configured to advertise LAN and NAT IP addresses into area 0.

Uploaded by

tabassi199
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views3 pages

Lab 3

The document contains configurations for setting up DHCP, HSRP, NAT, and OSPF on multiple routers. DHCP is configured to serve IP addresses from pool 10.10.10.0/24. HSRP is configured with the main router having priority 120 and backup 80 to provide redundant gateway access. NAT is configured to translate private IP addresses to public IP addresses on interface f0/1. OSPF is configured to advertise LAN and NAT IP addresses into area 0.

Uploaded by

tabassi199
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

create DHCP on DHCP server

en
conf t
int f0/0
ip add 10.10.10.4 255.255.255.0
no shutdown
exit
ip dhcp pool III-HSRP-Pool
network 10.10.10.0 255.255.255.0
default-router 10.10.10.1
dns-server 1.1.1.1
exit
ip dhcp excluded-address 10.10.10.1
ip dhcp excluded-address 10.10.10.2
ip dhcp excluded-address 10.10.10.3
ip dhcp excluded-address 10.10.10.4

configrtion for Main Router


en
conf t
int f0/0
ip add 10.10.10.2 255.255.255.0
no shutdown

configrtion for Backup Router


en
conf t
int f0/0
ip add 10.10.10.3 255.255.255.0
no shutdown

Create HSRP on Main Router


int f0/0
standby 1 ip 10.10.10.1
standby 1 priority 120
standby 1 preempt
ex

Create HSRP on Backup Router


int f0/0
standby 1 ip 10.10.10.1
standby 1 priority 80
standby 1 preempt
ex

*
show standby

on the main router2

en
conf t
hostname 2-Main-Router
int f0/1
ip add 172.16.10.2 255.255.255.192
no shutdown

on the standby router2


en
conf t
hostname 2-Standby-Router
int f0/1
ip add 172.16.10.3 255.255.255.192
no shutdown

HSRP on the main router2

int f0/1
standby 1 ip 172.16.10.1
standby 1 priority 120
standby 1 preempt

HSRP on the standby router2

int f0/1
standby 1 ip 172.16.10.1
standby 1 priority 80
standby 1 preempt

NAT on the main router

int f0/1
ip add 50.10.10.1 255.255.255.224
no shutdown
ex
access-list 1 permit 10.10.10.0 0.0.0.255
ip nat inside source list 1 interface f0/1 overload
int f0/0
ip nat in
ex
int f0/1
ip nat out

NAT on Backup Router

int f0/1
ip add 50.10.10.2 255.255.255.224
no shutdown
ex
access-list 1 permit 10.10.10.0 0.0.0.255
ip nat inside source list 1 interface f0/1 overload
int f0/0
ip nat in
ex
int f0/1
ip nat out

NAT on the main router2

int f0/0
ip add 50.10.10.3 255.255.255.224
no shutdown
ex
access-list 1 permit 172.16.10.0 0.0.0.63
ip nat inside source list 1 interface f0/0 overload
int f0/1
ip nat in
ex
int f0/0
ip nat out

NAT on the standby router2

int f0/0
ip add 50.10.10.4 255.255.255.224
no shutdown
ex
access-list 1 permit 172.16.10.0 0.0.0.63
ip nat inside source list 1 interface f0/0 overload
int f0/1
ip nat in
ex
int f0/0
ip nat out

OSPF on the main router

router ospf 1
net 10.10.10.0 0.0.0.255 area 0
net 50.10.10.0 0.0.0.31 area 0

OSPF on Backup Router

router ospf 1
net 10.10.10.0 0.0.0.255 area 0
net 50.10.10.0 0.0.0.31 area 0

OSPF on the main router2

router ospf 1
net 172.16.10.0 0.0.0.63 area 0
net 50.10.10.0 0.0.0.31 area 0

OSPF on the standby router2

router ospf 1
net 172.16.10.0 0.0.0.63 area 0
net 50.10.10.0 0.0.0.31 area 0

*
int f0/1
no ip nat in
ex
int f0/0
no ip nat out

You might also like