Hello,
silly question here: is there any way to see if OSMC is connected in dhcp or static with CLI interface?
TIA
Den
Hello,
silly question here: is there any way to see if OSMC is connected in dhcp or static with CLI interface?
TIA
Den
Yes, using connmanctl:
osmc@rpi2:~$ connmanctl
connmanctl> services ethernet_b827ebd04564_cable
/net/connman/service/ethernet_b827ebd04564_cable
Type = ethernet
Security = [ ]
State = online
Favorite = True
Immutable = False
AutoConnect = True
Name = Wired
Ethernet = [ Method=auto, Interface=eth0, Address=B8:27:EB:D0:45:64, MTU=1500 ]
IPv4 = [ Method=dhcp, Address=192.168.0.3, Netmask=255.255.255.0, Gateway=192.168.0.1 ]
IPv4.Configuration = [ Method=dhcp ]
IPv6 = [ ]
IPv6.Configuration = [ Method=off ]
Nameservers = [ 192.168.0.1 ]
Nameservers.Configuration = [ ]
Timeservers = [ ]
Timeservers.Configuration = [ ]
Domains = [ ]
Domains.Configuration = [ ]
Proxy = [ Method=direct ]
Proxy.Configuration = [ ]
Provider = [ ]
Thank you DBMandrake!