LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 01-17-2007, 05:07 PM   #1
haviles
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
Wireless problem while connecting two computers via a ethernet cable


Hello,

I want to connect a PC (Debian Sarge) and a laptop
(Ubuntu Edgy with network manager),
via a ethernet cable. Each computer have a wireless card working properly.
I connected the two computers using the cable with success by modifying the
/etc/network/interfaces files on both, the laptop:

auto eth0
iface eth0 inet static
address 10.10.10.1
netmask 255.255.255.0
gateway 10.10.10.2

and and the computer with Debian:

auto ath0
iface ath0 inet static
address 10.10.10.2
netmask 255.255.255.0
gateway 10.10.10.1

The problem is that the wireless no longer have access Internet; this
occurs in the two computers; However, both can see the available wireless networks on the LAN and ping well to my desktop computer. When I unplug the cable, the two wireless work fine again.

Can I connect the two computers this way while having a Internet connection with the wireless? and if so, How would I do that?

Best regards and thanks in advance for your response,
Héctor.
 
Old 01-17-2007, 05:14 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
You'll probably need to edit the routing tale on your system (with the route command) to make sure the default route is going over the wireless.
 
Old 01-17-2007, 05:19 PM   #3
xjlittle
Member
 
Registered: Aug 2003
Location: Indiana
Distribution: fc6 sles9 & 10 kubuntu ubuntu-server
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
Set the gateway on the two wired nics to the same one the wireless uses
 
  


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
Connecting two computers with a USB cable (data cable) seran Linux - General 5 08-01-2006 04:51 PM
Problem w/connecting to internet through ethernet or wireless starchild321 Linux - Wireless Networking 2 09-27-2005 05:36 PM
Ethernet. NTL cable connecting issue maximillion78 Linux - Hardware 1 02-23-2005 03:36 PM
Ethernet. Linux, NTL cable connecting issue Mobilemick Linux - Hardware 4 06-01-2004 02:41 PM
laptop can access samba server via ethernet cable but not wireless? cmisip Linux - Wireless Networking 4 05-24-2003 01:25 AM

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

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