You are not logged in.
Two onboard NICs from the same vendor which use r8169 module on a remote machine. At first I only used Nr.1, which didn't start at boot (on time) when IPv6 was enabled, so no connection was made. I disabled IPv6 and used a VPN Hoster to circumvent the need for IPv6 port forwarding, which helped with the bootprocess. The machine has a native IPv6 internet connection! DSLite 4to6 doesn't allow IPv4 port forwarding.
Now, I need the second NIC to be reachable via IPv6. When v6 is enabled on the second NIC, it also prevents connection on boot for Nr.1. In the beginning, after stoping profile Nr. 2, avahi assigned the just disabled static IPv4 by itself, without an enabled netctl profile. When Nr.2 was brought up it was reachable by the avahi assigned addresses, very weird!! I disabled avahi management for Nr. 2.
While testing a little, I discovered that, when I start a second static profile for the second NIC, I can only specify the new IPv4, but not the gateway or DNS, because RTNETLINK tells me that these files already exist, I guess by the first NIC.
Aug 31 13:01:53 network[1076]: RTNETLINK answers: File exists
Two NICs one entry? When a kind person is willing to start Nr.1 plus OpenVPN while Nr.2 has v6 enabled, Nr.1 doesn't make a connection. After disabling it, the connection can be made. If I start the second netctl profile while connected on Nr. 1 makes the IPv6 from Nr. 2 visible on Nr. 1 through the VPN tunnel.
Both connections shall be able to connect on boot, one reachable through the remote forwarded ports from the VPN, the other through forwarded ports from my router.
I'm really lost here. Has someone experience or any hint at all?
System is up to date!
Netctl profile 1
Description='A basic static ethernet connection'
Interface=enp2s0
Connection=ethernet
IP=static
SkipNoCarrier=yes
Address=('X.X.X.Y/24')
#Routes=('192.168.0.0/24 via 192.168.1.2')
Gateway='192.168.X.1'
DNS=('X.X.X.X') #VPN-DNS
#DNS=('192.168.X.1')
DNS=('X.X.X.X')#VPN-DNS2
## For IPv6 autoconfiguration
#IP6=stateless
Netctl profile 2
Description='A basic static ethernet connection'
Interface=enp3s0
Connection=ethernet
IP=static
SkipNoCarrier=yes
Address=('192.168.X.Z/24')
#Routes=('192.168.0.0/24 via 192.168.1.2')
#Gateway='192.168.X.1'
#DNS=('X.X.X.X')
#DNS=('192.168.X.1')
#DNS:('X.X.X.X')
IP6=stateless
hwinfo --network :
33: None 00.0: 10701 Ethernet
[Created at net.124]
Unique ID: X
Parent ID: Y
SysFS ID: /class/net/enp3s0
SysFS Device Link: /devices/pci0000:00/0000:00:1c.5/0000:03:00.0
Hardware Class: network interface
Model: "Ethernet network interface"
Driver: "r8169"
Driver Modules: "r8169"
Device File: enp3s0
HW Address: Z
Link detected: no
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #16 (Ethernet controller)
34: None 00.0: 10701 Ethernet
[Created at net.124]
Unique ID: X
Parent ID: Y
SysFS ID: /class/net/enp2s0
SysFS Device Link: /devices/pci0000:00/0000:00:1c.4/0000:02:00.0
Hardware Class: network interface
Model: "Ethernet network interface"
Driver: "r8169"
Driver Modules: "r8169"
Device File: enp2s0
HW Address: Z
Link detected: yes
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #15 (Ethernet controller)
/etc/sysctl.d/ipv6.conf
net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.enp2s0.disable_ipv6 = 1
net.ipv6.conf.enp3s0.disable_ipv6 = 0
net.ipv6.conf.wlp4s0.disable_ipv6 = 1
Anything else you need to investigate?
Last edited by mieLouk (2013-09-09 15:08:53)
Offline
The v6 from the second profile is only visible through the tunnel when profile 1 has IP6=stateless written in it and net.ipv6.conf.enp2s0.disable_ipv6 = 1 is set. But even then, why is NIC1 (enp2s0) relaying the v6 from NIC2 (enp3s0)?
Last edited by mieLouk (2013-09-01 14:10:14)
Offline
:-|
Last edited by mieLouk (2013-09-09 15:15:11)
Offline
Solution to the problem -> two onboard NICs from the same vendor Realtek, one with IPv4 the other with IPv6
There was a long lasting problem with connecting to the network during boot, it couldn't establish a basic internet connection while IPv6 was enabled . I had a very strange behaviour of Samba and Tor when both NICs were activated.
It's not advisable to only allow one NIC to use v6 in /etc/sysctl.d/ipv6.conf , rather disable it in the netctl profile with "IP6=no". I also disabled IPv4 in the second profile.
IPv4 profile
Description='A basic static ethernet connection'
Interface=enp2s0
Connection=ethernet
IP=static
SkipNoCarrier=yes
Address=('192.168.X.x/24')
Gateway='192.168.X.x'
DNS=(''192.168.X.x')
## For IPv6 autoconfiguration
IP6=noIPv6 profile
Description='A basic static ethernet connection'
Interface=enp3s0
Connection=ethernet
IP=no
SkipNoCarrier=yes
## For IPv6 autoconfiguration
IP6=statelessOffline