Comprehensive experiment of Dhcp+vlan multi-Net section

Source: Internet
Author: User

The topology diagram is as follows:

650) this.width=650; "title=" psb.jpg "alt=" wkiom1s_u6szej9kaaeliygzxmg437.jpg "src=" http://s3.51cto.com/wyfs02/M00 /58/e1/wkiom1s_u6szej9kaaeliygzxmg437.jpg "/>

The   device is configured as follows:  sw:sw#sh runbuilding configuration ... current configuration : 1538 bytes!version 12.2no service timestamps  Log datetime msecno service timestamps debug datetime msecno service  password-encryption!hostname switch!!!!! Ip routing!!!!!!!!!! SPANNING-TREE MODE PVST!!!! interface fastethernet0/1 switchport trunk encapsulation dot1q switchport  mode trunk!interface fastethernet0/2 switchport trunk encapsulation dot1q  Switchport mode trunk!interface fastethernet0/3 switchport trunk encapsulation  dot1q switchport mode trunk!interface fastethernet0/4 switchport trunk  encapsulation dot1q switchport mode trunk!interface fastethernet0/5!interface  fastethernet0/6!interface fastethernet0/7!interface&nBsp Fastethernet0/8!interface fastethernet0/9!interface fastethernet0/10!interface fastethernet0/11 !interface fastethernet0/12!interface fastethernet0/13!interface fastethernet0/14!interface  FastEthernet0/15!interface FastEthernet0/16!interface FastEthernet0/17!interface  fastethernet0/18!interface fastethernet0/19!interface fastethernet0/20!interface fastethernet0/ 21!interface fastethernet0/22!interface fastethernet0/23!interface fastethernet0/24!interface  GigabitEthernet0/1!interface GigabitEthernet0/2!interface Vlan1 ip address  192.168.0.254 255.255.255.0!interface vlan10 ip address 192.168.10.254  255.255.255.0 ip helper-address 192.168.0.20!interface vlan20 ip address  192.168.20.254 255.255.255.0 ip helper-address 192.168.0.20!ip classless!!!!!!! Line con 0!line aux 0!line vty 0 4 login!!! endsw# -------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------sw1: sw1#show run  Building configuration ... current configuration : 1809 bytes!version 12.1no service timestamps  Log datetime msecno service timestamps debug datetime msecno service  password-encryption!hostname sw1!! spanning-tree mode pvst!interface fastethernet0/1 switchport mode trunk! Interface fastethernet0/2 switchport access vlan 10!interface fastethernet0/3  switchport access vlan 10!interface fastethernet0/4 switchport access  vlan 10!interface fastethernet0/5 switchport access vlan 10!interface  fastethernet0/6 switchpOrt access vlan 10!interface fastethernet0/7 switchport access vlan 10 !interface fastethernet0/8 switchport access vlan 10!interface fastethernet0/9  switchport access vlan 10!interface fastethernet0/10 switchport access  vlan 10!interface fastethernet0/11 switchport access vlan 10!interface  FastEthernet0/12 switchport access vlan 10!interface FastEthernet0/13  Switchport access vlan 20!interface fastethernet0/14 switchport access vlan  20!interface FastEthernet0/15 switchport access vlan 20!interface  Fastethernet0/16 switchport access vlan 20!interface fastethernet0/17 switchport  access vlan 20!interface fastethernet0/18 switchport access vlan 20! Interface fastethernet0/19 switchport access vlan 20!interface fastethernet0/20 switchport access  vlan 20!interface fastethernet0/21 switchport access vlan 20!interface  Fastethernet0/22 switchport access vlan 20!interface fastethernet0/23 switchport  access vlan 20!interface fastethernet0/24 switchport access vlan 20! interface gigabitethernet1/1!interface gigabitethernet1/2!interface vlan1 no ip  address!interface vlan10 no ip address!interface vlan20 no ip address!! line con 0!line vty 0 4 loginline vty 5 15 login!! endsw1#-------------------------------------------------------------------------------------------------------- --------------------------------------------------------------- SW2: SW2#SH RUNBuilding  Configuration ... Current configuration : 1742 bytes!version 12.1no service timestamps log  datetime msecno service timestamps debug datetime msecno service  password-encryption!hostname sw2!! spanning-tree mode pvst!interface fastethernet0/1 switchport mode trunk! Interface fastethernet0/2 switchport access vlan 10!interface fastethernet0/3  switchport access vlan 10!interface fastethernet0/4 switchport access  vlan 10!interface fastethernet0/5 switchport access vlan 10!interface  FastEthernet0/6 switchport access vlan 10!interface FastEthernet0/7  Switchport access vlan 10!interface fastethernet0/8 switchport access vlan  10!interface FastEthernet0/9 switchport access vlan 10!interface  fastethernet0/10 switchport access vlan 10!interface fastethernet0/11 switchport access  vlan 10!interface fastethernet0/12 switchport access vlan 10!interface  FastEthernet0/13 switchport access vlan 20!interface FastEthernet0/14  Switchport access vlan 20!interface fastethernet0/15 switchport access vlan  20!interface FastEthernet0/16 switchport access vlan 20!interface  Fastethernet0/17 switchport access vlan 20!interface fastethernet0/18 switchport  access vlan 20!interface fastethernet0/19 switchport access vlan 20! Interface fastethernet0/20 switchport access vlan 20!interface fastethernet0/21  switchport access vlan 20!interface fastethernet0/22 switchport access  vlan 20!interface Fastethernet0/23 switchport access vlan 20!interface fastethernet0/24 switchport  access vlan 20!interface gigabitethernet1/1!interface gigabitethernet1/2!interface  vlan1 no ip address shutdown!interface vlan10 no ip address! interface vlan20 no ip address!! line con 0!line vty 0 4 loginline vty 5 15 login!! endsw2#-------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------  Note that:dhcp discover  is conducted on a broadcast basis, The situation can only be done within the same network segment because the router does not forward the two-layer broadcast packet. Configure DHCP Relay Agent (ip helper-address)

This article is from "King's blog" blog, please make sure to keep this source http://peilong0320.blog.51cto.com/8991228/1606634

Comprehensive experiment of Dhcp+vlan multi-Net section

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.