From owner-freebsd-questions@FreeBSD.ORG Sun Nov 9 06:11:45 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A7B616A4CF for ; Sun, 9 Nov 2003 06:11:45 -0800 (PST) Received: from server.rucus.ru.ac.za (server.rucus.ru.ac.za [146.231.115.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 4F7B643FF2 for ; Sun, 9 Nov 2003 06:11:43 -0800 (PST) (envelope-from oxo@rucus.ru.ac.za) Received: (qmail 42958 invoked from network); 9 Nov 2003 14:11:40 -0000 Received: from shell-em0.rucus.ru.ac.za (oxo@10.0.0.1) by server-em0.rucus.ru.ac.za with QMQP; 9 Nov 2003 14:11:40 -0000 Date: Sun, 9 Nov 2003 16:11:40 +0200 From: John Oxley To: questions@freebsd.org Message-ID: <20031109141140.GA7815@rucus.ru.ac.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Bridging X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Nov 2003 14:11:45 -0000 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 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