10: Configuring an Ethernet interface
_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW2020 Series User Manual
Issue: 2.1
Page 88 of 423
Web Field/UCI/Package Option
Description
Web: Dynamic DHCP
UCI: dhcp.@dhcp[x].dynamicdhcp
Opt: dynamicdhcp
Defines whether to allocate DHCP leases.
1
Dynamically allocate leases.
0
Use /etc/ethers file for serving DHCP
leases.
Web: Force
UCI: dhcp.@dhcp[x].force
Opt: force
Forces DHCP serving on the specified interface even if another
DHCP server is detected on the same network segment.
0
Disabled.
1
Enabled.
Web: DHCP-Options
UCI: dhcp.@dhcp[x].dhcp_option
Opt: list dhcp_option
Defines additional options to be added for this dhcp pool. For
example with 'list dhcp_option 26,1470' or 'list dhcp_option mtu,
1470' you can assign a specific MTU per DHCP pool. Your client
must accept the MTU option for this to work. Options that contain
multiple vales should be separated by a space.
Example: list dhcp_option 6,192.168.2.1 192.168.2.2
No options defined.
Syntax
Option_number, option_value
Web: n/a
UCI: dhcp.@dhcp[x].networkid
Opt: networked
Assigns a network-id to all clients that obtain an IP address from
this pool.
Table 24: Information table for DHCP advanced settings page
For more advanced configuration on the DHCP server, read ‘DHCP server and DNS
configuration section.
10.3
Interface configuration using UCI
The configuration files are stored on /etc/config/network, /etc/config/firewall and
/etc/config/dhcp
root@VA_router:~# uci show network
…..
network.newinterface=interface
network.newinterface.proto=static
network.newinterface.ifname=eth0
network.newinterface.monitored=0
network.newinterface.ipaddr=2.2.2.2
network.newinterface.netmask=255.255.255.0
network.newinterface.gateway=2.2.2.10
network.newinterface.broadcast=2.2.2.255
network.newinterface.vlan_qos_map_ingress=1:2 2:1
network.ethalias1=alias
network.ethalias1.proto=static
network.ethalias1.interface=newinterface
network.ethalias1.ipaddr=10.10.10.1
network.ethalias1.netmask=255.255.255.0