ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Configuring network settings for Proxmox installs

    IT Discussion
    proxmox networking kvm linux
    2
    5
    11.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CCWTechC
      CCWTech
      last edited by

      We configure servers at our HQ and then need to send them out to clients sites.

      We set them to DHCP so that they will pickup an IP once it gets to the client's network as their IP addressing configuration is most likely different than ours.

      We are running into challenges changing them back to static when they arrive at a clients site.

      To get it to DHCP we are going into /etc/network/interfaces

      Is this the best way to set it to DHCP?

      Then, once it get's to the clients site, what is the best way to get it to a static IP (including the IP address that shows up on the login screen).

      Please be a bit verbose, I'm still fairly new to ProxMox and the Linux world.

      1 Reply Last reply Reply Quote 0
      • black3dynamiteB
        black3dynamite
        last edited by black3dynamite

        Take a look at the network configuration section of PVE Docs.
        https://pve.proxmox.com/pve-docs/chapter-sysadmin.html#sysadmin_network_configuration

        You can either make changes via the Web GUI or modify /etc/network/interfaces file directly. They do prefer users to use the Web GUI because when you modify the networking configuration from the GUI it will temporary creates a /etc/network/interfaces.new file to help you double check your new setup before you reboot to apply the new changes.

        Setting up DHCP Linux bridge will require you to modify the interfaces file directly.
        BE WARNED, I have not confirm if this works correctly for the DHCP setup.

        DHCP setup with Linux bridge

        auto lo
        iface lo inet loopback
        
        iface eno1 inet dhcp
        
        auto vmbr0
        iface vmbr0 inet dhcp
                bridge_ports eno1
                bridge_stp off
                bridge_fd 0
        

        And with default static Linux bridge setup you can do that either by GUI or directly.

        Static setup with Linux bridge

        auto lo
        iface lo inet loopback
        
        iface eno1 inet manual
        
        auto vmbr0
        iface vmbr0 inet static
                address 192.168.1.93
                netmask 255.255.255.0
                gateway 192.168.1.1
                bridge_ports eno1
                bridge_stp off
                bridge_fd 0
        

        Also you will need to make sure /etc/resolv.conf is configured correctly, either by using GUI or directly.

        search example.com
        nameserver 192.168.1.1
        nameserver 1.1.1.1
        nameserver 8.8.8.8
        
        1 Reply Last reply Reply Quote 1
        • CCWTechC
          CCWTech
          last edited by

          Thank's @black3dynamite

          Is it the etc/hosts file that determines what is shown on the login screen as what the IP address of the server is?

          black3dynamiteB 1 Reply Last reply Reply Quote 0
          • black3dynamiteB
            black3dynamite @CCWTech
            last edited by

            @CCWTech said in Configuring network settings for Proxmox installs:

            Thank's @black3dynamite

            Is it the etc/hosts file that determines what is shown on the login screen as what the IP address of the server is?

            My bad, you would need to make sure the IP address in /etc/hosts is updated too.

            1 Reply Last reply Reply Quote 1
            • CCWTechC
              CCWTech
              last edited by

              TY @black3dynamite

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post