Centos 6.8 Клиент VM не получает DHCP Зарезервированный IP-адрес от сервера Rasbian dnsmasq

У меня есть клиент VM CentOS, который должен получить Зарезервированный IP-адрес с моего сервера Rasbian dnsmasq, однако клиент будет использовать один и тот же динамический листинг снова и снова, вместо IP-адреса, который я настроил для него.

Полная настройка:

  • CentOS 6.8 KVM Host (Dell R710)
  • CentOS 6.8 VM
  • Малина Pi работает с последней версией Pixel (?)

Pi размещает сервер dnsmasq для трех подсетей по моей локальной сети, 192.168.0.0 (Home), 192.168.1.0 (Lab), 192.168.2.0 (Wifi). Все работает нормально, никаких проблем с DHCP или DNS, которые я заметил.

Хост CentOS KVM имеет зарезервированный адрес DHCP, который отлично работает. Новая виртуальная машина CentOS (минимальное изображение, Plex) имеет зарезервированный адрес DHCP, который он ОТКАЗЫВАЕТ.

Я попытался зарезервировать IP-адрес:

dhcp-host=MACADDRESS,IPADDRESS 

или

 dhcp-host=MACADDRESS,IPADDRESS,HOSTNAME.DOM.AIN 

а также путем указания файла dhcp-hosts и размещения там той же информации.

Я удалил оскорбительную динамическую аренду на сервере dnsmasq /var/lib/misc/dnsmasq.leases

Я удалил файл /etc/dhcp/dhclient-eth0.conf клиента VM и /var/lib/dhclient/dhclient.leases и dhclient-eth0.leases

Каждый шаг, который я выполнял

 dhclient -r eth0;ifdown eth0;ifup eth0 

или подобная комбинация

О, и я дважды и тройка проверил, что ни одна выдающаяся лизинг не имеет одного и того же IP-адреса, никакие другие устройства не украли этот IP-адрес, а исходная машина с этим IP-адресом – это мертвая Windows VM

Вот пример записей файла журнала с сервера dnsmasq, когда dhclient -r; dhclient запущен

 Feb 7 16:42:55 dnsmasq-dhcp[660]: 2347579967 available DHCP range: 192.168.1.100 -- 192.168.1.200 Feb 7 16:42:55 dnsmasq-dhcp[660]: 2347579967 DHCPRELEASE(eth0.2) 192.168.1.192 52:54:00:1c:26:66 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 available DHCP range: 192.168.1.100 -- 192.168.1.200 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 DHCPDISCOVER(eth0.2) 192.168.1.192 52:54:00:1c:26:66 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 tags: tag2, eth0.2 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 DHCPOFFER(eth0.2) 192.168.1.192 52:54:00:1c:26:66 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 requested options: 1:netmask, 28:broadcast, 2:time-offset, 121:classless-static-route, Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 requested options: 15:domain-name, 6:dns-server, 12:hostname, Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 requested options: 40:nis-domain, 41:nis-server, 42:ntp-server, Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 requested options: 26:mtu, 119:domain-search, 3:router Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 next server: 192.168.1.250 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 1 option: 53 message-type 2 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 4 option: 54 server-identifier 192.168.1.250 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 4 option: 51 lease-time 7h Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 4 option: 58 T1 3h30m Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 4 option: 59 T2 6h7m30s Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 4 option: 1 netmask 255.255.255.0 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 4 option: 28 broadcast 192.168.1.255 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 18 option: 15 domain-name ############.com Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 12 option: 6 dns-server 192.168.1.250, 8.8.8.8, 192.168.1.1 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 4 option: 3 router 192.168.1.1 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 available DHCP range: 192.168.1.100 -- 192.168.1.200 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 DHCPREQUEST(eth0.2) 192.168.1.192 52:54:00:1c:26:66 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 tags: tag2, eth0.2 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 DHCPACK(eth0.2) 192.168.1.192 52:54:00:1c:26:66 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 requested options: 1:netmask, 28:broadcast, 2:time-offset, 121:classless-static-route, Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 requested options: 15:domain-name, 6:dns-server, 12:hostname, Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 requested options: 40:nis-domain, 41:nis-server, 42:ntp-server, Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 requested options: 26:mtu, 119:domain-search, 3:router Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 next server: 192.168.1.250 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 1 option: 53 message-type 5 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 4 option: 54 server-identifier 192.168.1.250 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 4 option: 51 lease-time 7h Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 4 option: 58 T1 3h30m Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 4 option: 59 T2 6h7m30s Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 4 option: 1 netmask 255.255.255.0 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 4 option: 28 broadcast 192.168.1.255 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 18 option: 15 domain-name #############.com Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 12 option: 6 dns-server 192.168.1.250, 8.8.8.8, 192.168.1.1 Feb 7 16:42:55 dnsmasq-dhcp[660]: 171708215 sent size: 4 option: 3 router 192.168.1.1 

(Правильный IP-адрес для приема будет 192.168.2.9)

И мой файл dnsmasq.conf:

 dhcp-authoritative log-queries log-dhcp log-facility = /var/log/dns-log.log # Never forward plain names (without a dot or domain part) domain-needed # Never forward addresses in the non-routed address spaces. bogus-priv # If you don't want dnsmasq to read /etc/resolv.conf or any other # file, getting its servers from this file instead (see below), then # uncomment this. #no-resolv # If you don't want dnsmasq to poll /etc/resolv.conf or other resolv # files for changes and re-read them then uncomment this. #no-poll # Add local-only domains here, queries in these domains are answered # from /etc/hosts or DHCP only. local=/############.com/ #server=/###########.com/192.168.0.250 ###### External DNS server=ISP#DNS#SERVER server=8.8.8.8 #################################interfaces to bind, vlan style interface=eth0.1 interface=eth0.2 interface=eth0.3 # If you don't want dnsmasq to read /etc/hosts, uncomment the # following line. #no-hosts # or if you want it to read another file, as well as /etc/hosts, use # this. #addn-hosts=/etc/dnsmasq-static.conf # Set this (and domain: see below) if you want to have a domain # automatically added to simple names in a hosts-file. expand-hosts # Set the domain for dnsmasq. this is optional, but if it is set, it # does the following things. # 1) Allows DHCP hosts to have fully qualified domain names, as long # as the domain part matches this setting. # 2) Sets the "domain" DHCP option thereby potentially setting the # domain of all systems configured by DHCP # 3) Provides the domain part for "expand-hosts" domain=##########.com # Uncomment this to enable the integrated DHCP server, you need # to supply the range of addresses available for lease and optionally # a lease time. If you have more than one network, you will need to # repeat this for each network on which you want to supply DHCP # service. ############################################################################################################ dhcp-range=set:tag1,192.168.0.100,192.168.0.200,255.255.255.0,7h dhcp-range=set:tag2,192.168.1.100,192.168.1.200,255.255.255.0,7h dhcp-range=set:tag3,192.168.2.100,192.168.2.200,255.255.255.0,7h ####################################### # Always set the name of the host with hardware address # 11:22:33:44:55:66 to be "fred" #FIRST TRY SETTING RESERVATION, THEN MOVED TO STATIC FILE #dhcp-host=52:54:00:1C:26:66,192.168.2.9 dhcp-hostsfile=/etc/dns-static.conf # If this line is uncommented, dnsmasq will read /etc/ethers and act # on the ethernet-address/IP pairs found there just as if they had # been given as --dhcp-host options. Useful if you keep # MAC-address/host mappings there for other purposes. #read-ethers ####################################################################################DEFAULT ROUTES dhcp-option=tag:tag1,option:router,192.168.0.1 dhcp-option=tag:tag2,option:router,192.168.1.1 dhcp-option=tag:tag3,option:router,192.168.2.1 dhcp-option=tag:tag1,option:dns-server,192.168.0.250,8.8.8.8,192.168.0.1 dhcp-option=tag:tag2,option:dns-server,192.168.1.250,8.8.8.8,192.168.1.1 dhcp-option=tag:tag3,option:dns-server,192.168.2.250,8.8.8.8,192.168.2.1 и dhcp-authoritative log-queries log-dhcp log-facility = /var/log/dns-log.log # Never forward plain names (without a dot or domain part) domain-needed # Never forward addresses in the non-routed address spaces. bogus-priv # If you don't want dnsmasq to read /etc/resolv.conf or any other # file, getting its servers from this file instead (see below), then # uncomment this. #no-resolv # If you don't want dnsmasq to poll /etc/resolv.conf or other resolv # files for changes and re-read them then uncomment this. #no-poll # Add local-only domains here, queries in these domains are answered # from /etc/hosts or DHCP only. local=/############.com/ #server=/###########.com/192.168.0.250 ###### External DNS server=ISP#DNS#SERVER server=8.8.8.8 #################################interfaces to bind, vlan style interface=eth0.1 interface=eth0.2 interface=eth0.3 # If you don't want dnsmasq to read /etc/hosts, uncomment the # following line. #no-hosts # or if you want it to read another file, as well as /etc/hosts, use # this. #addn-hosts=/etc/dnsmasq-static.conf # Set this (and domain: see below) if you want to have a domain # automatically added to simple names in a hosts-file. expand-hosts # Set the domain for dnsmasq. this is optional, but if it is set, it # does the following things. # 1) Allows DHCP hosts to have fully qualified domain names, as long # as the domain part matches this setting. # 2) Sets the "domain" DHCP option thereby potentially setting the # domain of all systems configured by DHCP # 3) Provides the domain part for "expand-hosts" domain=##########.com # Uncomment this to enable the integrated DHCP server, you need # to supply the range of addresses available for lease and optionally # a lease time. If you have more than one network, you will need to # repeat this for each network on which you want to supply DHCP # service. ############################################################################################################ dhcp-range=set:tag1,192.168.0.100,192.168.0.200,255.255.255.0,7h dhcp-range=set:tag2,192.168.1.100,192.168.1.200,255.255.255.0,7h dhcp-range=set:tag3,192.168.2.100,192.168.2.200,255.255.255.0,7h ####################################### # Always set the name of the host with hardware address # 11:22:33:44:55:66 to be "fred" #FIRST TRY SETTING RESERVATION, THEN MOVED TO STATIC FILE #dhcp-host=52:54:00:1C:26:66,192.168.2.9 dhcp-hostsfile=/etc/dns-static.conf # If this line is uncommented, dnsmasq will read /etc/ethers and act # on the ethernet-address/IP pairs found there just as if they had # been given as --dhcp-host options. Useful if you keep # MAC-address/host mappings there for other purposes. #read-ethers ####################################################################################DEFAULT ROUTES dhcp-option=tag:tag1,option:router,192.168.0.1 dhcp-option=tag:tag2,option:router,192.168.1.1 dhcp-option=tag:tag3,option:router,192.168.2.1 dhcp-option=tag:tag1,option:dns-server,192.168.0.250,8.8.8.8,192.168.0.1 dhcp-option=tag:tag2,option:dns-server,192.168.1.250,8.8.8.8,192.168.1.1 dhcp-option=tag:tag3,option:dns-server,192.168.2.250,8.8.8.8,192.168.2.1 и dhcp-authoritative log-queries log-dhcp log-facility = /var/log/dns-log.log # Never forward plain names (without a dot or domain part) domain-needed # Never forward addresses in the non-routed address spaces. bogus-priv # If you don't want dnsmasq to read /etc/resolv.conf or any other # file, getting its servers from this file instead (see below), then # uncomment this. #no-resolv # If you don't want dnsmasq to poll /etc/resolv.conf or other resolv # files for changes and re-read them then uncomment this. #no-poll # Add local-only domains here, queries in these domains are answered # from /etc/hosts or DHCP only. local=/############.com/ #server=/###########.com/192.168.0.250 ###### External DNS server=ISP#DNS#SERVER server=8.8.8.8 #################################interfaces to bind, vlan style interface=eth0.1 interface=eth0.2 interface=eth0.3 # If you don't want dnsmasq to read /etc/hosts, uncomment the # following line. #no-hosts # or if you want it to read another file, as well as /etc/hosts, use # this. #addn-hosts=/etc/dnsmasq-static.conf # Set this (and domain: see below) if you want to have a domain # automatically added to simple names in a hosts-file. expand-hosts # Set the domain for dnsmasq. this is optional, but if it is set, it # does the following things. # 1) Allows DHCP hosts to have fully qualified domain names, as long # as the domain part matches this setting. # 2) Sets the "domain" DHCP option thereby potentially setting the # domain of all systems configured by DHCP # 3) Provides the domain part for "expand-hosts" domain=##########.com # Uncomment this to enable the integrated DHCP server, you need # to supply the range of addresses available for lease and optionally # a lease time. If you have more than one network, you will need to # repeat this for each network on which you want to supply DHCP # service. ############################################################################################################ dhcp-range=set:tag1,192.168.0.100,192.168.0.200,255.255.255.0,7h dhcp-range=set:tag2,192.168.1.100,192.168.1.200,255.255.255.0,7h dhcp-range=set:tag3,192.168.2.100,192.168.2.200,255.255.255.0,7h ####################################### # Always set the name of the host with hardware address # 11:22:33:44:55:66 to be "fred" #FIRST TRY SETTING RESERVATION, THEN MOVED TO STATIC FILE #dhcp-host=52:54:00:1C:26:66,192.168.2.9 dhcp-hostsfile=/etc/dns-static.conf # If this line is uncommented, dnsmasq will read /etc/ethers and act # on the ethernet-address/IP pairs found there just as if they had # been given as --dhcp-host options. Useful if you keep # MAC-address/host mappings there for other purposes. #read-ethers ####################################################################################DEFAULT ROUTES dhcp-option=tag:tag1,option:router,192.168.0.1 dhcp-option=tag:tag2,option:router,192.168.1.1 dhcp-option=tag:tag3,option:router,192.168.2.1 dhcp-option=tag:tag1,option:dns-server,192.168.0.250,8.8.8.8,192.168.0.1 dhcp-option=tag:tag2,option:dns-server,192.168.1.250,8.8.8.8,192.168.1.1 dhcp-option=tag:tag3,option:dns-server,192.168.2.250,8.8.8.8,192.168.2.1 

  • Как сбросить USB-устройство с помощью скрипта?
  • Обновите / обновите Debian и пропустите любые взаимодействия
  • Провайдер WPA, снижающий / отключающий сетевой адаптер в гостиничном Wi-Fi
  • Ошибка Hostapd на raspberrypi nl80211
  • Два cronjobs не работают (один для запуска процесса, один для остановки процесса)
  • Изменение конфигурации baudrate изменяется только после запуска x
  • Обновить билет Kerberos для демона
  • Почему при деинсталляции интерфейсов требуется перезагрузка?
  • One Solution collect form web for “Centos 6.8 Клиент VM не получает DHCP Зарезервированный IP-адрес от сервера Rasbian dnsmasq”

    Это оказалось ошибкой VLAN с моей стороны.

    Я закончил создание второго интерфейса моста на втором порту Ethernet, пометил его на 192.168.2.0 VLAN, изменил виртуальную машину, чтобы использовать новый мост, и poof

    Interesting Posts

    Как определить количество времени, оставшегося во время «сна»?

    Добавить один ключ к сертификатам CA из автоматизированного сценария

    Как удаленно подключиться к компьютеру через ssh, который находится за беспроводным маршрутизатором?

    В чем разница между пакетом linux и модулем Linux?

    Проблемы TrackPoint с последними версиями libinput, Xorg (нужны реквизиты evdev)

    Не удается войти в меню загрузки GNU GRUB!

    Легкий linux для операций с дисками

    Являются ли данные дешифрованы и повторно зашифрованы сервером OpenVPN при отправке между клиентами?

    Apache не может открыть файл, который является символической ссылкой

    Создание пользователя, имеющего только доступ к папке и подпапке, который присутствует у другого пользователя той же Системы

    В чем разница между ключом сообщения и дескриптором сообщения при передаче сообщений в System V IPC?

    printf в моем выпуске теперь

    Сколько типов архитектур и ОС

    Проблема с режимом редактирования GRUB2

    Список файлов, содержащих меньше N строк, соответствующих шаблону / строке

    Linux и Unix - лучшая ОС в мире.