pppoe internet can ping external IP,but resolving NAT DNS fails
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
pppoe internet can ping external IP,but resolving NAT DNS fails
Hello,
I use Debian Etch,apt-pinned with unstable and experimental repos.yesterday onwards,when i try my adsl to connect,it shows connected.but when i try on my web browser (iceweasel2),or pinging www.linuxquestions.org,itfails,though i can ping IP addresses of any sites on www.
i tried/checked /etc/resolv.conf for dns server for ISP entries;it is there.checked firewall rules(iptables,tried flushing rules too).looked ifconfig for eth0 and lo and both are working with ppp0 as the internet connxn.i tried "route del default" and "route add default ppp0"-that also not able to solve my problem.So I assumed some problem with DNS server of ISP.But Now as I can Browse Internet with Ubuntu Edgy-it seems to me that My Debian Install have some problem resolving DNS,as well as NAT.so please Help!
I think that the line for your gateway should look like:
Code:
default 59.93.0.1 0.0.0.0 UG 0 0 0 ppp0
I use a cable modem and have a NAT router, so I assign the router's IP address as the gateway Address ( "gw 192.168.1.1" in the route command ). The 255.255.255.255 netmask just looks bizarre to me, but it turns out to be correct. I'm glad I don't have DSL.
I think that you left out the "gw 59.93.0.1" argument to the route command. You need to delete your old default route and include the gateway argument when you setup the default gateway route.
I am working with my ubuntu for few days.so today only i checked debian for net.now it is working! SO...Self Healing power of Debian
here is the o/p of /sbin/route
Code:
prakash@etch:~$ /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
59.93.0.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0
anyways i've tinkered with my adsl router Huaewei MT 880 web interface @ 192.168.1.1
Last edited by deepclutch; 12-17-2006 at 04:12 AM.
The following is the ip route output:
59.93.0.1 dev ppp0 proto kernel scope link src 59.93.20.100
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.2
169.254.0.0/16 dev eth0 scope link
127.0.0.0/8 dev lo scope link
default via 192.168.1.1 dev ppp0
line for gateway can be chaged by
ip route change default via address dev ppp0
The address should be the inet addr or P-t-P ? I am using a DSL modem. Please help.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.