Re: pppd gateway/software suspend
Alessandro Speranza wrote:
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
Sure :-) But I still think it's a problem.
You have:
In my configuration, lo is:
> 127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
See the difference? Only traffic to 127.*.*.* gets routed through the
loopback interface.
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)
...
# automatically added when upgrading
auto eth0
Maybe I wasn't paying attention, but if eth0 is on a PC Card rather than
a fixed connection, it shouldn't be "auto". Probably not relevant to
this problem, though.
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
I would have thought this says your interface is 150.217.140.158 and any
traffic to 150.217.140.* should be routed to the gateway at
150.217.140.1. You can't get to the internet from there :-) If you
want _that_ to be a gateway, the netmask should be 0.0.0.0.
so, I believe, I should have the lo on again, but when I do route -n I get
I think setting "gateway", above, dropped the default gateway on lo
(which I still say you don't want) and set it on eth0.
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
Try dropping the first route there. If 150.217.140.1 is _really_ a
valid gateway, it's all you should need. However, it's acting like
150.217.140.1 is not a gateway to the outer world.
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: