Hiya,

I've installed "trunk (r40576)" on a few boxes because I want to play 
around with homenet (hnetd / package hnet-full).

Before I even get there, I'm wondering about something.  The sample
"/etc/config/network" file has an option in there which confuses me:

config interface 'lan'
        option ifname 'eth1'
#        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

what is "option ip6assign" good for, and why does it default to "60"?
("option bridge" commented out by me, as hnetd supposedly does not
like bridges)

The effect it has is that the interface in question receives a /60 as
IPv6 network connected to it:

root@OpenWrt:/etc/config# ifconfig -a

eth1      Link encap:Ethernet  HWaddr 10:FE:ED:E6:5F:32  
          inet addr:192.168.10.1  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::12fe:edff:fee6:5f32/64 Scope:Link
          inet6 addr: fd83:af19:9ef::1/60 Scope:Global
          inet6 addr: 2001:608:0:c10::1/60 Scope:Global

... which is not exactly "what the IETF says should be on a LAN" - but 
some other parts of the system see the prefix as /64, like when sending
out a RA on that LAN

17:51:19.741002 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 192) 
fe80::12fe:edff:fee6:5f32 > ff02::1: [icmp6 sum ok] ICMP6, router 
advertisement, length 192
        hop limit 0, Flags [managed, other stateful], pref medium, router 
lifetime 1800s, reachable time 0s, retrans time 0s
          source link-address option (1), length 8 (1): 10:fe:ed:e6:5f:32
          mtu option (5), length 8 (1):  1500
          prefix info option (3), length 32 (4): 2001:608:0:c10::/64, Flags 
[onlink, auto], valid time 2817s, pref. time 1017s
          prefix info option (3), length 32 (4): fd83:af19:9ef::/64, Flags 
[onlink, auto], valid time 7200s, pref. time 1800s

... which is perfectly correct, as SLAAC only works for /64.


So, well, my question boils down to "why is that default there?", and 
"what effects does this option have, besides assigning /60 prefixes to
LAN interfaces?".

(As a side note: I really like the way IPv6 has gotten integrated into
newer releases.  Plug in that thing, received DHCPv6-PD from upstream
routers, offer v6 to connected LANs, off you go...)

gert

-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             g...@greenie.muc.de
fax: +49-89-35655025                        g...@net.informatik.tu-muenchen.de

Attachment: pgpj0iFsvpaNY.pgp
Description: PGP signature

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to