Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| docs:guide-user:network:openwrt_as_clientdevice [2020/11/29 05:48] – [Web interface] optimize formatting vgaetera | docs:guide-user:network:openwrt_as_clientdevice [2021/10/17 17:38] – [Command-line instructions] vgaetera | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== OpenWrt as client device ====== | ====== OpenWrt as client device ====== | ||
| + | See also: | ||
| + | [[docs: | ||
| + | [[docs: | ||
| + | [[docs: | ||
| + | |||
| OpenWrt will provide additional functions for the network (for example, you just want to use the Wi-Fi network it provides, or the device is a NAS serving files over the network, or a mini-server offering whatever other service). | OpenWrt will provide additional functions for the network (for example, you just want to use the Wi-Fi network it provides, or the device is a NAS serving files over the network, or a mini-server offering whatever other service). | ||
| Line 6: | Line 11: | ||
| * The device' | * The device' | ||
| - | ===== Web interface ===== | + | ===== Web interface |
| - Click on **Network** -> **Interfaces**, | - Click on **Network** -> **Interfaces**, | ||
| - In **General Setup** tab, in **Protocol**, | - In **General Setup** tab, in **Protocol**, | ||
| Line 17: | Line 22: | ||
| - When you are done, click on **Save & Apply** button at the end of the page. This will change the network configuration of the device, and will now be accessible at the IP you set above (or at an unknown dynamic IP if you used " | - When you are done, click on **Save & Apply** button at the end of the page. This will change the network configuration of the device, and will now be accessible at the IP you set above (or at an unknown dynamic IP if you used " | ||
| - | ===== Command-line | + | ===== Command-line |
| - | To make the same we just did with Luci webinterface above, see above for more detailed explanation of the steps: | + | Configure |
| - | - Type '' | + | |
| - | - Type '' | + | <code bash> |
| - | - Type '' | + | uci set network.lan.proto=" |
| - | - Type '' | + | uci set network.lan.ipaddr=" |
| - | - The ssh session will not work anymore because the device has changed address, this is normal. | + | uci set network.lan.netmask=" |
| - | - Now you can connect the network | + | uci set network.lan.gateway=" |
| - | - Connect again to the device at its new address as defined above. | + | uci set network.lan.dns=" |
| + | uci commit network | ||
| + | /etc/init.d/network restart | ||
| + | </ | ||
| - | See also: [[docs: | + | Note that changing the IP address causes the SSH session |
| + | Now you can connect the network cable from the device's LAN port to your existing network, the other router' | ||