[Gllug] Multiple IPs on one interface in RedHat

Tethys tet at accucard.com
Fri Oct 4 08:30:58 UTC 2002


>I've done "/sbin/ifconfig eth0:0 xx.yy.zz.tt" to create an interface
>alias for the new IP address. This seems to work but how do I get it to
>come up OK on reboot?
>
>I think I need to add:
>/etc/sysconfig/network-scripts/ifcfg-eth0:0
>with appropriate entries.

Correct. Make sure you have the line "ONBOOT=yes" in each ifcfg-eth*
entry.

>but what do I do with:
>/etc/ifconfig/network?

I assume you mean /etc/sysconfig/network?

>can I have this define two GATEWAY or GATEWAYDEV entries at once?

No, you can't. Are you sure you want to, though? Remember that's
defining the default gateway, and you'd generally only want one
of them. The network startup scripts will automatically add a
route to each locally attached network, so you don't need to do
it explicitly. If you genuinely need multiple default gateways,
or if you have additrional routes you want to add, you can stick
them in /etc/sysconfig/static-routes (which has a fairly bizarre
syntax that I can't remember off the top of my head -- it's well
documented in the RH manuals, though).

Tet

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list