[lug] Multihoming with Redhat

bdoctor at ps-ax.com bdoctor at ps-ax.com
Thu Jun 7 03:51:48 MDT 2001


That is very odd.  I copied your file and made the network 1.x and it worked
fine.  Try using "ifdown eth0:1" first?

-brad

> Oops.  I should have said I changed nothing but
> "DEVICE" and "IPADDR".  I tried "ifup eth0:1" and got
> the same output.
> 
> --- bdoctor at ps-ax.com wrote:
> > Ah, I see.  use "ifup eth0:1", it will figure out
> > the file name :)
> > Also, you may want to change the IP to be what you
> > want, otherwise it will
> > likely complain and possibly mess something up.
> > 
> > -brad
> > 
> > > I assume you mean something like
> > > /etc/sysconfig/network-scripts/ifcfg-eth0:1.  I am
> > > trying to use eth0.  The output from my previous
> > post
> > > is the result of running
> > > /etc/sysconfig/network-scripts/ifup ifcfg-eth0:1. 
> > I
> > > copied this file from ifcfg-eth0, and changed
> > nothing
> > > but the "DEVICE" parameter.
> > > 
> > > DEVICE="eth0:1"
> > > BOOTPROTO="none"
> > > BROADCAST=10.0.5.255
> > > IPADDR="10.0.5.20"
> > > NETMASK="255.0.0.0"
> > > NETWORK=10.0.5.0
> > > ONBOOT="yes"
> > > IPXNETNUM_802_2=""
> > > IPXPRIMARY_802_2="no"
> > > IPXACTIVE_802_2="no"
> > > IPXNETNUM_802_3=""
> > > IPXPRIMARY_802_3="no"
> > > IPXACTIVE_802_3="no"
> > > IPXNETNUM_ETHERII=""
> > > IPXPRIMARY_ETHERII="no"
> > > IPXACTIVE_ETHERII="no"
> > > IPXNETNUM_SNAP=""
> > > IPXPRIMARY_SNAP="no"
> > > IPXACTIVE_SNAP="no"
> > > 
> > > --- bdoctor at ps-ax.com wrote:
> > > > What is the interface you are trying to use for
> > > > this?  The "root", like
> > > > eth0, or eth1.  Also, can you post the config
> > file? 
> > > > And, after you have
> > > > created the file, run "ifup eth0:1" -- or
> > whatever
> > > > the new virtual device
> > > > you are working with is.
> > > > 
> > > > Do post the file though.
> > > > 
> > > > -brad
> > > > 
> > > > > I tried this, and got the following message
> > when I
> > > > > tried to fire up the new interface:
> > > > > 
> > > > > SIOCSIFADDR: No such device
> > > > > SIOCSIFFLAGS: No such device
> > > > > SIOCSIFNETMASK: No such device
> > > > > SIOCSIFBRDADDR: No such device
> > > > > SIOCSIFFLAGS: No such device
> > > > > SIOCADDRT: No such device
> > > > > 
> > > > > Can someone tell me what to look for?
> > > > > 
> > > > > Thanks,
> > > > > Dhruva
> > > > > 
> > > > > --- bdoctor at ps-ax.com wrote:
> > > > > > In terms of setting up the interface(s), you
> > > > should
> > > > > > look in 
> > > > > > /etc/sysconfig/network-scripts
> > > > > > 
> > > > > > In there you find files like ifcfg-eth0,
> > > > ifcfg-lo,
> > > > > > etc.  To use the same
> > > > > > interface with multiple IP addresses, copy
> > the
> > > > > > ifcfg-eth0 file to ifcfg-eth0:1.
> > > > > > Then, edit the device entry and change that
> > to
> > > > > > eth0:1, and the rest should
> > > > > > be obvious.  The device entry is critical,
> > > > however.
> > > > > > 
> > > > > > If you need multiple static routes, create
> > the
> > > > file 
> > > > > > /etc/sysconfig/network/static-routes
> > > > > > 
> > > > > > Some samples for the static-routes:
> > > > > > 
> > > > > > eth0 net 192.168.0.0 netmask 255.255.255.0
> > gw
> > > > eth0
> > > > > > eth0 net 192.168.1.0 netmask 255.255.255.0
> > gw
> > > > eth0
> > > > > > eth0:1 net 207.2.3.4 netmask 255.255.255.248
> > gw
> > > > > > eth0:1
> > > > > > 
> > > > > > -brad
> > > > > > 
> > > > > > 
> > > > > > > We have a machine with one physical
> > network
> > > > > > adapter
> > > > > > > that we would like to use for multihoming
> > (2
> > > > IP
> > > > > > > addresses).
> > > > > > > 
> > > > > > > I can't seem to figure out how to do this
> > on
> > > > > > Redhat
> > > > > > > 6.2, nor can I find any information on how
> > to
> > > > do
> > > > > > this.
> > > > > > >  If anyone could point me in the right
> > > > direction,
> > > > > > that
> > > > > > > would be much appreciated.
> > > > > > > 
> > > > > > > Thanks,
> > > > > > > Dhruva
> > > > > > > 
> > > > > > >
> > > >
> > __________________________________________________
> > > > > > > Do You Yahoo!?
> > > > > > > Get personalized email addresses from
> > Yahoo!
> > > > Mail
> > > > > > - only $35 
> > > > > > > a year!  http://personal.mail.yahoo.com/
> > > > > > >
> > > > _______________________________________________
> > > > > > > Web Page:  http://lug.boulder.co.us
> > > > > > > Mailing List:
> > > > > >
> > > >
> > http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > > > > > > 
> > > > > > 
> > > > > >
> > _______________________________________________
> > > > > > Web Page:  http://lug.boulder.co.us
> > > > > > Mailing List:
> > > > >
> > > >
> > http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > > > > 
> > > > > 
> > > > >
> > __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Get personalized email addresses from Yahoo!
> > Mail
> > > > - only $35 
> > > > > a year!  http://personal.mail.yahoo.com/
> > > > >
> > _______________________________________________
> > > > > Web Page:  http://lug.boulder.co.us
> > > > > Mailing List:
> > > >
> > http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > > > > 
> > > > 
> > > > _______________________________________________
> > > > Web Page:  http://lug.boulder.co.us
> > > > Mailing List:
> > >
> > http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > > 
> > > 
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Get personalized email addresses from Yahoo! Mail
> > - only $35 
> > > a year!  http://personal.mail.yahoo.com/
> > > _______________________________________________
> > > Web Page:  http://lug.boulder.co.us
> > > Mailing List:
> > http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > > 
> > 
> > _______________________________________________
> > Web Page:  http://lug.boulder.co.us
> > Mailing List:
> http://lists.lug.boulder.co.us/mailman/listinfo/lug
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35 
> a year!  http://personal.mail.yahoo.com/
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> 




More information about the LUG mailing list