[SOLVED] Proxmox not connecting to Network

eshrath

New Member
Feb 7, 2022
24
5
3
43
Hello,

My Proxmox was running normal on local ip 192.168.1.112. In setting up the static IP address of the Proxmox and the Dell IDRAC of the server, I seems to have messed up the static IP address in the Network controller (UniFi) and /etc/network/interfaces file.

Now, proxmox is NOT connecting to the network even though it says that it is available at 192.168.1.112. Is there a way I can reset the network configuration? What should be the default values in /etc/network/interfaces file?

This is what I have in /etc/network/interfaces file now...

IMG_0831-2.JPG

IMG_0832-2.JPG

LAN cables are connected to the server and also to the switch. No issue with the LAN Cable as I tested it with other machines.

Has anyone faced this problem? Any pointers to fix this will be of great help.

Thanks in advance.

-Esh
 
Thank you @UdoB.

I was able to get eth0 working. I am able to ssh into server IP address 192.168.1.105. (address configured for eth0)

However I am still not able to access Proxmox web interface.

Content of /etc/network/interfaces

Code:
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet static
        address 192.168.1.105/24
        gateway 192.168.1.1

iface eno2 inet manual

iface eno3 inet manual

iface eno4 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.106/24
        gateway 192.168.1.1
        bridge-ports en01
        bridge-stp off
        bridge-fd 0

Content of ip address

Code:
root@proxmox:~# ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether b8:2a:72:dd:98:c3 brd ff:ff:ff:ff:ff:ff
    altname enp1s0f0
    inet 192.168.1.105/24 scope global eno1
       valid_lft forever preferred_lft forever
    inet6 fe80::ba2a:72ff:fedd:98c3/64 scope link
       valid_lft forever preferred_lft forever
3: eno2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether b8:2a:72:dd:98:c5 brd ff:ff:ff:ff:ff:ff
    altname enp1s0f1
4: eno3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether b8:2a:72:dd:98:c7 brd ff:ff:ff:ff:ff:ff
    altname enp1s0f2
5: eno4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether b8:2a:72:dd:98:c9 brd ff:ff:ff:ff:ff:ff
    altname enp1s0f3
6: vmbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether c2:1e:42:a7:b6:3f brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.106/24 scope global vmbr0
       valid_lft forever preferred_lft forever
root@proxmox:~#

After the machine boots it still says the Proxmox is running at 192.168.1.112:8006, which was the IP address Proxmox got when it was up for the first time (2 months back).

Please let me know if there is anything incorrect in the configuration and if there is anything I need to do to get to Proxmox web ui.
 
Another observation. When I scan the open ports in the ip, I do not see 8006 open.
Code:
sudo nmap -sT 192.168.1.105
Starting Nmap 7.80 ( https://nmap.org ) at 2022-03-13 22:18 CDT
Nmap scan report for 192.168.1.105
Host is up (0.00051s latency).
Not shown: 997 closed ports
PORT     STATE SERVICE
22/tcp   open  ssh
111/tcp  open  rpcbind
3128/tcp open  squid-http
MAC Address: B8:2A:72:DD:98:C3 (Dell)
 
If you change the IP of the PVE-host, you also need to edit the /etc/hosts file. [1]
Did you do that?

bridge-ports en01

There is a typo. Should be eno1.

Also: You have configured two gateways, that's one too much.

Also2: You are giving the physical port eno1 a static IP in the same subnet, as well as the bridge vmbr0 which bridges eno1.
Default would be, to only have a static IP for the PVE-host on vmbr0.
So my suggestion would be to remove the address as well as the gateway from eno1 and change iface eno1 inet static back to iface eno1 inet manual.
If you want 192.168.1.105 for your PVE-host, change the address of vmbr0 to it. This address has also to be in /etc/hosts, as already mentioned above.

After all that changes, do a reboot.

PS.: Don't forget to access with https and port 8006.

[1] https://forum.proxmox.com/threads/help-with-changing-ip-address-reinstalling.55421/#post-255388
 
If you change the IP of the PVE-host, you also need to edit the /etc/hosts file. [1]
Did you do that?



There is a typo. Should be eno1.

Yes. It is a typo. I fixed it.

Also: You have configured two gateways, that's one too much.

Also2: You are giving the physical port eno1 a static IP in the same subnet, as well as the bridge vmbr0 which bridges eno1.
Default would be, to only have a static IP for the PVE-host on vmbr0.
So my suggestion would be to remove the address as well as the gateway from eno1 and change iface eno1 inet static back to iface eno1 inet manual.
If you want 192.168.1.105 for your PVE-host, change the address of vmbr0 to it. This address has also to be in /etc/hosts, as already mentioned above.

After all that changes, do a reboot.

PS.: Don't forget to access with https and port 8006.

[1] https://forum.proxmox.com/threads/help-with-changing-ip-address-reinstalling.55421/#post-255388
After making the changes recommended by you, I am able to get the Proxmox up and running. Thanks a lot @Neobin

Additional questions related to the static IP address and other ethernet ports.

1) What is the best way to make the IP address static? Is it through web interface to by making changes to /etc/network/interfaces file and / or setting these IP address in the Network Controller (UniFi in this case)?
2) What is the best way to change the IP address of the VMs running inside Proxmox? Web UI or through console of those servers and / or setting these IP address in the Network Controller (UniFi in this case)?
3) How can I make use of other ethernet ports en02, en03, en04. to increase the bandwidth?
4) Is it possible to assign separate ethernet ports to TrueNas so that it runs faster without having to share the ethernet port with other servers?

Thanks in advance.
-Eshrath.
 
I had this exact same issue. What fixed it for me was switching the physical Ethernet port connection from port 4 to port 1, did “ifdown -a” then “ifup -a” and then it appeared on my network, no reboot required.
 

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!