DHCP configuration of Huawei 8016 vswitch

Source: Internet
Author: User
Tags passthrough cisco switch

1. Functional requirements and networking description
8016DHCP Configuration
"Configure Environment Parameters 』
1. DHCP server IP address 192.168.0.10/24
2. the DHCP server is connected to the G1/0/0 vswitch and belongs to vlan100. The Gateway is the vlan100 Virtual Interface address 192.168.0.1/24.
3. The switch connects SwitchAG1/1 through G1/0/1, and the G1/0/2 connects SwitchBG1/1
4. SwitchA connects SwitchC G1/1 through G2/1
5. the user network segment of vlan10 is 10.10.1.1/24.
6. the user network segment of vlan20 is 10.10.2.1/24.
7. The user network segment of vlan30 is 10.10.3.1/24.
8. SwitchA and SwitchC are L2 switches, and SwitchB are L3 switches.
"Networking requirements 』
1.8016 for DHCP relay, use the remote DHCP server to assign IP addresses to vlan10 under SwitchA
2. vlan20 users on SwitchB use vlan20 Virtual Interface on 8016 as the gateway, and 8016 as the DHCP server to directly assign IP addresses to them
3. The vlan30 user on SwitchC uses the vlan30 Virtual Interface on SwitchB as the gateway, and 8016 as the DHCP server to assign an IP address to the user
2 Data configuration steps
"8016 DHCP relay data process 』
DHCP Relay is used to adapt to situations where the client and server are not in the same network segment. Through Relay, users of different subnets can apply for an IP address from the same DHCP server, this facilitates the management and maintenance of the address pool.
8016 DHCP relay Configuration]
1. the DHCP server must be configured on a VLAN, which can be any VLAN. However, to implement Relay, do not configure the Server to the same VLAN as any client, we recommend that you specify a VLAN for the DHCP server group. Here, we configure VLAN 100 for the port corresponding to DHCP server group 1.
[Quidway] vlan 100
[Quidway-vlan100] port gigabitethernet 1/0/0
[Quidway] interface vlanif 100
2. Configure the DHCP server's gateway address
[Quidway-Vlanif100] ip address 192.168.0.1 255.255.255.0
3. Configure the IP address corresponding to DHCP server group 1.
[Quidway] dhcp relay server-group 1 server 192.168.0.10
4. Configure the VLAN range of the DHCP server group 1 service to 10.
[Quidway] dhcp relay server-group 1 vlan 10
5. Enter G1/0/1 and set it to the trunk port to allow vlan10 to pass through
[Quidway-gigabitethernet 1/0/1] port trunk permit vlan 10
6. Configure the gateway address of VLAN10.
[Quidway] interface vlanif 10
[Quidway-Vlanif10] ip address 10.10.1.1 255.255.255.0
"8016 DHCP server data process 』
The built-in DHCP server has two types of users: one is the S8016 VLAN user, the user directly initiates a DHCP request to S8016, this type is called a VLAN address pool user; the other is the intermediate DHCP relay device, such as the MA5200 device), and the DHCP request passes through DHCP relay before reaching S8016, which is called a global address pool user.
8016vlan user]
1. the user's vlan id is 20. Create and enter the VLAN configuration view.
[Quidway] vlan 20
2. Set the VLAN 20 user Address Allocation Method to local.
[Quidway-vlan20] address allocate local
3. Configure the IP address 10.10.2.1 of the VLAN 20 interface, and specify the IP address resource that can be allocated by the DHCP server as 10.10.2.0 ~ 10.10.2.255.
[Quidway] interface vlan 20
[Quidway-Vlanif20] ip address 10.10.2.1 255.255.255.0
4. a dns server is attached to S8016 and the IP address is 10.10.2.15. In S8016, the IP address of the DNS server is set and cannot be allocated to the user in the address pool.
[Quidway-vlan2] dhcp server forbidden-ip 10.10.2.15
[Quidway-vlan2] dns primary-ip 10.10.2.15
5. Enter G1/0/2 and set it to the trunk port to allow vlan20 to pass through
[Quidway-gigabitethernet 1/0/2] port trunk permit vlan 20
Global address user]
1. Create a global address pool and name it "abc". The address pool user gateway address is 10.10.30.1.
[Quidway] dhcp server ip-pool abc10.10.3.1 255.255.255.0
2. Configure route IP information
[Quidway] dhcp server gateway abc 10.10.3.1
3. Another DNS server is mounted under S8016, with the IP address 10.10.3.15. In S8016, set the IP address of the DNS server and disable the IP address from being allocated to the user in the address pool.
[Quidway] dns primary-ip abc 10.10.3.15
[Quidway] dhcp server forbidden-ip abc 10.10.3.15
4. Configure VLAN200 and the Virtual Interface vlan200 corresponding to SwitchB in the same network segment
[Quidway] interface vlanif 200
[Quidway-Vlanif200] ip address 10.10.10.1 255.255.255.0BR> SwitchB related configuration]
1. Create and enter) vlan30
[SwitchB] vlan 30
2. Add E0/1 to vlan30
A [SwitchB-vlan30] port Ethernet 0/1
3. In practice, the uplink port is generally set to the trunk attribute, allowing vlan passthrough
[SwitchB-GigabitEthernet2/1] port link-type trunk
4. Allow the SwitchC vlan to pass through the G2/1 Port
[SwitchB-GigabitEthernet2/1] port trunk permit vlan 30
5. In practice, the uplink port is generally set to the trunk attribute, allowing vlan passthrough.
[SwitchB-GigabitEthernet1/1] port link-type trunk
6. Allow all VLANs to pass through E0/3, or specify the specific vlan Value
[SwitchB-GigabitEthernet1/1] port trunk permit vlan 30
7. Create a virtual interface to enter) vlan30
[SwitchB] interface Vlan-interface 30
8. Configure IP addresses for vlan30 virtual Interfaces
[SwitchB-Vlan-interface30] ip address 10.10.3.1 255.255.255.0
[SwitchB]
9. Define a DHCP server
[SwitchB] dhcp-server 0 ip 10.10.10.1
[SwitchB-Vlan-interface30] dhcp-server0
10. Create a virtual interface to enter) vlan200. vlan200 is used for SwitchB and 8016 Interconnect
[SwitchB] interface Vlan-interface 200
11. Configure IP addresses for vlan200 virtual Interfaces
[SwitchB-Vlan-interface200] ip address 10.10.10.2 255.255.255.0
SwitchC configurations]
1. Create and enter) vlan30
[SwitchC] vlan 30
2. Add E0/1 to vlan30
A [SwitchC-vlan30] port Ethernet 0/1
3. In practice, the uplink port is generally set to the trunk attribute, allowing vlan passthrough
[SwitchC-GigabitEthernet1/1] port link-type trunk
4. Allow all VLANs to pass through E0/3, or specify the specific vlan Value
[SwitchC-GigabitEthernet1/1] port trunk permit vlan 30
3 test and verification
1. PC1, PC2, and PC3 can both correctly obtain IP addresses and gateways.
2. Both PC1, PC2, and PC3 can PING their own gateways and DHCP servers.

Related Articles]

  • Use a vswitch as a DHCP server
  • LAN switch configuration and Performance Comparison
  • Configure Cisco switch startup and basic settings

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.