Just add something like:

ifconfig eth0 1234.1234.1234.1234 up
route add default eth0
route add default gw 2345.2345.2345.2345

-Tom

On Thu, 2 May 2002, Pete Scott wrote:

> Date: Thu, 2 May 2002 12:09:23 +0000
> From: Pete Scott <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [tomsrtbt] init HUP and static IP
>
> Hi
>
> Init HUP now works thanks Tom.
>
> Another question. How do I set a static IP that will be used if there is no DHCP 
>server?
>
> I used to edit IPADDR, NETMASK, GATEWAY in settings.s but they're not there anymore 
>also adding
> them to settings.s or rc.custom.gz doesn't help. It seems that
>
> dhcpcd--.lua sets an IP of 1.1.1.1 if there's no DHCP so I could edit that. But is
> there a better way?
>
> I tried:
>
> if [ "$IPADDR" = "1.1.1.1" ]
> then
> IPADDR=192.168.0.51
> NETMASK=255.255.255.0
> GATEWAY=192.168.0.1
> fi
>
> At the start of rc.custom.gz but that didn't help either.
>
> What am I missing?
>
> Thanks for any help.
>
> Pete
>
> BTW I'm using 2.0.96
>
>

Reply via email to