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

Re: pppd gateway/software suspend



On Mon, 22 Mar 2004, Derek Broughton wrote:

> Surely that's plain wrong.  127.0.0.1 isn't your gateway - either with 
> eth0 or ppp0.

....not my fault....I think

> 
> If you have _any_ gateway set, pppd won't set a defaultroute, even if 
> the gateway is not on the ppp0 interface.  According to your 
> description, there isn't a default route set on "lo" either, when you 
> start pppd, but I don't know why not - taking down eth0 won't remove the 
> route entry for lo.

Now, in fact, it's even funnier than this. After I disconnected gprs 
connection, just a few minutes ago, I restarted net by running netenv to 
change all the settings again. Now my /etc/network/interfaces is 

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
 
# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback
 
# automatically added when upgrading
auto eth0
 
iface eth0 inet static
address 150.217.140.158
netmask 255.255.255.0
gateway 150.217.140.1
network 150.217.140.0
broadcast 150.217.140.255

so, I believe, I should have the lo on again, but when I do route -n I get 

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
150.217.140.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0
0.0.0.0         150.217.140.1   0.0.0.0         UG    0      0        0 eth0

and I seem to get only to my domain, not outside. 
Ifconfig says

eth0      Link encap:Ethernet  HWaddr 00:08:02:02:AC:9F
          inet addr:150.217.140.158  Bcast:150.217.140.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1341 errors:0 dropped:0 overruns:0 frame:0
          TX packets:258 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:131282 (128.2 KiB)  TX bytes:31650 (30.9 KiB)
          Interrupt:11 Base address:0xc000
 
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:75 errors:0 dropped:0 overruns:0 frame:0
          TX packets:75 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:16968 (16.5 KiB)  TX bytes:16968 (16.5 KiB)


so, both eth0 and lo are actually up, but lo has disappeared in the route 
table. And although the gateway and dns (resolv.conf is ok) are on the 
right values, I get just as far as my work group....I'm getting 
confused....what am I doing wrong?



Reply to: