Testing Services

Ethernet Interface Guide - Link, DHCP & VLAN

Link up/down events, DHCP acquisition, VLAN tagging, speed negotiation, and cable fault simulation - what embedded Ethernet interface testing covers.

Ethernet interface testing guide embedded

WHAT IS ETHERNET INTERFACE TESTING?

Ethernet interface testing is the validation of a device's physical Ethernet port behaviour - verifying that the device correctly handles link up/down events, negotiates speed and duplex, acquires IP addresses via DHCP or static configuration, and correctly handles VLAN tagging and network fault conditions.

Most embedded devices with an Ethernet port implement a TCP/IP stack and assume the Ethernet link works correctly. But the Ethernet interface itself - the PHY, the MAC, and the driver's handling of link state changes - is rarely tested systematically. Field failures from incorrect link-down handling, DHCP timeouts, wrong speed negotiation, and VLAN misconfiguration are common and preventable.

TestBot's approach: The Ethernet Interface Agent uses an Embien-built Raspberry Pi jig connected directly to the device's Ethernet port. The RPi acts as an active Ethernet endpoint - it can bring the link up and down, force specific speed and duplex modes, run a DHCP server, set VLAN tags, and ping the device. All of this is controlled programmatically from TestBot test blocks.

ETHERNET INTERFACE TEST BLOCKS

What the Ethernet Interface Agent Can Control and Measure

Each test block maps to a physical Ethernet interface behaviour that must be validated.

BlockFunctionWhat It Tests
ETH Link UpBring Ethernet link up on RPi portDevice detects link-up, driver initialises, link LED activates
ETH Link DownDrop Ethernet linkDevice detects link-down within 1s, enters correct failover or retry state
ETH Set SpeedForce 10/100/1000 Mbit/sDevice auto-negotiates to forced speed; mismatched speed detected
ETH Set DuplexForce half/full duplexDevice negotiates to forced duplex; half-duplex collision handling validated
ETH Get Link StatusRead link state, speed, duplexConfirms device reports correct link state to application layer
ETH DHCP Server StartStart DHCP server on RPi portDevice sends DHCP Discover within 5s; IP lease assigned; device uses assigned IP
ETH DHCP Server StopStop DHCP; simulate unavailabilityDevice handles DHCP timeout; retries; enters fallback (APIPA or static)
ETH Get DHCP LeaseRetrieve IP address leased to DUTConfirms device accepted correct IP, subnet mask, and gateway
ETH Set Static IPConfigure RPi for static IP testDevice uses configured static IP; no DHCP traffic on static-configured devices
ETH PingPing device from RPiConfirms IP stack is active; round-trip time within spec
ETH Set VLANConfigure VLAN tagging on RPi portDevice correctly handles tagged frames; untagged frames on VLAN-configured port rejected
ETH Simulate Cable FaultRapid link toggleDevice handles intermittent link; reconnects within timeout; no crash or lock-up
ETH Get Interface StatsRead packet counts, error ratesTX/RX packet counts increase correctly; error frame rate within acceptable threshold

TESTBOT ETHERNET INTERFACE AGENT

Agent
Ethernet Interface Agent
Hardware Required
Ethernet Interface Jig (RPi)
Hardware Required
Control link state, speed, duplex, DHCP, VLAN, and static IP via a Raspberry Pi jig - validate physical Ethernet interface behaviour on your DUT.
TEST SCENARIOS

Ethernet Interface Test Scenarios With TestBot

ScenarioAgents UsedValidated Outcome
Cold Start IP AcquisitionEthernet Interface Agent - DHCP server + pingDHCP lease acquired within 5s of power-up; device responds to ping within 10s
Link Failover ValidationEthernet Interface Agent - Link Down + monitorApplication detects link-down within 1s; reconnects within 30s after Link Up
Speed Negotiation TestEthernet Interface Agent - ETH Set Speed (10/100/1000)Device auto-negotiates correctly to each forced speed; wrong speed detected and logged
VLAN Tagged Frame HandlingEthernet Interface Agent - ETH Set VLAN (VLAN 10)Device accepts tagged frames on configured VLAN; untagged frames correctly handled
DHCP Lease RenewalEthernet Interface Agent - DHCP server + lease expiryDevice sends DHCP Request before lease expires; renewal completes within 3 retries
Static IP ValidationEthernet Interface Agent - static IP configNo DHCP traffic generated; device uses configured static IP; correct subnet routing
Cable Fault SimulationEthernet Interface Agent - ETH Simulate Cable Fault (5 toggles/min)Device reconnects after each toggle; no crash, no memory leak, error rate below 0.1%

Frequently Asked Questions - Ethernet Interface Testing

Ethernet interface testing FAQ

Ethernet interface testing is the validation of a device's physical Ethernet port - link up/down handling, speed and duplex negotiation, DHCP IP address acquisition, VLAN tagging, and network fault recovery. It is distinct from protocol testing (Modbus TCP, ProfiNet, etc.) which validates application-layer communication over Ethernet.

Continue Learning

RELATED GUIDES

Validate Your Device Ethernet Interface End-to-End

Ethernet Interface Agent controls link, DHCP, VLAN, and speed. RPi jig required. 14-day free trial.