Huawei S9300 Configuration Manual page 92

Terabit routing switch
Table of Contents

Advertisement

S9300&S9300E Terabit Routing Switch
Configuration Guide - IP Service
Procedure
Step 1 Create a DHCP server group and add DHCP servers to the DHCP server group.
# Create a DHCP server group.
<Quidway> system-view
[Quidway] dhcp server group dhcpgroup1
# Add DHCP servers to the DHCP server group.
[Quidway-dhcp-server-group-dhcpgroup1] dhcp-server 100.10.10.1
[Quidway-dhcp-server-group-dhcpgroup1] quit
Step 2 Enable DHCP relay on the VLANIF interface.
# Create a VLAN and add GE 1/0/1 to the VLAN.
[Quidway] vlan 100
[Quidway-Vlan100] quit
[Quidway] interface gigabitethernet 1/0/1
[Quidway-GigabitEthernet1/0/1] port link-type trunk
[Quidway-GigabitEthernet1/0/1] port trunk allow-pass vlan 100
[Quidway-GigabitEthernet1/0/1] quit
# Enable DHCP globally, and then enable DHCP Relay on the VLANIF 100 interface.
[Quidway] dhcp enable
[Quidway] interface vlanif 100
[Quidway-Vlanif100] dhcp select relay
[Quidway-Vlanif100] quit
Step 3 Bind a VLANIF interface to a specified DHCP server group.
# Assign an IP address to the VLANIF interface.
[Quidway] interface vlanif 100
[Quidway-Vlanif100] ip address 20.20.20.1 24
# Bind the VLANIF interface to a specified DHCP server group.
[Quidway-Vlanif100] dhcp relay server-select dhcpgroup1
[Quidway-Vlanif100] quit
Step 4 Configure the DHCP server.
# Create a VLAN and add GE 1/0/0 to the VLAN.
[Quidway] vlan 20
[Quidway-Vlan20] quit
[Quidway] interface gigabitethernet 1/0/0
[Quidway-GigabitEthernet1/0/0] port link-type trunk
[Quidway-GigabitEthernet1/0/0] port trunk allow-pass vlan 20
[Quidway-GigabitEthernet1/0/0] quit
# Enable the DHCP function and configure the clients connected to VLANIF 20 to obtain IP
addresses from the global address pool.
<Quidway> system-view
[Quidway] dhcp enable
[Quidway] interface vlanif 20
[Quidway-Vlanif20] ip address 100.10.10.1 24
[Quidway-Vlanif20] dhcp select global
[Quidway-Vlanif20] quit
Configure an IP address pool 20.20.20.0/24 on the DHCP server and configure a static route
from the DHCP server to the Switch. Ensure that the route between the DHCP server and network
segment 20.20.20.0/24 is reachable.
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
3 DHCP Configuration
81

Advertisement

Table of Contents
loading

This manual is also suitable for:

S9300e

Table of Contents