* pppd routing
@ 2004-04-10 18:33 nick
2004-04-10 19:41 ` Bill Unruh
2004-04-10 19:52 ` James Carlson
0 siblings, 2 replies; 3+ messages in thread
From: nick @ 2004-04-10 18:33 UTC (permalink / raw)
To: linux-ppp
Hi, I am still trying to connect to the Internet from Linux and I cannot
seem to get the network/routing right.
When I connect from windows, the DNS server, personal IP and routing are
established automatically, but not under linux ? Why ?
>Did u get the ip address? Maybe you should check is there are DNS
>servers ips on your /etc/resolv.conf using the cat command if you want
>cat /etc/resolv.conf. If there is none, you should add the following
>line:
>nameserver1 IP_ADDRESS of the DNS server
>nameserver2 IP_ADDRESS of the second DNS server
>Example:
>nameserver1 200.176.3.10
>nameserver2 200.176.3.11
I did that, but it did not solve anything.
Now, i cannot even get the Linux up and running. I had the bad idea to
run 'setup' and tell Linux to start 'sendmail' at startup. When it gets
to sendmail, it just blocks and Linux won't start. I tried to pass
"linux single", to grub, so I can run setup againg and remove , but it
does not work.
Someone else says:
"One of (at least) three possible things:
- your local name service is misconfigured (what's in
/etc/resolv.conf?)
- your local routing configuration is wrong (what does
'netstat -nr' or 'route -n' report?)"
I looked at "netstat -nr" and "route -n", but since I run windows/linux
on the same laptop (and cannot connect to the net from Linux), I could
not capture the output into a file and send it along with the email.
Again, I use 'usedefaultroute' (or 'defaultroute)in pppd script/conf,
wasn't it suppose to add the routing automatically to the routing table
? In /var/log/messages I have 4 IPs:
-IP_assigned to me
-peers_IP
-DNS_primary
-DNS_secondary
What is the form of route command that I am supposed to run in order to
be able to go outside peers_ip ?
>- the peer's routing is broken (is this your ISP or some other
> machine?)
Actually, I have a sprint cell phone with Vision on it, but from what I
read on the net, this should work, plus, I am positive it does connect,
because I see traffic on my cell (sending+receiving) when I do ping the
machine I am connected to.
>On the assumption that this peer is your ISP and that (therefore) the
>peer isn't just plain broken, you'll need to check the other two
>things. At a guess, one or more of these is wrong:
> - you have a misconfigured default route and/or local Ethernet
interface that is causing packets not to go through the PPP
link when they should.
This is may be the problem.
> - you're missing the "defaultroute" option.
I've got this.
>- you need to get DNS server addresses from your ISP -- either
>use the "usepeerdns" option and link /etc/resolv.conf to
>/etc/ppp/resolv.conf
How do I link /etc/resolv.conf to /etc/ppp/resolv.conf ?
>*OR* create /etc/resolv.conf and add appropriate static addresses >there.
I did this.
>When posting, please include complete debug logs and configuration
>files. Saying that you're able to connect is nice, but it's nicer
>still to be able to look over the actual information.
Well, I would be happy to do that, but I have no floppy disk on the
laptop and I don't know if the CDwrite function would work under linux,
so I can get them under windows and send you this message.
Thank you for your effort,
Nick
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: pppd routing
2004-04-10 18:33 pppd routing nick
@ 2004-04-10 19:41 ` Bill Unruh
2004-04-10 19:52 ` James Carlson
1 sibling, 0 replies; 3+ messages in thread
From: Bill Unruh @ 2004-04-10 19:41 UTC (permalink / raw)
To: linux-ppp
On Sun, 11 Apr 2004, nick wrote:
>
> Hi, I am still trying to connect to the Internet from Linux and I cannot
> seem to get the network/routing right.
>
> When I connect from windows, the DNS server, personal IP and routing are
> established automatically, but not under linux ? Why ?
>
>
> >Did u get the ip address? Maybe you should check is there are DNS
> >servers ips on your /etc/resolv.conf using the cat command if you want
> >cat /etc/resolv.conf. If there is none, you should add the following
> >line:
> >nameserver1 IP_ADDRESS of the DNS server
> >nameserver2 IP_ADDRESS of the second DNS server
> >Example:
> >nameserver1 200.176.3.10
> >nameserver2 200.176.3.11
>
>
> I did that, but it did not solve anything.
> Now, i cannot even get the Linux up and running. I had the bad idea to
> run 'setup' and tell Linux to start 'sendmail' at startup. When it gets
It only blocks for about 3 min. then it continues. So start it up, go
out for a coffee or watch one of the Stanley cup games, and after that
come back and remove the sendmail. It is trying to do some address
lookups and failing on overly long timeouts.
> to sendmail, it just blocks and Linux won't start. I tried to pass
> "linux single", to grub, so I can run setup againg and remove , but it
> does not work.
"it does not work" What does not work?
>
> Someone else says:
>
> "One of (at least) three possible things:
> - your local name service is misconfigured (what's in
> /etc/resolv.conf?)
>
> - your local routing configuration is wrong (what does
> 'netstat -nr' or 'route -n' report?)"
>
> I looked at "netstat -nr" and "route -n", but since I run windows/linux
> on the same laptop (and cannot connect to the net from Linux), I could
> not capture the output into a file and send it along with the email.
>
> Again, I use 'usedefaultroute' (or 'defaultroute)in pppd script/conf,
> wasn't it suppose to add the routing automatically to the routing table
No, it does not do so if you also have an ethernet card with a default
route.
Put
route del default
at the end of /etc/rc.d/rc.local
and run it as root befor you start up pppd (only once).
Can you store the file onto your win filesystem? Can you write it to
floppy? Can you write it to CDRom?
Can you write it down?
Look at the line which starts 0.0.0.0 or default. Does it end with ppp0
or with eth0?
Without info it is hard to give advice.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: pppd routing
2004-04-10 18:33 pppd routing nick
2004-04-10 19:41 ` Bill Unruh
@ 2004-04-10 19:52 ` James Carlson
1 sibling, 0 replies; 3+ messages in thread
From: James Carlson @ 2004-04-10 19:52 UTC (permalink / raw)
To: linux-ppp
nick writes:
> Someone else says:
That "someone else" was me.
> "One of (at least) three possible things:
> - your local name service is misconfigured (what's in
> /etc/resolv.conf?)
>
> - your local routing configuration is wrong (what does
> 'netstat -nr' or 'route -n' report?)"
>
> I looked at "netstat -nr" and "route -n", but since I run windows/linux
> on the same laptop (and cannot connect to the net from Linux), I could
> not capture the output into a file and send it along with the email.
That shouldn't be a problem. Just mount up the Windows filesystem
under Linux and write the debug output on that.
> Again, I use 'usedefaultroute' (or 'defaultroute)in pppd script/conf,
> wasn't it suppose to add the routing automatically to the routing table
> ?
Yes, but only if it works! If there's an existing default route (due
to prior misconfiguration of your system), then pppd won't replace the
broken default route, and you'll have exactly the symptoms you
describe.
This is a _common_ system configuration mistake, especially (for some
reason) on Linux, but without seeing the "netstat -nr" output, I can't
tell you whether or not you're running into it.
> In /var/log/messages I have 4 IPs:
> -IP_assigned to me
> -peers_IP
> -DNS_primary
> -DNS_secondary
>
> What is the form of route command that I am supposed to run in order to
> be able to go outside peers_ip ?
You shouldn't have to run any such command.
> >- the peer's routing is broken (is this your ISP or some other
> > machine?)
>
> Actually, I have a sprint cell phone with Vision on it, but from what I
> read on the net, this should work, plus, I am positive it does connect,
> because I see traffic on my cell (sending+receiving) when I do ping the
> machine I am connected to.
OK, but that doesn't verify the default route or the DNS resolver
configuration.
> > - you have a misconfigured default route and/or local Ethernet
> interface that is causing packets not to go through the PPP
> link when they should.
>
> This is may be the problem.
"netstat -nr", please.
> > - you're missing the "defaultroute" option.
>
> I've got this.
OK.
> >- you need to get DNS server addresses from your ISP -- either
> >use the "usepeerdns" option and link /etc/resolv.conf to
> >/etc/ppp/resolv.conf
>
> How do I link /etc/resolv.conf to /etc/ppp/resolv.conf ?
Do this:
# rm -f /etc/resolv.conf
# ln -s /etc/ppp/resolv.conf /etc/resolv.conf
> >*OR* create /etc/resolv.conf and add appropriate static addresses >there.
>
> I did this.
If those addresses are correct, then you shouldn't have trouble with
DNS. It's hard to tell, though.
There are many other possible problems. If you can't get debug
output, I don't think anyone will be able to diagnose them for you.
Here's another random suggestion (since this is a cell phone): try
using the "default-asyncmap" option.
--
James Carlson <carlson@workingcode.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-04-10 19:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-10 18:33 pppd routing nick
2004-04-10 19:41 ` Bill Unruh
2004-04-10 19:52 ` James Carlson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox