LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   bridging networks? help please (https://www.linuxquestions.org/questions/linux-networking-3/bridging-networks-help-please-654012/)

oXiKoTToN 07-07-2008 01:42 AM

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. :p

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?

estabroo 07-07-2008 08:09 AM

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)

oXiKoTToN 07-08-2008 03:21 AM

Quote:

Originally Posted by estabroo (Post 3206588)
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.

estabroo 07-08-2008 07:53 AM

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


All times are GMT -5. The time now is 02:05 PM.