0% found this document useful (0 votes)
22 views

Script Class LAB (16-4-2024) v8.2

The document configures three routers in a network with DHCP services. Router A is configured as the DHCP server for networks 10.4.0.0, 10.4.128.0 and 10.5.0.0. Routing is also configured between the routers.

Uploaded by

Tamoor Baig
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Script Class LAB (16-4-2024) v8.2

The document configures three routers in a network with DHCP services. Router A is configured as the DHCP server for networks 10.4.0.0, 10.4.128.0 and 10.5.0.0. Routing is also configured between the routers.

Uploaded by

Tamoor Baig
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 6

----------------------- 3-Router A is DHCP ---------------------------

-------------------------------- Router-A Config ----------------------------------

en
conf t
hostname A
clock timezone PST 5

!---------------------------- All BANNER-Configuration.

banner motd #
----------------------------- Hello! Wellcome-To-My_Topology ----------------------
==>>> Just Below User Access the Network.
1) AdminT
2) admin
-----------------------------------------------------------------------------------
-#

banner login #
===>>> Just Valid User Login Now! ---
#
!-------------------------- Clear BANNER-Configuration.

!----------------->>>>>>>>>> User-Configuration.

username AdminT privilege 15 secr CCNA5


username admin privilege 10 password cisco

enable secret cisco

!------------------------- Line Console 0- Configuration.

line cons 0
password cisco
login local
exit
do wr

!------------------------ Line VTY Configuration.

line vty 0 4
password cisco
login local
exit
do wr

!-------------------------- >>> Interface FastEthernet0/0

int fa0/0
no shutdown
desc ====>>>> Router-A LAN Network.
ip address 10.4.0.1 255.255.128.0
do wr
exit

!---------------------------- >>> Interface Serial 0/0/0

int ser0/0/0
no shutdown
descr =====>>> Router-B Network IP is 1.0.0.0/8
ip address 1.1.1.1 255.0.0.0
keepalive 10
encap hdlc
clock rate 4000000
exit

!---------------------------- >>> Interface Serial 0/0/1

int ser0/0/1
no shutdown
descr =====>>> Router-B Network IP is 3.0.0.0/8
ip address 3.1.1.2 255.0.0.0
keepalive 10
encap hdlc
clock rate 4000000
exit

!-------------------------- >>>>> IP-DHCP Excluded-address.

ip dhcp excluded-address 10.4.0.1


ip dhcp excluded-address 10.4.127.254
ip dhcp excluded-address 10.4.128.1
ip dhcp excluded-address 10.4.255.254
ip dhcp excluded-address 10.5.0.1
ip dhcp excluded-address 10.5.127.254
do wr

!-------------------------- >>>>> IP-Pool For Router-A LAN Network.

ip dhcp pool Pool-RA_LAN.


network 10.4.0.0 255.255.128.0
default-router 10.4.0.1
dns-server 10.4.127.254
! lease 0 0 10
do wr
exit

!-------------------------- >>>>> IP-Pool For Router-B LAN Network.

ip dhcp pool Pool-RB_LAN.


network 10.4.128.0 255.255.128.0
default-router 10.4.128.1
dns-server 10.4.127.254
! lease 0 0 10
do wr
exit

!-------------------------- >>>>> IP-Pool For Router-C LAN Network.

ip dhcp pool Pool-RC_LAN.


network 10.5.0.0 255.255.128.0
default-router 10.5.0.1
dns-server 10.4.127.254
! lease 0 0 10
do wr
exit
!---------------------------- >>> IP-Route in Router-A

ip route 10.4.128.0 255.255.128.0 ser0/0/0


ip route 10.4.128.0 255.255.128.0 ser0/0/1 5
ip route 10.5.0.0 255.255.128.0 ser0/0/1
ip route 10.5.0.0 255.255.128.0 ser0/0/0 5
ip route 2.0.0.0 255.0.0.0 ser0/0/0
ip route 2.0.0.0 255.0.0.0 ser0/0/1
do wr

-------------------------------- Router-B Config ----------------------------------

en
conf t
hostname B
clock timezone PST 5

!---------------------------- All BANNER-Configuration.

banner motd #
----------------------------- Hello! Wellcome-To-My_Topology ----------------------
==>>> Just Below User Access the Network.
1) admin
-----------------------------------------------------------------------------------
-#

banner login #
===>>> Just Valid User Login Now! ---
#
!-------------------------- Clear BANNER-Configuration.

!----------------->>>>>>>>>> User-Configuration.

username admin privilege 15 password cisco

enable secret sexit

!------------------------- Line Console 0- Configuration.

line cons 0
password sexit
login local
exit
do wr

!------------------------ Line VTY Configuration.

line vty 0 4
password CCNA
login local
exit
do wr

!-------------------------- >>> Interface FastEthernet0/0

int fa0/0
no shutdown
desc ====>>>> Router-B LAN Network.
ip address 10.4.128.1 255.255.128.0
do wr
exit

!---------------------------- >>> Interface Serial 0/0/0

int ser0/0/0
no shutdown
descr =====>>> Router-A Network IP is 1.0.0.0/8
ip address 1.1.1.2 255.0.0.0
keepalive 10
encap hdlc
clock rate 4000000
exit

!---------------------------- >>> Interface Serial 0/0/1

int ser0/0/1
no shutdown
descr =====>>> Router-C Network IP is 2.0.0.0/8
ip address 2.1.1.1 255.0.0.0
keepalive 10
encap hdlc
clock rate 4000000
exit

!---------------------------- >>> IP-Route in Router-B

ip route 10.4.0.0 255.255.128.0 ser0/0/0


ip route 10.4.0.0 255.255.128.0 ser0/0/1 5
ip route 10.5.0.0 255.255.128.0 ser0/0/1
ip route 10.5.0.0 255.255.128.0 ser0/0/0 5
ip route 3.0.0.0 255.0.0.0 ser0/0/0
ip route 3.0.0.0 255.0.0.0 ser0/0/1
do wr

-------------------------------- Router-C Config ----------------------------------

en
conf t
hostname C
clock timezone PST 5

!---------------------------- All BANNER-Configuration.

banner motd #
----------------------------- Hello! Wellcome-To-My_Topology ----------------------
==>>> Just Below User Access the Network.
1) admin
-----------------------------------------------------------------------------------
-#

banner login #
===>>> Just Valid User Login Now! ---
#
!-------------------------- Clear BANNER-Configuration.

!----------------->>>>>>>>>> User-Configuration.
username admin privilege 15 password cisco

enable secret sexit

!------------------------- Line Console 0- Configuration.

line cons 0
password sexit
login local
exit
do wr

!------------------------ Line VTY Configuration.

line vty 0 4
password CCNA
login local
exit
do wr

!-------------------------- >>> Interface FastEthernet0/0

int fa0/0
no shutdown
desc ====>>>> Router-C LAN Network.
ip address 10.5.0.1 255.255.128.0
do wr
exit

!---------------------------- >>> Interface Serial 0/0/0

int ser0/0/0
no shutdown
descr =====>>> Router-A Network IP is 3.0.0.0/8
ip address 3.1.1.1 255.0.0.0
keepalive 10
encap hdlc
clock rate 4000000
exit

!---------------------------- >>> Interface Serial 0/0/1

int ser0/0/1
no shutdown
descr =====>>> Router-B Network IP is 2.0.0.0/8
ip address 2.1.1.2 255.0.0.0
keepalive 10
encap hdlc
clock rate 4000000
exit

!---------------------------- >>> IP-Route in Router-C

ip route 10.4.0.0 255.255.128.0 ser0/0/1 5


ip route 10.4.0.0 255.255.128.0 ser0/0/0
ip route 10.4.128.0 255.255.128.0 ser0/0/1
ip route 10.4.128.0 255.255.128.0 ser0/0/0 5
ip route 1.0.0.0 255.0.0.0 ser0/0/0
ip route 1.0.0.0 255.0.0.0 ser0/0/1
do wr

You might also like