2013年9月2日星期一

The configration of the H3C switches DHCP

H3C switches installed DHCP relay description:
H3C switches installed DHCP relay, JG311A price with the Linux server provides DHCP address allocation for multi service VLAN, an example: using Linux to do a DHCP server, using H3CS7506R do relay switch, provide DHCP service fortwo VLAN, after testing the effect of two months of very good.
H3C switches installed DHCP server procedures
1) Linux installed operating system, I use the release version is CentOS5.2.
2) the following network parameter setting server:
IP address: 192.168.6.7
The subnet mask: 255.255.255.0
Gateway: 192.168.6.254
DNS:192.168.6.10
3) install DHCP service
CentOS and RedHatEnterpriseLinux system default does not install the DHCP service. Use this command to check whether the system has to install the DHCP service: RPM – qdhcp, if return to prompt"packagedhcpisnotinstalled", the DHCP service is not installed. The CentOSDVD installation CD into the drive, execute the following command:
Cd/media/CentOS_5.2_Final/CentOS
RPM - ivhdhcp-3.0.5-13.el5.i386.rpm
The system installation schedule, after the success of the installation again performed "RPM - qdhcp" command, the system will return the message "dhcp-3.0.5-13.el5", the DHCP service is installed correctly.
4) the configuration file template copy of dhcpd.conf, the configuration of the DHCP service by editing the /etc/dhcpd.conf to. DHCP service programdefault does not establish the dhcpd.conf configuration file, but with aconfiguration template, just a little change can be used. The implementation of the "cp/usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample/etc/dhcpd.conf"command, the system comes with the template configuration files arecopied to the /etc directory and rename it to dhcpd.conf.
5) "vi/etc/dhcpd.conf" command to edit the configuration file as follows:
Quote.
#cat/etc/dhcpd.conf
Ddns-update-styleinterim;
Ignoreclient-updates;
Default-lease-time86400;
Max-lease-time86400;
Subnet192.168.6.0netmask255.255.255.0{
Range192.168.6.1192.168.6.253;
Optionrouters192.168.6.254;
Optionsubnet-mask255.255.255.0;
Optiondomain-name-servers192.168.6.10,10.20.6.10;
Optionnetbios-name-servers192.168.6.10,10.20.6.10;
Optiontime-offset-18000;
Default-lease-time86400;
Max-lease-time86400;
}
Subnet192.168.25.0netmask255.255.255.0{
Range192.168.25.1192.168.25.253;
Optionrouters192.168.25.254;
Optionsubnet-mask255.255.255.0;
Optiondomain-name-servers192.168.6.10,10.20.6.10;
Optionnetbios-name-servers192.168.6.10,10.20.6.10;
Optiontime-offset-18000;
Default-lease-time86400;
Max-lease-time86400;
}
Subnet192.168.30.0netmask255.255.255.0{
Range192.168.30.1192.168.30.253;
Optionrouters192.168.30.254;
Optionsubnet-mask255.255.255.0;
Optiondomain-name-servers192.168.6.10,10.20.6.10;
Optionnetbios-name-servers192.168.6.10,10.20.6.10;
Optiontime-offset-18000;
Default-lease-time86400;
Max-lease-time86400;
}
6) create an empty DHCP customers lease database file. Command:"touch/var/lib/dhcpd/dhcpd.leases"
7) the implementation of "servicedhcpdstart" to start the DHCP service.
8) to set the server to automatically start the DHCP service. The implementation of the "ntsysv" command, find the "dhcpd" in the dialog box,press the space for its marked with "*", press "Tab" key to select the "set" button and press enter.
9) if the server installation opening the network firewall, need to change thefirewall settings, open the server configuration UDP67 and port 68 to thisserver is completed. Need to pay attention to in the course of the server configuration:
1) dhcpd.conf in addition to need DHCP services VLAN network segment, it must include the server's network card information can be. When I am in the configuration of the dhcpd.conf, start with "this two wordsubnet192.168.25.0netmask255.255.255.0{}" and"subnet192.168.30.0netmask255.255.255.0{}" network, the implementation of "servicedhcpdstart" command to start the dhcpd service is alwaysprompt failure. Then the implementation of "/etc/init.d/dhcpdstart" command,carefully read the error message that dhcpd.conf file must contain a server in the network information can be. To add dhcpd.conf"subnet192.168.6.0netmask255.255.255.0{}" after a period of service can be a normal start.
2) parameters inside the dhcp.conf that should be relatively easy to understand, the time I do not explain.

3) I found information it said firewall to open UDP67 port 68, HP JG312A  but also it said 68 can also be.
More information about switch and router, please view :http://bloxster.net/wp-admin/edit.php

没有评论:

发表评论