Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
openwrt:internet_enabling [2013/11/12 20:56] matthias created basic mockup for Network configuration |
openwrt:internet_enabling [2014/11/30 14:53] (current) matthias [Additional steps on already installed PirateBox] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Enable your box for getting internet access ====== | ====== Enable your box for getting internet access ====== | ||
===== Devices with one ethernet-port ===== | ===== Devices with one ethernet-port ===== | ||
- | FIXME | + | The following lines can be used to exchange the behaviour of the LAN port to a WAN port |
+ | |||
+ | cp /etc/config/network /etc/config/network.backup | ||
+ | uci set network.wan=interface | ||
+ | uci set network.wan.ifname=$( uci get network.lan.ifname ) | ||
+ | uci set network.wan.macaddr=$( uci get network.lan.macaddr ) ## this line is needed at VoCore | ||
+ | uci set network.wan.proto=dhcp | ||
+ | uci del network.lan.ifname | ||
+ | uci commit | ||
==== Additional steps on already installed PirateBox ==== | ==== Additional steps on already installed PirateBox ==== | ||
- | FIXME | + | Everytime you want to have internet access, you need to switch the dns resolution off. If you don't do this step, the box will resolve always its own IP address. |
/etc/init.d/piratebox nodns | /etc/init.d/piratebox nodns | ||
+ | You may add this line above the ''exit'' command in ''/etc/rc.local''. | ||
===== Devices with a separate WAN Port ===== | ===== Devices with a separate WAN Port ===== | ||
FIXME | FIXME |