[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ppp addresses and routing table



Bernd Prager wrote:

> I'm experiencing some trouble with my DSL setup.
> Every time after reboot my routing table is using my ppp0 P-t-P
> address instead of its inet address.

Which is the correct way of setting routes. Default should go though the
other end of the ppp connection.

>
> $ ifconfig ppp0
> ppp0      Link encap:Point-to-Point Protocol          inet
> addr:168.100.249.107  P-t-P:168.100.250.1  Mask:255.255.255.255
>          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
>          RX packets:278715 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:280248 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:3
>          RX bytes:155755125 (148.5 MiB)  TX bytes:67529994 (64.4 MiB)
>
> $ route -e
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS Window 
> irtt Iface
> 168.100.250.1 *               255.255.255.255 UH        0 0          0
> ppp0
> 192.168.2.0     *               255.255.255.0   U         0 0         
> 0 eth0
> 192.168.1.0     *               255.255.255.0   U         0 0         
> 0 eth1
> default         168.100.250.1 0.0.0.0         UG        0 0          0
> ppp0
>
> I'm not getting any Internet connection by using the P-t-P address.
> Only after I delete PPP0 and default gateway route and change them
> manually to the PPP0 inet address I get the desired connection.

Weird because that is the *correct* way of doing things.


> When I change the routing addresses from 168.100.250.1 to
> 168.100.249.107 I get:
>
> $ route -e
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags   MSS Window 
> irtt Iface
> 249-107.custome *               255.255.255.255 UH        0 0         
> 0 ppp0
> 192.168.2.0     *               255.255.255.0   U         0 0         
> 0 eth0
> 192.168.1.0     *               255.255.255.0   U         0 0         
> 0 eth1
> default         249-107.custome 0.0.0.0         UG        0 0         
> 0 ppp0
>
> And everything works fine from here.

Except this is not the correct way...

> Is there something with my configuration messed up and I should get a
> proper connection through the P-t-P address?
> Or is there a way to tell my system it should use the external address
> instead?


Are you trying to connect from this machine or some other one off on
eth0 or eth1 network?

- Adam



Reply to: