10: Configuring an Ethernet interface
_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW2020 Series User Manual
Issue: 2.1
Page 90 of 423
list vlan_qos_map_ingress '2:1'
config alias 'ethalias1'
option proto 'static'
option interface 'newinterface'
option ipaddr '10.10.10.1'
option netmask '255.255.255.0'
option gateway '10.10.10.10'
option bcast '10.10.10.255'
option dns '8.8.8.8'
root@VA_router:~# uci export firewall
package firewall
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option network 'lan newinterface'
root@VA_router:~# uci export dhcp
package dhcp
……
config dhcp
option start '100'
option leasetime '12h'
option limit '150'
option interface 'newinterface'
To change any of the above values use
uci set
command.
10.3.2
Loopback interfaces
Loopback interfaces are defined in exactly the same way as Ethernet interfaces. Read
the section above.
Note: There is no software limitation as to how many loopback interfaces can exist on
the router.
An example showing a partial uci export of a loopback interface configuration is shown
below.