how to bridge connections in linux?

Solaris, RedHat, FreeBSD and the like
Post Reply
Message
Author
i-SnipeZ
Sophomore Member
Posts: 204
Joined: Mon Sep 22, 2008 9:18 pm
Location: Denver, Colorado

how to bridge connections in linux?

#1 Post by i-SnipeZ » Mon Mar 09, 2009 3:23 pm

Im using Mandriva 2009 and would like to bridge connections from the ethernet to the wireless so I can get my 360 on LIVE without having to reboot to Windows. Is there a way that a somewhat inexperienced linux user can do this or do i have to go messing in the command line?
ThinkPad X200

Think Different

aaa
ThinkPadder
ThinkPadder
Posts: 1062
Joined: Fri Jun 08, 2007 2:36 pm

Re: how to bridge connections in linux?

#2 Post by aaa » Mon Mar 09, 2009 3:37 pm

There's more than one way to do it. This is NAT, which does what you want but isn't bridging. Run these two lines as root:

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A POSTROUTING -t nat -o eth1 -j MASQUERADE

Then set up the interfaces on both systems with static IPs (make up two private ones that aren't in a range used by the internet connection), with the default gateway on the xbox set to the ip of the linux machine.

I guess I'm assuming that you can set a static IP on an xbox.

i-SnipeZ
Sophomore Member
Posts: 204
Joined: Mon Sep 22, 2008 9:18 pm
Location: Denver, Colorado

Re: how to bridge connections in linux?

#3 Post by i-SnipeZ » Wed Mar 11, 2009 12:21 am

unfortunately that did not work. And im having a problem with the repositories in Mandriva at the moment. Everything is missing appearantly yet I can update the sources and it says everything is there. Maybe the servers locked up. I love linux but sometimes it causes stress to the point I wonder if its worth it. Well, its better than a BSOD or that abomination of the computing world that is Mac (i dont mind easier, I do mind stupid though)
ThinkPad X200

Think Different

aaa
ThinkPadder
ThinkPadder
Posts: 1062
Joined: Fri Jun 08, 2007 2:36 pm

Re: how to bridge connections in linux?

#4 Post by aaa » Wed Mar 11, 2009 8:43 am

I forgot to mention that you need to change "eth1" to the interface you are using for internet.

Dunno much about Mandriva, so I can't help you there.

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux Questions”

Who is online

Users browsing this forum: No registered users and 0 guests