3.4.4
Commands of ”ip” subsystem for setting of IP communication
This group of commands can be used for setting of subsystem for control of communication via IP network. There
are following commands:
GW33H7-0#ip?
Help :
arp
: show arp table
addr
: show interfaces
route
: show routing table
conn
: show connection table
phy
: show ethernet PHY registers
ethaddr
: set static address mask
ethroute
: set static default router
ethdhcp
: enable / disable DHCP
ethena
: enable / disable ethernet
write
: save configuration
deb
: debug lebel
reg
: show eth registers
?
: show help
The
”ip arp”
command can be used for checking of ARP table of the module. The WB169-RFG module has no
other active local port, so that its ARP table is typically empty. The
”ip addr”
command can be used for browsing
of addresses and statistics of module individual communication ports. Example of the dump:
GW33H7-0#ip addr
Interface lo, status Up, half duplex, MTU 1500
IP Address : 127.0.0.1, mask : 255.0.0.0
Rx packets 0, bytes 0, errors 0
Tx packets 0, bytes 0, errors 0
Interface eth0, status Down
MAC : 00:04:d0:ff:ff:ff
Rx packets 0, bytes 0, errors 0
Tx packets 0, bytes 0, errors 0
Interface ppp0, status Up, full duplex, MTU 1500
IP Address : 10.2.1.177, mask : 255.255.255.255
Rx packets 123, bytes 8940, errors 0
Tx packets 126, bytes 9168, errors 0
GW33H7-0#
The
lo
(loopback) port has standard loopback address. As the WB169-RFG module uses GSM uplink, the
ethernet
port is not active. As the connection with superior server is closed through the
PPP connection
, the module IP
address is preset at PPP interface.
The
”ip route”
command can be used for browsing of module routing table. Example of routing table dump:
GW33H7-0#ip addr
GW33H7-0#ip route
Routing table :
IP : 10.2.1.177/32 (255.255.255.255) dev ppp0
IP : 127.0.0.1/8 (255.0.0.0) dev lo
IP : 0.0.0.0/0 (0.0.0.0) gw : 10.2.1.177
GW33H7-0#
In the first row there is a route to the superior network via PPP interface, where the module IP address is linked
with the virtual PPP interface. In the second row there is a loopback route defined. In the third row there is a
route to the default gateway, that is also accessible through the PPP connection.
WB169-RFG
12