[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-users] Re: Additional Nameservers



At 6:37 PM -0400 7/27/01, baltimoremd@xxxxxxxxxxxxxxx is rumored to have typed:

> Is there anyway other than creating more virtual sites to have the new set
> ip IP addresses "up" and reachable ?

   Sure. Just create a new eth0:x interface in /etc/sysconfig/network-scripts/.

   My provider almost had a heart attack when I created my own interface
instead of using the GUI, but it takes a lot less time than screwing around
with the GUI, and workes just as well. First, CD to
/etc/sysconfig/network-scripts/ and do:

ls -lag ifcfg-eth0*

   We will assume you'll see:

-rw-r--r--   1 root     root          102 Jul 10 20:56 ifcfg-eth0
-rw-r--r--   1 root     root           27 Sep 18  2000 ifcfg-eth0.master

   ...which you will if you currently only have one IP assigned to your
machine. Duplicate the ifcfg-eth0 file to ifcfg-eth0:0, like:

cp ifcfg-eth0 ifcfg-eth0:0

   Now pico ifcfg-eth0:0, where the changes are obvious:

DEVICE=eth0                   # Change to eth0:0
IPADDR=123.123.123.123        # Change to new IP, say 123.123.123.124
NETWORK=123.123.123.0
NETMASK=255.255.255.0
BROADCAST=123.123.123.255

   Save the changes. Restart the machine. (Yes, I know you can use ifconfig,
but it's easier to restart the machine and go get coffee. You could also do
something like '/etc/rc.d/init.d/network stop; /etc/rc.d/init.d/network
start' but again, I'm lazy...'/sbin/shutdown -r now' is just easier to type.
And before you panic about typing THAT, it's the same d*mned line used in
/usr/admserv/cgi-bin/.cobalt/reboot/reboot.cgi. man shutdown explains it
really well.)

   If you already have two IPs connected, and want to add a third, create
eth0:1..a fourth, eth0:2, etc., etc. This ain't rocket science, kids. Of
course, it _does_ assume that the new IPs are in the same C-block; if they
aren't, you'll need to modify the other entries as well...ask your provider
for details. (Now if they only handled named in a standard fashion, you could
easily create /var/named/domain/ files with equal speed, instead of screwing
around waiting for the GUI to buy a clue with every A record you add.)

         Charlie (who's behind in reading his email, sorry)