Can not access proxmox web interface from second nic

JohnTanner

Active Member
Sep 25, 2019
42
3
28
35
Hey everyone,

i have a little "problem" with my setup.
Initially i installed proxmox with two ethernet nics, one built into the motherboard and the other as extra pcie card. BUT: i only plugged one ethernet cable into the pcie ethernet port during the installation.
So, right now i reach my web interface in 192.168.2.153:8006 without any problems. The other nic gave itself the IP 192.168.1.1, which also doesn't change when i plug an ethernet cable into the port. I also can't ping the address (I'm more or less directly connected to the machine via an ethernet switch).

So, now i'd like to use the pcie ethernet port somewhere else and have the web interface accessible via the built in port.

Can anyone point me to an article on how to access the GUI from another port/IP? i have messed a bit with the interfaces file by now (yes i always restored the original file after each attempt, so here is a clean, working file), but no attempts worked.

my /etc/network/interfaces file: (the comments aren't in the file, i added them to clarify which port is which physical device)


Bash:
auto lo
iface lo inet loopback

iface enp5s0 inet manual #<-- built-in port


auto vmbr0
iface vmbr0 inet static
        address  192.168.2.153 #<-- IP by which the web interface is accessible
        netmask  24
        gateway 192.168.2.1 #<-- router/gateway
        bridge-ports eno1  #<-- pcie port
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet static
        address  192.168.1.1 #<-- gave itself this IP
        netmask  24
        bridge-ports enp5s0 #<-- built-in port
        bridge-stp off
        bridge-fd 0


Thanks in advance :D
 
Hi,
your vmbr1 ip is not in the same subnet as the one for vmbr0 (192.168.1.0/24 and 192.168.2.0/24). So you will have to be in the same subnet to reach the interface or change it to be on the same subnet. Further it should be enough to switch the interfaces attatched to the bridge in order to replace one nic with the other.
Lastly, there is no entry for eno1 in your config?

So you probably want something like this, correct?
Code:
auto lo
iface lo inet loopback

iface enp5s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address  192.168.2.153
        netmask  24
        gateway 192.168.2.1
        bridge-ports enp5s0
        bridge-stp off
        bridge-fd 0
 
Hi,
your vmbr1 ip is not in the same subnet as the one for vmbr0 (192.168.1.0/24 and 192.168.2.0/24). So you will have to be in the same subnet to reach the interface or change it to be on the same subnet. Further it should be enough to switch the interfaces attatched to the bridge in order to replace one nic with the other.
Lastly, there is no entry for eno1 in your config?

So you probably want something like this, correct?
Code:
auto lo
iface lo inet loopback

iface enp5s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address  192.168.2.153
        netmask  24
        gateway 192.168.2.1
        bridge-ports enp5s0
        bridge-stp off
        bridge-fd 0


Hey, thanks for the reply!

theoretically, would this config work (that's the config in the webview without applying, so I believe the lines with a "-" are being removed...)?



Bash:
--- /etc/network/interfaces    2020-01-30 18:25:33.272014411 +0100
+++ /etc/network/interfaces.new    2020-02-05 10:01:46.032806724 +0100
@@ -14,21 +14,14 @@
 
 iface enp5s0 inet manual
 
+iface eno1 inet manual
 
 auto vmbr0
 iface vmbr0 inet static
     address  192.168.2.153
     netmask  24
     gateway 192.168.2.1
-    bridge-ports eno1
-    bridge-stp off
-    bridge-fd 0
-
-auto vmbr1
-iface vmbr1 inet static
-    address  192.168.1.1
-    netmask  24
-    bridge-ports enp5s0
+    bridge-ports eno1 enp5s0
     bridge-stp off
     bridge-fd 0
 
Hey, thanks for the reply!

theoretically, would this config work (that's the config in the webview without applying, so I believe the lines with a "-" are being removed...)?



Bash:
--- /etc/network/interfaces    2020-01-30 18:25:33.272014411 +0100
+++ /etc/network/interfaces.new    2020-02-05 10:01:46.032806724 +0100
@@ -14,21 +14,14 @@

iface enp5s0 inet manual

+iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
     address  192.168.2.153
     netmask  24
     gateway 192.168.2.1
-    bridge-ports eno1
-    bridge-stp off
-    bridge-fd 0
-
-auto vmbr1
-iface vmbr1 inet static
-    address  192.168.1.1
-    netmask  24
-    bridge-ports enp5s0
+    bridge-ports eno1 enp5s0
     bridge-stp off
     bridge-fd 0
Be careful to not create loops, e.g. if eno1 and enp5s0 are attached to the same bridge.
The output is the diff of what will be changed on reboot.
Make sure you also have the correct IP in /etc/hosts, otherwise it will not work.
Also all VMs/CTs attached on vmbr1 will loose their network.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!