If you are using rh, you can also try copying /etc/sysconfig/network-scripts/ifcfg-eth0 to /etc/sysconfig/network-scripts/ifcfg-eth0:x. where x is the sub interface number like the example shown by Mr E. After doing this, you should edit the file and substitute all the values with the secondary IP. At the topmost portion of the file, you'll also see the interface name, don't forget to rename it to eth:x.
To activate, just enter "service network restart" at the command prompt or "ifdown eth0;ifup eth0" hth. 'jopoy On Thu, 25 Nov 2004 05:50:21 +0800, Mr. E <[EMAIL PROTECTED]> wrote: > Command line ,using ifcfg (non-persistent across reboots): > > ifcfg eth0:1 192.168.0.1 > ifcfg eth0:2 10.5.5.5 > > enabling/disabling, > > ifup eth:1 , ifdown eth:1 , etc. > > GUI , (RH/RHEL) ; > > Use redhat-config-network, click on preferred device, click on > Hardware , check Device Alias Number you want to edit. > > GUI (FC): > > Use system-config-network in a similar way with RH/RHEL. > > > > On Wed, 24 Nov 2004 14:44:15 -0600, gp <[EMAIL PROTECTED]> wrote: > > Is there a command line to put a secondary address of eth0. Thanks. > > > > glen > > -- > > Philippine Linux Users' Group (PLUG) Mailing List > > [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) > > Official Website: http://plug.linux.org.ph > > Searchable Archives: http://marc.free.net.ph > > . > > To leave, go to http://lists.q-linux.com/mailman/listinfo/plug > > . > > Are you a Linux newbie? To join the newbie list, go to > > http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie > > > > > -- > Robert Brent P. Lipke, RHCE > [EMAIL PROTECTED] , [EMAIL PROTECTED] > Registered Linux user #314306 http://counter.li.org > "gpg --keyserver pgp.mit.edu --recv-keys 49A711F1" > > > -- > Philippine Linux Users' Group (PLUG) Mailing List > [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) > Official Website: http://plug.linux.org.ph > Searchable Archives: http://marc.free.net.ph > . > To leave, go to http://lists.q-linux.com/mailman/listinfo/plug > . > Are you a Linux newbie? To join the newbie list, go to > http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie > -- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
