Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
|
12-22-2005, 09:01 AM
|
#16
|
LQ Newbie
Registered: Nov 2005
Location: India
Distribution: Mandrake 10.1
Posts: 17
Original Poster
Rep:
|
in DHCP i dont get the option for giving gateway!!
can u suggest a way to set it up??
as for name server i am still trying to get it done no luck till now!
Last edited by dev_devil; 12-22-2005 at 09:03 AM.
|
|
|
12-22-2005, 10:27 AM
|
#17
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,364
|
There are several ways. Probably using the route command is the simplest. Before you try this, open up konqueror and type in the address bar man:/route. This will bring up the man page and make it very readable. There are examples in there of how to add a gateway address.
You have to have a static route set to 192.168.1.1 first. I suspect you have that since you can ping 192.168.1.1.
This command should get it done ( as root ).
route add default gw 192.168.1.1
|
|
|
12-22-2005, 10:41 AM
|
#18
|
LQ Newbie
Registered: Nov 2005
Location: India
Distribution: Mandrake 10.1
Posts: 17
Original Poster
Rep:
|
thnx
vl post the results after doin this!
|
|
|
12-23-2005, 08:58 AM
|
#19
|
LQ Newbie
Registered: Nov 2005
Location: India
Distribution: Mandrake 10.1
Posts: 17
Original Poster
Rep:
|
it says file already added!
|
|
|
12-23-2005, 10:45 AM
|
#20
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,364
|
Good, That means your default Gateway should be 192.168.1.1. When you posted the results of /sbin/route that address was not shown,(it showed mygateway1.ar7 ) see the first page. Here is what /sbin/route should show.
Quote:
sbin/route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
|
This is from my machine. Would you verify yours shows the same.
Have you found out what the DNS IP addresses are yet?
At this point your router should be able to route you to the internet,if you use IP addresses, not URL's. You need the DNS IP addresses configured to make URL's work in your web browser.
Last edited by camorri; 12-23-2005 at 10:48 AM.
|
|
|
12-23-2005, 02:56 PM
|
#21
|
LQ Newbie
Registered: Nov 2005
Location: India
Distribution: Mandrake 10.1
Posts: 17
Original Poster
Rep:
|
i still get it the same
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default mygateway1.ar7 0.0.0.0 UG 0 0 0 eth0
|
|
|
12-24-2005, 05:02 AM
|
#22
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,364
|
We know you have a default route set. The IP address is being equated to a name, mygateway1.ar7 I'm not at all sure how that got set up. The typical place to put that type of information is in /etc/hosts file. Have a look there, if you have the file at all. (The netwrok will work without it). If you have an entry there that looks like this :
Quote:
192.168.1.1 mygateway1.ar7
|
then I would leave it alone. You could veryify that also by doing a ping; like this,
ping mygateway1.ar7
If the ping works, it will report the IP address of mygateway1.ar7, and it should be 192.168.1.1. If that is what happens, you can leave that part alone.
I suspect you set up the gateway using the wizard. One of my main reasons for not liking wizards is new users (usually me) not understanding what is being done, sometimes picking the wrong option, an then having the water muddied by the confusion...
If the IP address is set wrong for mygateway1.ar7, then use the route command and delete the current gateway, and add it as described before. See the man page for the exact command syntax. Try again and let us know.
|
|
|
12-24-2005, 08:03 PM
|
#23
|
LQ Newbie
Registered: Nov 2005
Location: India
Distribution: Mandrake 10.1
Posts: 17
Original Poster
Rep:
|
yes the ping reports the ip address as 192.168.1.1
|
|
|
12-25-2005, 12:51 PM
|
#24
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
Please try to use more descriptive thread titles in the future, this one has been updated.
|
|
|
12-26-2005, 10:19 AM
|
#25
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,364
|
O.K. we have spent some time, you have an IP address (DHCP server) from your D-link 502-T. It is time to try a ping out bound toward the internet. We need to determine if you are logged onto your ISP.
Open a konsole and try ping 64.179.4.149
64.179.4.149 is the IP address of LinuxQuestions.org. If that works, you do have a connection to your ISP, if not you probably do not. Try it, and post back the results.
|
|
|
12-27-2005, 11:44 AM
|
#26
|
LQ Newbie
Registered: Nov 2005
Location: India
Distribution: Mandrake 10.1
Posts: 17
Original Poster
Rep:
|
well the problem is resolved
i had to add DNS server in the manage connections
my DNS server wasent 192.168.1.1 as it was shown 
i checked the site where i configured the router and there were given two dns server add when i put them in using Manage Connections wizard the net started working
Neway thanx a ton for ur help n ur time!!

|
|
|
12-27-2005, 12:39 PM
|
#27
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,364
|
I glad you found the problem. I'm happy to help.
|
|
|
All times are GMT -5. The time now is 02:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|