Home
Setting an IP Address Using the arp/ping Command

Checking the LAN
Setting and checking the new IP address

Follow the steps below to set the IP address using the arp/ping command.


Note:
  • Make sure that the Set using PING function is enabled on the TCP/IP menu in EpsonNet Config. If this function is disabled, you cannot set the IP address using the arp/ping command.

  • Make sure the network interface and the computer are in the same segment.

Before you start, you need the following information:

  • A valid IP address for the network interface. Ask your network administrator for an IP address which does not cause conflicts with any other device on the network. If you are the network administrator, choose an address within your subnet which does not conflict with any other device.

  • The MAC (Ethernet hardware) address of the network interface. You can find out the MAC address on a status sheet.

Checking the LAN

First, you need to check that the computer can reach to other computers in the same segment, as follows:

Set the default gateway to the host on which you are setting up the network interface.

    If there is a server or a router which acts as a gateway, enter the address of the server or the router. If there is no gateway, enter the IP address of your computer as a gateway address.

Assume that you want to reach to the computer having the IP address “192.168.100.101”. Check that the computer is reachable by “pinging” it from the command line:
ping 192.168.100.101

If the computer is reachable, you can see the following result (the exact form of the message depends on your operating system, and the time may vary):
64 bytes from 192:168:100:101:icmp_seq=0. Time=34.ms

If the computer is unreachable, you may see something like this:
PING 192:168:100:101:56 data bytes

    If you press Ctrl-C, you may see something like this:
    192:168:100:101 PING Statistics

    3 packets transmitted, 0 packets received,

    100% packet loss

    Again, the exact wording of the message you see may differ from this, depending on your operating system. If you cannot “ping” the computer, check the following:

  • The address in the ping command is correct.

  • The Ethernet connection to the computer has been made correctly, and all hubs, routers, etc. are switched on.

Top
Setting and checking the new IP address

To set the new IP address of the network interface which you have obtained from your network administrator, use the ping command and arp command with the -s flag (create an ARP entry).


Note:

In the following procedure, we assume that the MAC address of your network interface is 00:00:48:93:00:00 (hexadecimal), and that the IP address which you will be assigning is 192.168.100.201 (decimal). Substitute your values for these addresses when you type in the commands.

From the command line, type:
Example: arp -s 192.168.100.201 00-00-48-93-00-00

Execute the ping command to set the IP address by pinging it: Example:
ping 192.168.100.201

The network interface should now respond to the ping. If it does not, you may have incorrectly typed the MAC address or the IP address in the arp -s command. Double-check and try again. If none of these actions are effective, re-initialize the network interface and try again.

Print a status sheet to check whether the new IP address has been assigned to the network interface.


Note:

When the IP address is set by the ping command, the subnet mask is automatically changed by the class of the IP address. To change the subnet mask and the default gateway according to your network environment, use EpsonNet Config for Windows or Macintosh.

Top