Revision 09f638b6
Added by Seth Mos over 13 years ago
etc/inc/interfaces.inc | ||
---|---|---|
3017 | 3017 |
$rd6lanbinarr = str_split($rd6lanbin, 16); |
3018 | 3018 |
foreach($rd6lanbinarr as $bin) |
3019 | 3019 |
$rd6lanarr[] = dechex(bindec($bin)); |
3020 |
$rd6lanpr = Net_IPv6::compress(implode(":", $rd6lanarr)); |
|
3020 | 3021 |
$rd6lanarr[7] = 1; |
3021 | 3022 |
$rd6lan = Net_IPv6::compress(implode(":", $rd6lanarr)); |
3022 | 3023 |
// echo "6RD LAN prefix $rd6lan length 64\n"; |
... | ... | |
3025 | 3026 |
/* setup the stf interface */ |
3026 | 3027 |
mwexec("/sbin/ifconfig stf0 destroy"); |
3027 | 3028 |
mwexec("/sbin/ifconfig stf0 create"); |
3028 |
mwexec("/sbin/ifconfig stf0 inet6 {$rd6lanarr}/{$rd6prefixlen}");
|
|
3029 |
mwexec("/sbin/ifconfig stf0 inet6 {$rd6lanpr}/{$rd6prefixlen}");
|
|
3029 | 3030 |
|
3030 | 3031 |
/* Example 6RD setup steps |
3031 | 3032 |
# ifconfig fxp0 inet6 2001:db8:c000:0202::1/64 |
Also available in: Unified diff
Make sure to pass the string, not the array