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 04-26-2007, 05:04 PM   #1
ste
LQ Newbie
 
Registered: Nov 2003
Posts: 3

Rep: Reputation: 0
wireless & wired active?


hi all

i have ubuntu setup on my laptop. my primary connection is my wireless but i also have a wired connection which i would like to use to connect to a media centre box which is linux based.

i did have it setup in windows in the old days but cant seem to get it to work in linux. the old windows setup was to give the wired connection a static ip, add a user and a share folder, and then give the media centre box a user name and password and also a shared directory to mount. also had to tell it what ip to look at

i used to be able to ping the box but cant no more which suggests that my wired connection isnt active - i dont know how to make it active...i have tried going through the network connections but seem to activate as i cant get it to ping the other box.... is it possible to have it active at the same time as the wireless if so how?

i have setup a share folder under /home/media/ with a NFS share

my ifconfig -a

Code:
eth0      Link encap:Ethernet  HWaddr 00:0F:B0:E5:1E:C8  
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:22 Base address:0x8000 

eth1      Link encap:Ethernet  HWaddr 00:16:6F:7F:AA:E0  
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::216:6fff:fe7f:aae0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3472 errors:1 dropped:2 overruns:0 frame:0
          TX packets:3273 errors:0 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:1000 
          RX bytes:30550429 (29.1 MiB)  TX bytes:5664583 (5.4 MiB)
          Interrupt:23 Base address:0xa000 Memory:bc007000-bc007fff 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:366 errors:0 dropped:0 overruns:0 frame:0
          TX packets:366 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:37918 (37.0 KiB)  TX bytes:37918 (37.0 KiB)

vmnet1    Link encap:Ethernet  HWaddr 00:50:56:C0:00:01  
          inet addr:172.16.121.1  Bcast:172.16.121.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:94 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

vmnet8    Link encap:Ethernet  HWaddr 00:50:56:C0:00:08  
          inet addr:172.16.221.1  Bcast:172.16.221.255  Mask:255.255.255.0
          inet6 addr: fe80::250:56ff:fec0:8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:94 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
my media box is

ip: 198.168.0.3
sub: 255.255.255.0
broadcast: 198.168.0.255
gateway & DNS: 198.168.0.2

can anyone help?
 
Old 04-26-2007, 05:31 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I do not Ubuntu setup but if you are wanting the media box to connect to the net this is probably what you want to do. Sorry if it gets to technical.

First setup eth1 as you more than likely have now.
On eth0 you only need to set an IP and netmask. No gateway needed.
Now going to say http://easyfwgen.morizot.net/gen/ and and answer the questions to setup a gateway/firewall.
Copy the script it shows at the end and save to a file in say /etc and call it firewall.sh
Now make the /etc/firewall.sh executable. ' /sbin/chmod +x /etc/firewall.sh '
Bring up both nics and make sure internet is working.
Next run the script from /etc directory like this as root. ' ./firewall.sh '
Now see if the media device box does what is needed.

Brian
 
  


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
SLAX as a wireless client & bridge for wired network fofodaman Linux - Newbie 5 09-18-2006 01:48 PM
File transfer speeds... SuSe to XP - Wired & Wireless Stealthy_C Linux - Wireless Networking 3 09-07-2006 11:40 PM
Can't connect if wired & wireless both installed nelamvr6 Linux - Wireless Networking 3 11-17-2005 08:25 PM
Wireless Laptop to Wired ethernet via Linux PC (wired/wireless) sambartle Linux - Wireless Networking 0 01-30-2005 04:37 AM
wired & wireless different subnets rickenbacherus Linux - Wireless Networking 2 11-10-2004 06:45 AM

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

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