LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 09-05-2010, 10:31 PM   #1
vendtagain
Member
 
Registered: Sep 2009
Distribution: Slackware, Debian, Mac OS X, Zenwalk, Puppy, Gentoo
Posts: 194

Rep: Reputation: 31
ip forwarding, routing table


I'm working on Slackware 13, and trying to connect an XBox to the internet by connecting it through the ethernet cable on a computer picking up wireless.

I have enabled ip forwarding with
Code:
sysctl -w net.ipv4.ip_forward=1
I think all I need to do is something with my routing table, but haven't figured out how to configure this part. The computer is connected through wlan0, and the ethernet going to the xbox is eth0.

Here is what route -n reveals
Code:
root@slack:/# route -n
Kernel IP routing table
Destination     Gateway            Genmask            Flags Metric Ref    Use   Iface
192.168.2.0     0.0.0.0            255.255.255.0   U       0         0        0     wlan0
127.0.0.0         0.0.0.0            255.0.0.0           U       0         0        0      lo
0.0.0.0            192.168.2.1     0.0.0.0              UG      0         0        0     wlan0
 
Old 09-06-2010, 12:12 AM   #2
vendtagain
Member
 
Registered: Sep 2009
Distribution: Slackware, Debian, Mac OS X, Zenwalk, Puppy, Gentoo
Posts: 194

Original Poster
Rep: Reputation: 31
when I use brctl, it prevents me from connecting wirelessly using wpa_supplicant.
 
Old 09-06-2010, 01:54 AM   #3
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 14,972

Rep: Reputation: 528Reputation: 528Reputation: 528Reputation: 528Reputation: 528Reputation: 528
Your routing table doesn't list your ethernet interface or a bridge interface you can use routing instead of bridging the interfaces together.
Also, you need to consider how you will share your internet address. You either need to configure masquerading on your Linux box or subnet the 192.168.2.0 network and use your NAT router. For example I once shared my wireless connection (of my laptop) for my desktop's connection. I configures wlan0 on 192.168.1.0/25 and eth0 on 192.168.1.128/25. I did find that I needed to load the tc_conntrack module, now nf_conntrack before forwarding would work. The laptop's eth0 interface was the desktop's default gateway. I didn't use brctl, I simply configured the devices and the default gateway.
 
Old 09-06-2010, 02:04 AM   #4
LVsFINEST
Member
 
Registered: Aug 2006
Posts: 88

Rep: Reputation: 21
I have a similar setup where one PC hangs off another just like your xbox would:

Comp A - eth0 <-> eth1 - Comp B - eth0 <-> Router
192.168.49.90 192.168.49.1 192.168.48.96 192.168.48.1

Comp A would be your Xbox, Comp B would be the Slax 13 box.

1. Edit /etc/sysctl.conf so the changes are permanent. (not really needed, but recommended)
2. Ensure eth0 and the xbox are on the same subnet with wlan0 on a different one.
3. Ensure 360's default gateway is the IP of Slax eth0 iface.

That should be it. The routing table should automatically populate upon reboot or network restart too (once eth0 is configured properly anyway).

You should also temporarily disable IPtables until you get everything working.
 
Old 10-11-2010, 06:49 AM   #5
linuxorg
LQ Newbie
 
Registered: Oct 2010
Posts: 4

Rep: Reputation: 0
Cool

IP Forwarding or setting linux box as the router is explained very well at foll site :

http://techmajha.com/2010/10/08/ip-f...box-as-router/
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing table vinaytp Linux - Newbie 3 03-05-2010 11:24 AM
Is this routing table OK? gubak Linux - Networking 2 11-13-2009 10:51 PM
routing table scofiled83 Linux - Networking 1 11-08-2008 08:40 PM
Help with a Routing Table maginotjr Linux - Networking 4 06-06-2005 10:49 AM
routing table upr8830 Linux - Networking 6 06-18-2003 04:04 AM


All times are GMT -5. The time now is 12:53 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration