IPv6: configurare si utilizare

De la Wiki.lug.ro
Versiunea din 12 noiembrie 2011 14:09, autor: Edwin (Discuție | contribuții)

Salt la: navigare, căutare

Pentru activarea ipv6 pe o instalare Debian implicita se folosesc urmatoarele comenzi din shell:

ip link set eth0 down
ip link set eth0 up
echo 1 > /proc/sys/net/ipv6/conf/eth0/accept_ra
dhclient eth0

Pentru a testa: lftp ftpv6.lug.ro sau se acceseaza din browser un site web care foloseste ipv6 (de ex. http://ipv6.google.com, http://www.ripe.net, http://www.whatismyipv6.net/).

Metoda a fost testata la Atelierul RLUG din ianuarie 2011.


RDS experiment

Incepand cu 10 octombrie 2011, RDS ofera ca serviciu experimental clientilor home-user cate o clasa /64 peste PPPoE. Pana la un tutorial complet, cativa pasi la care trebuie avut grija:

  1. In primul rand, activat serviciul de IPv6 din interfata web Digicare ( Servicii -> Internet -> IPv6 Test )
  2. Se configureaza pppd:
    • rp-pppoe cu plugin rp-pppoe.so: se adauga la parametrii pppd-ului rp_pppoe_service ipv6test +ipv6
    • rp-pppoe standard: se adauga linia "+ipv6" in /etc/ppp/options si "ipv6test" la "SERVICENAME" in /etc/ppp/pppoe.conf
    • Ubuntu: daca pppoe nu e deja setat, se ruleaza pppoeconf; se adauga liniile "rp_pppoe_service ipv6test" si "+ipv6" in /etc/ppp/peers/dsl-provider si se restarteaza pppd ruland poff si apoi pon dsl-provider
  3. se instaleaza un client de DHCPv6 care stie Prefix Delegation (wide-dhcpv6-client de la ISC stie).
    • daca e nevoie de retea interna, trebuie setat dhcp6c.conf sa faca disable la reteaua 'loopback' si lasata doar cea de lan, daca nu, trebuie doar cea loopback
    • la reteaua care ramane se seteaza sla_len = 0
  4. pentru advertisingul noii clase in reteaua interna, e necesara instalarea radvd (probabil configul implicit functioneaza)
  5. ddclient are nevoie de un patch: http://bit.ly/oc2JKq si de optiunea "usev6=if, if=ppp0"

Setari OpenWRT

Backfire 10.03.1-RC6

  • /etc/config/network
...
config 'interface' 'wan'
    option 'ifname' 'eth1'
    option 'proto' 'pppoe'
    option 'username' '.....'
    option 'password' '.....'
    option 'ipv6' '1'
    option 'service' 'ipv6test'
  • /etc/config/dhcp6c
config 'dhcp6c' 'basic'
    option 'enabled' '1'                  # 1 = enabled; 0 = disabled
    option 'interface' 'wan'             # This is the interface the DHCPv6 client will run on
    option 'dns' 'dnsmasq'                # Which DNS server you run (only dnsmasq currently supported)
    option 'debug' '0'                   # 1 = enable debugging; 0 = disable debugging
    # Send options (1 = send; 0 = do not send)
    option 'pd' '1'                       # Prefix Delegation
    option 'na' '0'                       # Non-Temporary Address
    option 'rapid_commit' '1'            # Rapid Commit
    # Request options (1 = request; 0 = do not request)
    option 'domain_name_servers' '1'
...
# Define one or more interfaces on which prefixes should be assigned
config 'interface' 'loopback'
    option 'enabled' '0'                  # 1 = enabled; 0 = disabled
    option 'sla_id' '0'                   # Site level aggregator identifier specified in decimal (subnet)
    option 'sla_len' '0'                  # Site level aggregator length (64 - size of prefix being delegated)
                                         # e.g. /60 from ISP -> 64 - 60 = 4
config 'interface' 'lan'
    option 'enabled' '1'
    option 'sla_id' '1'
    option 'sla_len' '0'
  • /etc/config/radvd
config interface
    option interface   'lan'
    option AdvSendAdvert       1
    option AdvManagedFlag      0
    option AdvOtherConfigFlag 0
    list client                
    option AdvLinkMTU       1452
    option ignore              0

config prefix
    option interface   'lan'
    # If not specified, a non-link-local prefix of the interface is used
    list prefix                
    option AdvOnLink   1
    option AdvAutonomous       1
    option AdvRouterAddr       0
    option ignore              0
  • Iar pe calculatoarele din LAN:
net.ipv6.conf.all.accept_ra = 1
net.ipv6.conf.default.accept_ra = 1
net.ipv6.conf.eth0.use_tempaddr=2
net.ipv6.conf.default.use_tempaddr=2