NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Qemu Access Network help

Maurizio Caloro <> wrote:
>i running with Netbsd 6.0.1, and i have install Qemu 2.0 with one VM Server
>installed with Microsft Srv, but i become (with dhcp) IP Adress
>qemu-system-x86_64 -m 2048 -hda /usr/Srv2003.img -net nic,model=e1000
>if running command without "net nic" i have a valid from Qemu-DHCP
>here i can only ping me own address :-)
>bridge, and brconfig done but without success, me aspect are that me Windows
>machine can ping from bothside me network and reach the internet.
>Please can you give me more help to see me misake?
>hp7900$ ifconfig -a
>        enabled=0
>        address: 00:24:81:04:3e:0c
>        media: Ethernet autoselect (100baseTX full-duplex)
>        status: active
>        inet netmask 0xffffffe0 broadcast
>        inet6 fe80::224:81ff:fe04:3e0c%wm0 prefixlen 64 scopeid 0x1
>lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33648
>        inet netmask 0xff000000
>        inet6 ::1 prefixlen 128
>        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
>bridge0: flags=41<UP,RUNNING> mtu 1500
>        address: f2:0b:a4:81:1b:04
>        media: Ethernet autoselect
>        inet netmask 0xffffff00 broadcast
>        inet6 fe80::f00b:a4ff:fe81:1b04%tap0 prefixlen 64 scopeid 0x4
>hp7900$ brconfig -a
>bridge0: flags=41<UP,RUNNING>
>        Configuration:
>                priority 32768 hellotime 2 fwddelay 15 maxage 20
>                ipfilter disabled flags 0x0
>        Interfaces:
>                tap0 flags=3<LEARNING,DISCOVER>
>                        port 4 priority 128
>        Address cache (max cache: 100, timeout: 1200):

You need to add wm0 to the bridge if you want the VM to be able to reach
the internet.

I think you will also want to give the VM a 192.168.0.x address, do you
have a DHCP server running on your network ?

Robert Swindells

Home | Main Index | Thread Index | Old Index