Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

DHCP Service of layer 3 switch of Cisco Packet Tracert

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report