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

NetLap L7 1

The document provides configuration details for switches, routers, and DHCP servers to set up a network. Switch configurations include hostname, passwords, IP addresses and default gateways. Router configurations include similar elements along with routing protocols, ACLs and DHCP pool configuration. The network design is tested after configuration of all devices.

Uploaded by

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

NetLap L7 1

The document provides configuration details for switches, routers, and DHCP servers to set up a network. Switch configurations include hostname, passwords, IP addresses and default gateways. Router configurations include similar elements along with routing protocols, ACLs and DHCP pool configuration. The network design is tested after configuration of all devices.

Uploaded by

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

IBB University Department of Electrical Engineering

Level: 4
Faculty of Engineering
Networks Lab

WEB & DNS Configuration


&
Network Design
Lect 7
WEB & DNS Server Configuration

Eng. Abeer Mohammed 2


 Design Network & configuration

The configuration to switch SW-0


Switch>enable
Switch# configure terminal
Switch(config)#hostname SW-0
SW-0(config)#enable secret 1234net
SW-0(config)#line console 0
SW-0(config-line)#password 1234
SW-0(config-line)#login
SW-0(config-line)#end

SW-0# configure terminal


SW-0(config)#line vty 0 15
SW-0(config-line)#password 246
SW-0(config-line)#login
SW-0(config-line)#exit
SW-0(config)#service password-encryption
SW-0(config)#exit

Eng. Abeer Mohammed 3


SW-0# configure terminal
SW-0(config)# interface vlan1
SW-0(config-if)# ip address 192.168.2.2 255.255.255.0
SW-0(config-if)#no shutdown
SW-0(config-if)#exit
SW-0(config)# ip default-gateway 192.168.2.1
SW-0#copy running-config startup-config

The configuration to server DHCP

The configuration to switch SW-1


Switch> enable
Switch# configure terminal
Switch(config)#hostname SW-1
SW-1(config)#enable secret 1234net
SW-1(config)#line console 0
SW-1(config-line)#password 1234
SW-1(config-line)#login
SW-1(config-line)#end
SW-1# configure terminal
SW-1(config)#line vty 0 15
SW-1(config-line)#password 246

Eng. Abeer Mohammed 4


SW-1(config-line)#login
SW-1(config-line)#end
SW-1#conf t
SW-1(config)#service password-encryption
SW-1(config)#exit
SW-1# configure terminal
SW-1(config)# interface vlan1
SW-1(config-if)# interface 192.168.1.2 255.255.255.0
SW-1(config-if)# no shutdown
SW-1(config-if)#end
SW-1#copy running-config startup-config

The configuration to switch SW-2


Switch> enable
Switch# configure terminal
Switch(config)#hostname SW-2
SW-2(config)#enable secret 1234net
SW-2(config)#line console 0
SW-2(config-line)#password 1234
SW-2(config-line)#login
SW-2(config-line)#end

SW-2# configure terminal


SW-2(config)#line vty 0 15
SW-2(config-line)#password 246
SW-2(config-line)#login
SW-2(config-line)#end

SW-2# configure terminal


SW-2(config)#service password-encryption
SW-2(config)#interface range fastEthernet 0/1-24
SW-2(config-if-range)#switchport mode access
SW-2(config-if-range)#exit
Eng. Abeer Mohammed 5
SW-2(config)#spanning-tree portfast default
SW-2(config)#end
SW-2#write

The configuration to router R1


Router>enable
Router#clock set 6:15:00 10 Oct 2023
Router# configure terminal
Router(config)#hostname R1
R1(config)#banner motd % ***************** Only for Autharized ************%
R1(config)#enable secret college
R1(config)#service password-encryption
R1(config)#security passwords min-length 10
R1(config)#login block-for 249 attempts 4 within 120
R1(config)#no ip domain-lookup

R1(config)#line console 0
R1(config-line)#password 1234@NetLap
R1(config-line)#login
R1(config-line)#exec-timeout 5 30
R1(config-line)#logging synchronous
R1(config-line)#exit

R1(config)#username university privilege 15 password Network@1234


R1(config)#ip domain-name engineer.com
R1(config)#crypto key generate rsa
How many bits in the modulus [512]: 1024
R1(config)#line vty 0 5
R1(config-line)#transport input ssh
R1(config-line)#exec-timeout 5
R1(config-line)#logging synchronous
R1(config-line)#login local
R1(config-line)#exit

Eng. Abeer Mohammed 6


R1(config)#interface gig0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#description linked-to-LAN
R1(config-if)#no shutdown
R1(config-if)#exit

R1(config)#interface s0/0/0
R1(config-if)#ip address 200.1.1.1 255.255.255.252
R1(config-if)#description linked-to-R1
R1(config-if)#no shutdown

Configure DHCP in router R1

R1#configure terminal
R1(config)#ip dhcp pool NetworkA
R1(dhcp-config)#network 192.168.1.0 255.255.255.0
R1(dhcp-config)#default-router 192.168.1.1
R1(dhcp-config)#dns-server 8.8.8.8
R1(dhcp-config)#exit
R1(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.10
R1(config)#exit

The configuration static route to router R1

R1(config)#ip route 192.168.2.0 255.255.255.0 s0/0/0


OR
R1(config)#ip route 192.168.2.0 255.255.255.0 200.1.1.2

The configuration RIP route to router R1


R1(config)# router rip
R1 (config-router)# network 192.168.1.0
R1 (config-router)# network 200.1.1.0
R1 (config-router)# end
R1#show ip route
R1#write

Eng. Abeer Mohammed 7


The configuration to router R2

Router>enable
Router#clock sat 6:20:00 10 Oct 2023
Router#conf t
Router(config)#hostname R2
R2(config)#banner motd % ***************** Only for Autharized ************%
R2(config)#enable secret college
R2(config)#service password-encryption
R2(config)#security passwords min-length 10
R2(config)#login block-for 249 attempts 4 within 120
R2(config)#line console 0
R2(config-line)#password 2468@NetLap
R2(config-line)#login
R2(config-line)#exec-timeout 5 30
R2(config-line)#logging synchronous
R2(config-line)#exit

R2(config)#username university privilege 15 password NetLap@7531


R2(config)#ip domain-name engineer.com
R2(config)#crypto key generate rsa
How many bits in the modulus [512]: 1024
R2(config)#line vty 0 5
R2(config-line)#transport input ssh
R2(config-line)#exec-timeout 5
R2(config-line)#logging synchronous
R2(config-line)#login local
R2(config-line)#exit

R2(config)#interface gig0/0
R2(config-if)#ip address 192.168.2.1 255.255.255.0
R2(config-if)#description linked-to-LAN
R2(config-if)#no shutdown
R2(config-if)#ex

Eng. Abeer Mohammed 8


R2(config)#interface s0/0/0
R2(config-if)#ip add 200.1.1.2 255.255.255.252
R2(config-if)#description linked-to-R1
R2(config-if)#no shut

The configuration static route to router R2

R2# configure terminal


R2(config)#ip route 192.168.1.0 255.255.255.0 s0/0/0
OR
R2(config)#ip route 192.168.1.0 255.255.255.0 200.1.1.1

The configuration RIP route to router R2


R2(config)# router rip
R2 (config-router)# network 192.168.2.0
R2 (config-router)# network 200.1.1.0
R2 (config-router)# end

R2#show ip route
R2#show ip route connected
R2#show ip route static
R2#copy running-config startup-config

 Testing Network

Eng. Abeer Mohammed 9

You might also like