Kent,
    Can you rewrite your hacky script to be sortof like this thingy
Make 'myifup' a script that takes two arguments, interface and S or D
  myifup eth0 [S|D]
Then when you say myifup it will look for the S or D then cp
 ifcfg-[int]-*.S or *.D
to
 ifcfg-[int]-*
Basically strip the S or D
Then will run ifup [int]
Hope that makes sense, it's also hacky but I've used that before.  Pity it's
on a machine I nolonger have access to.

/B







----- Original Message -----
From: "Kent Borg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 10, 2003 07:33
Subject: Re: 2 IP addresses on one NIC ?


> On Thu, Mar 06, 2003 at 04:43:19PM +0530, Prashant Kulkarni wrote:
> > creat the file call ifcfg-eth0:1 under /etc/sysconfig/network-scripts/
and
> > the following parameters and then restart the interface using ifdown and
> > ifup  commands.
> >
> > DEVICE="eth0"
> > BOOTPROTO="none"
> > IPADDR=" "
> > NETMASK=" "
> > ONBOOT="yes"
>
> Cool.  I have use for that, but I have a related question too: How do
> I easily have a second configuration for my eth0?  Mostly I use DHCP
> for my notebook, but there is one network I visit where I need to have
> a fixed IP address.  Right now I use a hacky script that doesn't work
> very well.
>
>
> Thanks,
>
> -kb
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to