1 / 12

3G 核心網路期末報告 Mobile IPv6 for Linux 實作

3G 核心網路期末報告 Mobile IPv6 for Linux 實作. Speaker: 林世敏 2004/1/14. Outline. 情境示意圖 網路環境概述 軟硬體需求 實作紀錄 測試畫面. 情境示意圖. 網路環境概述. 三個 Subnet Home Network :無線網路, 3ffe:3600:7:1000::/64 區段, Home Agent 為 HA 。 Foreign Network :無線網路, 3ffe:3600:7:2000::/64 區段,為 AR 。

abram
Download Presentation

3G 核心網路期末報告 Mobile IPv6 for Linux 實作

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 3G核心網路期末報告Mobile IPv6 for Linux實作 Speaker: 林世敏 2004/1/14

  2. Outline • 情境示意圖 • 網路環境概述 • 軟硬體需求 • 實作紀錄 • 測試畫面

  3. 情境示意圖

  4. 網路環境概述 • 三個Subnet • Home Network:無線網路,3ffe:3600:7:1000::/64區段,Home Agent為HA。 • Foreign Network:無線網路,3ffe:3600:7:2000::/64區段,為AR。 • Wired Network:有線網路,3ffe:3600:7:3000::/64區段,連結HA與AR。 • 三個節點 • HA:固定節點,有線端的Address為3ffe:3600:7:3000::1/64,無線端的Address為3ffe:3600:7:1000::1/64。 • AR:固定節點,有線端的Address為3ffe:3600:7:3000::2/64,無線端的Address為3ffe:3600:7:2000::1/64。 • MN:移動節點,Home Address為3ffe:3600:7:1000::6/64,將從Home Network移動到Foreign Network。

  5. 軟硬體需求表

  6. 實作紀錄-相關套件安裝與設定 • MIPL Mobile IPv6 for Linux • Kernel SpaceMIPL必須先作Linux kernel patch的動作,因為需要更改ipv6 kernel stack的部分,所以也需要重新編譯kernel。在HA與MN的選項也有所不同,一個Linux kernel只能擇一編譯成HA(Home Agent)或是MN(Mobile Node),不可同時編譯成HA及MN。

  7. 實作紀錄-相關套件安裝與設定(cont.) • User SpaceMIPL有提供一個user space的工具,執行命令為mipdiag,也必須先編譯它。 • # cd /usr/src/ mipv6-0.9.5-v2.4.20 • # ./configure • # make ; make install • 增加MIPv6 Device • 修改在HA及MN中,MIPL的設定檔/etc/network-mip6.conf

  8. 實作紀錄-相關套件安裝與設定(cont.) • RADVD(Router ADVertisement Daemon) • RADVD是IPv6的router advertisement daemon,它能聆聽router solicitations與發送router advertisements(Neighbor Discovery for IPv6, RFC 2461)。在Debian GNU/Linux上,網路安裝radvd的方式為 # apt-get install radvd • 修改在HA及AR中,RADVD的設定檔 /etc/radvd.conf

  9. 啟動順序與相關指令 • HA:Home Network的Home Agent並具有router功能 • # ifconfig eth0 inet6 add 3ffe:3600:7:3000::1/64 • # iwconfig eth1 mode ad-hoc essid home • # ifconfig eth1 inet6 add 3ffe:3600:7:1000::1/64 • # echo 1 > /proc/sys/net/ipv6/conf/all/forwarding • # echo 0 > /proc/sys/net/ipv6/conf/all/autoconf • # echo 0 > /proc/sys/net/ipv6/conf/all/accept_ra • # echo 0 > /proc/sys/net/ipv6/conf/all/accept_redirects • # ip route add 3ffe:3600:7:2000::/64 via 3ffe:3600:7:3000::2 • # /etc/init.d/mobile-ip6 start

  10. 啟動順序與相關指令(cont.) • ESSID:當MN移動到Foreign Network中,想由Foreign Network上網時,需要設定此無線網域的ESSID • # iwconfig eth1 essid foreign • TCPDUMP:當MN的ESSID與Foreign Network相同時,可以收到HA2的router advertisements可由tcpdump指令觀察無線網卡收發訊息的情形 • # tcpdump –i eth1 –vv ip6 or proto ipv6

  11. 測試畫面 由tcpdump指令觀察無線網卡收發訊息的情形 由mipdiag指令來驗證Binding的情形

  12. 測試數據

More Related