You are not logged in.

#1 2021-05-07 12:52:52

Comix
Member
Registered: 2020-08-17
Posts: 13

qemu dhcp server doesn't work.

my freebsd virtual machine can't connect the internet ,and virt-manager's NIC shows that my ip is unknown.
It seems that dhcp server doesn't work,but i don't know how to solve this problem.
There are some info:

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 7431  bytes 5309726 (5.0 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7431  bytes 5309726 (5.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

virbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255
        ether 52:54:00:13:a8:3c  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5  bytes 318 (318.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

vnet0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::fc54:ff:fe89:282c  prefixlen 64  scopeid 0x20<link>
        ether fe:54:00:89:28:2c  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1  bytes 90 (90.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlo1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.172  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::fc3:b743:7dcb:d368  prefixlen 64  scopeid 0x20<link>
        ether 90:78:41:cf:ff:58  txqueuelen 1000  (Ethernet)
        RX packets 86962  bytes 120046855 (114.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 22288  bytes 2761190 (2.6 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

network xml:

<interface type="network">
  <mac address="52:54:00:89:28:2c"/>
  <source network="default" portid="5846c7ad-2afe-4a5d-8789-468fe0299bf3" bridge="virbr0"/>
  <target dev="vnet0"/>
  <model type="virtio"/>
  <link state="up"/>
  <alias name="net0"/>
  <address type="pci" domain="0x0000" bus="0x04" slot="0x00" function="0x0"/>
</interface>

and in my virtual machine, there are two network interface "lo0" and "vnet0"
vnet0 is active ,but i found:

inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255

Offline

Board footer

Powered by FluxBB