From 729ec7238e2cb5e3d24a5b42bdf706460d43e3c1 Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Mon, 8 Nov 2021 14:00:38 -0600 Subject: doc: x4xx: Document configuring eth0 static IP --- host/docs/usrp_x4xx.dox | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'host/docs/usrp_x4xx.dox') diff --git a/host/docs/usrp_x4xx.dox b/host/docs/usrp_x4xx.dox index db11f1b54..fa05c7b4c 100644 --- a/host/docs/usrp_x4xx.dox +++ b/host/docs/usrp_x4xx.dox @@ -255,7 +255,7 @@ The Ettus USRP X410 has various network interfaces: single interface is used (`sfpX`). The configuration files for these network interfaces are stored in: -`/etc/systemd/network/`. +`/data/network/.network`. Interface Name | Description | Default Configuration | Configuration File | Example: X4_200 FPGA image | ---------------|----------------------------------------|-----------------------|--------------------|----------------------------| @@ -270,6 +270,33 @@ Interface Name | Description | Default Configuration `sfp1_2` | QSFP28 1 (lane 2) | 192.168.22.2/24 | sfp1_2.network | N/C | `sfp1_3` | QSFP28 1 (lane 3) | 192.168.23.2/24 | sfp1_3.network | N/C | +For example, `/data/network/eth0.network` by default looks like: +``` +[Match] +Name=eth0 +KernelCommandLine=!nfsroot + +[Network] +DHCP=ipv4 +IPForward=ipv4 + +[DHCP] +UseHostname=true +ClientIdentifier=mac +``` + +In order to change the eth0 interface from using DHCP to using a static IP, you +can edit `/data/network/eth0.network` to be like: +``` +[Match] +Name=eth0 +KernelCommandLine=!nfsroot + +[Network] +Address=192.168.1.123/24 +``` +replacing the IP address with the IP of your choice. + \subsubsection x4xx_getting_started_network_connectivity_leds Network Status LEDs The Ettus USRP X410 is equipped with status LEDs for its network-capable ports: -- cgit v1.2.3