Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/KevinCruz-cell/Redes-de-comunicaciones-/llms.txt

Use this file to discover all available pages before exploring further.

The interfaces panel gives you full lifecycle control over the network interfaces configured on your OpenWrt router. Every action — creating, editing, restarting, stopping, or deleting an interface — is executed by connecting to the router over SSH and running UCI commands, followed by a network reload. Navigate to /router2/interfaces to open the panel.

Interface list

The panel displays all currently configured interfaces with the following information:
ColumnExampleDescription
NameLAN, WANUCI interface name (uppercase for display)
Devicebr-lan, eth0.2Underlying network device
ProtocolStatic address, DHCP clientIP assignment method
MAC addressEC:75:0C:48:B9:01Hardware address of the device
IPv4 address192.168.10.1/24Current IPv4 address or 0.0.0.0 if not assigned
The interface list is stored in the PHP session for the duration of your login. Use the Refresh action to clear the cached list and reload from scratch.

Creating a new interface

1

Open the create form

Click Add interface on the /router2/interfaces page.
2

Enter a name

Provide a lowercase interface name (e.g. vpn, guest). The name is used as the UCI section identifier: network.<name>.
3

Choose a protocol

Select dhcp for a DHCP client or static for a manually configured address.
4

Select a device

Choose the underlying network device from the list (e.g. eth0, eth0.2, br-lan). The available devices are read from /sys/class/net on the router.
5

Configure static addressing (optional)

If you chose the static protocol, fill in the IP address, netmask, gateway, and DNS server fields.
6

Enable bridge (optional)

Check Bridge interfaces to set type=bridge on the UCI section. This is required for bridged LAN configurations.
7

Submit

Click Create. The controller runs the following UCI commands over SSH and then reloads the network service:
uci set network.<name>=interface
uci set network.<name>.proto='<proto>'
uci set network.<name>.ifname='<device>'
# For static protocol:
uci set network.<name>.ipaddr='<ip>'
uci set network.<name>.netmask='<mask>'
uci set network.<name>.gateway='<gw>'
uci set network.<name>.dns='<dns>'
uci commit network
(sleep 2 && /etc/init.d/network reload) > /dev/null 2>&1 &

Editing an existing interface

1

Open the edit form

Click the Edit button next to the interface you want to modify. The controller fetches the current values from the router via uci get network.<iface>.<field> for each field (proto, ifname, ipaddr, netmask, gateway, dns).
2

Modify fields

Update the protocol or static address fields as needed. Switching from static to dhcp removes the IP, netmask, gateway, and DNS fields from UCI automatically.
3

Submit

Click Update. The controller runs uci set for each changed field, commits, and reloads the network:
uci set network.<iface>.proto='<proto>'
uci set network.<iface>.ipaddr='<ip>'   # static only
uci commit network
(sleep 2 && /etc/init.d/network reload) > /dev/null 2>&1 &

Restarting an interface

The Restart action affects only the selected interface, not the entire router.
ifdown <iface>
sleep 1
ifup <iface>
Use this to re-acquire a DHCP lease or apply changes to a specific interface without disrupting others.

Stopping an interface

The Stop action brings an interface down without bringing it back up.
ifdown <iface>
The interface remains configured in UCI but is no longer active. Use Restart to bring it back up.
Stopping the LAN interface will disconnect you from the router’s web interface. Make sure you have an alternative way to reach the router before stopping LAN.

Deleting an interface

The Delete action removes the UCI section for the interface and reloads the network:
uci delete network.<name>
uci commit network
(sleep 2 && /etc/init.d/network reload) > /dev/null 2>&1 &
The interface is also removed from the session cache immediately so the panel reflects the change without a page refresh.

Refreshing the interface list

Navigate to /router2/refresh or click the Refresh button to clear the session-cached interface list. The page redirects back to /router2/interfaces and rebuilds the list from the current session state.

Rebooting the router

To reboot the entire router, use the Reboot button, which posts to /router2-reboot. The controller connects via SSH and sends the reinicio command, which triggers a full system restart.
A full reboot takes approximately one minute. All SSH connections and active sessions will be dropped. Wait for the router to come back online before attempting to reconnect.
The restart and stop actions are scoped to individual interfaces and do not reboot the router. Use the dedicated Reboot button only when you need to restart the entire device.

Build docs developers (and LLMs) love