![]() |
|
General software and network General OS-independent software and network questions, X11, MTA, routing, etc. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
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" 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 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 |
|
|||
![]()
I only played with IPv6 on my local OBSD network a few years ago.
![]() Can you ping localhost? Code:
$ ping6 -c4 ::1 Code:
ping6 -c4 fe80::21c:c0ff:fe51:183f%re0 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:
Quote:
![]() 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 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 |
|
|||
![]()
Perfect J65nko. You were right about the default router value, I changed it from
Code:
ipv6_defaultrouter="fe80::21e:79ff:fe1e:d400" Code:
ipv6_defaultrouter="2001:41d0:1:b9FF:FF:FF:FF:FF" Thanks, Chris |
|
|||
![]()
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); |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
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 |