Skip to contentSkip to conversation

pppd routing

DISCUSSION nick 3 participants 3 messages Apr 10, 2004 PPP protocol drivers and compressors

lore
Share & tools
lore

nick

author
#0 lore raw

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 ?

Quoted 9 lines

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 ?

Quoted 2 lines

- 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.

Quoted 5 lines

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.

Quoted 1 line

- you're missing the "defaultroute" option.

I've got this.

Quoted 3 lines

- 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 ?

Quoted 1 line

*OR* create /etc/resolv.conf and add appropriate static addresses >there.

I did this.

Quoted 3 lines

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

#1 lore raw
Quoted 19 lines · nick

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 ?

Quoted 9 lines

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

Quoted 3 lines

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.

Quoted 3 lines

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?

Quoted 10 lines

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?)"

Quoted 6 lines

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.

#2 lore raw
In reply to nick
Quoted 1 line · nick

Someone else says:

That "someone else" was me.

Quoted 10 lines

"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.

Quoted 3 lines

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.

Quoted 8 lines

In /var/log/messages I have 4 IPs:

(quoted diff) +0 -4
-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.

Quoted 7 lines
Quoted 2 lines

- 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.

Quoted 5 lines
Quoted 1 line

- 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.

Quoted 3 lines
Quoted 1 line

- you're missing the "defaultroute" option.

I've got this.

OK.

Quoted 5 lines
Quoted 3 lines

- 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
Quoted 3 lines
Quoted 1 line

*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.

Signature · 1 line
James Carlson                                  <[email protected]>