need ip_alias module to add IP address.?


Subject: need ip_alias module to add IP address.?
jmmd@nerve.com
Date: Mon Apr 02 2001 - 17:26:04 MDT


what is the exact command for that? (add ip_alias module)
>
> I tried the solution here---still doesn't work though--can only ping eth0 ....
> maybe some more details? Am new to Linux configs--ie do I change "localhost" in the example below to the name of the localhost?
> Thanks for your time-----Joe
> >
> > On Mon, 26 Mar 2001 jmmd@nerve.com wrote:
> > > I have one ethernet card, and need to add an additional IP address to
> > >this machine for my mailserver.I think i have to create a startup script
> > >somewhere..It was fairly straightforward in OS X, (about only thing that
> > >was..) How can I accomplish this? Thanks....Joe
> >
> > cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0\:1
> >
> > vi /etc/sysconfig/network-scripts/ifcfg-eth0\:1
> >
> > Setup the DEVICE and IP addresses accordingly, here is an example of both
> > of these files:
> >
> > [root@localhost network-scripts]# more ifcfg-eth0
> > DEVICE=eth0
> > IPADDR=192.168.0.9
> > NETMASK=255.255.255.0
> > NETWORK=192.168.0.0
> > ONBOOT=yes
> > [root@localhost network-scripts]# more ifcfg-eth0\:1
> > DEVICE=eth0:1
> > IPADDR=192.168.0.10
> > NETMASK=255.255.255.0
> > NETWORK=192.168.0.0
> > BROADCAST=192.168.0.255
> > ONBOOT=yes
> >
> >
> > Then /etc/rc.d/init.d/network restart
> >
> > Cheers,
> >
> > Chris
>
> ... . . . . . . . . . . .
> Get your own free @nerve.com email address at http://www.nervecenter.com

... . . . . . . . . . . .
Get your own free @nerve.com email address at http://www.nervecenter.com



This archive was generated by hypermail 2a24 : Mon Apr 02 2001 - 17:28:53 MDT