+7(495) 797-3311 www.qtech.ruМосква, Новозаводская ул., 18, стр. 1194“command cancels the setting.3. Configure share-vlanWhen the user want to use layer 2 device as DHCP relay, there is the number limitation thatcreate layer 3 interface on layer 2 device, but using the layer 3 interface of share-vlan (it mayinclude many sub-vlan, however a sub-vlan only correspond to a share-vlan) can implementDHCP relay forwarding, and the relay device needs to enable option82 function at the sametime.Command ExplanationGlobal Modeip dhcp relay share-vlan sub-vlan no dhcp relay share-vlanCreate or delete share-vlan and it's sub-vlan.27.4 DHCP Configuration ExamplesScenario 1:Too save configuration efforts of network administrators and users, a company is using switchas a DHCP server. The Admin VLAN IP address is 10.16.1.2/16. The local area network for thecompany is divided into network A and B according to the office locations. The networkconfigurations for location A and B are shown below.PoolA(network 10.16.1.0) PoolB(network 10.16.2.0)Device IP address Device IP addressDefault gateway 10.16.1.20010.16.1.201 Default gateway 10.16.1.20010.16.1.201DNS server 10.16.1.202 DNS server 10.16.1.202WINS server 10.16.1.209 WWW server 10.16.1.209WINS node type H-nodeLease 3 days Lease 1dayIn location A, a machine with MAC address 00-03-22-23-dc-ab is assigned with a fixed IPaddress of 10.16.1.210 and named as “management”.Switch(config)#service dhcpSwitch(config)#interface vlan 1Switch(Config-Vlan-1)#ip address 10.16.1.2 255.255.0.0Switch(Config-Vlan-1)#exitSwitch(config)#ip dhcp pool ASwitch(dhcp-A-config)#network 10.16.1.0 24