Filter results by

Ethernet

Configuring Ethernet

The Ethernet IP address of the ARTIK board is set automatically via DHCP if there is an active Ethernet cable plugged in at boot time.

IP address set by DHCP

This feature was not available on ARTIK 520 boards prior to rev. 0.5.

Temporary IP Address Change

If you want to change the IP address temporarily, use the ifconfig command. Changing the IP address temporarily allows access to different networks in the same location without changing the default settings of the board.

ifconfig eth0 <new IP>

IP address set manually

Permanent IP Address Change

To change the IP address statically so that it is effective after reboot, edit the config file for that interface using your favorite text editor. This fixes the IP address of your board without allowing the board to choose your IP dynamically.

  1. Open ifcfg file for editing using vi (for example).

    vi /etc/sysconfig/network-scripts/ifcfg-eth0

  2. Change BOOTPROTO from dhcp to static.
  3. Add IPADDR, NETMASK, BROADCAST, NETWORK and GATEWAY variables.
1
2
3
4
5
6
7
8
9
10
11
# Generated by IoT Hub Network Manager.
DEVICE="eth0"
TYPE="Ethernet"
ONBOOT="yes"
BOOTPROTO="static"
USERCTL="no"
IPADDR=192.168.200.123
NETMASK=255.255.255.0
BROADCAST=192.168.200.255
NETWORK=192.168.200.0
GATEWAY=192.168.200.1
  1. Save and close the file.
  2. Open the resolv.conf file for editing.
    vi /etc/resolv.conf
  3. Add your DNS servers.
1
2
nameserver <your_router_ip>
nameserver 8.8.8.8           # google DNS Server
  1. Save and close the file.
Last updated on: