LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
Search this Thread
Old 12-12-2006, 09:41 PM   #1
amhso
LQ Newbie
 
Registered: Nov 2005
Distribution: Slackware 10.2
Posts: 4

Rep: Reputation: 0
Trouble creating network bridge


First off, I'll say what i am attempting to do, before I say what i did. I am trying to install Arch Linux on a new box, which has no internet and I can't connect it to the router. I have a Slackware 10.2 box, which has wireless running and has access to the internet. To update packages and make the Arch Linux box a desktop, i need internet. So I want to bridge the connection so that it can access the internet through the Slackware box's wireless.

So on the Slackware box, the one w/ wireless internet connection, I have the devices : eth0 and wlan0 . eth0 is connected by a ethernet cable to the othermachine's eth0. Here's what i did on the bridging machine:

brctl addbr br0

this was to make a bridge "br0"

adding devices to br0 to bridge.

brctl addif br0 eth0
brctl addif br0 wlan0


to bring it up, i used:

ip link set br0 up

and then my net died and nothing worked. Are there other things I should be setting or am I missing some commands? Thanks in advance.

Last edited by amhso; 12-13-2006 at 09:17 PM.
 
Old 12-13-2006, 02:15 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
well addir is invalid, it's addif (ADD InterFace) and you also need to specify which interface you need to add it too, i.e. "brdtl addif br0 eth0"

http://tldp.org/HOWTO/Ethernet-Bridg...r-HOWTO-3.html
 
Old 12-13-2006, 09:16 PM   #3
amhso
LQ Newbie
 
Registered: Nov 2005
Distribution: Slackware 10.2
Posts: 4

Original Poster
Rep: Reputation: 0
sorry. that didnt come out right. i did use:

brctl addif br0 eth0
brctl addif br0 wlan0

because i got a working output when i did

brctl br0

and it listed the devices wlan0 and eth0
 
Old 12-13-2006, 10:06 PM   #4
xjlittle
Member
 
Registered: Aug 2003
Location: Indiana
Distribution: fc6 sles9 & 10 kubuntu ubuntu-server
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
Unless your arch box is on a different subnet than the slackware box you don't need a bridge if I understand your setup. When you connect the two boxes can you ping both interfaces on the slackware box from the arch box? If you can then set the default gateway on the arch box to the wlan ip on the slackware box. You might also want to enable ip forwarding by issuing the command echo 1 > /proc/sys/net/ipv4/ip_forward. Note this is not a permanent change in this manner. Consult the slackware docs for making it permanent.
 
Old 12-14-2006, 01:44 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,373

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
yeah i thought about that being what they wanted to do. it's certainly a more conventional way, but assuming this is a wireless link to an ADSL router then there's technically no *need* to route through the box...
 
Old 12-14-2006, 06:14 PM   #6
xjlittle
Member
 
Registered: Aug 2003
Location: Indiana
Distribution: fc6 sles9 & 10 kubuntu ubuntu-server
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
True. Since s/he has it connected through what sounds like a crossover cable I had the impression that it didn't have a wireless card.
 
Old 01-20-2007, 08:46 PM   #7
DaveQB
Member
 
Registered: Oct 2003
Location: Sydney, Australia.
Distribution: PCLinuxOS 2010.12, Debian Lenny
Posts: 387

Rep: Reputation: 38
Quote:
Originally Posted by xjlittle
Unless your arch box is on a different subnet than the slackware box you don't need a bridge if I understand your setup. When you connect the two boxes can you ping both interfaces on the slackware box from the arch box?
I don't think this is the situation of the OP.
I believes its more like how I am trying to set it up.

Code:
Router ----> wlan0[Slackware]
             eth0[Slackware] ----------> eth0[Arch]

If this is the case, would your suggestion still work xjlittle ?
 
  


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
Network bridge Mithrilhall Linux - Networking 7 01-21-2007 11:15 PM
Bridge simulating Network Lag, for developing network code for games intripoon Linux - Networking 18 10-27-2005 05:04 PM
network bridge Ryan450 Linux - Networking 1 08-26-2004 03:55 AM
Network bridge eqxro Linux - Networking 2 08-21-2004 07:46 PM
Having problems creating a network bridge. Royle Linux - Networking 1 08-16-2004 09:22 AM


All times are GMT -5. The time now is 11:46 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration