Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to show all network interfaces using the older tool.
Linux CLI
sudo [1] -a Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'ip' instead of 'ifconfig' for this older command.
Using 'ping' which is for testing connectivity, not listing interfaces.
✗ Incorrect
The 'ifconfig -a' command lists all network interfaces using the older ifconfig tool.
2fill in blank
mediumComplete the command to show all network interfaces using the modern tool.
Linux CLI
ip [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'ip link' which shows link layer info but not IP addresses.
Using 'ip route' which shows routing tables.
✗ Incorrect
The 'ip addr' command shows all network interfaces and their IP addresses.
3fill in blank
hardFix the error in the command to bring up the interface eth0 using ifconfig.
Linux CLI
sudo ifconfig eth0 [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'enable' or 'start' which are not valid ifconfig options.
Using 'down' which disables the interface.
✗ Incorrect
The correct command to activate an interface is 'ifconfig eth0 up'.
4fill in blank
hardFill both blanks to show the IP address of interface eth0 using the ip command.
Linux CLI
ip [1] show [2] eth0
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'link' instead of 'addr' to show IP addresses.
Omitting 'dev' before the interface name.
✗ Incorrect
The command 'ip addr show dev eth0' shows the IP address details of eth0.
5fill in blank
hardFill all three blanks to assign IP 192.168.1.10/24 to interface eth0 using ip command.
Linux CLI
sudo ip [1] add [2]/24 [3] eth0
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'link' instead of 'addr' for IP address assignment.
Omitting 'dev' before the interface name.
✗ Incorrect
The command 'ip addr add 192.168.1.10/24 dev eth0' assigns the IP address to eth0.