All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Hetzner Additional IPs Config HELP!
Hey
I bought a dedicated server from Hetzner. I also ordered a extra IP-address. (1 IP not subnet)
--
I really cant find how to get it working.
I am going to virtualize KVM (virt-manager)
OS: CentOS 7.6
My configs:
/etc/sysconfig/network-scripts/ifcfg-enp3s0
Generated by dracut initrd
NAME="enp3s0"
DEVICE="enp3s0"
ONBOOT=yes
NETBOOT=yes
UUID="432528ab-9b2c-4eab-8151-3a03f2d376"
IPV6INIT=yes
BOOTPROTO=dhcp
TYPE=Ethernet
DNS1="213.133.98."
ZONE=public
I tried to create Bridge in virt-manager.
it creates the bridge etc but when I try curl --interface br1 it doesnt work....
/etc/sysconfig/network-scripts/ifcfg-br1
DEVICE="br1"
ONBOOT="yes"
TYPE="Bridge"
BOOTPROTO="none"
IPADDR="213.239.21."
GATEWAY="213.239.21*.1"
STP="on"
DELAY="0.0"
Please help! :-)
Comments
I am of no use when it comes to centos, BUT, if you use single addons in bridged mode you need to set a virtual mac in hetzners control panel for that IP (the small nic icon next to it) and use this vMAC inside your guest, otherwise it won't work for sure.
how to add it into guest? in config? or in vm's network config?
most likely in the conf file for the guest. I only use debian + proxmox, so can't say where virt-manager might put which conf files...
@Falzo If I install Debian + Proxmox can you help me?
Clear your ifcfg-enp3s0 and set it to:
DEVICE=enp3s0
ONBOOT=yes
BRIDGE=br0
And change your bootproto=none to static in the bridge maybe. Technically it would work?
Then configure the additional IP in your guest VM like you normally would. You might need to generate a vmac through hetzner like Falzo said if it's required, then just set the vmac as the VM mac on the host interface/config for the VM.
perhaps there wiki can help you?
https://wiki.hetzner.de/index.php/Zusaetzliche_IP-Adressen/en
when i did systemctl restart network.service I cant connect to server more. I need to reboot it in controlpanel.
I am trying to understand it. However I don't
It's too advanced.
4 minutes after resetting it in control panel it's still "Request timed out."
still not answering pings
Does hetzner have IPMI/KVM for your server? If so PM me and I can look over it.
Nope
only rescue , reboot, manual reboot, reinstall etc.
Ok, might be obvious, but was bridge-utils installed?
I really don't remember.
I am going to reinstall the server, use same configs in my post. (that I sended here)
I checked and Hetzner doesn't have bridge-utils in their stock CentOS installs, to make sure it's installed if you didn't.
Normally you’d generate a virtual MAC-address in Robot, add this MAC-address to the network adapter of the VM in virt-manager and then add a static IP.
I’m not sure if virt-manager works with bridged adapters only, but normally you would have a network adapter in the VM that starts with an ens-prefix.
Just use this, more people can help you
I reinstalled the server etc.
After I rebooted it (it said it on vnc thing on hetzner robot) it still don't answer to pings.
The server is freezing when I use VNC to install CentOS 7..
EDIT: it works now lol
@MikeA
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirror.imt-systems.com
* extras: centosmirror.netcup.net
* updates: mirror.ratiokontakt.de
Package bridge-utils-1.5-9.el7.x86_64 already installed and latest version
Nothing to do
it was installed.
_**_I just installed Proxmox.
How to setup 1 extra ip there?
Can someone help me?
@MikeA Do you know what I am going to write? ^^^^
open /etc/network/interfaces with an editor of your choice and put in:
make sure to replace eth0 with whatever your network device is called.
also remove the block for that original device or set it to manual and comment the details.
reboot. if you have done everything correctly the machine should come up afterwards and proxmox will have vmbr0 in the settings.
if you messed it up, boot into rescue, mount your drive and edit the interfaces file again.
once it's up and running create a VM and make sure you assign vmbr0 in the network settings and fill in the virtual mac from control panel as mac address.
after installing that machine inside a guest (debian) the network settings should read like this:
gateway for single IPs is the gateway of the host system or the assigned IP.
more is described here: https://wiki.hetzner.de/index.php/Proxmox_VE/en
and yes that's tested and working ;-)
First apply for a separate mac address to ensure that it is under the bridge network,Try to fill in the mac address when creating the virtual machine.
I dont understand
Should I remove my original interface?????????
aha now I understand (I think)
also remove the block for that original device or set it to manual and comment the details.
what?
Maybe just go with a virtual provider if bare bones is too difficult.
Yes, It's kinda difficult.