Management interface setup EcoNAT Documentation / Quick system start / Management interface setup
To manage the EcoNAT through the network, you must configure the parameters of the management network interface.
Suppose that we want to assign an IP 192.168.100.12/24 to the management interface, default gateway 192.168.100.1, DNS server addresses: 10.0.8.1, 10.0.8.3 and allow the access only to those who are in the network 192.168.100.12, as well as a host 10.0.22.33.
EcoNAT:1:# configure
EcoNAT:2:# system mng_if
EcoNAT:3:system.mng_if# ip_address 192.168.100.12/255.255.255.0
EcoNAT:3:system.mng_if# gateway 192.168.100.1
EcoNAT:4:system.mng_if# name_servers ( 10.0.8.1 10.0.8.3 )
EcoNAT:5:system.mng_if# allowed_ip ( 192.168.10.12/24 10.0.22.33 )
To allow the access to the management interface from any computer, you can assign allowed_ip a value 0.0.0.0/0.
If you execute safe apply after the changes of the network interface settings, the changes specifically of the network interface settings will be applied for a few minutes (in other cases, the changes are applied immediately after the apply command). This is due to the fact that the erroneous configuration of the network interface cause to inability to configure EcoNAT through the network.
During these two minutes, it makes sense to test the connection by opening another terminal, and if the connection is successful, then you can use the commit command to consolidate the changes.
To view information about the control settings interface, you can use the show ipif command.
EcoNAT:6:# show ipif
MAC 00:0d:48:28:1a:6e
IP: 192.168.100.12
GW: 192.168.100.1
Mask: 255.255.255.0
EcoNAT:7:# ping 1.2.1.5
PING 1.2.1.5 (1.2.1.5): 56 data bytes
64 bytes from 1.2.1.5: seq=0 ttl=64 time=0.632 ms
64 bytes from 1.2.1.5: seq=1 ttl=64 time=0.340 ms
64 bytes from 1.2.1.5: seq=2 ttl=64 time=0.332 ms
64 bytes from 1.2.1.5: seq=3 ttl=64 time=0.331 ms
--- 1.2.1.5 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.331/0.408/0.632 ms
EcoNAT:8:# traceroute 4.1.1.1
traceroute to 4.1.1.1 (4.1.1.1), 30 hops max, 46 byte packets
1 10.210.1.1 (10.210.1.1) 0.735 ms 0.382 ms 0.398 ms
2 1.1.5.2 (1.1.5.2) 1.027 ms 1.079 ms 0.725 ms
3 4.1.1.2 (4.1.1.2) 0.445 ms 0.535 ms 0.483 ms
To terminate ping or traceroute command, press [Ctrl+C] or [Backspace].
The address of the management interface can be specified statically (see example above) or dynamically. To enable autodetection of a dynamically issued address (DHCP), you need to set the value of the ip_address parameter in the format 0.0.0.0/*, where * is any subnet.