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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.