Skip to content

Network Commands

These commands configure the Ethernet and USB-C network interfaces. Write commands take effect immediately.

Ethernet Interface

:SYSTem:NETwork:ETHernet:MODE

Query or set the Ethernet operating mode.

Short form: :SYST:NET:ETH:MODE

Mode Description
static Static IP address
dhcp_client Obtain IP from a DHCP server
dhcp_client_fallback Try DHCP; fall back to static after timeout

Examples:

:SYST:NET:ETH:MODE?
dhcp_client_fallback

:SYST:NET:ETH:MODE static

:SYSTem:NETwork:ETHernet:IPADdress

Query or set the configured Ethernet IP address.

Short form: :SYST:NET:ETH:IPAD

Examples:

:SYST:NET:ETH:IPAD?
192.168.0.95

:SYST:NET:ETH:IPAD 192.168.1.100

:SYSTem:NETwork:ETHernet:SMASk

Query or set the Ethernet subnet mask.

Short form: :SYST:NET:ETH:SMAS

Examples:

:SYST:NET:ETH:SMAS?
255.255.0.0

:SYST:NET:ETH:SMAS 255.255.255.0

:SYSTem:NETwork:ETHernet:GATEway

Query or set the Ethernet default gateway.

Short form: :SYST:NET:ETH:GATE

Examples:

:SYST:NET:ETH:GATE?
192.168.1.1

:SYST:NET:ETH:GATE 10.0.0.1

:SYSTem:NETwork:ETHernet:DHCPTimeout

Query or set the DHCP fallback timeout in seconds. Used in dhcp_client_fallback mode.

Short form: :SYST:NET:ETH:DHCPT

Examples:

:SYST:NET:ETH:DHCPT?
30

:SYST:NET:ETH:DHCPT 60

:SYSTem:NETwork:ETHernet:DHCP:STARt

Query or set the DHCP server pool start address.

Short form: :SYST:NET:ETH:DHCP:STAR

Examples:

:SYST:NET:ETH:DHCP:STAR?
192.168.0.100

:SYST:NET:ETH:DHCP:STAR 192.168.0.50

:SYSTem:NETwork:ETHernet:DHCP:END

Query or set the DHCP server pool end address.

Short form: :SYST:NET:ETH:DHCP:END

Examples:

:SYST:NET:ETH:DHCP:END?
192.168.0.199

:SYST:NET:ETH:DHCP:END 192.168.0.250

:SYSTem:NETwork:ETHernet:DHCP:LEASetime

Query or set the DHCP lease time.

Short form: :SYST:NET:ETH:DHCP:LEAS

Examples:

:SYST:NET:ETH:DHCP:LEAS?
30s

:SYST:NET:ETH:DHCP:LEAS 1h

:SYSTem:NETwork:ETHernet:LIVeip?

Query the live IP address currently active on the Ethernet interface. Read-only.

Short form: :SYST:NET:ETH:LIV?

Example:

:SYST:NET:ETH:LIV?
192.168.0.95

:SYSTem:NETwork:ETHernet:MAC?

Query the Ethernet MAC address. Read-only.

Short form: :SYST:NET:ETH:MAC?

Example:

:SYST:NET:ETH:MAC?
00:11:22:33:44:55

USB-C Gadget Interface

:SYSTem:NETwork:USB:MODE

Query or set the USB-C networking mode.

Short form: :SYST:NET:USB:MODE

Mode Description
static Static IP address
dhcp_host Run DHCP server for connected host
disabled Interface is brought down

Examples:

:SYST:NET:USB:MODE?
dhcp_host

:SYST:NET:USB:MODE static

:SYSTem:NETwork:USB:IPADdress

Query or set the configured USB-C IP address.

Short form: :SYST:NET:USB:IPAD

Examples:

:SYST:NET:USB:IPAD?
192.168.42.95

:SYST:NET:USB:IPAD 192.168.42.10

:SYSTem:NETwork:USB:SMASk

Query or set the USB-C subnet mask.

Short form: :SYST:NET:USB:SMAS

Examples:

:SYST:NET:USB:SMAS?
255.255.255.0

:SYST:NET:USB:SMAS 255.255.255.0

:SYSTem:NETwork:USB:ENABled

Query or set the USB-C interface enabled state.

Short form: :SYST:NET:USB:ENAB

Examples:

:SYST:NET:USB:ENAB?
1

:SYST:NET:USB:ENAB 0

:SYSTem:NETwork:USB:DHCP:STARt

Query or set the USB-C DHCP server pool start address.

Short form: :SYST:NET:USB:DHCP:STAR

Examples:

:SYST:NET:USB:DHCP:STAR?
192.168.42.100

:SYST:NET:USB:DHCP:STAR 192.168.42.50

:SYSTem:NETwork:USB:DHCP:END

Query or set the USB-C DHCP server pool end address.

Short form: :SYST:NET:USB:DHCP:END

Examples:

:SYST:NET:USB:DHCP:END?
192.168.42.200

:SYST:NET:USB:DHCP:END 192.168.42.250

:SYSTem:NETwork:USB:DHCP:LEASetime

Query or set the USB-C DHCP lease time.

Short form: :SYST:NET:USB:DHCP:LEAS

Examples:

:SYST:NET:USB:DHCP:LEAS?
30s

:SYST:NET:USB:DHCP:LEAS 24h

:SYSTem:NETwork:USB:LIVeip?

Query the live IP address currently active on the USB-C interface. Read-only.

Short form: :SYST:NET:USB:LIV?

Example:

:SYST:NET:USB:LIV?
192.168.42.95

:SYSTem:NETwork:USB:MAC?

Query the USB-C MAC address. Read-only.

Short form: :SYST:NET:USB:MAC?

Example:

:SYST:NET:USB:MAC?
00:11:22:33:44:56

Network Reset

:SYSTem:NETwork:RESet

Restore factory default network configuration and apply immediately.

Short form: :SYST:NET:RES

Example:

:SYST:NET:RES

Quick Reference

Ethernet

Command Short Form R/W Description
:SYSTem:NETwork:ETHernet:MODE :SYST:NET:ETH:MODE R/W Ethernet operating mode
:SYSTem:NETwork:ETHernet:IPADdress :SYST:NET:ETH:IPAD R/W Configured IP address
:SYSTem:NETwork:ETHernet:SMASk :SYST:NET:ETH:SMAS R/W Subnet mask
:SYSTem:NETwork:ETHernet:GATEway :SYST:NET:ETH:GATE R/W Default gateway
:SYSTem:NETwork:ETHernet:DHCPTimeout :SYST:NET:ETH:DHCPT R/W DHCP fallback timeout (seconds)
:SYSTem:NETwork:ETHernet:DHCP:STARt :SYST:NET:ETH:DHCP:STAR R/W DHCP pool start
:SYSTem:NETwork:ETHernet:DHCP:END :SYST:NET:ETH:DHCP:END R/W DHCP pool end
:SYSTem:NETwork:ETHernet:DHCP:LEASetime :SYST:NET:ETH:DHCP:LEAS R/W DHCP lease time
:SYSTem:NETwork:ETHernet:LIVeip? :SYST:NET:ETH:LIV? R Live IP address
:SYSTem:NETwork:ETHernet:MAC? :SYST:NET:ETH:MAC? R MAC address

USB-C

Command Short Form R/W Description
:SYSTem:NETwork:USB:MODE :SYST:NET:USB:MODE R/W USB-C operating mode
:SYSTem:NETwork:USB:IPADdress :SYST:NET:USB:IPAD R/W Configured IP address
:SYSTem:NETwork:USB:SMASk :SYST:NET:USB:SMAS R/W Subnet mask
:SYSTem:NETwork:USB:ENABled :SYST:NET:USB:ENAB R/W Enabled state (0/1)
:SYSTem:NETwork:USB:DHCP:STARt :SYST:NET:USB:DHCP:STAR R/W DHCP pool start
:SYSTem:NETwork:USB:DHCP:END :SYST:NET:USB:DHCP:END R/W DHCP pool end
:SYSTem:NETwork:USB:DHCP:LEASetime :SYST:NET:USB:DHCP:LEAS R/W DHCP lease time
:SYSTem:NETwork:USB:LIVeip? :SYST:NET:USB:LIV? R Live IP address
:SYSTem:NETwork:USB:MAC? :SYST:NET:USB:MAC? R MAC address