SK0-003 · Question #483
An administrator is testing setting the IP address on a Linux server from command line. Which of the following commands is used to set the default gateway for the server?
The correct answer is A. route. On a Linux server, the route command is specifically used from the command line to manipulate the IP routing table, including setting the default gateway.
Question
An administrator is testing setting the IP address on a Linux server from command line. Which of the following commands is used to set the default gateway for the server?
Options
- Aroute
- Btraceroute
- Cipconfig
- Dnmap
How the community answered
(31 responses)- A87% (27)
- B3% (1)
- C3% (1)
- D6% (2)
Why each option
On a Linux server, the route command is specifically used from the command line to manipulate the IP routing table, including setting the default gateway.
The route command in Linux is used to view or modify the IP routing table, which includes adding or deleting routes and defining the default gateway for network traffic. For example, 'route add default gw <gateway_ip>' is used to set the default gateway.
traceroute is a network diagnostic tool used to display the path and measure transit delays of packets across an IP network, not to set network configurations.
ipconfig is primarily a Windows command for displaying and configuring network interfaces; the equivalent on Linux is 'ifconfig' (older) or 'ip address'/'ip route' (newer).
nmap is a network scanner used for network discovery and security auditing, not for configuring network interfaces or routes.
Concept tested: Linux network configuration-default gateway
Source: https://man7.org/linux/man-pages/man8/route.8.html
Topics
Community Discussion
No community discussion yet for this question.