Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

IPv6 autoconfiguration on bonding iface not working [SOLVED]

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
selig
Guru
Guru
User avatar
Posts: 425
Joined: Sun Jul 31, 2005 4:58 pm
Location: Prague, Czech Republic

IPv6 autoconfiguration on bonding iface not working [SOLVED]

  • Quote

Post by selig » Tue Mar 12, 2013 4:23 pm

I have configured a new server with dual NICs so I thought bonding would be good to have. Unfortunately, I am having trouble getting it to work with IPv6. When I configure only one eth interface, IPv6 autoconfigures and works fine. This does not work for bonding though.

My /etc/conf.d/net:

Code: Select all

modules="iproute2"

dns_domain_lo="l"

config_eth0="null"
config_eth1="null"

slaves_bond0="eth0 eth1"
rc_net_bond0_need="net.eth0 net.eth1"
config_bond0="192.168.0.87/24"
routes_bond0="default via 192.168.0.3"
dns_servers_bond0="192.168.0.3"
dns_search_bond0="l"
dns_domain_bond0="l"
route -6

Code: Select all

Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
::1/128                        ::                         Un   0   1   162 lo
fe80::/64                      ::                         U    256 0     0 bond0
ff00::/8                       ::                         U    256 0     0 bond0
::/0                           ::                         !n   -1  1    80 lo
route -6 after a minute or two:

Code: Select all

Kernel IPv6 routing table
Destination                    Next Hop                   Flag Met Ref Use If
::1/128                        ::                         Un   0   1   162 lo
2a01:8c00:ff71::/64            ::                         UAe  256 0     0 bond0
fe80::/64                      ::                         U    256 0     0 bond0
ff00::/8                       ::                         U    256 0     0 bond0
::/0                           fe80::7271:bcff:feb1:d9cf  UGDAe 1024 0     0 bond0
::/0                           ::                         !n   -1  1    80 lo
So it seems the routing table changes after a short while but IPv6 still does not work. fe80::7271:bcff:feb1:d9cf is the correct link address of my router box.
The interface never gets a global address (it is a mode 0 bond):

Code: Select all

bond0: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST>  mtu 1500
        inet 192.168.0.87  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::225:90ff:fea4:a5f5  prefixlen 64  scopeid 0x20<link>
        ether 00:25:90:a4:a5:f5  txqueuelen 0  (Ethernet)
        RX packets 135886  bytes 16243634 (15.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 237471  bytes 167610481 (159.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
All traffic seems to be routed to loopback as a result...
Could anyone help? Thanks!
Last edited by selig on Tue Mar 12, 2013 5:25 pm, edited 1 time in total.
Top
truc
Advocate
Advocate
User avatar
Posts: 3199
Joined: Mon Jul 25, 2005 9:24 am

  • Quote

Post by truc » Tue Mar 12, 2013 4:48 pm

Would it be related to this by any chance?
The End of the Internet!
Top
selig
Guru
Guru
User avatar
Posts: 425
Joined: Sun Jul 31, 2005 4:58 pm
Location: Prague, Czech Republic

  • Quote

Post by selig » Tue Mar 12, 2013 5:18 pm

That is probably not the problem, I have discovered that if I connect only one of the cables, then start the bond, it works as expected and it immediately receives an IPv6 address and routing information. However, if I connect both cables and start the bond, it will not work.

EDIT: solved it! I have changed the bonding mode to 1, so that only one interface is active at a time and now it's working great.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic