Code: Select all
root@PICOS:/home/admin# cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source /etc/network/interfaces.d/*.int
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet6 dhcp
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 0.0.0.0
root@PICOS:/home/admin# ifquery --running eth0
auto eth0
iface eth0 inet dhcp
auto eth0
iface eth0 inet6 dhcp6
root@PICOS:/home/admin# ifquery --check eth0
auto eth0
iface eth0 inet6 dhcp [pass]
auto eth0
iface eth0 inet static [fail]
address 192.168.1.1/24 [fail]
root@PICOS:/home/admin#