200k views
4 votes
You are troubleshooting a connectivity problem on a Linux server. You are unable to connect to another system on the local network, but are not able to connect to a server on a remote network.

You suspect that a default gateway information for the system may be configured incorrectly. Which of the following commands would you use to view the default gateway information on a Linux server?
a. ifconfig.
b. route -n
c. ip route show
d. netstat -r

User Tejinder
by
7.3k points

1 Answer

3 votes

Final answer:

To view the default gateway information on a Linux server, use the ip route show command.

Step-by-step explanation:

To view the default gateway information on a Linux server, you would use the ip route show command.

This command displays the routing table, which includes the default gateway information.

Here is an example of how the output of the command might look:

default via 192.168.1.1 dev eth0 proto dhcp metric 100

User Mahesh Gupta
by
6.9k points