0% found this document useful (0 votes)
215 views11 pages

Cisco LAB

The document contains configurations and commands for several router and switch labs including: 1. Configuring router interfaces, including IP addresses and descriptions. 2. Configuring static routes on multiple routers to connect different subnets. 3. Configuring RIPv2 on routers to dynamically share routing information. 4. Configuring a DHCP server to assign IP addresses to client devices. 5. Creating VLANs on a switch and assigning switch ports to the VLANs. 6. Configuring and verifying Cisco Discovery Protocol (CDP) on routers and disabling it on specific ports.

Uploaded by

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

Cisco LAB

The document contains configurations and commands for several router and switch labs including: 1. Configuring router interfaces, including IP addresses and descriptions. 2. Configuring static routes on multiple routers to connect different subnets. 3. Configuring RIPv2 on routers to dynamically share routing information. 4. Configuring a DHCP server to assign IP addresses to client devices. 5. Creating VLANs on a switch and assigning switch ports to the VLANs. 6. Configuring and verifying Cisco Discovery Protocol (CDP) on routers and disabling it on specific ports.

Uploaded by

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

LAB – Configuring Router Interface

R1 Configuration
#configure terminal
(config)#interface fa/01
(config-if)#ip address 192.168.1.1 255.255.255.0
(config-if)# no shutdown

#configure terminal
(config-if)#interface fa0/1
(config-if)#duplex auto
(config-if)#speed 100
(config-if)#description LAN

Verifying

#show running-config
#show ip interface brief

#show interface fa0/1


LAB : Static Route Configuration

R1 Configuration

(config)#interface fa0/0
(config-if)#ip address 10.1.1.1 255.255.255.0
(config-if)#no shutdown

(config-if)#interface fa0/1
(config-if)#ip address 192.168.1.1 255.255.255.0
(config-if)#no shutdown

#ip route 10.1.2.0 255.255.255.0 10.1.1.2


#ip route 192.168.2.0 255.255.255.0 10.1.1.2
#ip route 192.168.3.0 255.255.255.0 10.1.1.2

R2 Configuration

(config)#interface fa0/0
(config-if)#ip address 10.1.1.2 255.255.255.0
(config-if)#no shutdown

(config)#interface fa0/1
(config-if)#ip address 192.168.2.1 255.255.255.0
(config-if)#no shutdown

(config)#interface fa0/2
(config-if)#ip address 10.1.2.1 255.255.255.0
(config-if)#no shutdown

#ip route 192.168.1.0 255.255.255.0 10.1.1.1


#ip route 192.168.3.0 255.255.255.0 10.1.2.2
R3 Configuration

(config)#interface fa0/0
(config-if)#ip address 10.1.2.2 255.255.255.0
(config-if)#no shutdown

(config)#interface fa0/1
(config-if)#ip address 192.168.3.1 255.255.255.0
(config-if)#no shutdown

#ip route 10.1.1.0 255.255.255.0 10.1.2.1


#ip route 192.168.1.0 255.255.255.0 10.1.2.1
#ip route 192.168.2.0 255.255.255.0 10.1.2.1

Verifying

#show ip route

#show ip route static

#ping command
LAB : RIPv2 Route Configuration

R1 Configuration
(config)#interface fa0/0
(config-if)#ip address 10.1.1.1 255.255.255.0
(config-if)#no shutdown

(config-if)#interface fa0/1
(config-if)#ip address 192.168.1.1 255.255.255.0
(config-if)#no shutdown

(config)#router rip
(config-router)#version 2
(config-router)#network 192.168.1.0
(config-router)#network 10.1.1.0
(config-router)#end

R2 Configuration
(config)#interface fa0/0
(config-if)#ip address 10.1.1.2 255.255.255.0
(config-if)#no shutdown

(config)#interface fa0/1
(config-if)#ip address 192.168.2.1 255.255.255.0
(config-if)#no shutdown

(config)#interface fa0/2
(config-if)#ip address 10.1.2.1 255.255.255.0
(config-if)#no shutdown

(config)#router rip
(config-router)#version 2
(config-router)#network 192.168.2.0
(config-router)#network 10.1.1.0
(config-router)#network 10.1.2.0
(config-router)#end
R3 Configuration

(config)#interface fa0/0
(config-if)#ip address 10.1.2.2 255.255.255.0
(config-if)#no shutdown

(config)#interface fa0/1
(config-if)#ip address 192.168.3.1 255.255.255.0
(config-if)#no shutdown

(config)#router rip
(config-router)#version 2
(config-router)#network 192.168.3.0
(config-router)#network 10.1.2.0
(config-router)#end

Verifying
#show ip route

#show ip protocol
#show ip rip database
LAB: DHCP Server Configuration

R1 Configuration
#hostname DHCP-Server
(config)#interface fa0/0
(config-if)#ip address 192.168.1.1 255.255.255.0
(config-if)#no shutdown

DHCP Server Configuration


#ip dhcp pool mydhcp
(config-dhcp)#network 192.168.1.0 255.255.255.0
(config-dhcp)#default-router 192.168.1.1
(config-dhcp)#dns-server 192.168.1.2
(config-dhcp)#exit

Assign Exclude IP
#ip dhcp excluded-address 192.168.1.1 192.168.1.2
(config-dhcp)#exit

Verifying
#show ip dhcp binding
LAB : Simple VLAN on Switch

(config)#vlan 50
(config-vlan)#name Student
(config-vlan)#vlan 100
(config-vlan)#name Management
(config-vlan)#exit

(config)#interface fa0/1
(config-if)#switchport mode access
(config-if)#switchport access vlan 50
(config-if)#end
(config)#interface fa0/2
(config-if)#switchport mode access
(config-if)#switchport access valn 100
(config-if)#end

Verifying
#show vlan

#show running-config
LAB : Cisco Discovery Protocol (CDP)

R1 configuration
(config)#interface giga0/0
(config-if)#no shutdown
(config)#interface giga0/1
(config-if)#no shutdown

R2 Configuration
(config)#interface giga0/0
(config-if)#no shutdown
(config)#interface giga0/1
(config-if)#no shutdown
(config)#interface giga0/2
(config-if)#no shutdown

Verifying (R1)
#show cdp

#show cdp neighbors


Disable CDP (R2)

R2 Configuration
(config)#no cdp run

Verifying (R1)

#show cdp neighbors

#show cdp detail

Disable CDP on port

(config)#interface giga0/0
(config-if)#no cdp enable

Enable CDP (R2)

(config)#cdp run

Enable CDP on port

(config)#interface giga0/0
(config-if)#cdp enable

Verifying (R1)

#show cdp neighbors


#show cdp detail

You might also like