Hetzner root server network configuration cant figure it out? Quick fix?

chgo2oc

New Member
Feb 11, 2020
16
0
1
55
San Clemente California
Hey Community,



I was wondering if I could get some help setting up the correct networking config for my proxmox root server.. I am new new noobe, so it kinda like jumping in to a group of people speaking German (my German teacher would be so disappointed, she was so hot though) and you only know a few words. I cannot find an easy road map to follow. I just want to run 3 or 4 ubuntu vm's, and a PFsense firewall (since that is what i use at home)



Here is the mess I have created so far.



Hardware is AMD Ryzen 7 1700X

2X SSD SATA 512 GBX

4X RAM 16384 MB DD4



During installimage Debian buster with proxmox



Code:
-Datacenter
    -Nodes
        -prox
    -Virtual Machine
          100 (Ubuntu1) (no network connection) I think I have to set this up with static
     -Storage  (shouldn’t this be nested under my Node its not)





created a vswitch vlan 4003 and linked to my server



  • I dont understand if I can arbitrarily just set up a NIC, I kinda understand the naming convention en=ethernet pcibus=6 slot=0.
  • How do I set up additional NICs?
  • Should I purchase 4 additional IP's? or can I route to a private ip space?
    • I only see the ability to purchase 1 additional IP or CIDR /29
    • since there no DHCP CIDR/29 does that mean I could use all 8 ips? which I really dont need but I dont see away to just purchase 4 of the them.



Code:
###Hetzner Online GmbH installimage

Source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback
iface lo inet6 loopback


auto enp6s0
iface enp6s0 inet static
    address xxx.xxx.xxx.14
    netmask 255.255.255.19
    gateway xxx.xxx.x17.1
    # route xxx.xxx.x17.0/26 via xxx.xxx.x17.
    up route add -net xxx.xxx.x17.0 netmask 255.255.255.192 gw xxx.xxx.x17.1 dev enp6s0


iface enp6s0 inet6 static
   address xxxx1:4f8:xxx:190::2
   netmask 64
   gateway fe80::1


iface enp6s0.4003 inet manual
   vlan-raw-device enp6s0
   mtu 1400

auto vmbr0
iface vmbr0 inet static
   address 10.10.10.1
   netmask 255.255.255.0
   bridge_ports enp6s0.4003
   bridge_stp off
   bridge_fd 0
 
Last edited:
You should not need VLANs at this point. Have you already tried one of our suggested ways of configuration?

By the way, when creating a post you can click on the button with the three dots in the edit bar and select "Code" to insert code snippets properly formatted.
 
thanks sorry Dominic can you take a look at this

Original Config

Code:
  GNU nano 3.2                                    /etc/network/interfaces                                               
### Hetzner Online GmbH installimage

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback
iface lo inet6 loopback

auto enp6s0
iface enp6s0 inet static
  address 1xx.xxx.xxx.14
  netmask 255.255.255.192
  gateway 1xx.xxx.xxx.1
  # route 1xx.xxx.xxx.0/26 via 1xx.xxx.xxx.1
  up route add -net 1xx.xxx.xxx.0 netmask 255.255.255.192 gw 1xx.xxx.xxx.1 dev enp6s0

iface enp6s0 inet6 static
  address 2axx:4xx:xxx:xxx::2
  netmask 64
  gateway fe80::1


New Configuration

  1. two things I pulled this from a very smart guy who is also named Dominic link here he has eth0 in his example is that because he might have been using ubuntu. I should keep it enp6s0 right
  2. Do I need to add the line from the original network config (line below) to underneath pointopoint
up route add -net 1xx.xxx.xxx.0 netmask 255.255.255.192 gw 1xx.xxx.xxx.1 dev enp6s0


Code:
auto eth0
iface eth0 inet static
        address  138.201.203.16
        netmask  255.255.255.255
        gateway  138.201.203.1
    pointopoint 138.201.203.1
        
auto vmbr0
iface vmbr0 inet static
    address  138.201.203.16
    netmask  255.255.255.255
    bridge_ports none
    bridge_stp off
    bridge_fd 0
    bridge_maxwait 0
        up ip route add 138.201.203.49/32 dev vmbr0
        up ip route add 138.201.203.52/32 dev vmbr0
        up ip route add 138.201.203.56/32 dev vmbr0
        up ip route add 138.201.203.57/32 dev vmbr0

Thanks for you help
 
You should not need VLANs at this point. Have you already tried one of our suggested ways of configuration?

By the way, when creating a post you can click on the button with the three dots in the edit bar and select "Code" to insert code snippets properly formatted.
Dominic, I attempted the suggested configuration from the link you sent me, and didnt work. I just read through some post about the subscriptions services and why its important to support proxmox in this way. I fully agree!! Although I cant afford the $270 license fee, I think I saw a $80 community annual support..... something something.. I have no problem supporting you in that way, however if I can even get this thing to work that 80 poorly spent for me. Do you think if I ponied up (american term for put your money on the table) the $80 I could get some support on the network configuration??

Prox.JPG
 
Community support for the Community Subscription is done in this forum. There is no guaranteed response time. However, you will have a note "Proxmox Subscriber" below your avatar/user name in the forum to make your support visible :)

Could you provide the output of ip link show? Do you reach the internet on your host ping 8.8.8.8? If not, please create a backup of your current configuration first. If I insert your addresses & names into my own working configuration it looks like this:
Code:
auto lo
iface lo inet loopback

auto enp6s0
iface enp6s0 inet manual

auto vmbr0
iface vmbr0 inet static
    address  138.201.203.16
    netmask  255.255.255.255
    gateway  138.201.203.1
    bridge-ports enp6s0
    bridge-stp off
    bridge-fd 0
Note that my enp6s0 is set to manual and vmbr0 has enp6s0 in bridge-ports. vmbr0 then holds the ip address of your host. Please try this (don't forget to reboot) and check if you reach the internet using ping.