Re: FreeBSD 8 as VirtualBox guest: `ngctl list` shows nothing

2009-12-23 Thread Anh Ky Huynh
On Wed, 23 Dec 2009 13:26:57 +0300
Yuri Pankov  wrote:

> On Wed, Dec 23, 2009 at 05:18:28PM +0700, Anh Ky Huynh wrote:
> > 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
> 
> Try `kldload ng_ether`? And use your own config file, not GENERIC,
> if you need to make changes.
> 

Thank you very much, Yuri.

It works after I load that module :) And I am going to use my own config file.

Regards,

-- 
Anh Ky Huynh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: FreeBSD 8 as VirtualBox guest: `ngctl list` shows nothing

2009-12-23 Thread Yuri Pankov
On Wed, Dec 23, 2009 at 05:18:28PM +0700, Anh Ky Huynh wrote:
> 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

Try `kldload ng_ether`? And use your own config file, not GENERIC, if you need 
to make changes.



> -- 
> Anh Ky Huynh


Yuri
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


FreeBSD 8 as VirtualBox guest: `ngctl list` shows nothing

2009-12-23 Thread Anh Ky Huynh
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: 0008   Num hooks: 1
  Name: ng0 Type: iface   ID: 0006   Num hooks: 1
  Name: ngctl1633   Type: socket  ID: 0013   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: 0001   Num hooks: 2
  Name: ngctl15142  Type: socket  ID: 0006   Num hooks: 0
  Name: vboxnetflt_re0  Type: vboxnetflt  ID: 0004   Num hooks: 2
  Name: vboxnet0Type: ether   ID: 0003   Num hooks: 0
  Name: wlan0   Type: ether   ID: 0002   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 0xff00 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 0xff00 
epair0b: flags=8843 metric 0 mtu 1500
ether 02:c0:84:00:07:0b
inet 10.0.3.1 netmask 0xff00 broadcast 10.0.3.255
inet 10.0.3.3 netmask 0xff00 broadcast 10.0.3.255
ng0: flags=88d1 metric 0 mtu 
1500

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"