NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Qemu Access Network help
Maurizio Caloro <mauric%gmx.ch@localhost> 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 0.0.0.0.
>
>Syntax:
>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
>Address 10.0.2.15/24
>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
>wm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>
>capabilities=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
> enabled=0
> address: 00:24:81:04:3e:0c
> media: Ethernet autoselect (100baseTX full-duplex)
> status: active
> inet 192.168.0.103 netmask 0xffffffe0 broadcast 192.168.0.127
> inet6 fe80::224:81ff:fe04:3e0c%wm0 prefixlen 64 scopeid 0x1
>lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33648
> inet 127.0.0.1 netmask 0xff000000
> inet6 ::1 prefixlen 128
> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
>bridge0: flags=41<UP,RUNNING> mtu 1500
>tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
> address: f2:0b:a4:81:1b:04
> media: Ethernet autoselect
> inet 192.168.0.105 netmask 0xffffff00 broadcast 192.168.0.255
> 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