LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-09-2004, 06:52 PM   #1
catmaster
LQ Newbie
 
Registered: Jun 2004
Location: Finland
Distribution: Windows XP, Debian.
Posts: 3

Rep: Reputation: 0
Bridge and debian and DHCP


Im quite new user with linux, now I want to know how I can get bridge working and how to save it so when i reboot my linux box it will bring it automatically up. All quides that i have readed allways says only how to make static bridge.
So my thing is what i want is like this
Code:


Internet    |     |  my linux box        |     |  my other boxes
IP From isp |-----|  which have          |-----|  windows, linux
by DHCP     |     |  2 realtek interface |     |  etc.
What I have tried:
in my /etc/network/interfaces file
------------------
auto lo
iface lo inet loopback

auto br0
iface br0 inet dhcp
-------------------

These command I have found from few quides.

echo 1 > /proc/sys/net/ipv4/ip_forward
brctl addrb br0
brctl addif br0 eth0
brctl addif br0 eth1
ifconfig eth0 0.0.0.0 up
ifconfig eth1 0.0.0.0 up
brctl stp br0 on
/etc/init.d/networking restart

so that's all i know about this :/,
I hope someone can help me about this little problem.

Last edited by catmaster; 06-09-2004 at 07:26 PM.
 
Old 06-10-2004, 03:46 PM   #2
catmaster
LQ Newbie
 
Registered: Jun 2004
Location: Finland
Distribution: Windows XP, Debian.
Posts: 3

Original Poster
Rep: Reputation: 0
Hurray, I figured out what was wrong in that,
those commands were okay, but i forget iptables,
I reconfigured it and It worked , now my only problem is how to save these things to some file so that linux will remember those .

edit:
iptables commands that i run:
iptables -F INPUT
iptables -F FORWARD
iptables -F OUTPUT
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -A POSTROUTING -t nat -o $EXT_IF -s $LAN_RANGE -j MASQUERADE
iptables -A FORWARD -i $LAN_IF -s $LAN_RANGE -j ACCEPT

I know thats not secure but it works :P,

Last edited by catmaster; 06-10-2004 at 03:54 PM.
 
Old 06-11-2004, 02:08 PM   #3
catmaster
LQ Newbie
 
Registered: Jun 2004
Location: Finland
Distribution: Windows XP, Debian.
Posts: 3

Original Poster
Rep: Reputation: 0
umm, I have new problem with this..
when I try to upload stuff to that linux box, upload speed is only 30KB/sec
and when I try to upload trought that bridge to internet speed is only 30KB/sec, my connection can upload about 58KB/sec. whats wrong, downloading still works, downloading is fullspeed
 
  


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
quick question. dhcp server + bridge emetib Linux - Networking 2 06-02-2005 08:56 PM
DHCP Server on Bridge slacky Linux - Networking 2 03-11-2005 07:50 AM
DHCP over bridge thinkninja Linux - Networking 1 03-02-2005 02:01 PM
bridge and DHCP peekaa Linux - Networking 1 05-24-2004 11:17 PM
Passing DHCP over a transparent bridge wildefire Linux - Networking 2 11-24-2003 10:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:24 PM.

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