Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Bridge network?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kaksi
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2004
Posts: 125

PostPosted: Tue May 03, 2005 4:48 pm    Post subject: [SOLVED] Bridge network? Reply with quote

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
View user's profile Send private message
kaksi
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2004
Posts: 125

PostPosted: Tue May 03, 2005 8:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
kaksi
Tux's lil' helper
Tux's lil' helper


Joined: 21 May 2004
Posts: 125

PostPosted: Tue May 03, 2005 8:26 pm    Post subject: Reply with quote

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 :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum