IPv6 Problem on eth0 only IPv4 is working

einmalacht

New Member
Oct 24, 2015
9
1
3
Hello togehter,

i want to use IPv6 and IPv4 at the same time.
When i allocate the IPv6 adress on the running machine , then it worked for me.
But when i reboot the machnine only the ipv4 adress is used.

When i set the IPv6 Config at the top of the /etc/network/interfaces file, then i have only IPv6 on my eth0 interface.
When i set the IPv4 Config at the top of the /etc/network/interfaces file, then i have only IPv4 on my eth0 interface.

Has anybody an Idea ?
I dont find anything ins dmseg or syslog

Proxmox Kernel: Linux prox2 4.4.13-1-pve #1 SMP Tue Jun 28 10:16:33 CEST 2016 x86_64 GNU/Linux

My network configuration is the following:
______________________________________________________________
auto lo eth0 vmbr0
iface lo inet loopback
post-up ipset create blacklist hash:net
post-up ipset create whitelist hash:net
post-up iptables-restore < /etc/iptables.up.rules

iface eth0 inet static
address X.X.X.X
netmask 255.255.255.0
broadcast X.X.X.X
network X.X.X.X
gateway X.X.X.X

iface eth0 inet6 static
address 2001:67cX.X.X.X:2
netmask 64
gateway 200X.X.X.X1::1

iface eth1 inet manual

iface vmbr0 inet static
address X.X.X.X
netmask 255.255.255.0
bridge_ports eth1
bridge_stp off
bridge_fd 0
up ip route add X.X.X.X/16 via X.X.X.X
______________________________________________________________
 
Try using `ifdown eth0` and `ifup eth0` from the command line and see if you get any errors that way. Errors usually cause the network setup scripts to abort and leave things half-broken...
 
Hi thanks for your fast reply.
The ifdown eth0 command bring the following message:
ifdown: interface eth0 not configured

but ifconfig eth0 up / down is working.
 
And `ifup eth0`?
 
ifdown eth0
ifdown: interface eth0 not configured



ifup eth0
RTNETLINK answers: File exists
Failed to bring up eth0
 
Have you added the IPs manually? You have to use `ifup eth0` with nothing about eth0 configured because debian's network setup scripts are horrible.
 
I only configured the interfaces file like in my first post.
And the problem is that my eth0 dont become my IPv6 ip adress which i configured in the interfaces file.

Ifconfig eth0 shows only ( wiht the loopback IPv6 ):

eth0 Link encap:Ethernet Hardware Adresse 00:19:bb:c7:XX:XX
inet Adresse:X.X.X.X Bcast: X.X.X.X Maske:255.255.255.0
inet6-Adresse: fe80::219:X:X:4c2c/64 Gültigkeitsbereich:Verbindung
UP BROADCAST RUNNING MULTICAST MTU:1500 Metrik:1
RX packets:972256 errors:0 dropped:0 overruns:0 frame:0
TX packets:460294 errors:0 dropped:0 overruns:0 carrier:0
Kollisionen:0 Sendewarteschlangenlänge:1000
RX bytes:263406428 (251.2 MiB) TX bytes:205518430 (195.9 MiB)
 
My point is you cannot run `ifup` before flushing out the existing runtime configuration. You can clearly see it has an IPv4 configured here, so in order to get useful error messages you have to first reset eth0 and then run ifup. Like:
Code:
# ip a flush dev eth0
# ip route del default
# ifup eth0
 
After a few Months im working again on ipv6 but until now it is not working ...

When i flush dev eth0 and bring it up again the following error appears:


/etc/network/if-up.d/vzifup-post: 5: exec: /usr/sbin/vzifup-post: not found
run-parts: /etc/network/if-up.d/vzifup-post exited with return code 127
Failed to bring up eth0.
 

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!