LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 07-07-2008, 01:42 AM   #1
oXiKoTToN
LQ Newbie
 
Registered: May 2008
Posts: 22

Rep: Reputation: 15
bridging networks? help please


basicly im trying to do the same thing i did on windows, routeing my playstation thru my pc for a wireless connection. but that was as simple as highlighting my ethernet and wireless connections and clicking bridge.

after reading a bit i was able to bridge my connections but after i did i had no internet connection at all, kinda what i expected but i was hopeing it would work first try(never does.. lol)

Code:
 # ifconfig eth0 0.0.0.0
 # ifconfig wlan0 0.0.0.0
 # brctl addbr brdg0
 # brctl addif brdg0 eth0
 # brctl addif brdg0 wlan0 
 # ifconfig brdg0 up
 # dhcpcd br0
as far as i know this should work but after i had no internet connection.. i also tryed a few other ways but all generally the same.

as far as the setup goes its just a crossover cable from my ps2 to my ethernet port, then from my wireless card to my modem. i know this works, ive done it on windows countless times but never on linux.

any ideas on how to set it up correctly?
 
Old 07-07-2008, 08:09 AM   #2
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,094
Blog Entries: 2

Rep: Reputation: 111Reputation: 111
Your dhcpd br0 should be dhcpd brdg0 and you need to turn on ip forwarding

echo 1 > /proc/sys/net/ipv4/ip_forward

also add an entry to /etc/sysctl.conf for ip forwarding so it will still forward after rebooting (might be a different file on different distros)
 
Old 07-08-2008, 03:21 AM   #3
oXiKoTToN
LQ Newbie
 
Registered: May 2008
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by estabroo View Post
Your dhcpd br0 should be dhcpd brdg0 and you need to turn on ip forwarding

echo 1 > /proc/sys/net/ipv4/ip_forward

also add an entry to /etc/sysctl.conf for ip forwarding so it will still forward after rebooting (might be a different file on different distros)
the br0 was a typo on my part but i orginally did type brdg0 and atm i messed up my lilo dual boot when i formatted a diff partion useing my windows disc, easyly fixable but my slackware disc is at my friends house...

u know if the /etc/sysctl.conf is the correct place on slackware? if so ill try as soon as i fix my dual boot prob.
 
Old 07-08-2008, 07:53 AM   #4
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,094
Blog Entries: 2

Rep: Reputation: 111Reputation: 111
Sorry, no idea where it is on slackware, haven't used slackware since v0.9
 
  


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
VMWare's bridging vs Window's bridging - routing is messed up when Windows bridging brenan99 General 0 05-04-2008 10:24 PM
bridging wireless networks - kubuntu laptop alaios Linux - Wireless Networking 0 11-20-2007 04:24 AM
Linux with multiple network cards, and bridging both networks together fuckyou Linux - Networking 2 07-10-2005 07:21 PM
Bridging networks alexr186 Linux - Software 0 08-06-2004 06:57 PM
Assistance - VPN Bridging Multiple Networks neillans Linux - Networking 2 12-03-2003 04:12 AM


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