Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Nov 2003 16:11:40 +0200
From:      John Oxley <oxo@rucus.ru.ac.za>
To:        questions@freebsd.org
Subject:   Bridging
Message-ID:  <20031109141140.GA7815@rucus.ru.ac.za>

next in thread | raw e-mail | index | archive | help
Hi, my scenario is:

onan (WinXP)  with realtek NIC MAC address: 00:0a:cd:02:be:8d

reknaw (FreeBSD 5.1-RELEASE-p10) with 2 realtek NIC's, rl0 (mac:
00:50:22:8d:f4:3f) and rl1 (mac: 00:40:f4:18:b1:0c).

reknaw:rl0 has a real world ip address (foo.bar.37.150)
reknaw:rl1 has no ip address

onan has a real world ip address (foo.bar.37.190)

There is a crossover cable from onan to reknaw:rl1.

This is a two part question.

Part 1.
=======
I can access the rest of the world perfectly from reknaw and onan, and the
rest of the world can see reknaw and onan without any trouble, but the two
machines cannot see each other.

When I ping reknaw from onan, and then do an arp -a, i see a dynamic entry
for reknaw:rl1.

When I ping onan from reknaw I get 3 packets transmitted, 0 packets
received, 100% packet loss
and an arp -a gives:
onan.domain (foo.bar.37.190) at 00:0a:cd:02:be:8d on rl0 [ethernet]

I have tried 'arp -s foo.bar.37.150 reknaw:rl0` and that does abosolutely
nothing to help me.  Please can someone help me get these machines talking
to each other.

Another thing, my bridging setup:
/etc/sysctl.conf:
net.link.ether.bridge=1
net.link.ether.bridge_cfg=rl1,rl0
net.link.ether.bridge_ipfw=1

/etc/rc.conf:
firewall_enable="YES"
firewall_type="open"

defaultrouter="foo.bar.32.1"
hostname="reknaw.domain"
ifconfig_rl0="inet foo.bar.37.150  netmask 255.255.248.0"
# there is no line for ifconfig_rl1, see next part of my question.

Part 2.
=======
I have an 8 port switch.  Is it possible for me to give reknaw:rl1 a
192.168.0.1 address, and plug in another computer with a private ip as
well, can I bridge and NAT at the same time with the one NIC, or will I
need to get another NIC.

TIA,

-John

-- 
/~\ The ASCII           ASCII stupid question, get a EBCDIC ANSI.
\ / Ribbon Campaign     John Oxley
 X  Against HTML        http://oxo.rucus.net/
/ \ Email!              oxo <at> rucus.ru.ac.za
"Personally, I'd rather pay for my freedom than live in a bitmapped, pop-up-happy dungeon like NT."
		-- Thomas Scoville



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031109141140.GA7815>