Embedded switch CLI for wireless LOM Package configuration
See this topic to learn how to set configuration of wireless LOM package.
Use UCI (Unified Configuration Interface) to configure wireless LOM package core services.
User name: oper
Password: (use the same password as XCC)
Configuration files
Configure profile | Description |
---|---|
/etc/config/dhcp | Dnsmasq and odhcpd settings: DNS, DHCP, DHCPv6 |
/etc/config/firewall | NAT, packet filter, port forwarding, etc. |
/etc/config/network | Switch, interface and route configuration: Basics, IPv4, IPv6, Routes, Rules, WAN, Aliases, Switches, VLAN, IPv4/IPv6 transitioning, Tunneling |
/etc/config/wireless | Wireless settings and WLAN network definition |
Elements
config:
main configuration groups like network, wireless, firewall. Each configuration group has it's own file in /etc/config
sections:
config is divided into sections. A section can either be named or unnamed.
types:
a section can have a type. E.g in the network config we typically have 4 sections of the type “interface”. The sections are “lan”, “wan”, “loopback” and “wan6”
options:
each section have some options where you set your configuration values
values:
value of option
Example
> sudo uci show network
network.mgmt_lan=interface
network.mgmt_lan.type='bridge'
network.mgmt_lan.ifname='eth0 eth1'
network.mgmt_lan.proto='static'
network.mgmt_lan.ipaddr='192.168.70.254'
network.mgmt_lan.netmask='255.255.255.0'
network.mgmt_lan.metric='50'
network.mgmt_lan_6=interface
network.mgmt_lan_6.ifname='br-mgmt_lan'
network.mgmt_lan_6.proto='static'
network.mgmt_lan_6.ip6assign='64'
network.mgmt_lan_6.metric='50'
network.mgmt_lan_6.ip6hint='70'
network.mgmt_lan_6.ip6class='local'
network.x86_lan=interface
network.x86_lan.type='bridge'
network.x86_lan.ifname='usb0'
network.x86_lan.proto='static'
network.x86_lan.ipaddr='192.168.73.254'
network.x86_lan.netmask='255.255.255.0'
network.x86_lan_6=interface
network.x86_lan_6.ifname='br-x86_lan'
network.x86_lan_6.proto='static'
network.x86_lan_6.ip6assign='64'
network.x86_lan_6.ip6hint='73'
network.x86_lan_6.ip6class='local'
>sudo uci set network.mgmt_lan.ipaddr=192.168.70.245
>sudo uci changes
network.mgmt_lan.ipaddr='192.168.70.245'
>sudo uci commit network
>/etc/init.d/network restart
After about 30 seconds, you should be able to connect embedded network module with SSH connect to 192.168.70.245.