Re: PPP Connection and local networ
On Sun, 1 Nov 1998, Paulo Henrique Baptista de Oliveira wrote:
> Hi Debian users,
> I setup my PPP connection, but I'm in trouble with my ethernet local
> network. How I can route the packages correctly. When I'm using PPP I can't
> use the network and vice-versa.
> Also, I setuped the network and when I telnet to one computer I can
> login and when telneting to the other the telnet freeze in the part:;
> Escape character is ^]
> Best regards, Paulo Henrique
I have my route table set up as follows:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
localhost * 255.255.255.255 UH 0 0 3 lo
<my.network> * 255.255.255.0 U 0 0 3 eth0
That enables me to use my network, and when I use ppp, I give the
defaultroute option so that my external requests go out my ppp connection.
You could adjust your /usr/bin/pon and poff if you have a network gateway,
so that they remove the default route, and add it again when you are done.
if not, this is how you can setup the above:
----/etc/init.d/network---------
#! /bin/sh
ifconfig lo 127.0.0.1
route add -host 127.0.0.1 lo
IPADDR=[your Network IP address here] e.g. 192.168.0.1
NETMASK=[your networks NETMASK] 255.255.255.0
NETWORK=[your network] 192.168.0.0
BROADCAST=[your networks BROADCAST] 192.168.0.255
#GATEWAY=[not needed] 192.168.0.1
ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST} up
route add -net ${NETWORK} netmask ${NETMASK} eth0
#[ "${GATEWAY}" ] && route add default gw ${GATEWAY} metric 1
--------------------------
I have commented out the gateway configuration, to that no default route
is created.
Michael Beattie (mickyb@es.co.nz)
PGP Key available, reply with "pgpkey" as subject.
-----------------------------------------------------------------------------
Cat Game #10: Hide and go puke.
-----------------------------------------------------------------------------
Debian GNU/Linux.... Ooohh You are missing out!
Reply to: