188k views
4 votes
What linux command displays the ip address and subnet mask?

1 Answer

5 votes
Type "ifconfig" at the terminal prompt, then press the "Enter" key. The IP address is labeled as "inet addr." The subnet is labeled as "Mask."

step 2

Type "netstat -r" at the command prompt, then press the "Enter" key to view the gateway address.

User Valepu
by
8.7k points