Download PNETLab Platform PNETLAB Store PNETLab.com 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 Download PNETLab Platform PNETLAB Store PNETLab.com Table information detail List Device Desktop-01 Desktop-02 Desktop-03 Interface Ethernet 1 Ethernet 1 Ethernet 1 Ethernet 0/0.10 R1 Ethernet 0/0.20 Ethernet 0/0.30 IP DHCP Client DHCP Client DHCP Client For VLAN 10 IP: 192.168.10.1 Subnet Mask: 255.255.255.0 For VLAN 20 IP: 192.168.20.1 Subnet Mask: 255.255.255.0 For VLAN 30 IP: 192.168.30.1 Subnet Mask: 255.255.255.0 Lab hand-on Step-by-step: Step 1: Start all Device Menu > Setup Nodes > Start all nodes 1|Page Download PNETLab Platform PNETLAB Store PNETLab.com Step 2: Verify status of devices, Device need have “Blue” color as picture 2|Page Download PNETLab Platform PNETLAB Store PNETLab.com >>>>> 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 Router> Router> enable Router# configuration terminal Router(config)# hostname R1 R1 (config)# banner motd # This is Router # R1 (config)# enable password cisco123enable R1 (config)# service password-encryption R1 (config)# line con 0 R1 (config-line)# password cisco R1 (config-line)# login R1 (config-line)# exit R1 (config)# line vty 0 4 R1 (config-line)# transport in all R1 (config-line)# password cisco123telnet R1 (config-line)# login R1 (config-line)# exit Detail // User mode // moving to Privilege mode // moving to global config // config hostname from Router to RX // config banner message of the day is “This is Router 1 // set password login from user mode to Privilege mode // request Router use service password encryption // configuration line console // set password login from console // apply password into line console // exit configuration line console // configuration line vty // set method access into router via line vty // set password login from live vty // apply password on line vty // exit configuration line vty Step 5: IP configuration for R1 R1 (config)# R1 (config)# interface eth0/0 R1 (config-if)# description #Connection to SW# R1 (config-if)# no shutdown R1 (config-if)# exit R1 (config)# interface eth0/0.10 // Privilege mode // configuration interface ethernet // Add a description on interface // active interface // exit configuration // configuration sub interface 3|Page Download PNETLab Platform PNETLAB Store PNETLab.com R1 (config-if)# description #Connection to VLAN 10# R1 (config-if)# encapsulation dot1Q 10 R1 (config-if)# ip address 192.168.10.1 255.255.255.0 R1 (config-if)# no shutdown R1 (config-if)# exit R1 (config)# interface eth0/0.20 R1 (config-if)# description #Connection to VLAN 20# R1 (config-if)# encapsulation dot1Q 20 R1 (config-if)# ip address 192.168.20.1 255.255.255.0 R1 (config-if)# no shutdown R1 (config-if)# exit R1 (config)# interface eth0/0.30 R1 (config-if)# description #Connection to VLAN 30# R1 (config-if)# encapsulation dot1Q 30 R1 (config-if)# ip address 192.168.30.1 255.255.255.0 R1 (config-if)# no shutdown R1 (config-if)# exit R1 (config)# write // Add a description on interface // Set Sub-interface working with VLAN10 // set ip address for interface // active interface // exit configuration // configuration sub interface // Add a description on interface // Set Sub-interface working with VLAN20 // set ip address for interface // active interface // exit configuration // configuration sub interface // Add a description on interface // Set Sub-interface working with VLAN30 // set ip address for interface // active interface // exit configuration // 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 Switch# Switch# configuration terminal Switch# vlan database // moving to Privilege mode // Privilege mode // moving to global config // moving to vlan database of switch 4|Page Download PNETLab Platform PNETLAB Store PNETLab.com Switch (vlan)# vlan 10 name VIP Switch (vlan)# vlan 20 name FIN Switch (vlan)# vlan 30 name HR Switch (vlan)# exit // add vlan 10 into vlan database // add vlan 20 into vlan database // add vlan 30 into vlan database // exit vlan mode Verify VLAN - type command “show vlan” Switch# Switch# configuration terminal Switch (config)# interface ethernet 0/0 Switch (config)# description #Connection to Router# Switch (config)# switchport trunk encapsulation dot1q Switch (config)# switchport mode trunk // Privilege mode // moving to global config // configuration interface ethernet // Add a description on interface // Set interface working with trunk Dot1Q // Set interface working with trunk mode Verify configuration of Interface Trunk - type command “show interface trunk” 5|Page Download PNETLab Platform PNETLAB Store PNETLab.com Switch (config)# interface ethernet 0/1 Switch (config-if)# description #Connection to VLAN10# Switch (config-if)# switchport mode access Switch (config-if)# switchport access vlan 10 Switch (config-if)# exit Switch (config)# Switch (config)# interface ethernet 0/2 Switch (config-if)# description #Connection to VLAN20# Switch (config-if)# switchport mode access Switch (config-if)# switchport access vlan 20 Switch (config-if)# exit Switch (config)# Switch (config)# interface ethernet 0/3 Switch (config-if)# description #Connection to VLAN30# Switch (config-if)# switchport mode access Switch (config-if)# switchport access vlan 30 Switch (config-if)# exit Switch (config)# // configuration interface ethernet // Add a description on interface // Set interface working with access mode // Set Vlan 10 into interface // exit config interface mode // configuration interface ethernet // Add a description on interface // Set interface working with access mode // Set Vlan 20 into interface // exit config interface mode // configuration interface ethernet // Add a description on interface // Set interface working with access mode // Set Vlan 30 into interface // exit config interface mode Verify VLAN port access - type command “show vlan” Step 8: DHCP configuration R1 (config)# R1 (config)# service dhcp R1 (config)# ip dhcp pool LAN-vlan10 // Privilege mode // enable DHCP Server for Routerip // configuration DHCP for vlan 10 6|Page Download PNETLab Platform PNETLAB Store PNETLab.com R1 (dhcp-config)# network 192.168.10.0 255.255.255.0 R1 (dhcp-config)# default-router 192.168.10.1 R1 (dhcp-config)# dns-server 8.8.8.8 R1 (dhcp-config)# exit R1 (config)# R1 (config)# service dhcp R1 (config)# ip dhcp pool LAN-vlan20 R1 (dhcp-config)# network 192.168.20.0 255.255.255.0 R1 (dhcp-config)# default-router 192.168.20.1 R1 (dhcp-config)# dns-server 8.8.8.8 R1 (dhcp-config)# exit R1 (config)# R1 (config)# service dhcp R1 (config)# ip dhcp pool LAN-vlan30 R1 (dhcp-config)# network 192.168.30.0 255.255.255.0 R1 (dhcp-config)# default-router 192.168.30.1 R1 (dhcp-config)# dns-server 8.8.8.8 R1 (dhcp-config)# exit R1 (config)# R1# write // set ip range for DHCP server // set default-gateway for clients // set DNS Server for clients // exit DHCP configuration mode // Privilege mode // enable DHCP Server for Routerip // configuration DHCP for vlan 20 // set ip range for DHCP server // set default-gateway for clients // set DNS Server for clients // exit DHCP configuration mode // Privilege mode // enable DHCP Server for Routerip // configuration DHCP for vlan 20 // set ip range for DHCP server // set default-gateway for clients // set DNS Server for clients // exit DHCP configuration mode // Privilege mode // Save running-config to startup-config 7|Page Download PNETLab Platform PNETLAB Store PNETLab.com >>>>> TestCase<<<<< Result: - Desktop have ip from Router 8|Page Download PNETLab Platform PNETLAB Store PNETLab.com - Desktop can ping success to Gateway 9|Page Download PNETLab Platform PNETLAB Store PNETLab.com - Check DHCP Server at Router with command “show ip dhcp binding” 10 | P a g e Download PNETLab Platform PNETLAB Store PNETLab.com DONE **** Goodluck **** 11 | P a g e