Changeset 20206


Ignore:
Timestamp:
2010-03-14T17:40:56+01:00 (8 years ago)
Author:
florian
Message:

[package] make 6tunnel support a delegated block (#4724)

Location:
packages/ipv6/6scripts
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • packages/ipv6/6scripts/Makefile

    r16965 r20206  
    1010PKG_NAME:=6scripts 
    1111PKG_VERSION:=0.1 
    12 PKG_RELEASE:=4 
     12PKG_RELEASE:=5 
    1313 
    1414include $(INCLUDE_DIR)/package.mk 
  • packages/ipv6/6scripts/files/6tunnel.conf

    r16683 r20206  
    1515        # this should provide a ttl for your tunnel interface 
    1616        option ttl              '64' 
     17        # provide your tunnel provider's delegated block (/64 or /48) 
     18        option delegatedip6     '' 
  • packages/ipv6/6scripts/files/6tunnel.init

    r16683 r20206  
    1818        config_get ttl "$section" ttl 
    1919        config_get mtu "$section" mtu 
     20        config_get delegatedip6 "$section" delegatedip6 
    2021 
    2122        ip tunnel add $tnlifname mode sit remote $remoteip4 local $localip4 ttl 255 
     
    2425        ip tunnel change $tnlifname ttl $ttl 
    2526        ip addr add $localip6 dev $tnlifname 
     27        ip -6 route ::/0 dev $tnlifname 
    2628        ip -6 route add 2000::/3 via $remoteip6 
     29        ip -6 route add $delegatedip6 dev $LAN 
    2730} 
    2831 
     
    4245        config_get ttl "$section" ttl 
    4346        config_get mtu "$section" mtu 
     47        config_get delegatedip6 "$section" delegatedip6 
    4448 
     49        ip -6 ro del $delegatedip6 dev $LAN 
    4550        ip -6 ro del 2000::/3 via $remoteip6 
    4651        ip -6 ro del ::/0 dev $tnlifname 
Note: See TracChangeset for help on using the changeset viewer.