LinuxQuestions.org
Visit Jeremy's Blog.
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 03-29-2011, 08:42 AM   #1
grizdog
LQ Newbie
 
Registered: Jun 2008
Posts: 16

Rep: Reputation: 0
Can't access second network interface


Hi,

I'm having all sorts of problems connecting an access point to my computer, but here is one piece that I hope will get me going, if I can get it solved.

My computer has two network interfaces, eth0 and eth1. eth1 connects to the cable modem and thence the world, and works fine. eth0 is supposed to connect to the access point over a private network. Here is the output from route with my IP address blotted out:

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
***********      *               255.255.254.0   U     1      0        0 eth1
link-local      *               255.255.0.0     U     1000   0        0 eth1
default         ************.cpe. 0.0.0.0         UG    0      0        0 eth1
I used my laptop to set the address of the access point to 192.168.1.20 - no problem there, the browser connected right to it. Then I plugged the access point into eth0, pointed the browser to 192.168.1.20, and nothing (timed out). Moreover, ifconfig shows no traffic at all on eth0 - no packets received or transmitted. So I'm guessing that despite the entry in the routing table, my browser is looking on eth1 and that is why it is not finding it.

I restarted networking, no change. I am using ubuntu 10.04.

Thanks.
 
Old 03-29-2011, 11:52 AM   #2
jgbreezer
LQ Newbie
 
Registered: Mar 2011
Location: London, UK
Distribution: Ubuntu + Redhat(work)
Posts: 7

Rep: Reputation: 0
I'm not /that/ great at routing table details, but in the absence of other replies so far...

I believe you're missing a route to the .1.20 gateway on eth0, when it tries to get there it sees the .1.0 entry with no specific gateway set. So (my guess) is that it will use the default gateway, which is via eth1. Not eth0.

Maybe (not that sure), adding a route to 192.168.1.20 via eth0 would help (or resetting the existing default one, if that doesn't mess with other setup/plans), to point at eth0, will do it.

Hmm... Experts please?
 
Old 03-30-2011, 06:40 AM   #3
grizdog
LQ Newbie
 
Registered: Jun 2008
Posts: 16

Original Poster
Rep: Reputation: 0
Solved

Bad cable.

Thanks.
 
  


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
How to set access permissions on a network interface? 10110111 Linux - Software 12 08-30-2010 10:15 AM
Granting selected user access to selected network interface dexen Linux - Networking 2 10-04-2009 03:51 AM
How NET_TX_SOFTIRQ select network interface when multiple interface exits Mr.J Linux - Kernel 0 06-02-2009 11:17 AM
Several network interfaces: preventing access to one interface Pinguix Linux - Networking 1 11-30-2006 08:57 AM
xmms network access / web interface Calcutec Linux - Software 0 12-19-2005 06:31 PM

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

All times are GMT -5. The time now is 12:57 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