DCCN All Labs 2nd Year 1st Semester
DCCN All Labs 2nd Year 1st Semester
(There may be some mistakes, if there are any mistakes please send them to this email, [email protected])
In router, in CLI
Continue with configuration dialog? [Yes/no]: no
Privilege level
[In config mode]
Copy to nvram
Router # copy running-config startup-config
You can view many things by using show command in privilege mode
Router# show? [Type this, then you can see every commands related to show command]
Worksheet 2
1. Five classes
• Class A- 0-127
• Class B- 128-191
• Class C- 192-223
• Class D- 224-239
• Class E- 240-255
2.
Class A- 255.0.0.0
Class B- 255.255.0.0
Class C- 255.255.255.0
WAN
LAN
LAN
Password:
Router>enable
Password:
Router#configure terminal
Router (config) # interface fastEthernet 0/0
Router (config-if) #ip address 192.168.10.1 255.255.255.0
Router (config-if) #no shutdown
Default gateway
means the exiting
point. (From the
network)
Notes:………………………………………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………….……………………………………
…………………………………………………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………………………
Work Sheet 3
In here we have to make all configurations. The new thing is Static routing and dynamic routing. We will
see how to do configure it easily.
Static Routing
We will configure it, according to the worksheet diagram.
Router (config) #ip route <directly not connected network addresses> <subnet mask of that network>
<next hop ip address>
Default Routing
Notes:………………………………………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………….……………………………………
…………………………………………………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………………………
Worksheet 5
In here we use to route protocols. We have only RIP & IGRP.So let’s study…
RIP
IGRP
In here we have to use EIGRP because in packet tracer we can’t configure IGRP.
Worksheet 6
5. Previously mentioned
8 you can
Worksheet 8
VLAN
4. When we are starting to configure VLANs, we start from VLAN 2, because VLAN 1 is default VLAN
192.168.12.1
192.168.10.1
192.168.11.1
Switch Configuration
Switch#vlan database
Switch(vlan)#vlan 2 name V2
Switch(vlan)#vlan 3 name V3 Making VLANs
Switch(vlan)#vlan 4 name V4
Switch(vlan)#exit
Switch#configure terminal
Switch(config)#interface fastEthernet 0/6
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 2
Switch(config-if)#interface fastEthernet 0/7
Switch(config-if)#switchport mode access Assigning interfaces to VLANs
Switch(config-if)#switchport access vlan 2
Switch(config-if)#interface fastEthernet 0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 3
Switch(config-if)#interface fastEthernet 0/5
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 3
Switch(config-if)#interface fastEthernet 0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 4
Switch(config-if)#interface fastEthernet 0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 4
Switch(config-if)#end
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#end
Router Configurations
PC3
Notes:………………………………………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………….……………………………………
…………………………………………………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………………………………………………
………………………………………………………………………………………………………………………………………………………………
Worksheet 11
(Extended Access Control List) (Source ip, destination ip, protocol) (As close as possible to the
source)
192.168.10.0
192.168.30.
192.168.20.0
Router3 (config) #access-list 102 deny tcp host 192.168.20.1 host 192.168.30.2 eq ftp
Route2 (config) #access-list 102 permit tcp any any
Router2 (config) #interface fastEthernet 0/0
Router2 (config-if) #ip access-group 102 in
Router2 (config-if) #end if you want copy to NVRAM.