web gui 'network' has error 'active' value if debian ipv6 is disabled

languanghao

New Member
Feb 28, 2015
16
0
1
For some reason, I disable the debian ipv6, after that in the 'network' tab of web gui the 'vmbr0' property 'Active' become 'No'.

I find the error code in 'INotify.pm':

Code:
if ($proc_net_if_inet6) {
    while (defined ($line = <$proc_net_if_inet6>)) {
        if ($line =~ m/^[a-f0-9]{32}\s+[a-f0-9]{2}\s+[a-f0-9]{2}\s+[a-f0-9]{2}\s+[a-f0-9]{2}\s+(\S+)$/) {
        $ifaces->{$1}->{active} = 1 if defined($ifaces->{$1});
        }
    }

If ipv6 was disabled, then commond 'ifconfig' output won't contain the line like 'inet6 addr: fe80::d250:99ff:fe0d:d042/64 Scope:Link'.

The logic for check iface is active may change to a different way.

I use follow command to disable ipv6
Code:
echo "1" > /proc/sys/net/ipv6/conf/all/disable_ipv6
 

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!