Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Hetzner Additional IPs Config HELP!
New on LowEndTalk? Please Register and read our Community Rules.

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! :-)

«1

Comments

  • FalzoFalzo Member

    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.

    Thanked by 1xlucasonepvp
  • Falzo said: o centos, BUT, if you use single addons in bridged mode you need to set a virtual m

    how to add it into guest? in config? or in vm's network config?

  • FalzoFalzo Member

    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...

    Thanked by 1xlucasonepvp
  • xlucasonepvpxlucasonepvp Member
    edited May 2019

    @Falzo If I install Debian + Proxmox can you help me? :)

  • MikeAMikeA Member, Patron Provider
    edited May 2019

    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.

  • Thanked by 1level6
  • @MikeA said:
    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.

    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 :(

  • MikeAMikeA Member, Patron Provider

    @xlucasonepvp said:

    @MikeA said:
    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.

    when i did systemctl restart network.service I cant connect to server more. I need to reboot it in controlpanel. :/

    Does hetzner have IPMI/KVM for your server? If so PM me and I can look over it.

  • @MikeA said:

    @xlucasonepvp said:

    @MikeA said:
    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.

    when i did systemctl restart network.service I cant connect to server more. I need to reboot it in controlpanel. :/

    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.

  • MikeAMikeA Member, Patron Provider

    Ok, might be obvious, but was bridge-utils installed?

  • xlucasonepvpxlucasonepvp Member
    edited May 2019

    @MikeA said:
    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)

  • MikeAMikeA Member, Patron Provider

    @xlucasonepvp said:

    @MikeA said:
    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.

  • akhfaakhfa Member

    @xlucasonepvp said:
    @Falzo If I install Debian + Proxmox can you help me? :)

    Just use this, more people can help you :wink:

    Thanked by 1Falzo
  • 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. :open_mouth:

  • xlucasonepvpxlucasonepvp Member
    edited May 2019

    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. :/

  • xlucasonepvpxlucasonepvp Member
    edited May 2019

    _**_I just installed Proxmox.
    How to setup 1 extra ip there?

  • xlucasonepvpxlucasonepvp Member
    edited May 2019

    Can someone help me? :)

  • xlucasonepvpxlucasonepvp Member
    edited May 2019

    @MikeA Do you know what I am going to write? ^^^^

  • FalzoFalzo Member

    open /etc/network/interfaces with an editor of your choice and put in:

    auto vmbr0
    iface vmbr0 inet static
           address 
           netmask 255.255.255.255
           pointopoint 
           gateway 
           bridge_ports eth0
           bridge_stp off
           bridge_fd 1
           bridge_hello 2
           bridge_maxage 12
    

    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:

    # /etc/network/interfaces
    # Loopback device:
    auto lo
    iface lo inet loopback
    
    # device: eth0
    auto  eth0
    iface eth0 inet static
           address 
           netmask 255.255.255.255
           pointopoint 
           gateway 
    

    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 ;-)

    Thanked by 1akhfa
  • Bani99Bani99 Member

    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.

  • @Falzo said:
    open /etc/network/interfaces with an editor of your choice and put in:

    auto vmbr0
    > iface vmbr0 inet static
    >        address 
    >        netmask 255.255.255.255
    >        pointopoint 
    >        gateway 
    >        bridge_ports eth0
    >        bridge_stp off
    >        bridge_fd 1
    >        bridge_hello 2
    >        bridge_maxage 12
    > 

    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:

    # /etc/network/interfaces
    > # Loopback device:
    > auto lo
    > iface lo inet loopback
    > 
    > # device: eth0
    > auto  eth0
    > iface eth0 inet static
    >        address 
    >        netmask 255.255.255.255
    >        pointopoint 
    >        gateway 
    > 

    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 ;-)

    I dont understand
    Should I remove my original interface?????????

  • xlucasonepvpxlucasonepvp Member
    edited May 2019

    aha now I understand (I think)

  • also remove the block for that original device or set it to manual and comment the details.
    what?

  • SirFoxySirFoxy Member

    Maybe just go with a virtual provider if bare bones is too difficult.

  • @SirFoxy said:
    Maybe just go with a virtual provider if bare bones is too difficult.

    Yes, It's kinda difficult.

Sign In or Register to comment.