LinuxQuestions.org
Visit Jeremy's Blog.
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 04-02-2011, 04:06 AM   #1
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Rep: Reputation: 30
Two network cards conflict


I have a wireless card on my laptop which connects on wlan0:

Quote:
dave@SNECCI:~$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:25:d3:40:9a:70
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::225:d3ff:fe40:9a70/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9543 errors:0 dropped:0 overruns:0 frame:0
TX packets:9775 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6201749 (6.2 MB) TX bytes:2202479 (2.2 MB)
I also have a Tivit DVB-H device on USB:

Quote:
dave@SNECCI:~$ ifconfig usb0
usb0 Link encap:Ethernet HWaddr 1e:eb:fb:38:ba:55
inet addr:192.168.16.50 Bcast:192.168.16.255 Mask:255.255.255.0
inet6 addr: fe80::1ceb:fbff:fe38:ba55/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:117 errors:0 dropped:0 overruns:0 frame:0
TX packets:490 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:45661 (45.6 KB) TX bytes:81319 (81.3 KB)
If I need to connect to the Internet I have to disable the USB network.

It's not a big deal, but it's a bit of a pain.

Can anyone suggest a fix? I'm running Ubuntu 10.10
 
Old 04-02-2011, 05:39 AM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Hi,

I noticed the broadcast addresses differ...also, your IP addresses, this is weird:192.168.1.102 and 192.168.16.50. The second one has 16 as third entry...I doubt that is good...I'd like to see them both on 192.168.1.x, where the x is anything between 2 and 255 (1 is the router/gateway - I did'nt get that from the listing, but I assume that's in order)...
If I may make a humble suggestion: dont rely on DHCP but set the stuff to a fixed IP address.
Maybe this can help:
http://www.yolinux.com/TUTORIALS/Lin....html#ASSIGNIP

Luck!

Thor
 
Old 04-02-2011, 05:54 AM   #3
cov
Member
 
Registered: Apr 2005
Location: Durban
Posts: 436

Original Poster
Rep: Reputation: 30
:+(

I'm kind of constrained by the servers in each system.
 
Old 04-02-2011, 06:06 AM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Oh dear - you may have to bridge this, maybe this can help?
http://ubuntuforums.org/showthread.php?t=132515
This one is a bit more general:
http://www.linuxfoundation.org/colla...working/bridge

I'll be watching to help if needed!

Wellness to ya

Thor
 
Old 04-02-2011, 02:24 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Use a gateway address on the nic you want internet access to.
 
Old 04-02-2011, 02:36 PM   #6
devwatchdog
Member
 
Registered: Jan 2010
Posts: 202

Rep: Reputation: 47
First off, I wouldn't recommend bridging, as it doesn't appear it is needed. Proper routing tables can handle this easily as it is.

Let's take a look at the routing table when you have both interfaces up, and when you have only your wlan0 up.

Code:
route -n
From what you describe, I'd guess that when you have both networks connected, you probably have a default route pointing toward the usb0 network that overrides the wlan0 default. Have you configured static IP addresses, or do you get dhcp leases? I'd imagine the wlan0 one is probably dhcp. If dhcp lease requests on both interfaces, I imagine there is a way to make a request without the gateway included, which could be configured for usb0. If you're using static on both, you should remove the default gw definition for usb0.

Just a guess thus far. Let us know.
 
1 members found this post helpful.
Old 04-02-2011, 02:54 PM   #7
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Thanks devwatchdog, I've learned something here!

Quote:
First off, I wouldn't recommend bridging, as it doesn't appear it is needed. Proper routing tables can handle this easily as it is.
I assumed bridging would be the easier option as it would connect separate networks together, this led me into this path:

Quote:
I'm kind of constrained by the servers in each system.
Hence my disorientation...

Thor
 
  


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
conflict using two network cards mariogarcia Debian 3 02-03-2007 08:39 PM
wifi - ethernet conflict? (2 cards) PhysicsMgr Linux - Wireless Networking 7 12-04-2006 10:09 AM
Resource conflict on PCI bus (wireless + graphics cards) Anonycat Linux - Hardware 2 01-19-2006 04:32 PM
Conflict problem with sis 305 and nvidia video cards a.mcneill Linux - Hardware 0 10-11-2004 07:54 PM
IRQ conflict with NIC cards baczer Linux - Hardware 0 04-08-2004 08:27 AM

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

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