View previous topic :: View next topic |
Author |
Message |
kaksi Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 21 May 2004 Posts: 125
|
Posted: Tue May 03, 2005 4:48 pm Post subject: [SOLVED] Bridge network? |
|
|
HI!
I have 5 public ip adresses received via my ISP's dhcp server. I have a server with two nics where one is eth0 and is connected to the DSL modem, the other is eth1 and to this my routers wan port is connected. What I want is that my server shall receive one public ip and the router another. Is this possible via some kind of bridge or something?
How would I acheive this?
Last edited by kaksi on Tue May 03, 2005 8:26 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kaksi Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 21 May 2004 Posts: 125
|
Posted: Tue May 03, 2005 8:01 pm Post subject: |
|
|
OK, I got it to work... almost.
This is what I did:
I set the internet nic (eth0) to receive a dynamic ip (which id got). I set eth1 to 192.168.0.1. I then emerged bridge-tools adn edited /etc/conf.d/bridge like this:
Code: |
bridge="br100"
bridge_br100_devices"eth0 eth1"
|
I then started /etc/init.d/bridge, br100 got the same ip as eth0
Then I connected the router to eth1. The router is set to receive ip via dhcp. I actually received it's own public ip. However I can not ping between the computers inside the router and the server with the bridge.
I can access the internet and ping the outside net though.
Do I need to setup some ip-tables or something to be able to connect between the server and the computers inside the router? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
kaksi Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 21 May 2004 Posts: 125
|
Posted: Tue May 03, 2005 8:26 pm Post subject: |
|
|
Solved it! I found a bridge network guide. All I had to do was to set the ip of eth0 and eth1 to 0.0.0.0 then restart them and then restart the bridge... Now everything works like a charm ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|