0
0
Linux CLIscripting~10 mins

ifconfig and ip addr in Linux CLI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete 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'
Aip
Bping
Cnetstat
Difconfig
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.
2fill in blank
medium

Complete 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'
Alink
Baddr
Croute
Dconfig
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.
3fill in blank
hard

Fix 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'
Aup
Bdown
Cenable
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'enable' or 'start' which are not valid ifconfig options.
Using 'down' which disables the interface.
4fill in blank
hard

Fill 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'
Aaddr
Blink
Cdev
Droute
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'link' instead of 'addr' to show IP addresses.
Omitting 'dev' before the interface name.
5fill in blank
hard

Fill 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'
Aaddr
B192.168.1.10
Cdev
Dlink
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'link' instead of 'addr' for IP address assignment.
Omitting 'dev' before the interface name.