DaemonForums  

Go Back   DaemonForums > Miscellaneous > General software and network

General software and network General OS-independent software and network questions, X11, MTA, routing, etc.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 27th September 2008
chris chris is offline
Port Guard
 
Join Date: May 2008
Location: United Kingdom
Posts: 35
Default IPV6 capability no go

Recently I began renting a FreeBSD 7.0-Release server from ovh.co.uk who happen to support IPV6 and give each dedi they sell a dedicated bunch of IPV6 addresses.
I'm totally new to IPV6 so had to look up how to set-up network to make use of these but I'm having problems pinging anywhere from the server and visa-versa. I'm only setting this up out of interest really but please let me know if I'm doing anything wrong.

My address allocation is 2001:41D0:1:B9b1::/64

Here's a snippet of my /etc/rc.conf
Code:
# IPV6
ipv6_enable="YES"
ipv6_network_interface="re0"
ipv6_defaultrouter="fe80::21e:79ff:fe1e:d400"
ipv6_ifconfig_re0="2001:41D0:1:B9b1::1 prefixlen 64"
ipv6_ifconfig_re0_alias0="2001:41D0:1:B9b1::10 prefixlen 64"
ipv6_ifconfig_re0_alias1="2001:41D0:1:B9b1::11 prefixlen 64"
ipv6_ifconfig_re0_alias2="2001:41D0:1:B9b1::12 prefixlen 64"
And relevant sysctl values I'm using;
Code:
root# sysctl net.inet6
net.inet6.ip6.forwarding: 0
net.inet6.ip6.redirect: 1
net.inet6.ip6.hlim: 64
net.inet6.ip6.maxfragpackets: 6400
net.inet6.ip6.accept_rtadv: 1
net.inet6.ip6.keepfaith: 0
net.inet6.ip6.log_interval: 5
net.inet6.ip6.hdrnestlimit: 15
net.inet6.ip6.dad_count: 1
net.inet6.ip6.auto_flowlabel: 1
net.inet6.ip6.defmcasthlim: 1
net.inet6.ip6.gifhlim: 30
net.inet6.ip6.kame_version: FreeBSD
net.inet6.ip6.use_deprecated: 1
net.inet6.ip6.rr_prune: 5
net.inet6.ip6.v6only: 0
net.inet6.ip6.rtexpire: 3600
net.inet6.ip6.rtminexpire: 10
net.inet6.ip6.rtmaxcache: 128
net.inet6.ip6.use_tempaddr: 0
net.inet6.ip6.temppltime: 86400
net.inet6.ip6.tempvltime: 604800
net.inet6.ip6.auto_linklocal: 1
net.inet6.ip6.prefer_tempaddr: 0
net.inet6.ip6.use_defaultzone: 0
net.inet6.ip6.maxfrags: 6400
net.inet6.ip6.mcast_pmtu: 0
net.inet6.icmp6.rediraccept: 1
net.inet6.icmp6.redirtimeout: 600
net.inet6.icmp6.nd6_prune: 1
net.inet6.icmp6.nd6_delay: 5
net.inet6.icmp6.nd6_umaxtries: 3
net.inet6.icmp6.nd6_mmaxtries: 3
net.inet6.icmp6.nd6_useloopback: 1
net.inet6.icmp6.nodeinfo: 3
net.inet6.icmp6.errppslimit: 100
net.inet6.icmp6.nd6_maxnudhint: 0
net.inet6.icmp6.nd6_debug: 0
net.inet6.icmp6.nd6_maxqueuelen: 1
ifconfig snippet:
Code:
re0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
        ether 00:1c:c0:51:18:3f
        inet6 2001:41d0:1:b9b1::1 prefixlen 64
        inet6 2001:41d0:1:b9b1::10 prefixlen 64
        inet6 2001:41d0:1:b9b1::11 prefixlen 64
        inet6 2001:41d0:1:b9b1::12 prefixlen 64
        inet6 2001:41d0:1:b9b1::1337 prefixlen 64
        inet6 fe80::21c:c0ff:fe51:183f%re0 prefixlen 64 scopeid 0x1

I used this link to help me get set up. It can be easily translated, I used google translate;
http://guides.ovh.com/Ipv4Ipv6

Thanks in advance
Reply With Quote
  #2   (View Single Post)  
Old 28th September 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 4,125
Default

I only played with IPv6 on my local OBSD network a few years ago.

Can you ping localhost?
Code:
$ ping6 -c4 ::1
Can you ping your local ipv6 address
Code:
ping6 -c4 fe80::21c:c0ff:fe51:183f%re0
Then ping your interface 2001:41d0:1:b9b1::1 and the alias IP addresses.

Check your routing tables with netstat -rn. Is the default router fe80::21e:79ff:fe1e:d400 listed in the IPv6 routing table? Can you ping the default router?

BTW You added ipv6_defaultrouter="fe80::21e:79ff:fe1e:d400" to your /etc/rc.conf, but this line is not mentioned in their guide
Quote:
ipv6_enable="YES"
ipv6_network_interface="rl0"
ipv6_ifconfig_rl0="2001:41D0:1:756::1 prefixlen 64"
ipv6_ifconfig_rl0_alias0="2001:41D0:1:756::12 prefixlen 64
Under Route: Gateway IPv6 they say that the default gateway ipv6 address always ends on 5 times 'FF'.
Quote:
L' IPv6 du serveur: 2001:41D0:1:46e::/64 devient 2001:41D0:1:4 + 5 fois FF.
Gateway ipv6: 2001:41D0:1:4FF:FF:FF:FF:FF
Or in English (I don't need google translator )
Code:
IPv6 of server: 2001:41D0:1:46e::/64 becomes 2001:41D0:1:4 + 5 times FF.
Gateway ipv6: 2001:41D0:1:4FF:FF:FF:FF:FF
This is a public address, while the fe:80* addresses are local.

IPv6 is mainly autoconfiguring and the rtsol command is the IPv6 equivalent of the IPv4 DHCP dhclient, so I wonder why the tell you to do a rtsol and take a note of the default router IPv6 addressand never use it.

If I were you I would contact their technical support and point this out
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 28th September 2008
chris chris is offline
Port Guard
 
Join Date: May 2008
Location: United Kingdom
Posts: 35
Default

Perfect J65nko. You were right about the default router value, I changed it from
Code:
ipv6_defaultrouter="fe80::21e:79ff:fe1e:d400"
to
Code:
ipv6_defaultrouter="2001:41d0:1:b9FF:FF:FF:FF:FF"
And after restarting ipv6 networking (/etc/rc.d/network_ipv6 restart) I could suddenly ping6 any remote IPV6 IP.

Thanks,

Chris
Reply With Quote
  #4   (View Single Post)  
Old 3rd October 2008
darkmark darkmark is offline
-current abuser
 
Join Date: Oct 2008
Posts: 5
Default

rtsol will automatically set the default router and the prefix for the link. This makes renumbering in ipv6 really really easy. In reality all you need is:

ipv6_enable="YES"

in /etc/rc.conf. That is, unless this box is going to be a router.

Your system should automatically pick up the solicitation and configure the interface. You should only have to set the prefix if the router isn't advertising it.
__________________
darkmark
(!wired)?(coffee++):(wired);
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
FreeBSD and IPv6 bichumo General software and network 4 21st November 2008 07:23 AM
Book/website recommendations for IPv6 programming mdh Programming 3 7th November 2008 07:53 PM
Asking about IPv6 address berlowin Off-Topic 2 9th July 2008 02:39 AM
About Firewall for IPv6 berlowin FreeBSD Security 20 9th July 2008 01:24 AM


All times are GMT. The time now is 06:25 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick