顯示具有 IPv6 標籤的文章。 顯示所有文章
顯示具有 IPv6 標籤的文章。 顯示所有文章

2013年6月14日 星期五

Xen with IPv6

請先確認 Dom0 已經建立好 IPv6 連線


Dom0 :
已建立好與 Server 連接的端點 (sit0、sit1),另外有另外可以使用的網段,把他設定在 DomU 網路的共用接口


# ifconfig eth0 inet6 add 2001:470:f902::1/48

// radvd - Router Advertisement Daemon

# apt-get install radvd

# vi /etc/radvd.conf
interface eth0                #The interface used to send ADV                                                               
{
    AdvSendAdvert on;        #Enable Advertisements
    #AdvManagedFlag on;      #Enable Managed bit
    #AdvOtherConfigFlag on;  #Enable Other Configure bit
    MinRtrAdvInterval 3;     #Set min. interval to send adv.
    MaxRtrAdvInterval 10;    #Set max. interval to send adv.
    prefix 2001:470:f902::/48    #Prefix
    { 
        AdvOnLink on;        #Adv. Using Link Layer
        AdvAutonomous on;    #Autonomous Flag
        #AdvRouterAddr on;
    };
};
# /etc/init.d/radvd restart

# echo 1 > /proc/sys/net/ipv6/conf/all/forwarding

DomU :
# ifconfig eth0 inet6 add 2001:470:f902::2/48
# route -A inet6 add ::/0 dev eth0
# route -A inet6  // show ipv6 route


$ ping6 2001:470:f902::2/48 // gateway

$ ping6 2600::

Connect to IPv6 Broker on Linux

1. Register a IPv6 Tunnel Broker



2. Create Tunnel (auto)
// gw6c
// gogoc - Client to connect to IPv6 tunnel brokers

# apt-get install gogoc

# vi /etc/gogoc/gogoc.conf

31 userid=YOUR_USERID
32 passwd=YOUR_PASSWORD

54 server=Tunnel_Server_IPv4_Address

73 auth_method=any

# /etc/init.d/gogoc restart

# ifconfig tun

3. Create Tunnel (manual)

Choose Server


Tunnel Details

Example Configurations

4. Test
$ ping6 ping6 2600::  // the shortest available IPv6 address


http://ipv6.google.com/




* Not starting gogoc – no server key
Ubuntu 10.10 Marverick 使用gogoc替代gw6c连接IPv6 | 谢邵虎博客




Reference :
[Linux] 使用 hinet IPv6 的服務 | richliu's blog
[筆記]IPv6超簡單實作--Tunnel Broker - 班傑明的奇幻之旅- 點部落
網際網路通訊協定升級推動方案