4: gpd0: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN group default
,→qlen 500
link/none
Inthis example,your sensoris pluggedintointerfaceeth0
Your host IPv4 address will be on the line that starts with inet: In this case it is 169.
254.0.1
Note: IfyourinterfaceIPv4addressisoftheform169.254.x.x,itisconnectedvialink-local
to the sensor. This means that Windows self-assigned an IP address in the absence of a
DHCPserver.
SettingtheHostInterfacetoDHCP
Usethis tosetyour interfaceto automaticallyobtain anIP addressvia DHCP.This isuseful for archi-
tecturesthat needtobemore plugand play.
Note: Itisrecommendedthatyouunplugthecablefromtheinterfacepriortomakingchangestothe
interface.
ViaCommandLine
Command
nmcli con modify [interface_name] ipv4.method auto ipv4.addresses ""
Example withinterfacename eth0
username@ubuntu:~$ nmcli con modify eth0 ipv4.method auto ipv4.addresses ""
Response blank,howeveryoucanverifythechangehasbeenmadewiththeip addr command.
Therewillbeno inet line for theinterface eth0 untilyou plug ina cableto adevicethat has
aDHCP serverto provideanIPv4 addressthe interface
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default
,→qlen 1000
link/ether 00:0c:29:2b:cc:48 brd ff:ff:ff:ff:ff:ff
inet6 fe80::be9f:d2a4:4451:3dfe/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen
,→1000
link/ether 00:50:56:28:7a:8a brd ff:ff:ff:ff:ff:ff
(continuesonnext page)
77