From owner-freebsd-questions@FreeBSD.ORG Wed Dec 23 10:19:07 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 14687106568F for ; Wed, 23 Dec 2009 10:19:07 +0000 (UTC) (envelope-from xkyanh@gmail.com) Received: from mail-yx0-f171.google.com (mail-yx0-f171.google.com [209.85.210.171]) by mx1.freebsd.org (Postfix) with ESMTP id BDD3A8FC19 for ; Wed, 23 Dec 2009 10:19:06 +0000 (UTC) Received: by yxe1 with SMTP id 1so6715410yxe.3 for ; Wed, 23 Dec 2009 02:19:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:organization:x-operating-system:x-mailer:user-agent :x-face:face:mime-version:content-type:content-transfer-encoding; bh=H0Ybk25LoDVQRbVU3BRZtBGaSUKNMKYoxkeme2WjFEY=; b=l9QlnYWPM8DnfnycoYJpfaxnRf5nWrLZ8CpJTfxCsS8PdbIATEBgf9Ed445uImqUDe fyVaXOaC18kdb4TLUyAX7vkQ1e6RaBzS9HYxCya5gisnd315JDESlhaz+zqMT14UU5/g jmLQM5GVfEM39/NGa9Xp+4bs/aglcZmFbv1ts= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:organization:x-operating-system :x-mailer:user-agent:x-face:face:mime-version:content-type :content-transfer-encoding; b=HJXWTzUT6ykb/V9niysHyp7qqQI/M+ajBdKcYqsCaU/y2HM9en2FnL+1dutNroqlJS 4pjls1Oxham+Ly0gaWMx6s/ZOeXzRO+3VB0lHNI0Tn8BZJnURvEI9WjFhmtS6Tq4Okdj Czo9nBsYZYdJXsL+1Wh8ZaurGQQv4ZVzis9BQ= Received: by 10.150.107.28 with SMTP id f28mr15360482ybc.57.1261563544688; Wed, 23 Dec 2009 02:19:04 -0800 (PST) Received: from icy.localdomain ([222.253.88.151]) by mx.google.com with ESMTPS id 23sm6180061iwn.3.2009.12.23.02.19.03 (version=SSLv3 cipher=RC4-MD5); Wed, 23 Dec 2009 02:19:04 -0800 (PST) Date: Wed, 23 Dec 2009 17:18:28 +0700 From: "Anh Ky Huynh" To: FreeBsd-Questions Message-ID: <20091223171828.24a31ba7@icy.localdomain> Organization: Vietnamese TeX Users Group X-Operating-System: Windows 98 X-Mailer: Moveup mail client (windows 98) User-Agent: Moveup mail on Windows 98 X-Face: no-face Face: no-face Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: FreeBSD 8 as VirtualBox guest: `ngctl list` shows nothing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2009 10:19:07 -0000 Hi all, I have a VirtualBox guest which is running FreeBSD-8.0. I compiled the kernel for this guest with the options NETGRAPH in /usr/src/sys/i386/conf/GENERIC. I did that because I expected I would see each Ethernet interface as a netgraph node. But ngctl showed nothing $ ngctl There are 3 total nodes: Name: Type: ksocket ID: 00000008 Num hooks: 1 Name: ng0 Type: iface ID: 00000006 Num hooks: 1 Name: ngctl1633 Type: socket ID: 00000013 Num hooks: 0 (doesnot contain em0, em1,..) This is different from the output for my real FreeBSD host $ ngctl list There are 5 total nodes: Name: re0 Type: ether ID: 00000001 Num hooks: 2 Name: ngctl15142 Type: socket ID: 00000006 Num hooks: 0 Name: vboxnetflt_re0 Type: vboxnetflt ID: 00000004 Num hooks: 2 Name: vboxnet0 Type: ether ID: 00000003 Num hooks: 0 Name: wlan0 Type: ether ID: 00000002 Num hooks: 0 (contains re0, wlan0) Why are they different? Thank you for replies, Regards, -- Anh Ky Huynh PS: Below the output of $ifconfig in the VirtualBox guest $ ifconfig em0: flags=8843 metric 0 mtu 1500 options=9b ether 08:00:27:d0:6e:ab inet 192.168.1.17 netmask 0xffffff00 broadcast 192.168.1.255 media: Ethernet autoselect (1000baseT ) status: active em1: flags=8802 metric 0 mtu 1500 options=9b ether 08:00:27:bf:a8:d1 media: Ethernet autoselect (1000baseT ) status: active lo0: flags=8049 metric 0 mtu 16384 options=3 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 epair0b: flags=8843 metric 0 mtu 1500 ether 02:c0:84:00:07:0b inet 10.0.3.1 netmask 0xffffff00 broadcast 10.0.3.255 inet 10.0.3.3 netmask 0xffffff00 broadcast 10.0.3.255 ng0: flags=88d1 metric 0 mtu 1500