Hello,
trying setting up a DHCP server on my main host machine (virtualized with Proxmox) I ran into an issue I could not solve myself.
The machine is hosted by the OVH company, therefore the IP addresses too. The IP addresses are Failover IPs.
First of all, the configurations:
Variables (censored)
dhcpd.conf (on my physical machine):
/etc/rc.conf (on my virtual machine, regarding network configuration):
The problem now is that the "netstat -rn" command looks like this:
With the manual configuration (working internet connection, but I need to configure it on the VM itself):
As you can see the first two entries regarding the gateway are missing and I'm unable to configure the DHCP server in a correct way to get this stuff working.
Can anyone help me?
With kind regards
Yiv
trying setting up a DHCP server on my main host machine (virtualized with Proxmox) I ran into an issue I could not solve myself.
The machine is hosted by the OVH company, therefore the IP addresses too. The IP addresses are Failover IPs.
First of all, the configurations:
Variables (censored)
Code:
FAILOVER-MAC - The virtual mac address of the failover ip.
FAILOVER-IP - The failover ip itself.
GATEWAY - The main machines gateway.
DEFAULT-DNS - The OVH default dns.
dhcpd.conf (on my physical machine):
Code:
default-lease-time 21600000;
max-lease-time 432000000;
subnet 0.0.0.0 netmask 0.0.0.0 {
authoritative;
}
# Bind IPs by MAC
host VM103 {
hardware ethernet FAILOVER-MAC;
fixed-address FAILOVER-IP;
option broadcast-address FAILOVER-IP;
option routers GATEWAY;
option subnet-mask 255.255.255.255;
option domain-name-servers 8.8.8.8,DEFAULT-DNS;
}
/etc/rc.conf (on my virtual machine, regarding network configuration):
Code:
ifconfig_em0="DHCP"
The problem now is that the "netstat -rn" command looks like this:
Code:
FAILOVER-IP link#1 UHS lo0
FAILOVER-IP/32 link#1 U em0
127.0.0.1 link#2 UH lo0
With the manual configuration (working internet connection, but I need to configure it on the VM itself):
Code:
default GATEWAY UGS em0
GATEWAY/32 FAILOVER-MAC US em0
FAILOVER-IP link#1 UHS lo0
FAILOVER-IP/32 link#1 U em0
127.0.0.1 link#2 UH lo0
As you can see the first two entries regarding the gateway are missing and I'm unable to configure the DHCP server in a correct way to get this stuff working.
Can anyone help me?
With kind regards
Yiv