Skip to content

Latest commit

 

History

History
88 lines (86 loc) · 2.54 KB

LAB 002.md

File metadata and controls

88 lines (86 loc) · 2.54 KB

BASIC IP NETWORK

This lab has two parts. Part 1 covers manual IP configuration and Part 2 covers automatic IP configuration or DHCP.

Manual IP configuration (PART 1)

0. Log into Router

Router>enable    
Router#configure terminal    
Router(config)#

1. Rename router

Router(config)#hostname R1
R1(config)#

2. Configure Interface with IP address (192.168.1.1 | 255.255.255.0)

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

3. Log into switch

Switch>enable    
Switch#configure terminal    
Switch(config)#

4. Rename switch

Switch(config)#hostname S1
S1(config)#

5. Configure the SVI with IP address (192.168.1.2 | 255.255.255.0) and the default gateway

  • 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

6. PC manual IP configuration

  • 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

Automatic IP configuration or DHCP (PART 2)

0. Log into Router

R1>enable    
R1#configure terminal    
R1(config)#

1. Configure DHCP SERVER

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

2. PC or DHCP-CLIENT configuration

  • 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.