Open main menu

CDOT Wiki β

Changes

NAD710 Lab 2

51 bytes added, 17:12, 11 September 2008
Changing IP address on network interface using the ifconfig command
* Commands in the following steps may contain the variable <font color="red">x</font>. If you are doing this lab using your own LAN, you can pick any value between 1 and 254 for <font color="red">x</font>. If you are working in the LUX lab, make sure you are not using the same <font color="red">x</font> value as any other students in the Lab.
* On terminal window "C" on Host-A, set the IP address for the network device to 172.16.<font color="red">x</font>.1, netmask to 255.255.255.0, and set the broadcast address to the appropriate value. For example:
ifconfig eth<font color="blue">xx</font> 172.16.<font color="red">x</font>.1 netmask 255.255.255.0 broadcast 172.16.<font color="red">x</font>.255
* On terminal window "C" on Host-B, set the IP address for the network device to 172.16.<font color="red">x</font>.2, netmask to 255.255.255.0, and set the broadcast address to the appropriate value. For example:
ifconfig eth<font color="blue">xx</font> 172.16.<font color="red">x</font>.2 netmask 255.255.255.0 broadcast 172.16.<font color="red">x</font>.255
* Use the "ifconfig" or "ip addr" on Host-A and Host-B to verify the newly assigned addresses. Make changes if necessary. Ask for help if you have any troubles.
* Use the "ping" command to verify the network connection between Host-A and Host-B for the new addresses. Go on to the next step only after a positive result.
 
==List MAC addresses stored in the ARP cache==
* On terminal window "C" on Host-A, enter the following commands and keep the outputs for later use:
1
edit