|
Setting an IP Address Using the arp/ping Command
Checking the LAN
Setting and checking the new IP address
If you are using UNIX or OS/2, you need to use the arp and ping command to set the IP address of the network interface. You can also use these commands with Windows Me/98/XP/2000/NT 4.0, if you have correctly installed TCP/IP networking on these systems.
|
Note: |
Before you start, you need the following information:
First, you need to check that the computer can reach to other computer 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 Ethernet connection to the computer has been made correctly, and all hubs, routers, etc. are switched on.
|
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.
|
|
| |