From owner-freebsd-net@FreeBSD.ORG Mon Oct 27 23:04:30 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6110A106569D for ; Mon, 27 Oct 2008 23:04:30 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.freebsd.org (Postfix) with ESMTP id 30EC78FC0C for ; Mon, 27 Oct 2008 23:04:30 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from localhost (unknown [200.46.204.183]) by hub.org (Postfix) with ESMTP id AA8D411A2D22 for ; Mon, 27 Oct 2008 19:46:06 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 21584-08 for ; Mon, 27 Oct 2008 19:46:05 -0300 (ADT) Received: from [192.168.1.2] (blk-224-204-104.eastlink.ca [24.224.204.104]) by hub.org (Postfix) with ESMTPA id E2EC911A2CA6 for ; Mon, 27 Oct 2008 19:46:05 -0300 (ADT) Date: Mon, 27 Oct 2008 19:46:02 -0300 From: "Marc G. Fournier" To: freebsd-net@freebsd.org Message-ID: X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: tap+bridge -> ethernet with an alias ... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2008 23:04:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On my desktop here, I have a qemu-img of Win XP that is using bridging to connect to the Internet ... everything works great, even have remote desktop working so that I can login from another windows box into the VM ... and very responsive ... ... but this is on a private network where the ethernet doesn't have any aliases attached to it ... I've tried uploading the image (after changing the IP) to one of my servers with a public interface on it, but now can't seem to get networking working ... my ifconfig -a looks like: bge0: flags=8943 metric 0 mtu 1500 options=98 ether 00:14:c2:3f:2e:86 inet xxx.xxx.xxx.xxx netmask 0xffffff00 broadcast xxx.xxx.xxx.255 inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 inet xxx.xxx.xxx.xxx netmask 0xffffffff broadcast xxx.xxx.xxx.xxx media: Ethernet 100baseTX status: active bge1: flags=8802 metric 0 mtu 1500 options=9b ether 00:14:c2:3f:2e:85 media: Ethernet autoselect (none) status: no carrier lo0: flags=8049 metric 0 mtu 16384 inet 127.0.0.1 netmask 0xff000000 bridge0: flags=8843 metric 0 mtu 1500 ether ce:44:c7:1b:47:40 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: bge0 flags=143 ifmaxaddr 0 port 1 priority 128 path cost 200000 member: tap0 flags=143 ifmaxaddr 0 port 5 priority 128 path cost 2000000 tap0: flags=8942 metric 0 mtu 1500 ether 00:bd:96:ae:67:00 the 192.168.1.x is used for 'internal routing' ... when I startup qemu, I use: qemu winxp.img -net nic -net tap -vnc :1 and I can connect via VNC, but the IP assigned to the image isn't pingable, like it is on my desktop ... Is there something with 'pre-aliased' interfaces that can't be used with a bridge/tap device? Or have I just missed something? - -- Marc G. Fournier Hub.Org Hosting Solutions S.A. (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkGRKoACgkQ4QvfyHIvDvM2MQCaAoa8mt9L+80o+IQiooQ0QjDA X08An1/mJwduTU0uH7sDlRFPp06Bs2cN =2c6c -----END PGP SIGNATURE-----