Network Setup Tips: Difference between revisions
From MediaWiki
Jump to navigationJump to search
Line 4: | Line 4: | ||
To do this, add the following line to your network configuration file (we will use file: "'''/etc/sysconfig/network-scripts/ifcfg-eth0'''" for this example): '''DHCP_HOSTNAME=<your desired host name for this NST DHCP client>''' | To do this, add the following line to your network configuration file (we will use file: "'''/etc/sysconfig/network-scripts/ifcfg-eth0'''" for this example): '''DHCP_HOSTNAME=<your desired host name for this NST DHCP client>''' | ||
< | <div class="screen"> | ||
[root@probe-biostar network-scripts]# cat ifcfg-eth0 | <div class="screenTitle">''Listing:'' "/etc/sysconfig/network-scripts/ifcfg-eth0"</div> | ||
<div class="userInput"><span class="prompt">[root@probe-biostar network-scripts]# </span>cat "/etc/sysconfig/network-scripts/ifcfg-eth0"</div> | |||
<pre class="computerOutput"> | |||
DEVICE=eth0 | DEVICE=eth0 | ||
BOOTPROTO=dhcp | BOOTPROTO=dhcp | ||
ONBOOT=yes | ONBOOT=yes | ||
DHCP_HOSTNAME=probe-biostar | DHCP_HOSTNAME=probe-biostar | ||
</pre> | </pre><div class="userInput"><span class="prompt">[root@probe-biostar network-scripts]# </span></div> | ||
</div> |
Revision as of 09:38, 3 March 2007
How To Add A Host Name Identifier To A DHCP Server
Some times it is desirable to add a host name identifier at the DHCP Client to be recognized by the DHCP Server. This will allow for local host names to be resolved by their respective name on the local LAN. This works well with a DD-WRT enabled LinkSys router.
To do this, add the following line to your network configuration file (we will use file: "/etc/sysconfig/network-scripts/ifcfg-eth0" for this example): DHCP_HOSTNAME=<your desired host name for this NST DHCP client>
Listing: "/etc/sysconfig/network-scripts/ifcfg-eth0"
[root@probe-biostar network-scripts]# cat "/etc/sysconfig/network-scripts/ifcfg-eth0"
DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes DHCP_HOSTNAME=probe-biostar
[root@probe-biostar network-scripts]#