mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
docs: added notes on sfp module and how to configure it
This commit is contained in:
@@ -9,6 +9,17 @@ Command line utility for OpenWrt's UCI system.
|
||||
uci show
|
||||
uci show 'dhcp'
|
||||
|
||||
# Show changes to the settings.
|
||||
uci changes
|
||||
uci changes 'dhcp'
|
||||
|
||||
# Commit changes.
|
||||
uci commit
|
||||
uci commit 'dhcp'
|
||||
|
||||
# Reload the configuration
|
||||
reload_config
|
||||
|
||||
# Show what interface is the WAN.
|
||||
uci show network.wan.device | cut -d "'" -f 2
|
||||
|
||||
@@ -17,14 +28,15 @@ uci add dhcp host
|
||||
uci set dhcp.@host[-1].name='hostname'
|
||||
uci set dhcp.@host[-1].mac='11:22:33:44:55:66'
|
||||
uci set dhcp.@host[-1].ip='192.168.1.2'
|
||||
|
||||
# Show changes to the settings.
|
||||
uci changes
|
||||
uci changes 'dhcp'
|
||||
|
||||
# Commit changes.
|
||||
uci commit
|
||||
uci commit 'dhcp'
|
||||
reload_config
|
||||
|
||||
# Use a different port as WAN switching it with one in LAN.
|
||||
uci set network.wan.device='lan4'
|
||||
uci del_list network.br_lan.ports='lan4'
|
||||
uci add_list network.br_lan.ports='eth2'
|
||||
uci commit 'network'
|
||||
reload_config
|
||||
```
|
||||
|
||||
## Further readings
|
||||
@@ -33,8 +45,13 @@ uci commit 'dhcp'
|
||||
|
||||
## Sources
|
||||
|
||||
- [The UCI system]
|
||||
- [Turris Omnia]
|
||||
|
||||
<!-- project's references -->
|
||||
[the uci system]: https://openwrt.org/docs/guide-user/base-system/uci
|
||||
|
||||
<!-- internal references -->
|
||||
[Turris Omnia]: turris.md
|
||||
|
||||
<!-- external references -->
|
||||
|
||||
Reference in New Issue
Block a user