P_IPADDRESS
code: 117
# set
<module-index>/<port-index> P_IPADDRESS <ipv4_address> <subnet_mask> <gateway> <wild>
# get
<module-index>/<port-index> P_IPADDRESS ?
Description
An IPv4 network configuration specified for a port. The address is used as the default source address field in the IP header of generated traffic, and the configuration is also used for support of the ARP and PING protocols.
Actions
set, get
Parameters
ipv4_address
: address, the IPv4 address of the portsubnet_mask
: address, the subnet mask of the local network segment for the portgateway
: address, he gateway of the local network segment for the portwild
: address, wildcards used for ARP and PING replies, and each byte must be 255 (0xFF) or 0 (0x00)
Example
# set
input: 0/1 P_IPADDRESS 192.168.1.100 255.255.255.0 192.168.1.1 255.255.255.255
output: <OK>
# get
input: 0/1 P_IPADDRESS ?
output: 0/1 P_IPADDRESS 192.168.1.100 255.255.255.0 192.168.1.1 255.255.255.255