The ip and ifconfig command are an invaluable part of any administrators tool kit. In this lab, you will be tasked with configuring two separate network interfaces. This will include deleting and adding IP addresses, updating the ARP cache, changing the state of network interfaces, and recording statistics for these interfaces.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Configure the eth1 interface using the ip command
- Remove the old arp entry for the 192.168.1.11 address and the associated interface
- Delete the 192.168.1.11/24 address from the eth1 interface
- Add 10.0.2.10 as a primary address for eth1 and 10.0.2.20 as a secondary address. Both should have a broadcast address of 10.0.2.255.
- Ensure that the eth1 network interface is online
- Add a new entry to the arp table for 10.0.2.10 with the associated MAC address
- Configure the eth2 interface using the ifconfig command
- Delete the 10.0.0.10/24 address from the eth2 interface
- Add 192.169.1.20 as the primary address for eth2 with a netmask of 255.255.255.0 and a broadcast address of 192.168.1.255
- Ensure that the eth2 interface is online
- Add an entry to the arp table for 192.169.1.20
- Use the ip command to set the eth2 interface to promiscuous mode and save statistics about the interfaces to a file called network_stats in the /root directory.
- Set the eth1 interface to promiscuous mode
- Save network interface statistics to /root/network_stats