Cisco's DHCP and VLAN comprehensive experiment content details, ciscovlan

Source: Internet
Author: User

Cisco's DHCP and VLAN comprehensive experiment content details, ciscovlan

Cisco DHCP and VLAN comprehensive experiment

Lab content:

The IP addresses of PC1 and PC2 must be obtained through the DHCP Server. R1 performs single-arm routing and DHCP Relay. The IP address of f2/0 on the R2 interface is 192.168.3.1. PC1 belongs to vlan10, PC2 belongs to vlan20, and R3 (DHCP Server) belongs to VLAN30.

PC1 belongs to the 192.168.1.0 network segment, the gateway is 192.168.1.254 PC2 belongs to the 192.168.2.0 network segment, and the gateway is 192.168.2.254

Lab extension diagram:

Tutorial ideas:

Configure vlan 10, 20, 30 on S1 and e0/2 as the trunk Port

On R1. Each sub-interface must specify the encapsulation mode and IP address of the DHCP Server.

Configure the default route to the host on the DHCP Server

Experiment Configuration:

S1 (config) # vlan10S1 (config-vlan) # vlan20S1 (config-vlan) # vlan30S1 (config-vlan) # check whether a created and active vlan is S1 (config) # interfaceethernet0/0S1 (config-if) # switchportaccessvlan10S1 (config-if) # intere0/1S1 (config-if) # swiaccvlan20S1 (config-if) # intere0/3S1 (config-if) # swiacvlan30S1 (config-if) # intere0/2S1 (config-if) # switchporttrunkencapsulationdot1qS1 (config-if) # switchportmodetrunkS1 (config-if) # doshowintere0/2switchport check whether port 0/2 is trunk port R1 (config) # interfacefastEthernet0/0.1R1 (config-subif) # encapsulationdot1Q10R1 (config-subif) # configure (config-subif) # iphelper-address192.168.3.1R1 (config) # interfacefastEthernet0/0.2R1 (config-subif) # encapsulationdot1Q20R1 (config-subif) # ipadd192.168.2.251_5.20.255.0r1 (config-subif) # iphelper-address192.168.3.1R1 (config) # interfacefa0/0.3R1 (config-subif) # encapsulationdot1Q30R1 (config-subif) # configure (config-subif) # interfa0/0R1 (config-if) # noshutdownR2 (config) # ipdhcpexcluded-address192.168.1.200192.168.1.255R2 (config) # ipdhcpexcluded-address192.168.2.200192.168.2.255R2 (config) # ipdhcppoolpc1R2 (dhcp-config) # network192.168.1.01_255.255.0r2 (dhcp-config) # default-router192.168.1.254R2 (dhcp-config) # dns-server8.8.8.8R2 (dhcp-config) # lease234R2 (config) # ipdhcppoolpc2R2 (dhcp-config) # network192.168.2.0255.255.255.0R2 (dhcp-config) # default-router192.168.2.254R2 (dhcp-config) # dns-server8.8.8.8R2 (dhcp-config) # lease234R2 (config) # iproute0.0.0.00.0.0.0192.168.3.254R2 (config) # interfa2/0R2 (config-if) # ipadd192.168.3.1255.255.255.0R2 (config-if) # nosh

Lab Verification:

No IP address for start PC1

PC1 uses the DCHP request IP Address

PC1 successfully requests an IP address.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.