LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-22-2005, 09:01 AM   #16
dev_devil
LQ Newbie
 
Registered: Nov 2005
Location: India
Distribution: Mandrake 10.1
Posts: 17

Original Poster
Rep: Reputation: 0

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.
 
Old 12-22-2005, 10:27 AM   #17
camorri
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

Rep: Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937
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
 
Old 12-22-2005, 10:41 AM   #18
dev_devil
LQ Newbie
 
Registered: Nov 2005
Location: India
Distribution: Mandrake 10.1
Posts: 17

Original Poster
Rep: Reputation: 0
thnx
vl post the results after doin this!
 
Old 12-23-2005, 08:58 AM   #19
dev_devil
LQ Newbie
 
Registered: Nov 2005
Location: India
Distribution: Mandrake 10.1
Posts: 17

Original Poster
Rep: Reputation: 0
it says file already added!
 
Old 12-23-2005, 10:45 AM   #20
camorri
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

Rep: Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937
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.
 
Old 12-23-2005, 02:56 PM   #21
dev_devil
LQ Newbie
 
Registered: Nov 2005
Location: India
Distribution: Mandrake 10.1
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 12-24-2005, 05:02 AM   #22
camorri
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

Rep: Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937
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.
 
Old 12-24-2005, 08:03 PM   #23
dev_devil
LQ Newbie
 
Registered: Nov 2005
Location: India
Distribution: Mandrake 10.1
Posts: 17

Original Poster
Rep: Reputation: 0
yes the ping reports the ip address as 192.168.1.1
 
Old 12-25-2005, 12:51 PM   #24
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Please try to use more descriptive thread titles in the future, this one has been updated.
 
Old 12-26-2005, 10:19 AM   #25
camorri
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

Rep: Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937
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.
 
Old 12-27-2005, 11:44 AM   #26
dev_devil
LQ Newbie
 
Registered: Nov 2005
Location: India
Distribution: Mandrake 10.1
Posts: 17

Original Poster
Rep: Reputation: 0
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!!
 
Old 12-27-2005, 12:39 PM   #27
camorri
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

Rep: Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937
I glad you found the problem. I'm happy to help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vSat Broadband Connection aviceda Linux - Hardware 3 10-05-2005 11:18 AM
broadband connection wifi noir911 *BSD 3 08-25-2005 06:52 PM
multiple broadband connection hariiyer Linux - Networking 2 08-21-2005 07:16 AM
broadband connection failure jamna17 Linux - Networking 2 02-26-2005 07:49 AM
Broadband connection monitor jpweston Linux - Software 3 06-06-2002 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration