13: Configuring an Ethernet interface
_______________________________________________________________________________________________________
_____________________________________________________________________________________________________
© Virtual Access 2017
GW7304 Series User Manual
Issue: 1.9
Page 106 of 336
13.2.5.3
DHCP server: advanced settings
Figure 63: The DHCP server advanced settings section
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 28: Information table for DHCP advanced settings page
For more advanced configuration on the DHCP server, read ‘DHCP server and DNS
configuration section.
13.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