Difference between revisions of "Enabling Client DHCP"

From HyperSecurity Wiki
Jump to: navigation, search
(Enabling DHCP with Hostname)
(Enabling DHCP with Hostname)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==== Enabling DHCP with Hostname ====
 
==== Enabling DHCP with Hostname ====
  
#To set the hostname, do the following:
+
* To set the hostname, do the following:
#*<pre>vi  /etc/sysconfig/network</pre>
+
 
#Edit /etc/sysconfig/network to look like the following:
+
vi  /etc/sysconfig/network
#*<pre> NETWORKING=yes</pre>
+
 
#*<pre>HOSTNAME={hostname}.hypersecuresolutions.com</pre>
+
* Edit /etc/sysconfig/network to look like the following:
# Save and exit.
+
 
#Then edit your ifcfg-eth0 config file with the following command:
+
NETWORKING=yes
#*<pre> vi  /etc/sysconfig/network-scripts/ifcfg-eth0
+
HOSTNAME={hostname}.hypersecuresolutions.com
#Edit /etc/sysconfig/network-scripts/ifcfg-eth0 to look like the following:
+
 
#*<pre>DEVICE=eth0
+
* Save and exit.
#*BOOTPROTO=dhcp
+
 
#*HWADDR=00:E0:81:63:99:81 # This line is different for every card
+
* Then edit your ifcfg-eth0 config file with the following command:
#*ONBOOT=yes
+
 
#*TYPE=Ethernet
+
vi  /etc/sysconfig/network-scripts/ifcfg-eth0
#*DHCP_HOSTNAME={hostname}
+
 
#*USERCTL=no
+
* Edit /etc/sysconfig/network-scripts/ifcfg-eth0 to look like the following:
#*PEERDNS=yes
+
 
#*IPV6INIT=no</pre>
+
DEVICE=eth0
#Save and exit.
+
BOOTPROTO=dhcp
#Next, type in the following on the command promt to set hostname:
+
HWADDR=00:E0:81:63:99:81 # This line is different for every card
#*<pre> hostname {hostname}.hypersecuresolutions.com</pre>
+
ONBOOT=yes
 +
TYPE=Ethernet
 +
DHCP_HOSTNAME={hostname}
 +
USERCTL=no
 +
PEERDNS=yes
 +
IPV6INIT=no
 +
 
 +
* Save and exit.
 +
 
 +
* Next, type in the following on the command promt to set hostname:
 +
 
 +
hostname {hostname}.hypersecuresolutions.com

Latest revision as of 01:29, 19 March 2006

Enabling DHCP with Hostname

  • To set the hostname, do the following:
vi  /etc/sysconfig/network
  • Edit /etc/sysconfig/network to look like the following:
NETWORKING=yes
HOSTNAME={hostname}.hypersecuresolutions.com
  • Save and exit.
  • Then edit your ifcfg-eth0 config file with the following command:
vi  /etc/sysconfig/network-scripts/ifcfg-eth0
  • Edit /etc/sysconfig/network-scripts/ifcfg-eth0 to look like the following:
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:E0:81:63:99:81 # This line is different for every card
ONBOOT=yes
TYPE=Ethernet
DHCP_HOSTNAME={hostname}
USERCTL=no
PEERDNS=yes
IPV6INIT=no
  • Save and exit.
  • Next, type in the following on the command promt to set hostname:
hostname {hostname}.hypersecuresolutions.com