Article View: comp.os.linux.networking
Article #342Re: ip-up script not working
From: ic
Date: Fri, 03 May 1996 00:00
Date: Fri, 03 May 1996 00:00
33 lines
1735 bytes
1735 bytes
In article <4lg05j$vn8@gidora.kralizec.net.au> Carl Renneberg <renneber@tmx.mhs.oz.au> writes:
>From: Carl Renneberg <renneber@tmx.mhs.oz.au>
>Subject: ip-up script not working
>Date: 22 Apr 1996 13:04:51 GMT
>My home system runs ppp-2.2.0.c with a 1.2.13 kernel. ppp gets loaded as a
>module at boot time, and the kernel has IP forwarding compiled.
>I want to:
> - dial up my home system from host 203.25.235.1 (at work), and login to an
> account that starts up a ppp link;
> - on my home system, add a network route (not default route) for
> 203.25.235.0 over the ppp interface.
>The first part I can do, no problem. To handle the second part, I put the
>following in /etc/ppp/ip-up, on my home system:
>case $5 in \
>203.25.235.?|203.25.235.??|203.25.235.???) \
> route add -net 203.25.235.0 gw 203.25.235.1 netmask 255.255.255.0;; \
>esac
>exit 0
I set my routes up with the default route always pointing at ppp0 and
the local network addresses pointing at eth0.
I figure anything outside my home network will fail when ppp0 is down anyway.
One other thing do you have #!/bin/sh at the start of the ip-up script?
IanC
Technical Details
Message-ID:
<ic.32.000F4312@deakin.edu.au>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4lg05j$vn8@gidora.kralizec.net.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102983,9b64798996fc2445 X-Google-Attributes: gid102983,public X-Google-Thread: 10669a,9b64798996fc2445 X-Google-Attributes: gid10669a,public From: ic@deakin.edu.au Subject: Re: ip-up script not working Date: 1996/05/03 Message-ID: <ic.32.000F4312@deakin.edu.au> X-Deja-AN: 152725904 references: <4lg05j$vn8@gidora.kralizec.net.au> organization: Telstra newsgroups: comp.os.linux.networking,aus.computers.linux