Problem connecting proxmox to internet

rafafell

Well-Known Member
Sep 24, 2016
61
2
48
36
I'm having trouble on my network. I believe that the configuration in proxmox is correct, but the real machine (proxmox 5) does not connect in the internet. I've tried something and it did not work, any suggestions?

/etc/network/interfaces looks like this:

source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

allow-hotplug enp5s0

iface enp5s0 inet dhcp

auto vmbr0
iface vmbr0 inet static
address XXX.XXX.XXX.XXX
netmask 255.255.255.224
gateway XXX.XXX.XXX.XXX
bridge_ports enp5s0
bridge_stp off
bridge_fd 0



when I give an "ifconfig" the inet e inet6 of the enp5s0 does not appear (in the node that is connecting in the internet the inet appears)


# ifconfig
enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether yy:yy:yy:yy:yy:yy txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Loopback Local)
RX packets 663 bytes 1554619 (1.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 663 bytes 1554619 (1.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

vmbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet xxx.xxx.xxx.xxx netmask 255.255.255.224 broadcast xxx.xxx.xxx.xxx
ether 60:a4:4c:cf:30:5c txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 6 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


ifconfig of node pve with internet access

enp3s0: flags = 4163 <UP, BROADCAST, RUNNING, MULTICAST> mtu 1500
inet XXX.XXX.XXX.XXX netmask 255.255.255.224 broadcast XXX.XXX.XXX.XXX
ether YY: YY: YY: YY: YY: YY txqueuelen 1000 (Ethernet)
RX packets 483511114 bytes 366634404065 (341.4 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 455663037 bytes 235085647458 (218.9 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags = 73 <UP, LOOPBACK, RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 :: 1 prefixlen 128 scopeid 0x10 <host>
loop txqueuelen 1000 (Loopback Local)
RX packets 7147882 bytes 4889254583 (4.5 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7147882 bytes 4889254583 (4.5 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


vmbr0: flags = 4163 <UP, BROADCAST, RUNNING, MULTICAST> mtu 1500
inet XXX.XXX.XXX.XXX netmask 255.255.255.224 broadcast XXX.XXX.XXX.XXX
inet6 xxxx :: xxxx: xxxx: xxxx: xxxx prefixlen 64 scopeid 0x20 <link>
ether YY: YY: YY: YY: YY: YY txqueuelen 1000 (Ethernet)
RX packets 200876893 bytes 70822022214 (65.9 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 184910695 bytes 89001793484 (82.8 GiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
 
iface enp5s0 inet dhcp - set static IP first

Hello Hollis, where would you put this line?It would be like this?


auto lo
iface lo inet loopback

allow-hotplug enp5s0

iface enp5s0 inet dhcp -set static iP first

[...]

Could you tell me why on one machine it works and another one that was working stopped working?
 
Last edited:
Server is at home LAN or in any hosting?

Any firewall on Proxmox server?
 
It is in a university lab with fixed (real) ip. Yes, we have a firewall.

The Node pve came back!

thanks
 

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!