You are on page 1of 11

Server Configuration

IP Address 192.168.1.1
Subnet 255.255.255.0
Gateway 192.168.1.1
DNS 8.8.8.8
PC1- Configuration
IP Address 192.168.1.2
Subnet 255.255.255.0
Gateway 192.168.1.1
DNS 8.8.8.8
PC2- Configuration
IP Address 192.168.1.3
Subnet 255.255.255.0
Gateway 192.168.1.1
DNS 8.8.8.8
PC> ping 192.168.1.1
Router> enable
Router#config ter
Router(config)#interface gigabitEthernet 0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#ip dhcp pool NetA
Router(dhcp-config)#network 192.168.1.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.1.1
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#exit
Router(config)#ip dhcp excluded-address 192.168.1.1
Router(config)#ip dhcp excluded-address 192.168.1.2
Router(config)#exit
Router#copy running-config startup-config
Switch>en
Switch>enable
Switch#config ter
EnteSwitch(config)#hostname SL3
SL3(config)#vlan 2
SL3(config-vlan)#name DHCP
SL3(config-vlan)#exit
SL3(config)#interface vlan 2
SL3(config-if)#ip address 192.168.10.1 255.255.255.0
SL3(config-if)#no shutdown
SL3(config)#exit
SL3# show vlan
SL3#config t
SL3(config)#interface fastEthernet 0/1
SL3(config-if)#switchport access vlan 2
SL3(config)#exit
SL3# show vlan brief
SL3#config t
SL3(config)# ip dhcp pool Netw10
SL3(dhcp-config)# network 192.168.10.1 255.255.255.0
SL3(dhcp-config)# default-router 192.168.10.1
SL3(dhcp-config)# dns-server 8.8.8.8
SL3(dhcp-config)#exit
SL3(config)#exit

You might also like