PPP & Network Connection

PPP & Network Connection

Post by cnews.newsguy.co » Sat, 12 Sep 1998 04:00:00



I have a RedHat Linux 5.1 Box on my network.  I have my network interface
and default gateway point to the router on my network which route to a
different office.  I put a modem in my Linux box and try to connect to my
ISP using PPP.  I can get the modem to dial and connect.  But I have a hard
time getting the local ip-address assigned by the ISP, and default route
change to the PPP0 interface.  On the /var/log/messages, I see that my ppp
connection is established and connected, but the remote ip address is the
isp address, but the local ip address is my network interface.  If I took
out the network interface ip address and change the gateway to use the PPP0
interface, then PPP works fine.  I need to be able to connect to my own
network and dial out at the same time.  Can any one help?
 
 
 

PPP & Network Connection

Post by Clifford Ki » Sat, 12 Sep 1998 04:00:00


By definition there can't be two active default routes.  Pppd won't
automatically replace an existing default route.  To get an active
default route to ppp0 while connected to the ISP you can put

/sbin/route add default ppp0

in /etc/ppp/ip-up.  Once the ppp connection is down the default route
to your network will again become the active default route.

To get to any place on your network, regardless of the default route,
you only need a specific network route of the form

/sbin/route add -net ${NETWORK} netmask ${NETMASK}

====


>I have a RedHat Linux 5.1 Box on my network.  I have my network interface
>and default gateway point to the router on my network which route to a
>different office.  I put a modem in my Linux box and try to connect to my
>ISP using PPP.  I can get the modem to dial and connect.  But I have a hard
>time getting the local ip-address assigned by the ISP, and default route
>change to the PPP0 interface.  On the /var/log/messages, I see that my ppp
>connection is established and connected, but the remote ip address is the
>isp address, but the local ip address is my network interface.  If I took
>out the network interface ip address and change the gateway to use the PPP0
>interface, then PPP works fine.  I need to be able to connect to my own
>network and dial out at the same time.  Can any one help?

--
Clifford Kite                                              Not a guru. (tm)


 
 
 

PPP & Network Connection

Post by Andreas Ha » Sun, 13 Sep 1998 04:00:00


On Fri, 11 Sep 1998 00:42:26 -0700, "cnews.newsguy.com"


>I have a RedHat Linux 5.1 Box on my network.  I have my network interface
>and default gateway point to the router on my network which route to a
>different office.  I put a modem in my Linux box and try to connect to my
>ISP using PPP.  I can get the modem to dial and connect.  But I have a hard
>time getting the local ip-address assigned by the ISP, and default route
>change to the PPP0 interface.  On the /var/log/messages, I see that my ppp
>connection is established and connected, but the remote ip address is the
>isp address, but the local ip address is my network interface.  If I took
>out the network interface ip address and change the gateway to use the PPP0
>interface, then PPP works fine.  I need to be able to connect to my own
>network and dial out at the same time.  Can any one help?

Do you use the defaultroute setting with pppd? (propably in your
provider.options file)

It will add the defaultroute to the routing table. Default route means
0.0.0.0 - networks will then be accessed with your assigned IP-address

Andreas Hack


 
 
 

1. ppp && PPPoE && ADSL && net && buffer(s)

Hello!
i have a freebsd box (4.8-RELEASE) and a italian ADSL (256/128 if i remember good) line.
sometimes my freebsd box (that i use as firewall in my little lan) became stalled.
no data arrive and with ping IP i get error about some buffers full.
in ppp.log i see a lot of:
Jun 24 22:45:39 firewall ppp[66]: tun0: Phase: Clearing choked output queue

i search with google on newsgroups but i don't find nothing that work :)

i put some info on the configuration, because i read a lot of question about this parameters :)

kernel config:
maxusers        64
options         NMBCLUSTERS=32768       #expand nic buffer

in ppp.conf:
add default HISADDR

netstat -m:
1/400/131072 mbufs in use (current/peak/max):
        1 mbufs allocated to data
0/182/32768 mbuf clusters in use (current/peak/max)
464 Kbytes allocated to network (0% of mb_map in use)
0 requests for memory denied
0 requests for memory delayed
0 calls to protocol drain routines

netstat -t:
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.100.1      UGSc       15  8181837   tun0
localhost          localhost          UH         11   116358    lo0
192.168.0          link#1             UC          3        0    rl0
firewall           00:10:a7:06:7b:50  UHLW        3    31603    lo0
stefano            00:06:4f:01:08:86  UHLW       12 15328918    rl0    900
192.168.0.255      ff:ff:ff:ff:ff:ff  UHLWb       0     2635    rl0
192.168.100.1      hostXXX-172.pool62 UH         19        0   tun0

i hope that someone can help me :)

Regards,
        Stefano

--
Stefano Balocco
RIPE handle:    6BONE-SB27
Keyserver:      http://keyserver.linux.it ID:     8EF05AB2
Fingerprint:    DF65 A9E5 E307 D647 9E41 1CD1 9265 BF7D 8EF0 5AB2

2. Press Release - Linux V1.2

3. RH5.1 PPP connection: PPP connection persists, telnet session times out

4. zsh suspend

5. Ask ppp-on and ppp-on-dialer for ppp connection

6. Suse 7.2 Netware Printing

7. network can't see PPP connection to internet.

8. XF86config for MAG DJ700

9. -->!!HELP: Network Unreachable when using PPP connection

10. Routing a network through a PPP connection

11. PPP networking connection to virgin.net

12. My PPP Connection/Network Connectio

13. Help networking a ppp connection?