LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-27-2010, 01:12 PM   #16
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845

Quote:
Originally Posted by redrum1990 View Post
I've had no luck what-so-ever.

It only seems that the last line doesnt work, any ideas?
it works for me probably because i set it up to work under my specific network setup.

please describe :
- the ip address of your router and dns server.
- the network info you are trying to set-up for your first computer (ip address, netmask, dns, ...)
- the network info you are trying to set-up for your second computer (ip address, netmask, dns, ...)
 
Old 06-27-2010, 01:25 PM   #17
redrum1990
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Original Poster
Rep: Reputation: 0
Seeing as the IPtables get flushed I can post them but its going to be the same as the script with changes of IP addresses and devices.

IP of the router is 192.168.1.1

IP of first computer (Linux with internet connection) is: 192.168.1.110 subnet 255.255.255.0 gateway 192.168.1.1

IP of second computer (XBOX360) is 192.168.10.101 subnet 255.255.255.0 gateway 192.168.1.110

Many thanks

Last edited by redrum1990; 06-27-2010 at 01:27 PM.
 
Old 06-27-2010, 01:42 PM   #18
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
^ still hard to diagnose with not all information. example:
Code:
xbmc@XBMCLive:~$ ifconfig
eth2      Link encap:Ethernet  HWaddr 90:fb:a6:47:11:31  
          inet addr:192.168.10.101  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::92fb:a6ff:fe47:1131/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22 errors:0 dropped:0 overruns:0 frame:0
          TX packets:134 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1370 (1.3 KB)  TX bytes:43515 (43.5 KB)
          Interrupt:23 Base address:0x2000 

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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ra0       Link encap:Ethernet  HWaddr 70:1a:04:96:ef:53  
          inet addr:192.168.1.105  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::721a:4ff:fe96:ef53/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:98812 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11953 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:30725122 (30.7 MB)  TX bytes:1222129 (1.2 MB)
          Interrupt:19 

xbmc@XBMCLive:~$ ip route
192.168.1.0/24 dev ra0  proto kernel  scope link  src 192.168.1.105 
192.168.10.0/24 dev eth2  proto kernel  scope link  src 192.168.10.101 
default via 192.168.1.1 dev ra0  metric 100 
xbmc@XBMCLive:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 ra0
192.168.10.0    *               255.255.255.0   U     0      0        0 eth2
default         192.168.1.1     0.0.0.0         UG    100    0        0 ra0
xbmc@XBMCLive:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 ra0
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 eth2
0.0.0.0         192.168.1.1     0.0.0.0         UG    100    0        0 ra0
xbmc@XBMCLive:~$ cat /etc/resolv.conf 
nameserver 192.168.1.1
more info http://linux-ip.net/html/tools-route.html

i would start by looking at the gateway of the second computer (also does it ask for dns info ?).

what is '192.168.1.110' ? is it the ip of the wifi adapter (connected to the router), or is it the ethernet adapter (connected to the xbox) ?
 
Old 06-27-2010, 01:54 PM   #19
redrum1990
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Original Poster
Rep: Reputation: 0
Ok sorry, 192.168.1.110 is the IP of the linux box connected to the internet through wifi, I want the Xbox to connect to the internet through the linux box which is conneced by ethernet. Does this solve any questions?

Also the more detailed log you asked for is below:

Code:
[root@localhost /]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1F:A7:7F:B9:33  
          inet addr:192.168.10.101  Bcast:192.168.10.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:52 

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:1862 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1862 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5591980 (5.3 MiB)  TX bytes:5591980 (5.3 MiB)

wlan0     Link encap:Ethernet  HWaddr 00:1F:A7:7F:B9:33  
          inet addr:192.168.1.110  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21f:a7ff:fe7f:b933/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:605 errors:0 dropped:0 overruns:0 frame:0
          TX packets:635 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:594520 (580.5 KiB)  TX bytes:89569 (87.4 KiB)

[root@localhost /]# ip route
192.168.1.0/24 dev wlan0  proto kernel  scope link  src 192.168.1.110 
192.168.10.0/24 dev eth0  proto kernel  scope link  src 192.168.10.101 
169.254.0.0/16 dev wlan0  scope link 
default via 192.168.1.1 dev wlan0 
[root@localhost /]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 wlan0
192.168.10.0    *               255.255.255.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 wlan0
default         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0
[root@localhost /]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 wlan0
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0
[root@localhost /]# cat /etc/resolv.conf

search localdomain
nameserver 192.168.1.1
 
Old 06-27-2010, 02:24 PM   #20
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
^ hmm. not sure what the SIOCADDRT error means (i think it thinks the router is not in the correct address range for the ehernet device -- edit: or maybe it doesnt know what to do with '169.254.0.0/16' because i dont know what it is). but judging by your ifconfig output it seems to have set up the address config for the wifi and ethernet adapters.

the config for the xbox seems wrong (but that doesnt explain why the route command is failing).
Code:
xbox:
ip: 192.168.10.102
gateway: 192.168.10.101
dns: 192.168.1.1
netmask: 255.255.255.0
turn on your xbox and try to ping it as a test: ping 192.168.10.102

Last edited by schneidz; 06-27-2010 at 02:35 PM.
 
1 members found this post helpful.
Old 06-27-2010, 02:42 PM   #21
redrum1990
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Original Poster
Rep: Reputation: 0
Success! Thank you so so much!

It seems to work now, just with some warnings about "limited experience" but thats most likely because of port configuration?

If you could give me any reading material on that I would be eternally grateful and also why the gateway had to be 192.168.10.101?

Many many thanks.

P.S Didnt have to do the route command, just gave it one last go from the Xbox and it went through. Thanks again

Last edited by redrum1990; 06-27-2010 at 02:53 PM.
 
Old 06-27-2010, 03:21 PM   #22
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
^ to explain it shortly, the subnet you created on eth0 has an address 192.168.10.101 so any device you connect to it has to have an address in the range 192.168.10.x (x can be anything from 1-254 except for 101) much like a normal router.
 
Old 06-27-2010, 03:22 PM   #23
redrum1990
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Original Poster
Rep: Reputation: 0
Ah ok, it seems to connect ok now, just a problem with connecting to other users (as far as I can tell any other users).

Any ideas why this is?
 
Old 06-27-2010, 03:27 PM   #24
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
sorry i bought the $100 wifi adapter for my xbox. but i got rid of my xbox because because it red-ringed 2wice in 3 months.
 
Old 06-27-2010, 03:31 PM   #25
redrum1990
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Original Poster
Rep: Reputation: 0
Yeah this was supposed to be my way round that just couldnt justify the cost really.

Will have to have a look into it again I suppose.

Wouldnt suppose this route problem could have anything to do with it could it? Just a thought.
 
Old 06-27-2010, 05:22 PM   #26
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
^ doubt it. probably the router.

this mite help
Quote:
Option 2: Port Forwarding - the second option you can try is to see if your router supports the setup of "port forwarding" rules and if so setup (three) port forwarding rules for the following three ports to the IP address of your Xbox:
UDP 88
UDP 3074
and
TCP 3074
http://www.360-hq.com/xbox-tutorials-18.html
also: http://www.360-hq.com/xbox-tutorials-18.html
 
Old 06-28-2010, 12:26 PM   #27
redrum1990
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Original Poster
Rep: Reputation: 0
Ok will give that a go later thanks once again for the help.

Just out of interest, there are no blocked ports etc on the router are there?

In other words all traffic just gets forwarded?
 
Old 06-28-2010, 12:36 PM   #28
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
as far as i know, your linux pc should relay all traffic from your wifi card to your ethernet card.

depending on the manufacturer/ model of your wifi router, maybe you need to access the admin page and open up some ports.
 
Old 06-28-2010, 12:53 PM   #29
redrum1990
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Original Poster
Rep: Reputation: 0
Yeah I've just gave that a go but it still just says that ill have a limited experience.

I have forwarded the ports to the Linux box tho? Is that correct or should i be doing it to the Xbox?
 
Old 06-28-2010, 01:05 PM   #30
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,027

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
to the linux box (i dont think your wifi router even be able to see your xbox ?)

maybe there are some ports you need to enable on your linux-pc; i'm not sure though.

also i'm reading this:
http://www.linuxquestions.org/linux/...a_wireless_LAN
SiegeX's comment looks promising.

my guess is it is forwarding tcp traffic but not udp traffic.

Last edited by schneidz; 06-28-2010 at 01:35 PM.
 
  


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
internet connection sharing in linux arunksit Linux - Networking 7 02-25-2007 04:46 PM
Sharing Linux Internet Connection with XP vishivishi Linux - Networking 11 04-19-2006 10:57 PM
sharing internet connection in linux parthbakshi Linux - Software 6 03-10-2006 08:35 PM
sharing internet connection in linux parthbakshi SUSE / openSUSE 1 03-10-2006 01:46 PM
Internet Connection Sharing through Linux 9 unmesh vaidya Linux - Newbie 1 11-25-2003 08:32 AM


All times are GMT -5. The time now is 06:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration