2020
LAB: Inter-VLAN & DHCP
Lab Inter-VLAN - DHCP – CCNA
LAB – Configuration Static Router with AD
* Topology:
Objectives
- Build the network and configuration basic Cisco Router
- Configuration Gateway for all vlan at Router
- Configuration Trunking / Access at Switch Layer02
1|Page
Lab Inter-VLAN - DHCP – CCNA
Table information detail
List Device Interface IP
Desktop-01 Ethernet 1 DHCP Client
Desktop-02 Ethernet 1 DHCP Client
Desktop-03 Ethernet 1 DHCP Client
For VLAN 10
Ethernet 0/0.10 IP: [Link]
Subnet Mask: [Link]
For VLAN 20
R1 Ethernet 0/0.20 IP: [Link]
Subnet Mask: [Link]
For VLAN 30
Ethernet 0/0.30 IP: [Link]
Subnet Mask: [Link]
Lab hand-on Step-by-step:
Step 1: Start all Device
2|Page
Lab Inter-VLAN - DHCP – CCNA
Step 2: Verify status of devices, Device need have “Blue” color as picture
3|Page
Lab Inter-VLAN - DHCP – CCNA
>>>>> Configuration Router <<<<<
Step 3: because first setup, so Router Cisco question to you about initial configuration dialog. You should
be type “no” bypass this step.
Step 4: You must be basic configuration for Router as following:
Command Detail
Router> // User mode
Router> enable // moving to Privilege mode
Router# configuration terminal // moving to global config
Router(config)# hostname R1 // config hostname from Router to RX
R1 (config)# banner motd # // config banner message of the day is “This is
This is Router # Router 1
R1 (config)# enable password cisco123enable // set password login from user mode to Privilege
mode
R1 (config)# service password-encryption // request Router use service password encryption
R1 (config)# line con 0 // configuration line console
R1 (config-line)# password cisco // set password login from console
R1 (config-line)# login // apply password into line console
R1 (config-line)# exit // exit configuration line console
R1 (config)# line vty 0 4 // configuration line vty
R1 (config-line)# transport in all // set method access into router via line vty
R1 (config-line)# password cisco123telnet // set password login from live vty
R1 (config-line)# login // apply password on line vty
R1 (config-line)# exit // exit configuration line vty
Step 5: IP configuration for R1
R1 (config)# // Privilege mode
R1 (config)# interface eth0/0 // configuration interface ethernet
R1 (config-if)# description #Connection to SW# // Add a description on interface
R1 (config-if)# no shutdown // active interface
R1 (config-if)# exit // exit configuration
R1 (config)# interface eth0/0.10 // configuration sub interface
R1 (config-if)# description #Connection to // Add a description on interface
VLAN 10#
R1 (config-if)# encapsulation dot1Q 10 // Set Sub-interface working with VLAN10
R1 (config-if)# ip address [Link] // set ip address for interface
[Link]
R1 (config-if)# no shutdown // active interface
R1 (config-if)# exit // exit configuration
4|Page
Lab Inter-VLAN - DHCP – CCNA
R1 (config)# interface eth0/0.20 // configuration sub interface
R1 (config-if)# description #Connection to // Add a description on interface
VLAN 20#
R1 (config-if)# encapsulation dot1Q 20 // Set Sub-interface working with VLAN20
R1 (config-if)# ip address [Link] // set ip address for interface
[Link]
R1 (config-if)# no shutdown // active interface
R1 (config-if)# exit // exit configuration
R1 (config)# interface eth0/0.30 // configuration sub interface
R1 (config-if)# description #Connection to // Add a description on interface
VLAN 30#
R1 (config-if)# encapsulation dot1Q 30 // Set Sub-interface working with VLAN30
R1 (config-if)# ip address [Link] // set ip address for interface
[Link]
R1 (config-if)# no shutdown // active interface
R1 (config-if)# exit // exit configuration
R1 (config)# write // Save running-config to startup-config
Step 6: Verify configuration of Interface
- type command “show ip int brief” and enter
Step 7: Configuration for Switch:
Switch> enable // moving to Privilege mode
Switch# // Privilege mode
Switch# configuration terminal // moving to global config
Switch# vlan database // moving to vlan database of switch
Switch (vlan)# vlan 10 name VIP // add vlan 10 into vlan database
Switch (vlan)# vlan 20 name FIN // add vlan 20 into vlan database
Switch (vlan)# vlan 30 name HR // add vlan 30 into vlan database
Switch (vlan)# exit // exit vlan mode
5|Page
Lab Inter-VLAN - DHCP – CCNA
Verify VLAN
- type command “show vlan”
Switch# // Privilege mode
Switch# configuration terminal // moving to global config
Switch (config)# interface ethernet 0/0 // configuration interface ethernet
Switch (config)# description #Connection to // Add a description on interface
Router#
Switch (config)# switchport trunk // Set interface working with trunk Dot1Q
encapsulation dot1q
Switch (config)# switchport mode trunk // Set interface working with trunk mode
Verify configuration of Interface Trunk
- type command “show interface trunk”
Switch (config)# interface ethernet 0/1 // configuration interface ethernet
Switch (config-if)# description #Connection to // Add a description on interface
VLAN10#
Switch (config-if)# switchport mode access // Set interface working with access mode
Switch (config-if)# switchport access vlan 10 // Set Vlan 10 into interface
Switch (config-if)# exit // exit config interface mode
Switch (config)#
Switch (config)# interface ethernet 0/2 // configuration interface ethernet
Switch (config-if)# description #Connection to // Add a description on interface
VLAN20#
Switch (config-if)# switchport mode access // Set interface working with access mode
6|Page
Lab Inter-VLAN - DHCP – CCNA
Switch (config-if)# switchport access vlan 20 // Set Vlan 20 into interface
Switch (config-if)# exit // exit config interface mode
Switch (config)#
Switch (config)# interface ethernet 0/3 // configuration interface ethernet
Switch (config-if)# description #Connection to // Add a description on interface
VLAN30#
Switch (config-if)# switchport mode access // Set interface working with access mode
Switch (config-if)# switchport access vlan 30 // Set Vlan 30 into interface
Switch (config-if)# exit // exit config interface mode
Switch (config)#
Verify VLAN port access
- type command “show vlan”
Step 8: DHCP configuration
R1 (config)# // Privilege mode
R1 (config)# service dhcp // enable DHCP Server for Routerip
R1 (config)# ip dhcp pool LAN-vlan10 // configuration DHCP for vlan 10
R1 (dhcp-config)# network [Link] // set ip range for DHCP server
[Link]
R1 (dhcp-config)# default-router [Link] // set default-gateway for clients
R1 (dhcp-config)# dns-server [Link] // set DNS Server for clients
R1 (dhcp-config)# exit // exit DHCP configuration mode
R1 (config)# // Privilege mode
R1 (config)# service dhcp // enable DHCP Server for Routerip
R1 (config)# ip dhcp pool LAN-vlan20 // configuration DHCP for vlan 20
R1 (dhcp-config)# network [Link] // set ip range for DHCP server
[Link]
R1 (dhcp-config)# default-router [Link] // set default-gateway for clients
R1 (dhcp-config)# dns-server [Link] // set DNS Server for clients
R1 (dhcp-config)# exit // exit DHCP configuration mode
R1 (config)# // Privilege mode
R1 (config)# service dhcp // enable DHCP Server for Routerip
R1 (config)# ip dhcp pool LAN-vlan30 // configuration DHCP for vlan 20
7|Page
Lab Inter-VLAN - DHCP – CCNA
R1 (dhcp-config)# network [Link] // set ip range for DHCP server
[Link]
R1 (dhcp-config)# default-router [Link] // set default-gateway for clients
R1 (dhcp-config)# dns-server [Link] // set DNS Server for clients
R1 (dhcp-config)# exit // exit DHCP configuration mode
R1 (config)# // Privilege mode
R1# write // Save running-config to startup-config
>>>>> TestCase<<<<<
Result:
- Desktop have ip from Router
8|Page
Lab Inter-VLAN - DHCP – CCNA
- Desktop can ping success to Gateway
9|Page
Lab Inter-VLAN - DHCP – CCNA
10 | P a g e
Lab Inter-VLAN - DHCP – CCNA
- Check DHCP Server at Router with command “show ip dhcp binding”
DONE
**** Goodluck ****
11 | P a g e