This lab has two parts. Part 1 covers manual IP configuration and Part 2 covers automatic IP configuration or DHCP.
Router>enable
Router#configure terminal
Router(config)#
Router(config)#hostname R1
R1(config)#
R1(config)#interface GigabitEthernet0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#end
R1#copy running-config startup-config
Switch>enable
Switch#configure terminal
Switch(config)#
Switch(config)#hostname S1
S1(config)#
- Configuring SVI
S1(config)#interface vlan1
S1(config-if)#ip address 192.168.1.2 255.255.255.0
S1(config-if)#no shutdown
S1(config-if)#exit
S1(config)#
- Configuring the default router
S1(config)#ip default-gateway 192.168.1.1
S1(config)#exit
S1#copy running-config startup-config
- double-click on PC (& Server)
- select the Desktop Tab
- select IP Configuration
- Fill in the "IP address, Subnet mask & default gateway fields" where
DEVICE | IP ADDRESS | SUBNET MASK | DEFAULT-GATEWAY |
---|---|---|---|
PC-0 | 192.168.1.11 | 255.255.255.0 | 192.168.1.1 |
PC-1 | 192.168.1.12 | 255.255.255.0 | 192.168.1.1 |
PC-2 | 192.168.1.13 | 255.255.255.0 | 192.168.1.1 |
SERVER-0 | 192.168.1.3 | 255.255.255.0 | 192.168.1.1 |
R1>enable
R1#configure terminal
R1(config)#
R1>enable
R1#configure terminal
R1(config)#ip dhcp excluded-address 192.168.1.1 192.168.1.10
R1(dhcp-config)#ip dhcp pool LAN-POOL
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 192.168.1.1
R1(dhcp-config)#domain-name internship.com
R1(dhcp-config)#end
R1#copy running-config startup-config
- double-click on PC
- select the Desktop Tab
- select IP Configuration
- Check the "DHCP" radio button
- Ensure you have a "DHCP request successful" message.
- Otherwise keep checking the "DHCP" and the "Static" radio button.