OpenVZ Forum


Home » General » Support » Setup ipv6
Setup ipv6 [message #41127] Wed, 24 November 2010 21:08
Husar is currently offline  Husar
Messages: 1
Registered: November 2010
Location: fdgh
Junior Member
Hello.

Can anyone help me with setup ipv6?
I have fresh install CentOS 5.5 (2.6.18-194.17.1.el5.028stab070.7), under dedicated server.
vzctl version: 3.0.24.2

I read some docs, but i cant bring to live ipv6 under VM Sad

What i need to do on HN?
1. /etc/sysctl:
net.ipv4.ip_forward = 1
net.ipv6.conf.default.forwarding = 1
net.ipv6.conf.all.forwarding = 1
net.ipv4.conf.default.proxy_arp = 0
net.ipv4.conf.all.rp_filter = 1
kernel.sysrq = 1
net.ipv4.conf.default.send_redirects = 1
net.ipv4.conf.all.send_redirects = 0


2. Enable ipv6 on /etc/vz/vz.conf:
## Global parameters
VIRTUOZZO=yes
LOCKDIR=/vz/lock
DUMPDIR=/vz/dump
VE0CPUUNITS=1000

## Logging parameters
LOGGING=yes
LOGFILE=/var/log/vzctl.log
LOG_LEVEL=0
VERBOSE=0

## Disk quota parameters
DISK_QUOTA=yes
VZFASTBOOT=no

# Disable module loading. If set, vz initscript do not load any modules.
#MODULES_DISABLED=yes

# The name of the device whose IP address will be used as source IP for CT.
# By default automatically assigned.
#VE_ROUTE_SRC_DEV="eth0"

# Controls which interfaces to send ARP requests and modify APR tables on.
NEIGHBOUR_DEVS=all

## Template parameters
TEMPLATE=/vz/template

## Defaults for containers
VE_ROOT=/vz/root/$VEID
VE_PRIVATE=/vz/private/$VEID
CONFIGFILE="vps.basic"
DEF_OSTEMPLATE="fedora-core-4"

## Load vzwdog module
VZWDOG="no"

## IPv4 iptables kernel modules
IPTABLES="ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp ipt_owner ipt_REDIRECT"
## Enable IPv6
[b]IPV6="yes"[/b]

## IPv6 ip6tables kernel modules
IP6TABLES="ip6_tables ip6table_filter ip6table_mangle ip6t_REJECT"


3. Check kernel modules:
[home-node]# lsmod | grep ipv6
ipv6                  466492  132 vzrst,vzcpt,vzmon,ip6t_REJECT
xfrm_nalgo             43268  1 ipv6

[home-node]# lsmod | grep vznetdev
vznetdev               57616  26
vzmon                  84120  17 vzethdev,vznetdev,vzrst,vzcpt
vzdev                  36872  6 vzethdev,vznetdev,vzmon,vzdquota


So, its look ok. I have dedicated server on OVH with: "IPv6: 2001:41D0:x:yyyy::/64".
What should i do next, to get usable ipv6 adress working on VPS(not home-node)? Example: "2001:41D0:x:yyyy:zzzz:zzzz:zzzz:zzzz" ?

Thanks for any help Smile

[Updated on: Wed, 24 November 2010 21:11]

Report message to a moderator

Previous Topic: DELETE
Next Topic: VEs periodically drop offline, while host remains online
Goto Forum:
  


Current Time: Mon May 13 04:59:07 GMT 2024

Total time taken to generate the page: 0.01460 seconds