華中科技大學IPV6設定,linux

來源:互聯網
上載者:User
華中科技大學IPV6設定,linux

Linux ISATAP配置 

 

說明:

(1)本地IPv4地址以10.0.0.1為例,isatap.hust.edu.cn對應IPv4地址為 218.199.111.9;

(2)查看核心版本命令 uname -a

(3)查看支援隧道類型命令 ip tunnel help 中 mode裡是否有sit或isatap

 

 

方法1:使用sit類型隧道

 

(1) 如果沒有裝載ipv6模組則裝載IPv6模組

sudo modprobe ipv6

(2)建立隧道,紅色的就是學校提供的 ISATAP網關

sudo ip tunnel add sit1 mode sit ttl 128 remote 218.199.111.9 local 10.0.01

(3)啟動裝置

/sbin/ifconfig sit1 up

sudo ifconfig sit1 up

(4)配置本機 IPV6地址,紅色的就填是你的ipv6地址

sudo ifconfig sit1 add 2001:250:4000:8fff:0:5efe:10.0.0.1

(5)配置 IPV6路由,紅色的就是你的預設閘道

sudo route -A inet6 add 2000::/3 gw fe80::5efe:218.199.111.9 sit1

 

 

方法 2:linux-2.6.25版本之後,核心增加isatap類型隧道,不使用sit類型

 

sudo ip tunnel add name is0 mode isatap local 10.0.0.1

sudo ip link set is0 up

sudo ip -6 addr add 2001:250:4000:8fff:0:5efe:10.0.0.1/64 dev is0

sudo route -A inet6 add 2000::/3 gw fe80::5efe:218.199.111.9 is0

 

 

方法3:使用獨立軟體

 

對於上述兩種方法都不能用的,可以安裝isatapd,支援地址自動設定,不需要手工設定地址和網關。以Ubuntu系統為例

 

sudo apt-get install isatapd 

sudo isatapd -r isatap.hust.edu.cn 

 

 

Linux 雙棧配置

 

# vi /etc/sysconfig/network

增加一行

NETWORKING_IPV6=yes

 

# vi /etc/sysconfig/network-scripts/ifcfg-eth0

增加兩行

IPV6ADDR=你的IPv6地址(可自動擷取)

IPV6_DEFAULTGW=你的IPv6網關(可自動擷取)

 

# service network restart

 

然後ping6 6rank.edu.cn看看是否通暢,good luck!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.