10844
![]() |
|
|
|
|
|||||||
| Networking Network related discussions (including general TCP/IP stuff, routing, etc). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
I'm trying to setup a dual stack IPv4/IPv6 server and I can't find which rc.d script to run... I've started the server without any IP then I've put the following into rc.conf Code:
#IPv4 config ifconfig_re0="inet 192.168.1.10 netmask 255.255.255.0" static_routes="default" route_default="default 192.168.1.1" #IPv6 config ipv6_enable="YES" ipv6_ifconfig_re0="2001:db8:abcd::e/56" ipv6_static_routes="default" ipv6_route_default="default 2001:db8:abcd::1"
The IPv4 is working perfectly, the IPv6 defined address is there but the link-local address is missing. If I reboot the server everything is there... What script do I need to start/restart to get the link-local address without rebooting? Thanks for your help , Christophe |
|
#2
|
||||
|
||||
|
A quick grep of /etc/rc.d/ for ipv6 will show you the answer (
# grep ipv6 /etc/rc.d/*). There are separate IPv4 and IPv6 scripts for networking, routing, firewalling, etc.Also, check the output of rcorder to see which order to call things: # rcorder /etc/rc.d/* /usr/local/etc/rc.d/*
|
|
#3
|
|||
|
|||
|
Thanks for the advise, I've at least learn a new command... I didn't knew rcorder. But unfortunately it doesn't work... I've restarted all the scripts containing ipv6 in the order shown by rcorder but the link-local ipv6 address is still missing.
Christophe |
|
#4
|
||||
|
||||
|
I think it has to do with the net.inet6.ip6.auto_linklocal sysctl. Which gets set in /etc/rc.d/auto_linklocal.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
| The Following User Says Thank You to SirDice For This Useful Post: | ||
krik (April 13th, 2010) | ||
|
#5
|
||||
|
||||
|
Just about to post that after a
# grep -rl "::1" /etc
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki Before you post: How to ask questions the smart way If you must know .. So, what does an Adminstrator/Moderator do? ---> Do not PM me with FreeBSD questions. I do not work here. <--- |
|
#6
|
||||
|
||||
|
I remembered some fuss about ipv6 and specifically link-local addresses with the beta/rc of 8.0
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#7
|
|||
|
|||
|
Got it!
As stated by SirDice, the script # /etc/rc.d/auto_linklocal set net.inet6.ip6.auto_linklocal to 0 and prevents # /etc/rc.d/netif to add the link-local address... When I set net.inet6.ip6.auto_linklocal to 1 and then restart # /etc/rc.d/netif the link-local address is automatically set. Now the issue is that restarting netif brings down all the network interfaces what I tried to avoid by not rebooting the server. ![]() Thanks for your help! Christophe |
|
#8
|
||||
|
||||
|
It should bring them right back up, but you'll need to restart /etc/rc.d/routing as well after that.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki Before you post: How to ask questions the smart way If you must know .. So, what does an Adminstrator/Moderator do? ---> Do not PM me with FreeBSD questions. I do not work here. <--- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Useful scripts | Dr_Phoenix | Userland Programming & Scripting | 216 | May 7th, 2013 12:40 |
| invalid ipv4 adress | oniegin | Installing & Upgrading | 8 | October 24th, 2011 09:42 |
| FreeBSD 8.0 IPv6/IPv4 | znanie | Web & Network Services | 1 | December 11th, 2010 12:54 |
| [Solved] ipv4 / ipv6 on the same interface | clinty | Networking | 5 | August 3rd, 2009 07:52 |
| IPv6 DAD disables IPv6 Traffic, how to turn IPv6 back on? | benzh512 | Networking | 6 | March 10th, 2009 16:57 |