LXE MX1-IS Reference Manual page 93

Intrinsically safe
Hide thumbs Also See for MX1-IS:
Table of Contents

Advertisement

SOCKETS TCP/IP Stack
ip
ip displays or sets the values of the options selected when defining the IP (internet protocol) host
address of the next interface to be defined.
Syntax
ip address [hostid [/net_bits] ]
ip status
ip ttl [number]
ip address sets the IP host address of the next interface to be defined. A route is automatically
added to each interface for the default or specified net mask for its address. To make an automatic
route the default, specify the net bits as zero. When specified without the optional parameters, ip
address displays the current value(s) of the local host IP address(es). To assign different IP
addresses to different interfaces on the same host, an ip address statement must precede each
interface definition. The last IP address given is used in case of missing ip address statements.
ip status displays Internet Protocol (IP) statistics, such as total packet counts and error counters of
various types. It also displays statistics on the Internet Control Message Protocol (ICMP). This
includes the number of ICMP messages of each type sent or received.
ip ttl sets the default time-to-live value which is placed in each outgoing IP datagram. The ttl
value limits the number of gateway hops the datagram is allowed to take in order to kill datagrams
that got stuck in loops.
Parameters
hostid
hostid specifies the IP host address to assign to the next interface to be defined. This may be a
symbolic name from the HOSTS file, or a dotted decimal address.
/net_bits
A net mask can be specified for the host. In the ip address command an optional /net_bits can be
used to indicate the number of bits in the network ID. The net mask is used to determine whether
an incoming datagram is a broadcast and also for sending UDP broadcasts.
Net masks are more easily represented in binary or hexadecimal format. For example, the IP
address 128.1.1.5/24
The default net mask used corresponds to the class of address used if not explicitly specified.
E-EQ-MX1ISRG-F
corresponds to a net mask of 255.255.255.0 (FFFFFF00h),
25 bits to 255.255.255.128 (FFFFFF80h)
and 26 bits to 255.255.255.192 (FFF FFC0h).
Net Bits
Net Mask
8
255.0.0.0
16
255.255.0.0
24
255.255.255.0
Class
IP address range
A
0.x.x.x to 127.x.x.x
B
128.x.x.x to 191.x.x.x
C and higher
192.x.x.x or higher
MX1 I-Safe Reference Guide
83

Advertisement

Table of Contents
loading

Table of Contents