Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disappearing hostnmanes

Status
Not open for further replies.
Sep 7, 2006
4
US
I added a bunch of hostnames to the hosts file, and it disappears everytime I reboot. How do I make them permenant?
Also, how do I make my gateway permenant?
 
Create the file: /etc/defaultrouter with the ip address in it.

You can create a script in /etc/rc2.d
#!/bin/sh
ifconfig int addif hostname2 broadcast + netmask + up
ifconfig int addif hostname3 broadcast + netmask + up
ifconfig int addif hostname4 broadcast + netmask + up

or create
/etc/hostname.xxx0:1 - With the hostname in each
/etc/hostname.xxx0:2
/etc/hostname.xxx0:3

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top