10844 IPv4/IPv6 starting scripts - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Networking

Networking Network related discussions (including general TCP/IP stuff, routing, etc).

Reply
 
Thread Tools Display Modes
  #1  
Old April 10th, 2010, 07:36
krik krik is offline
Junior Member
 
Join Date: Apr 2010
Location: Belgium
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default IPv4/IPv6 starting scripts

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"
Then I've started the network with the following scripts:
  • /etc/rc.d/netif start
  • /etc/rc.d/routing start
  • /etc/rc.d/network_ipv6 start

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
Reply With Quote
  #2  
Old April 13th, 2010, 00:04
phoenix's Avatar
phoenix phoenix is offline
Moderator
 
Join Date: Nov 2008
Location: Kamloops, BC, Canada
Posts: 3,141
Thanks: 43
Thanked 702 Times in 579 Posts
Default

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/*
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #3  
Old April 13th, 2010, 17:00
krik krik is offline
Junior Member
 
Join Date: Apr 2010
Location: Belgium
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #4  
Old April 13th, 2010, 17:15
SirDice's Avatar
SirDice SirDice is online now
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,702
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

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.
Reply With Quote
The Following User Says Thank You to SirDice For This Useful Post:
krik (April 13th, 2010)
  #5  
Old April 13th, 2010, 17:17
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,825
Thanks: 30
Thanked 1,884 Times in 1,330 Posts
Default

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. <---
Reply With Quote
  #6  
Old April 13th, 2010, 17:20
SirDice's Avatar
SirDice SirDice is online now
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,702
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

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.
Reply With Quote
  #7  
Old April 13th, 2010, 22:34
krik krik is offline
Junior Member
 
Join Date: Apr 2010
Location: Belgium
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #8  
Old April 13th, 2010, 22:50
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Administrator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 9,825
Thanks: 30
Thanked 1,884 Times in 1,330 Posts
Default

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. <---
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT +1. The time now is 16:25.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0