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_routerdevice [2021/08/15 19:09] – unify headers vgaetera | docs:guide-user:network:openwrt_as_routerdevice [2021/10/17 17:36] – [Command-line instructions] vgaetera | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== OpenWrt as router device ====== | ====== OpenWrt as router device ====== | ||
| See also: | See also: | ||
| - | [[docs: | + | [[docs: |
| - | [[docs: | + | [[docs: |
| If your device has some ports labeled LAN and at least a port labeled WAN and you want it to operate as a router (a connection between two different networks). | If your device has some ports labeled LAN and at least a port labeled WAN and you want it to operate as a router (a connection between two different networks). | ||
| Line 24: | Line 24: | ||
| ===== Command-line instructions ===== | ===== Command-line instructions ===== | ||
| - | - Type '' | + | Configure the LAN interface statically with a new IP address |
| - | - If needed, type '' | + | |
| - | - You might want to [[docs: | + | <code bash> |
| - | - Type '' | + | uci set network.lan.ipaddr="192.168.2.1" |
| - | - Then connect again to your device at its new IP address and continue. | + | uci commit |
| + | /etc/init.d/network | ||
| + | </ | ||
| + | |||
| + | Note that changing | ||
| + | Follow | ||