Re: init HUP and static IP

Pete Scott <[email protected]>
Newsgroups gmane.linux.tomsrtbt
Message-ID <20020503112122.NTUW17944.fep06-svc.ttyl.com@localhost>
At 17:26 02/05/2002, you wrote:

> > > ifconfig eth0 1234.1234.1234.1234 up
> > > route add default eth0
> > > route add default gw 2345.2345.2345.2345
> >
> > But where's best to put that. Before or after the call to dhcpcd-- in rc.custom.gz?

> As an 'else' to the 'if dhcpcd got an address, set it, else'.

Did this but still got an address of 1.1.1.1. 

Discovered it worked fine on other machines that don't have a PCMCIA network cards.

It seems that /etc/pcmcia/network is setting up the network and not rc.custom.gz I suppose because there
isn't a network interface at that point. I've looked at /etc/pcmcia/network and can't see how/where the
network interface gets setup up when dhcpcd-- doesn't set an address.

Am I going to have to edit /etc/pcmcia/network and rebuild to get this to work on PCMCIA networked
laptops? Or is there another way?

> Or as a new if, before this if, that sets it.  I should do this in the default...

That would be cool.

Thanks for your help.

Pete
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.