Arduino Yun cheat sheet: Difference between revisions

Line 1,023: Line 1,023:
opkg install relayd
opkg install relayd
opkg install luci-proto-relay
opkg install luci-proto-relay
/etc/init.d/relayd enable
</syntaxhighlight>
</syntaxhighlight>


Line 1,029: Line 1,030:
↓を忘れずに。(Yun は wan が eth1)
↓を忘れずに。(Yun は wan が eth1)
<syntaxhighlight lang="text" enclose="div">
<syntaxhighlight lang="text" enclose="div">
config 'interface' 'wan'
config interface 'wan'
        option ifname 'eth1'
        option proto 'static'
        option ipaddr '192.168.2.1'
        option netmask '255.255.255.0'
         option gateway '192.168.1.1'
         option gateway '192.168.1.1'
         option dns    '192.168.1.1'
         option broadcast '192.168.2.255'
       
config interface 'repeater_bridge'
        option proto 'relay'
        list network 'lan'
        list network 'wan'
</syntaxhighlight>
</syntaxhighlight>