SlideShare ist ein Scribd-Unternehmen logo
1 von 8
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Aruba mobility access switch useful commands v2
Aruba mobility access switch useful commands v2Aruba mobility access switch useful commands v2
Aruba mobility access switch useful commands v2
 
Cisco router command configuration overview
Cisco router command configuration overviewCisco router command configuration overview
Cisco router command configuration overview
 
Huawei cisco command conversion
Huawei cisco command conversionHuawei cisco command conversion
Huawei cisco command conversion
 
Router commands
Router commandsRouter commands
Router commands
 
MPLS L3 VPN Deployment
MPLS L3 VPN DeploymentMPLS L3 VPN Deployment
MPLS L3 VPN Deployment
 
Base Designs Lab Setup for Validated Reference Design
Base Designs Lab Setup for Validated Reference DesignBase Designs Lab Setup for Validated Reference Design
Base Designs Lab Setup for Validated Reference Design
 
How to configure vlan, stp, dtp step by step guide
How to configure vlan, stp, dtp step by step guideHow to configure vlan, stp, dtp step by step guide
How to configure vlan, stp, dtp step by step guide
 
CCNAv5 - S2: Chapter5 Inter Vlan Routing
CCNAv5 - S2: Chapter5 Inter Vlan RoutingCCNAv5 - S2: Chapter5 Inter Vlan Routing
CCNAv5 - S2: Chapter5 Inter Vlan Routing
 
CCNA Lab Guide
CCNA Lab GuideCCNA Lab Guide
CCNA Lab Guide
 
Cisco switch commands cheat sheet
Cisco switch commands cheat sheetCisco switch commands cheat sheet
Cisco switch commands cheat sheet
 
Cisco Live! :: Cisco ASR 9000 Architecture :: BRKARC-2003 | Milan Jan/2014
Cisco Live! :: Cisco ASR 9000 Architecture :: BRKARC-2003 | Milan Jan/2014Cisco Live! :: Cisco ASR 9000 Architecture :: BRKARC-2003 | Milan Jan/2014
Cisco Live! :: Cisco ASR 9000 Architecture :: BRKARC-2003 | Milan Jan/2014
 
1 asr9 k platform architecture
1   asr9 k platform architecture1   asr9 k platform architecture
1 asr9 k platform architecture
 
P fsense
P fsenseP fsense
P fsense
 
Junos routing overview from Juniper
Junos routing overview from JuniperJunos routing overview from Juniper
Junos routing overview from Juniper
 
Cisco Live! :: Cisco ASR 9000 Architecture :: BRKARC-2003 | Las Vegas 2017
Cisco Live! :: Cisco ASR 9000 Architecture :: BRKARC-2003 | Las Vegas 2017Cisco Live! :: Cisco ASR 9000 Architecture :: BRKARC-2003 | Las Vegas 2017
Cisco Live! :: Cisco ASR 9000 Architecture :: BRKARC-2003 | Las Vegas 2017
 
COMANDOS CISCO HUAWEI JUNIPER
COMANDOS CISCO HUAWEI JUNIPERCOMANDOS CISCO HUAWEI JUNIPER
COMANDOS CISCO HUAWEI JUNIPER
 
Introduction to SDN and NFV
Introduction to SDN and NFVIntroduction to SDN and NFV
Introduction to SDN and NFV
 
Ncat ccna cheat sheet
Ncat ccna cheat sheetNcat ccna cheat sheet
Ncat ccna cheat sheet
 
Comandos huawei-prof
Comandos huawei-profComandos huawei-prof
Comandos huawei-prof
 
Ospf
OspfOspf
Ospf
 

Ähnlich wie Huawei Switch How To - Configuring a basic DHCP server

Base Designs Lab Setup for Validated Reference Design
Base Designs Lab Setup for Validated Reference DesignBase Designs Lab Setup for Validated Reference Design
Base Designs Lab Setup for Validated Reference Design
Content Rules, Inc.
 
Odl010024 qin q laboratory exercise guide issue1
Odl010024 qin q laboratory exercise guide issue1Odl010024 qin q laboratory exercise guide issue1
Odl010024 qin q laboratory exercise guide issue1
jcbp_peru
 

Ähnlich wie Huawei Switch How To - Configuring a basic DHCP server (20)

CCIE Collaboration Lecture - Chapter 1.1 campus design - vlan dhcp and ntp
CCIE Collaboration Lecture - Chapter 1.1   campus design - vlan dhcp and ntpCCIE Collaboration Lecture - Chapter 1.1   campus design - vlan dhcp and ntp
CCIE Collaboration Lecture - Chapter 1.1 campus design - vlan dhcp and ntp
 
IPv6 DHCP
IPv6 DHCPIPv6 DHCP
IPv6 DHCP
 
Implementation of cisco wireless lan controller (multiple wla ns)
Implementation of cisco wireless lan controller (multiple wla ns)Implementation of cisco wireless lan controller (multiple wla ns)
Implementation of cisco wireless lan controller (multiple wla ns)
 
Group-7-DHCPv4.pptx
Group-7-DHCPv4.pptxGroup-7-DHCPv4.pptx
Group-7-DHCPv4.pptx
 
CCNA 2 Routing and Switching v5.0 Chapter 10
CCNA 2 Routing and Switching v5.0 Chapter 10CCNA 2 Routing and Switching v5.0 Chapter 10
CCNA 2 Routing and Switching v5.0 Chapter 10
 
Dhc pv4
Dhc pv4Dhc pv4
Dhc pv4
 
Module (8) DHCP Server.pptx
Module (8) DHCP Server.pptxModule (8) DHCP Server.pptx
Module (8) DHCP Server.pptx
 
Chapter 10 - DHCP
Chapter 10 - DHCPChapter 10 - DHCP
Chapter 10 - DHCP
 
CCNAv5 - S2: Chapter10 DHCP
CCNAv5 - S2: Chapter10 DHCPCCNAv5 - S2: Chapter10 DHCP
CCNAv5 - S2: Chapter10 DHCP
 
Chapter 21 : DHCP
Chapter 21 : DHCPChapter 21 : DHCP
Chapter 21 : DHCP
 
CCNA DHCP (Dynamic Host Control Protocol)
CCNA DHCP (Dynamic Host Control Protocol)CCNA DHCP (Dynamic Host Control Protocol)
CCNA DHCP (Dynamic Host Control Protocol)
 
Dynamic Host Configuration Protocol
Dynamic Host Configuration ProtocolDynamic Host Configuration Protocol
Dynamic Host Configuration Protocol
 
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 8
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 8CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 8
CCNA (R & S) Module 03 - Routing & Switching Essentials - Chapter 8
 
Base Designs Lab Setup for Validated Reference Design
Base Designs Lab Setup for Validated Reference DesignBase Designs Lab Setup for Validated Reference Design
Base Designs Lab Setup for Validated Reference Design
 
Ubuntu server wireless access point (eng)
Ubuntu server wireless access point (eng)Ubuntu server wireless access point (eng)
Ubuntu server wireless access point (eng)
 
HP Virtual Connect technical fundamental101 v2.1
HP Virtual Connect technical fundamental101   v2.1HP Virtual Connect technical fundamental101   v2.1
HP Virtual Connect technical fundamental101 v2.1
 
EMEA Airheads- Manage Devices at Branch Office (BOC)
EMEA Airheads- Manage Devices at Branch Office (BOC)EMEA Airheads- Manage Devices at Branch Office (BOC)
EMEA Airheads- Manage Devices at Branch Office (BOC)
 
Odl010024 qin q laboratory exercise guide issue1
Odl010024 qin q laboratory exercise guide issue1Odl010024 qin q laboratory exercise guide issue1
Odl010024 qin q laboratory exercise guide issue1
 
CCNA2 Verson6 Chapter8
CCNA2 Verson6 Chapter8CCNA2 Verson6 Chapter8
CCNA2 Verson6 Chapter8
 
Wireless Feature Update
Wireless Feature UpdateWireless Feature Update
Wireless Feature Update
 

Mehr von IPMAX s.r.l.

Mehr von IPMAX s.r.l. (10)

Cisco Switch How To - Secure a Switch Port
Cisco Switch How To - Secure a Switch PortCisco Switch How To - Secure a Switch Port
Cisco Switch How To - Secure a Switch Port
 
Huawei ARG3 Router How To - Troubleshooting OSPF: Netmask mismatch
Huawei ARG3 Router How To - Troubleshooting OSPF: Netmask mismatchHuawei ARG3 Router How To - Troubleshooting OSPF: Netmask mismatch
Huawei ARG3 Router How To - Troubleshooting OSPF: Netmask mismatch
 
Huawei ARG3 Router How To - Troubleshooting OSPF: Router ID Confusion
Huawei ARG3 Router How To - Troubleshooting OSPF: Router ID ConfusionHuawei ARG3 Router How To - Troubleshooting OSPF: Router ID Confusion
Huawei ARG3 Router How To - Troubleshooting OSPF: Router ID Confusion
 
Huawei SAN Storage How To - Configuring the i-SCSI Communication Protocol
Huawei SAN Storage How To - Configuring the i-SCSI Communication ProtocolHuawei SAN Storage How To - Configuring the i-SCSI Communication Protocol
Huawei SAN Storage How To - Configuring the i-SCSI Communication Protocol
 
Huawei SAN Storage How To - ISM management application setup
Huawei SAN Storage How To - ISM management application setupHuawei SAN Storage How To - ISM management application setup
Huawei SAN Storage How To - ISM management application setup
 
Huawei SAN Storage How To - Assigning Management IP Address
Huawei SAN Storage How To - Assigning Management IP AddressHuawei SAN Storage How To - Assigning Management IP Address
Huawei SAN Storage How To - Assigning Management IP Address
 
Fortigate Firewall How to - DLP
Fortigate Firewall How to - DLPFortigate Firewall How to - DLP
Fortigate Firewall How to - DLP
 
HUAWEI Switch HOW-TO - Configuring link aggregation in static LACP mode
HUAWEI Switch HOW-TO - Configuring link aggregation in static LACP modeHUAWEI Switch HOW-TO - Configuring link aggregation in static LACP mode
HUAWEI Switch HOW-TO - Configuring link aggregation in static LACP mode
 
FortiGate Firewall How-To: WEB Filtering
FortiGate Firewall How-To: WEB FilteringFortiGate Firewall How-To: WEB Filtering
FortiGate Firewall How-To: WEB Filtering
 
FortiGate Firewall HOW-TO - DMZ
FortiGate Firewall HOW-TO - DMZFortiGate Firewall HOW-TO - DMZ
FortiGate Firewall HOW-TO - DMZ
 

Huawei Switch How To - Configuring a basic DHCP server

  • 1. HUAWEI SWITCH S5700 - HOW TO Configuring a basic DHCP server HUAWEI SWITCH S5700 HOW TO
  • 2. 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
  • 3. 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
  • 4. 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)
  • 5. 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)
  • 6. 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
  • 7. 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
  • 8. 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