RIGOL
2-70
VSA Programming Guide
:SYSTem:COMMunicate:LAN[:SELF]:IP:GATeway
Syntax
:SYSTem:COMMunicate:LAN[:SELF]:IP:GATeway <ip_address>
:SYSTem:COMMunicate:LAN[:SELF]:IP:GATeway?
Description
Sets the default gateway.
Queries the default gateway.
Parameter
Name
Type
Range
Default
<ip_address>
ASCII String
Refer to "Remarks"
--
Remarks
The format of <ip_address> is "nnn.nnn.nnn.nnn". The range for the first segment (nnn) of the address is
from 1 to 223 (except 127); and the range for the other three segments is from 0 to 255.
This command is only valid in manual IP setting mode.
Return Format
The query returns the current default gateway in the format of "nnn.nnn.nnn.nnn".
Example
The following command sets the default gateway to "172.16.3.1".
:SYSTem:COMMunicate:LAN:SELF:IP:GATeway 172.16.3.1
The following query returns 172.16.3.1.
:SYSTem:COMMunicate:LAN:SELF:IP:GATeway?
:SYSTem:COMMunicate:LAN[:SELF]:IP:SUBMask
Syntax
:SYSTem:COMMunicate:LAN[:SELF]:IP:SUBMask<ip_address>
:SYSTem:COMMunicate:LAN[:SELF]:IP:SUBMask?
Description
Sets the subnet mask.
Queries the subnet mask.
Parameter
Name
Type
Range
Default
<ip_address>
ASCII String
Refer to "Remarks"
--
Remarks
The format of <ip_address> is "nnn.nnn.nnn.nnn". The range for the first segment (nnn) is from 0 to 255.
This command is only valid in manual IP setting mode.
Return Format
The query returns the current subnet mask in the format of "nnn.nnn.nnn.nnn".
Example
The following command sets the subnet mask to "255.255.255.0".
:SYSTem:COMMunicate:LAN:SELF:IP:SUBMask 255.255.255.0
The following query returns 255.255.255.0.
:SYSTem:COMMunicate:LAN:SELF:IP:SUBMask?