[SOLVED] Web Gui shows no network configrations

charlie0312

Member
Oct 15, 2019
8
0
6
34
Hi, I'm running PVE 6.0-4 on a single PC. After some failed configurations (just tried wlan and a usb2ethernet ) on /etc/network/interfaces, I revert back it to original state (using a backup file) as below.

Code:
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.50.2
netmask 255.255.255.0
gateway 192.168.50.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0

Only found on the web gui that anything on the "Network" section of the node show nothing (absolutely no items shown). Thus I was prevented from creating any container or vm since the Bridge dropdown menu of Network part has nothing to select. The containers and VM previously created on vmbr0 still works and could connect to Internet.

I tried restart the network and event reboot the node, with no veil.

Thanks in advance if anyone can give any guidance.
 
Hi,

is the network config on the correct path?
/etc/network/interfaces
 
Hi,

is the network config on the correct path?
/etc/network/interfaces
I think so. See below
Bash:
root@www:/etc/network# ls
if-down.d  if-post-down.d  if-pre-up.d  if-up.d  interfaces  interfaces.bak  interfaces.d
root@www:/etc/network# cat interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.50.2
netmask 255.255.255.0
gateway 192.168.50.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0
root@www:/etc/network#
 
I think it is a formatting problem.
try the following.
address, netmask, and the gateway have to be tab indented.
also an empty line should at the end.
 
I reformatted it. But with no luck.


Code:
root@www:~# cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.50.2
        netmask 255.255.255.0
        gateway 192.168.50.1
        bridge-ports eno1
        bridge-stp off
        bridge-fd 0

root@www:~#
 
Here is some more information about network interfaces.
Bash:
root@www:~# ip -4 a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
13: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    inet 192.168.50.2/24 brd 192.168.50.255 scope global vmbr0
       valid_lft forever preferred_lft forever
Bash:
root@www:~# ip -d link ls eno1
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UP mode DEFAULT group default qlen 1000
    link/ether 94:c6:91:a8:da:4c brd ff:ff:ff:ff:ff:ff promiscuity 1 minmtu 68 maxmtu 9000
    bridge_slave state forwarding priority 32 cost 4 hairpin off guard off root_block off fastleave off learning on flood on port_id 0x8001 port_no 0x1 designated_port 32769 designated_cost 0 designated_bridge 8000.94:c6:91:a8:da:4c designated_root 8000.94:c6:91:a8:da:4c hold_timer    0.00 message_age_timer    0.00 forward_delay_timer    0.00 topology_change_ack 0 config_pending 0 proxy_arp off proxy_arp_wifi off mcast_router 1 mcast_fast_leave off mcast_flood on neigh_suppress off group_fwd_mask 0 group_fwd_mask_str 0x0 vlan_tunnel off isolated off addrgenmode eui64 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535
root@www:~# ip -d link ls vmbr0
13: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether 94:c6:91:a8:da:4c brd ff:ff:ff:ff:ff:ff promiscuity 0 minmtu 68 maxmtu 65535
    bridge forward_delay 0 hello_time 200 max_age 2000 ageing_time 30000 stp_state 0 priority 32768 vlan_filtering 0 vlan_protocol 802.1Q bridge_id 8000.94:c6:91:a8:da:4c designated_root 8000.94:c6:91:a8:da:4c root_port 0 root_path_cost 0 topology_change 0 topology_change_detected 0 hello_timer    0.00 tcn_timer    0.00 topology_change_timer    0.00 gc_timer  114.66 vlan_default_pvid 1 vlan_stats_enabled 0 group_fwd_mask 0 group_address 01:80:c2:00:00:00 mcast_snooping 1 mcast_router 1 mcast_query_use_ifaddr 0 mcast_querier 0 mcast_hash_elasticity 16 mcast_hash_max 4096 mcast_last_member_count 2 mcast_startup_query_count 2 mcast_last_member_interval 100 mcast_membership_interval 26000 mcast_querier_interval 25500 mcast_query_interval 12500 mcast_query_response_interval 1000 mcast_startup_query_interval 3124 mcast_stats_enabled 0 mcast_igmp_version 2 mcast_mld_version 1 nf_call_iptables 0 nf_call_ip6tables 0 nf_call_arptables 0 addrgenmode eui64 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535
 
what about the permissions on the /etc/network/interfaces file? maybe it was changed when you restored the old file. permissions should be 644 (-rw-r--r--)
 
you're welcome. please mark the thread as [SOLVED] so others know what to expect
 

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!