Trying to set up FreeBSD machine as router/bridge between two others

Hi folks,

I want to set up my FreeBSD machine which I recently set up with 8.0 as a router/bridge to
go between two Windows machine and to act as a dummynet for them. It will ONLY be routing traffic between the other two machines. I should be able to set up the two Windows machines to have static IP addresses and be directly connected to the LAN cards on the Free BSD machien. Does anyone have
a good guide or suggestions on where to find the best set of instructions on how to do
this? I have a UNIX background but have never used FreeBSD before so I apologize in advance if I'm asking a rather stupid question or if it's been answered elsewhere.

Thanks so much.

Mary Salinas
 
Hi -

Thanks particularly to David for his useful post. The two links are quite useful. However, I'm still not able to set it up the way I'd like.I'm not hooking up to the internet just putting together a standalone system with two Windows Systems with static hardcoded IP addresses. I can ping the network card that the Windows machine is hooked up to but nothing else. Do I need to configure the FreeBSD router with DNS or put the Windows machines in /etc/hosts or any additional steps to recognize them? I may be missing something fairly basic here so any help would be appreciated.

Thanks a lot,

Mary
 
The Handbook bridging section linked by aragon looks pretty easy, although I admit I've never done it. Please describe your config: names of the Ethernet interfaces, IP addresses of all three systems, output of ifconfig(8) after you've set up the bridge.
 
Hi -

I enclose my output of ifconfig here. Basically the two Windows 7 PCs have the
following values

PC #1
IPv4 Address: 10.1.1.1
Subnet: 255.255.255.0
Default gateway: 10.1.1.4
DNS server 10.1.1.4

PC #2
IPv4 Address 10.1.1.5
Subnet 255.255.255.0
Default gateway 10.1.1.4
DNS server 10.1.1.4

Doesn't seem to make much difference what I have for default gateway/DNS server.
Thanks for any help you can provide.

Mary
 

Attachments

  • ifconfig.txt
    1.9 KB · Views: 314
The Handbook says:
If the bridge host needs an IP address then the correct place to set this is on the bridge interface itself rather than one of the member interfaces.
 
Hi folks,

Thanks to the last poster for the suggestion. I changed it so that bridge0 has
an IP of 10.1.1.4 and took the other two IPs away and unfortunately it did not
alter my problem. However, I did notice something while doing it. If I do an
ipfw flush (leaving only one rule allow ip from any to any) then I can ping ok from
10.1.1.1 to 10.1.1.5. However, if I attempt to add a dummynet style pipe by
doing say "ipfw add 500 pipe 1 ip from any to any" then I can no longer ping from 10.1.1.1
from 10.1.1.5. That seems to imply to me that I'm doing something wrong in my ipfw config but I don't know what. I'm using the dummynet instructions that the second poster suggested.

Thanks for any help.

Mary
 
How do you config the pipe? Bandwidth, etc.? I'm not sure what an 'unconfigured pipe' does, but it may disallow all traffic until some bandwidth is allocated to it.
 
Thanks - that actually seemed to be the problem I was having, when I put in
Code:
ipfw pipe 1 config delay 20ms plr 0.001
I was able to ping from my machines still and changing the delay seemed to make a difference, thanks so much for your help!

Mary
 
Back
Top