huawei switch how to - configuring a basic dhcp server
Post on 04-Jul-2015
3.038 Views
Preview:
DESCRIPTION
TRANSCRIPT
HUAWEI SWITCH S5700 - HOW TO
Configuring a basic DHCP server
HUAWEI SWITCH S5700 HOW TO
HUAWEI SWITCH S5700 - HOW TO
Configuring a basic DHCP server
With this simple procedure we will show how to configure a global
address pool to allocate IP addresses for clients when the clients and
DHCP server (our S5700) are in the same network segment.
In our example we will assume a network scenario with one DHCP server,
one DNS server and two offices: SwitchA is the DHCP server, SwitchB and
SwitchC are access switches.
We will describes how to configure a global address pool. Address pool
100.1.1.0/24 consists of two network segments: 100.1.1.0/25 and
100.1.1.128/25. The IP addresses of the VLANIF interfaces on the DHCP
server are 100.1.1.1/25 and 100.1.1.129/25.
There are a few computers in network segment 100.1.1.0/25 and the
computer locations are fixed. The lease of an IP addresses in
100.1.1.0/25 is 100 days, the DNS address is 100.1.1.2 and the IP
address of the egress gateway is 100.1.1.126.
There are a few computers in network segment 100.1.1.128/25 and the
computers are often moved from one place to another. The lease of an IP
addresses in 100.1.1.128/25 is 2 days, the DNS address is 100.1.1.2
and the IP address of the egress gateway is 100.1.1.254.
The network environment is shown in the picture.
PC1
DHCP client
PC2
DHCP client
PC3
DHCP client
PC4
DHCP client
PC5
DHCP client
PC6
DHCP client
PC7
DHCP client DNS
server
Network: 100.1.1.0/25 Network: 100.1.1.128/25
SwitchB SwitchC
SwitchA
DHCP server
GE 0/0/1 GE 0/0/2
VLANIF10
100.1.1.1/25 VLANIF20
100.1.1.129/25
General infos and application environment
HUAWEI SWITCH S5700 - HOW TO
Configuring a basic DHCP server
<SwitchA> system-view
[SwitchA] dhcp enable
1. Enable DHCP Enter the configuration view
Enable DHCP
2. Create the address pools
[SwitchA] ip pool 1
[SwitchA-ip-pool-1] network 100.1.1.0 mask 255.255.255.128
[SwitchA-ip-pool-1] dns-list 100.1.1.2
[SwitchA-ip-pool-1] gateway-list 100.1.1.126
[SwitchA-ip-pool-1] excluded-ip-address 100.1.1.2
[SwitchA-ip-pool-1] lease day 10
[SwitchA-ip-pool-1] quit
[SwitchA] ip pool 2
[SwitchA-ip-pool-2] network 100.1.1.128 mask 255.255.255.128
[SwitchA-ip-pool-2] dns-list 100.1.1.2
[SwitchA-ip-pool-2] gateway-list 100.1.1.254
[SwitchA-ip-pool-2] lease day 2
[SwitchA-ip-pool-2] quit
Enabling DHCP and configuring the address pool
HUAWEI SWITCH S5700 - HOW TO
Configuring a basic DHCP server
3. Create vlans and assign physical interfaces
[SwitchA] vlan batch 10 20
[SwitchA] interface gigabitethernet 0/0/1
[SwitchA-GigabitEthernet0/0/1] port hybrid pvid vlan 10
[SwitchA-GigabitEthernet0/0/1] port hybrid untagged vlan 10
[SwitchA-GigabitEthernet0/0/1] quit
[SwitchA] interface gigabitethernet 0/0/2
[SwitchA-GigabitEthernet0/0/2] port hybrid pvid vlan 20
[SwitchA-GigabitEthernet0/0/2] port hybrid untagged vlan 20
[SwitchA-GigabitEthernet0/0/2] quit
Create vlans
Enter the interface view
Configure port type and assign vlan
Exit the interface view
Setting the address allocation mode on the
vlanif interfaces(1)
HUAWEI SWITCH S5700 - HOW TO
Configuring a basic DHCP server
4. Configure the clients on vlanif 10 and 20
[SwitchA] interface vlanif 10
[SwitchA-Vlanif10] ip address 100.1.1.1 255.255.255.128
[SwitchA-Vlanif10] dhcp select global
[SwitchA-Vlanif10] quit
[SwitchA] interface vlanif 20
[SwitchA-Vlanif20] ip address 100.1.1.129 255.255.255.128
[SwitchA-Vlanif20] dhcp select global
[SwitchA-Vlanif20] quit
Enter vlanif view
Assign ip address to vlanif
Activate the global address pool distribution
Exit vlanif view
Setting the address allocation mode on the
vlanif interfaces(2)
HUAWEI SWITCH S5700 - HOW TO
Configuring a basic DHCP server
7. Check the configuration on SwitchA [SwitchA] display ip pool
-----------------------------------------------------------------------
Pool-name : 1
Pool-No : 0
Position : Local Status : Unlocked
Gateway-0 : 100.1.1.126
Mask : 255.255.255.128
VPN instance : --
-----------------------------------------------------------------------
Pool-name : 2
Pool-No : 1
Position : Local Status : Unlocked
Gateway-0 : 100.1.1.254
Mask : 255.255.255.128
VPN instance : --
IP address Statistic
Total :250
Used :7 Idle :242
Expired :0 Conflict :0 Disable :1
[Huawei]
Checking the configuration
HUAWEI SWITCH S5700 - HOW TO
Configuring a basic DHCP server
More needs?
See hints on www.ipmax.it
Or email us your questions to info_ipmax@ipmax.it
HUAWEI SWITCH S5700 - HOW TO
Configuring a basic DHCP server
IPMAX is a Huawei Partner in Italy.
IPMAX is the ideal partner for companies seeking quality in products and services. IPMAX guarantees method and professionalism to support its customers in selecting technologies with the best quality / price ratio, in the design, installation, commissioning and operation.
IPMAX srl
Via Ponchielli, 4
20063 Cernusco sul Naviglio (MI) – Italy
+39 02 9290 9171
top related