Forums

Skip to content

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

Static ipv4 and dynamic ipv6 address config: how to do it?

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
nephros
Advocate
Advocate
User avatar
Posts: 2139
Joined: Fri Feb 07, 2003 2:46 am
Location: Graz, Austria (Europe - no kangaroos.)
Contact:
Contact nephros
Website

Static ipv4 and dynamic ipv6 address config: how to do it?

  • Quote

Post by nephros » Mon Apr 30, 2012 8:59 am

Hi,

I am running a IP dual-stack LAN, set up like this:

Code: Select all


   {cable uplink} --- [ OpenWRT router] ---- LAN --- [ box1 ]
                                   |
                                   ----------WLAN--- [laptop1]
Now, the machines do the following:
  • router: runs DHCP server, 6to4 tunnel, radvd
  • laptop1: connects via WLAN, get addresses via DHCP and radvd everything working OK
  • box1: connected via LAN, has a fixed ipv4 address and should also get a radvd-assigned ipv6 address but it doesn't.
I have been trying to figure out to get box1 to keep its static IPv4 connection, and get IPv6 address and routing information from radvd like dynamic clients.

Everything works on box1 if I set a static ip6 address (prefix + local prefix +MAC address) and route in conf.d/net but I don't want to do that because later I want to use privacy extensions which vary the MAC part.
Last edited by nephros on Mon Apr 30, 2012 9:01 am, edited 1 time in total.
Please put [SOLVED] in your topic if you are a moron.
Top
truc
Advocate
Advocate
User avatar
Posts: 3199
Joined: Mon Jul 25, 2005 9:24 am

  • Quote

Post by truc » Mon Apr 30, 2012 12:51 pm

Are you hidding some informations about box1 by any chance? I ask, because, enabling IPv6 forwarding on box1 will usually disable IPv6 auto conf. That may be you problem?


Other than that, why not just keep everything dynamic on the client side and just configure the DHCPd on the openWRT router to always assign(and reserve) the same IP address for box1?
The End of the Internet!
Top
nephros
Advocate
Advocate
User avatar
Posts: 2139
Joined: Fri Feb 07, 2003 2:46 am
Location: Graz, Austria (Europe - no kangaroos.)
Contact:
Contact nephros
Website

  • Quote

Post by nephros » Mon Apr 30, 2012 1:20 pm

truc wrote:Are you hidding some informations about box1 by any chance? I ask, because, enabling IPv6 forwarding on box1 will usually disable IPv6 auto conf. That may be you problem?
Good catch, yes, box1 has a rather more complex setup (connected to two other networks, and openvpn server), and I have ipv6 forwarding enabled.

I will experiment with ipv6 forwarding disabled, didn't know that. Is there a way to have both?
Please put [SOLVED] in your topic if you are a moron.
Top
truc
Advocate
Advocate
User avatar
Posts: 3199
Joined: Mon Jul 25, 2005 9:24 am

  • Quote

Post by truc » Mon Apr 30, 2012 4:51 pm

nephros wrote:Good catch, yes, box1 has a rather more complex setup (connected to two other networks, and openvpn server), and I have ipv6 forwarding enabled.

I will experiment with ipv6 forwarding disabled, didn't know that. Is there a way to have both?
IIRC there is. I don't remember which of the sysctl key you have to play with but I do remember you have to set a boolean key to 2 (that's right, not 0, not 1, but 2 :lol: )

I have not tested it though, so keep us informed ;)
The End of the Internet!
Top
nephros
Advocate
Advocate
User avatar
Posts: 2139
Joined: Fri Feb 07, 2003 2:46 am
Location: Graz, Austria (Europe - no kangaroos.)
Contact:
Contact nephros
Website

  • Quote

Post by nephros » Mon Apr 30, 2012 7:48 pm

truc wrote:
nephros wrote:Good catch, yes, box1 has a rather more complex setup (connected to two other networks, and openvpn server), and I have ipv6 forwarding enabled.

I will experiment with ipv6 forwarding disabled, didn't know that. Is there a way to have both?
IIRC there is. I don't remember which of the sysctl key you have to play with but I do remember you have to set a boolean key to 2 (that's right, not 0, not 1, but 2 :lol: )

I have not tested it though, so keep us informed ;)
Right, it's the 'accept_ra' sysctl.

I learned from here, and it's documented at http://www.kernel.org/doc/Documentation ... sysctl.txt (or locally file:///usr/src/linux/Documentation/networking/ip-sysctl.txt)

This will require some more work for me to get it right for all the interfaces in my use case (esp routing is a mess on "box1") but thanks a lot for your help and pointing me in the right direction.

[PS: What is the right amount of slashes for the file: URI scheme? Three, four, what? Is it at all portable?]
[PPS: I have been absent from these forums for years now, seriously considering spending more time here again after this very positive experience]
Please put [SOLVED] in your topic if you are a moron.
Top
truc
Advocate
Advocate
User avatar
Posts: 3199
Joined: Mon Jul 25, 2005 9:24 am

  • Quote

Post by truc » Tue May 01, 2012 2:40 pm

nephros wrote:This will require some more work for me to get it right for all the interfaces in my use case (esp routing is a mess on "box1") but thanks a lot for your help and pointing me in the right direction.
no problem, I was probably a bit lucky there :wink:
[PS: What is the right amount of slashes for the file: URI scheme? Three, four, what? Is it at all portable?]
three, unless you want to specify the hostname which unsurprisingly goes between the second and the third in which case it looks like there is only two slashes :lol:
The End of the Internet!
Top
Post Reply

6 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