ifconfig Commands

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
ifconfig Commands

Note that these items should not be changed while the device is in a connected state to a network. 

 

ifconfig commands take the following structure:

ifconfig 
[ <IP address> ][ <MAC address> ]
[ netmask <IP address> ]
[ gateway <IP address> ]
[ auto-dhcp <start|drop> ] 

Note ifconfig by itself will give network status.

IP address 
 
 
Use a static IP address. IP address must be in dot-decimal notation.

Note that this command will return an invalid parameter if the DHCP client is enabled. First disable the DHCP attempts (ifconfig auto-dhcp drop) before running this command. 
MAC address 
 
 
Redefine the device MAC address. MAC address must be specified in hexadecimal colon notation.

This command can only be issued when the MRF24WB0M / MRF24WG0M is in idle mode. Doing so at other times can have unexpected results. 
netmask 
 
IP address 
Use the specified IP address for the netmask. The netmask value is specified in dot-decimal notation. 
gateway 
 
IP address 
Configure the gateway address. The gateway value is specified in dot-decimal notation. 
auto-dhcp 
 
start 
Starts the DHCP client.

Only valid if the DHCP module has been compiled in. DHCP client is started by default. 
drop 
Stops the DHCP client. A static IP address will need to be assigned to the device.

Only valid if the DHCP module has been compiled in. 
Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.