LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-25-2007, 05:52 AM   #1
Metodej
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Rep: Reputation: 0
Problem with route


Hello,
I have problem with internet connection on Archlinux 2007.8. I am connect to the internet by ethernet card. I set up ip addres by ifconfig and gateway by route but it doesn't work. When I check the routing table I see there two gateway. The one that I set up and then second. I check rc.conf, conf for route but there is no record fo the second route. I tried to delete it by route -del ip but it always said: SIOCDELRT: No such process...

Does anybody have idea abou it?????
 
Old 12-25-2007, 09:07 AM   #2
FraGGod
Member
 
Registered: Jun 2007
Location: Yekaterinburg, RU
Distribution: gentoo
Posts: 59

Rep: Reputation: 16
Prehaps you should try "route del default" to delete default gateway and set the one you want instead with something like "route add default gw 192.168.0.1".
Then if you want to connect to, say, 10.0.0.0/8 thru gateway 192.168.0.2 just type "route add -net 10.0.0.0 netmask 255.0.0.0 gw 192.168.0.2", shouldn't be much of a problem.
 
Old 12-25-2007, 10:26 AM   #3
Metodej
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Yes I've tried this several times. But I think taht my problem is different. When I start PC there are two records in route table - first route(10.83.3.0) which I don't want to use.. I don't now where this route was set up.... and the second route(default 10.83.3.1). I del the first(10.83.3.0) but I cannot still reach internet....... I have Gentoo Linux on the second harddisk and there internet is working. I've checked config and they look same.....

Last edited by Metodej; 12-25-2007 at 10:28 AM.
 
Old 12-25-2007, 02:17 PM   #4
bmarx
Member
 
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 202

Rep: Reputation: 34
What output do you get from executing "route"? Does this match what you see in gentoo when it works? What output do you get if you execute "arp"? Are you able to ping the gateway? Are you able to ping other hosts on the network? Are packets being sent and received from the interface (use tcpdump or snort)?
 
Old 12-25-2007, 04:23 PM   #5
Metodej
LQ Newbie
 
Registered: Sep 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bmarx View Post
What output do you get from executing "route"?
10.83.3.0 * 255.255.255.0 U 0 0 0 eth0
default 10.83.3.1 255.255.255.0 UG 0 0 0 eth0

Quote:
Originally Posted by bmarx View Post
Does this match what you see in gentoo when it works?
I have the second line same as in Gentoo.

Quote:
Originally Posted by bmarx View Post
What output do you get if you execute "arp"?
Address HW Type HW Address IFace
10.83.3.1 (incomplete) eth0

Quote:
Originally Posted by bmarx View Post
Are you able to ping the gateway?
No -- Destination host unreacheble
Quote:
Originally Posted by bmarx View Post
Are you able to ping other hosts on the network?
No, same as gw
 
Old 12-25-2007, 06:53 PM   #6
FraGGod
Member
 
Registered: Jun 2007
Location: Yekaterinburg, RU
Distribution: gentoo
Posts: 59

Rep: Reputation: 16
Okay, let's sort it out:
You have an NIC with IP like 10.83.3.X
From there you want to reach 10.83.3.1, and thru that the rest of the world.

First thing, naturally, to reach 10.83.3.1 you MUST have a route which includes that IP (10.83.3.1) - the route to gateway or it'll say "Destination host unreachable", that's why you have "10.83.3.0 * 255.255.255.0 U 0 0 0 eth0" route. Notice the absence of "G" flag next to "U" - its not the route thru gateway, it's just a route telling that your system can reach 10.83.3.* from eth0 interface (10.83.3.X), if you delete that of course you won't be able to reach anything.

The fact that you see 10.83.3.1 in arp means that the gateway is reachable via ethernet, so, if you have 10.83.3.0/255.255.255.0 route and 10.83.3.1 as a default gateway your system should be able to reach gw and networks behind it, and the problem is either in gw or there's no problem at all.

Check if eth0 is the same NIC as eth0 in gentoo (since you have two of them), udev can call it any name it likes / you specify so prehaps your router denies you access because your network adapter have wrong MAC address.
Another (quite common) possibility is that you're testing connection by pinging (for example) google.com and don't see any output just because you haven't specified any DNS (/etc/resolv.conf) or the ones you've specified doesn't work. Try direct IPs or check if ping is able to resolve host IP at all.

Last edited by FraGGod; 12-25-2007 at 06:55 PM.
 
  


Reply



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
iproute2 (ip route), pppoe and default route lorddoskias Linux - Networking 0 05-09-2007 11:04 AM
Default route took 20s to display with 'route' command Akhran Linux - Newbie 3 11-04-2006 04:59 AM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM
ADSL as a Alternate route or backup route bhagat2000 Linux - Networking 0 05-27-2004 03:17 PM
Working with 'route' and unwanted route entries pioniere Linux - Networking 6 02-05-2003 12:14 PM

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

All times are GMT -5. The time now is 08:05 PM.

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