Get the App
SLTechnology News&Howtos  ›  Network Security  › 

DHCP Service of layer 3 switch of Cisco Packet Tracert

Shulou Source: shulou.com Published: 2022-06-01 06:03:09 10月04日 Update

Experimental environment:

Experimental purpose:

1. Divide the layer 3 switch into VLAN100\ VLAN200, and divide FA0/1 and FA0/2 into VLAN100\ VLAN200 respectively.

2. Create the IP address pool of each VLAN on the layer 3 switch, and create the corresponding information of the gateway.

3. Check whether the corresponding IP information has been obtained on the client side.

The steps of the experiment:

1. Divide the layer 3 switch into VLAN100\ VLAN200, and divide FA0/1 and FA0/2 into VLAN100\ VLAN200 respectively.

Switch > enable

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch (config) # vlan 100

Switch (config-vlan) # exit

Switch (config) # vlan 200

Switch (config-vlan) # exit

Switch (config) # int vlan100

Switch (config-if) #

% LINK-5-CHANGED: Interface Vlan100, changed state to up

Switch (config-if) # ip add 192.168.100.254 255.255.255.0

Switch (config-if) # exit

Switch (config) # int vlan 200

Switch (config-if) #

% LINK-5-CHANGED: Interface Vlan200, changed state to up

Switch (config-if) # ip add 192.168.200.254 255.255.255.0

Switch (config-if) # exit

Switch (config) # int fa0/1

Switch (config-if) # switchport mode access Switch (config-if) # switchport access vlan 100

Switch (config-if) #

% LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state to up

Switch (config-if) # exit

Switch (config) # int fa0/2

Switch (config-if) # switchport mode access

Switch (config-if) # switchport access vlan 200

2. Create the IP address pool of each VLAN on the layer 3 switch, and create the corresponding information of the gateway.

Switch (config) # ip dhcp pool vlan100

Switch (dhcp-config) # network 192.168.100.0 255.255.255.0

Switch (dhcp-config) # default-router 192.168.100.254

Switch (dhcp-config) # exit

Switch (config) # ip dhcp pool vlan200

Switch (dhcp-config) # network 192.168.200.0255.255.255.0

Switch (dhcp-config) # default-router 192.168.200.254

Switch (dhcp-config) # exit

3. Check whether the corresponding IP information has been obtained on the client side.

Tags: Information lab switch address customer client gateway step environment purpose service Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Linux Huawei MySQL MariaDB