Difference between revisions of "Enabling Client DHCP"

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

Revision as of 01:24, 19 March 2006

Enabling DHCP with Hostname

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