proxmox:vm无法从dhcp获取IP

时间:2019-07-25 18:35:00

标签: debian proxmox

我已经在Intel NUC上安装了Proxmox VE,并已将wirless用作我的主要管理IP。我已经成功完成安装,并且能够从管理IP访问仪表板。但是,当我创建一个ubuntu VM时,在网络配置过程中发现一个错误。我收到一条消息,“您的网络可能未使用DHCP协议”。我该如何解决?任何帮助都非常感激

Output of /etc/network/interfaces 
auto lo

iface lo inet loopback

iface enp0s20f0u1 inet dhcp

auto wlp58s0

iface wlp58s0 inet static
                address 192.168.178.24
                netmask 255.255.255.0
                gateway 192.168.178.1
                wpa-ssid SSDI
                wpa-psk PASSWORD

auto vmbr0
iface vmbr0 inet static
        address 192.168.178.100
        netmask 255.255.255.0
        bridge_ports none
        bridge_stp off
        bridge_fd 0

        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up iptables -t nat -A POSTROUTING -s '192.168.178.100' -o wlp58s0 -j MASQUERADE
        post-up iptables -t nat -D POSTROUTING -s '192.168.178.100' -o wlp58s0 -j MASQUERADE

iface eno1 inet dhcp

还,我检查了DHCP服务器是否正常工作,并且似乎工作正常

[![root@pvemon:~#  nmap --script broadcast-dhcp-discover
Starting Nmap 7.70 ( https://nmap.org ) at 2019-07-25 20:13 CEST
Pre-scan script results:
| broadcast-dhcp-discover:
|   Response 1 of 1:
|     IP Offered: 192.168.178.72
|     DHCP Message Type: DHCPOFFER
|     Subnet Mask: 255.255.255.0
|     Time Offset: 0
|     Router: 192.168.178.1
|     Default IP TTL: 64
|     IP Address Lease Time: 1d00h00m00s
|     Server Identifier: 192.168.178.1
|     Renewal Time Value: 12h00m00s
|     Rebinding Time Value: 21h00m00s
|     Domain Name Server: 8.8.8.8, 8.8.4.4
|_    Domain Name: dynamic.ziggo.nl
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.59 seconds

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 94:c6:91:14:86:91 brd ff:ff:ff:ff:ff:ff
3: wlp58s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 88:b1:11:99:66:00 brd ff:ff:ff:ff:ff:ff
    inet 192.168.178.24/24 brd 192.168.178.255 scope global wlp58s0
       valid_lft forever preferred_lft forever
    inet6 fe80::8ab1:11ff:fe99:6600/64 scope link
       valid_lft forever preferred_lft forever
4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 1a:bc:9e:e8:da:4f brd ff:ff:ff:ff:ff:ff
    inet 192.168.178.100/24 brd 192.168.178.255 scope global vmbr0
       valid_lft forever preferred_lft forever
    inet6 fe80::c0a6:a5ff:fe96:efc/64 scope link
       valid_lft forever preferred_lft forever
5: tap101i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UNKNOWN group default qlen 1000
    link/ether 1a:bc:9e:e8:da:4f brd ff:ff:ff:ff:ff:ff

0 个答案:

没有答案