Vswitch DHCP Server Configuration Analysis

Source: Internet
Author: User

In the DHCP service of a vswitch, we are familiar with the use of H3C. No exception. This time we will explain the knowledge of the DHCP Server. In this article, we use H3C 3600-si as an example to configure the DHCP server for h3c switches. Note that the vswitch of 3600-SI must upgrade the main program before configuring the DHCP server function!

1. Switch DHCP Server

"Configure Environment Parameters 』

1. NICs in PC1 and PC2 use dynamic IP address acquisition methods.

2. the Ethernet port 0/1 connecting PC1 to the vswitch belongs to VLAN10; the Ethernet port 0/2 connecting PC2 to the vswitch belongs to VLAN20

3. the VLAN 10 Address of layer-3 Switch SwitchA is 10.1.1.1/24, and the VLAN 20 address is 10.1.2.1/24.

"Switch DHCP Server networking requirements 』

1. PC1 can dynamically obtain the IP address range 10.1.1.0/24 and the gateway address is 10.1.1.1. PC2 can dynamically obtain the IP address range 10.1.2.0/24 and the gateway address is 10.1.2.1.

"DHCP Server configuration process 』

You can assign an IP address to a PC directly connected to a layer-3 switch, or assign an IP address to a PC that is connected to a layer-3 Switch through a DHCP relay device.

You can use an interface or a global address pool to allocate addresses.

Vswitch DHCP Server SwitchA allocates address-related configurations through interfaces]

1. Create and enter) VLAN10

[SwitchA] vlan 10

2. Add E0/1 to VLAN10

A [SwitchA-vlan10] port Ethernet 0/1

3. Create and enter) VLAN Interface 10

[SwitchA] interface Vlan-interface 10

4. Configure IP addresses for VLAN 10

[SwitchA-Vlan-interface10] ip address 10.1.1.1 255.255.255.0

5. Select the interface method to assign an IP address on VLAN Interface 10.

[SwitchA-Vlan-interface10] dhcp select interface

6. Do not assign the gateway address of the PC to the user.

[SwitchA] dhcp server forbidden-ip 10.1.1.1

Vswitch DHCP Server SwitchA uses the Global address pool to allocate address-related configurations]

1. Create and enter) VLAN10

[SwitchA] vlan 10

2. Add E0/1 to VLAN10

A [SwitchA-vlan10] port Ethernet 0/1

3. Create and enter) VLAN Interface 10

[SwitchA] interface Vlan-interface 10

4. Configure IP addresses for VLAN 10

[SwitchA-Vlan-interface10] ip address 10.1.1.1 255.255.255.0

5. Select the global address pool mode to assign IP addresses on VLAN Interface 10.

[SwitchA-Vlan-interface10] dhcp select global

6. Create a global address pool and name it "vlan10"

[SwitchA] dhcp server ip-pool vlan10

7. Configure the address range and gateway address allocated to the user by the vlan10 address pool.

[SwitchA-dhcp-vlan10] network 10.1.1.0 mask 255.255.255.0

[SwitchA-dhcp-vlan10] gateway-list 10.1.1.1

8. Do not assign the gateway address of the PC to the user.

[SwitchA] dhcp server forbidden-ip 10.1.1.1

Vswitch DHCP Server supplement]

The preceding configuration takes VLAN10 as an example. For VLAN20 configuration, refer to VLAN10 configuration. When using the global address pool method, you need to create a global address pool with different names than "vlan10.

After the preceding configuration, the IP address assigned to PC1 is 10.1.1.0/24, the gateway address of PC1 is 10.1.1.1, And the IP address assigned to PC2 is 10.1.2.0/24, the gateway address of PC2 is 10.1.2.1.

By default, VLAN interfaces use a global address pool to allocate addresses. Therefore, when a VLAN interface is configured with a global address pool for Address Allocation, DHCP configuration cannot be seen under the corresponding VLAN interface.

The global address pool can be used to allocate IP addresses of different CIDR blocks to users from VLAN interface addresses of layer-3 switches.

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.