[SOLVED] Original interface document deleted

MrMamo

New Member
Sep 15, 2022
12
0
1
Hello everyone, I unfortunately overwrote the original interface file when I changed my router and now I can't get a GUI and SSH connection with my Proxmox server. I'm working on it with screen and keyboard.

ip a shows me:

1: lo:
2: eno1:

How can I recreate my interface document with this information or is there another, better way?

Unfortunately I have a lot of data on the server that I need.

Thanks in advance
 
Hi,

can you post the output of the command /etc/network/interfaces? Ideally between [code][/code] tags to preserve the formatting. Thanks!
 
Code:
source /etc/network/interfaces.d/*

auto lo
interface lo inet loopback

allow-hotplug eno1

auto eno1
iface eno1 inet static
    address    192.XXX.X.XXX/24
    netmask    255.255.255.0
    gateway    192.XXX.X.1
    
auto vmbr0
iface vmbr0 inet static
    bridge-ports eno1
    bridge-stp    off
    bridge-fd    0
    
#iface wlp1s0 inet manual

sorry, had to write it off
 
What does ifup -a report?
 
Can you change "interface" on the fourth line to "iface"?

Edit: and then re-run ifup -a
 
Last edited:
Can you change "interface" on the fourth line to "iface"?

Edit: and then re-run ifup -a
Code:
ifup: missing required variable: address
ifup: missing required configuration variables for interface vmbr0/inet
ifup: faild to bring up vmbr0

Thx for taking time!
 
Try the following config and re-run ifup -a

Code:
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

allow-hotplug eno1

auto eno1
iface eno1 inet static
    
auto vmbr0
iface vmbr0 inet static
    address    192.XXX.X.XXX/24
    gateway    192.XXX.X.1
    bridge-ports eno1
    bridge-stp    off
    bridge-fd    0
    
#iface wlp1s0 inet manual
 
I tried accessing the browser again and... it works
Ok great, but to bring up vmbr0 (probably necessary for your VMs) you should still try the above.
 
Try the following config and re-run ifup -a

Code:
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

allow-hotplug eno1

auto eno1
iface eno1 inet static
   
auto vmbr0
iface vmbr0 inet static
    address    192.XXX.X.XXX/24
    gateway    192.XXX.X.1
    bridge-ports eno1
    bridge-stp    off
    bridge-fd    0
   
#iface wlp1s0 inet manual
Code:
# ifup -a

Waiting for vmbr0 to get redy (MAXWAIT is 2 seconds).
RTNETLINK answers: File exists
ifup: faild to bring up vmbr0
 
Ah sorry run a ifdown -a and then a ifreload -a.
 
Ah sorry run a ifdown -a and then a ifreload -a.
Code:
# ifdown -a
ifdown: missing required variable: address
ifdown: missing required variable: address

# ifreload -a
-bash: ifreload: command not found
now the GUI is down again
 
Hm, please post the output of pveversion -v, try to reboot the node and also what does the file look like now?
 
Code:
proxmox-ve: 6.4-1 (running kernel: 5.4.174-2-pve)
pve-manager: 6.4-15 (running version: 6.4-15/af7986e6)
pve-kernel-helper: 6.4-15

is that enough, do you need something specific?
 
is that enough, do you need something specific?
Id like the full output of the command if possible, but its alright. Please note that you are running PVE 6.4 and that has since reached EOL, you should really update to 7.2 as soon as possible.

It also explains why you can't run ifreload as that was added later.
 
  • Like
Reactions: MrMamo
Yeah better than nothing, have you tried rebooting the system with the interfaces file I have provided?
 
ok great, what does ip -a say now?
 

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!