Lab Environment:
650) this.width=650; "alt=" Cisco Packet Tracert three-tier switching DHCP service-Ibm.chick-mingkang.zhou "src=" Http://img0.ph.126.net/tag 7vac5pybsnfocl_bnga==/6630314600233973070.png "style=" border:0px;height:auto;margin:0px 10px 0px 0px; "/>
Experimental Purpose:
1, in the three-layer switch division vlan100\vlan200, and the FA0/1 and FA0/2 respectively divided into VLAN100 \vlan200.
2. Create a pool of IP addresses for each VLAN on the three-layer switch and create the appropriate information for the gateway.
3. Check whether the client has obtained the corresponding IP information.
Experimental steps:
1, in the three-layer switch division vlan100\vlan200, and the FA0/1 and FA0/2 respectively divided into VLAN100 \vlan200.
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
Switch (config-if) #exit
Switch (config) #int FA0/2
Switch (config-if) #switchport mode access
Switch (config-if) #switchport access VLAN 200
2. Create a pool of IP addresses for each VLAN on the three-layer switch and create the appropriate information for 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.0 255.255.255.0
Switch (dhcp-config) #default-router 192.168.200.254
Switch (Dhcp-config) #exit
3. Check whether the client has obtained the corresponding IP information.
650) this.width=650; "alt=" Cisco Packet Tracert three-tier switching DHCP service-Ibm.chick-mingkang.zhou "src=" Http://img0.ph.126.net/lGK Nuw2gqwypdcs2zdcwia==/6630797285838741528.jpg "style=" border:0px;height:auto;margin:0px 10px 0px 0px; "/>
Cisco Packet Tracert's three-tier switch DHCP service