2013年1月14日 星期一

[DHCPv6][RADVD] How to build up RADVD in the Ubuntu


[DHCPv6][RADVD] How to build up RADVD in the Ubuntu



M & O represent meaning





















 

M = 1

M = 0

O = 1

All info (Prefix, DNS) take from DHCPv6

1. Use The Prefix of RA to create IPv6 address.



2. DNS take from DHCPv6

O = 0

All info (Prefix, DNS) take from DHCPv6

1. Use The Prefix of RA to create IPv6 address.



2. No DNS


 



4.2. Router Advertisement Message Format [9]
RA format
Routers send out Router Advertisement messages periodically, or in
response to Router Solicitations.

0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Cur Hop Limit |M|O| Reserved | Router Lifetime |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Reachable Time |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Retrans Timer |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Options ...
+-+-+-+-+-+-+-+-+-+-+-+-


1. Insta RADVD in Ubuntu 10.04

sudo apt-get install radvd

 



2. vim /etc/radvd.conf



interface eth1 (eth1 depend on what interface do you have)

{

    AdvSendAdvert on;



    AdvManagedFlag off;  (Represent M)

    AdvOtherConfigFlag off; (Represent O)



    prefix 2001:db8:1:0::/64

    {

        AdvOnLink on;

        AdvAutonomous off;

        AdvRouterAddr on;

    };

};



3. IPv6 Forwarding Enable



net.ipv6.conf.all.forwarding=1





4. Start RADVD server



sudo /etc/init.d/radvd start



5. Using wireshark to record packet [4]



See packet

ICMPv6 Router Advertisement



Flag

0... .... = Not managed (Represent M)



.0.. .... = No Other (Represent O)



Successful.



Reference :




  1. DHCPv6: Dibbler - a portable DHCPv6


  2. Linux(CentOS)-Chapter 6 – DHCP Server (Dibbler)


  3. IPv6作業系統與應用服務建置實習(Linux)


  4. How to build a IPv6 DHCP server in Linux 2/3 (Stateless, DHCPv6)


  5. ICMPv6 Router Advertisement and Router Solicitation Messages


  6. Setting up IPv6 radvd and dibbler to work together on Ubuntu 10.04


  7. IPv6 autoconfiguration with Dibbler (DHCPv6) and radvd


  8. IPv6 位址的取得 (Autoconfiguration and DHCPv6)


  9. Neighbor Discovery for IP version 6 (IPv6)


  10. 最簡易的 IPv6 環境設定— stateless DHCPv6 (使用 IOS DHCPv6 server)


  11. Setting Up an IPv6 home network with Ubuntu


  12. Stateful Auto-configuration using DHCPv6




Related Posts:

0 意見:

張貼留言