LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   linxu command: router ip (https://www.linuxquestions.org/questions/linux-newbie-8/linxu-command-router-ip-591020/)

sklnner 10-11-2007 05:17 AM

linxu command: router ip
 
hello again, another very easy question for you
[edit]: g i mispelled linux, god they re gonna eat me alive for this..i hear them coming!
---
question:
- what command can i use (in xterm maybe? i dont know) to find the router ip address that is connected to the system? its running suse linux
---
- possible next question: from the command results, where exactly is the router ip address (in case it has more than one ips listed)
---
hint:
- the pc is configured and running linux and its not mine
- i dont know anything about linux, just yesterday i tried to identify what version is running for a start, with the help of some nice people here
- i dont know a lot about networking either, but i try to learn
(unfortunately all guides are too theoritical and hardly explain the practical part...)
---
thnx

bsdunix 10-11-2007 08:00 AM

Quote:

what command can i use (in xterm maybe? i dont know) to find the router ip address that is connected to the system?
These commands will show the gateway IP, which is usually a router:
Code:

# route
or
Code:

# netstat -r
The "Gateway" column will show the gateway IP. Here's an example of a simple routing table:
http://support.novell.com/techcenter...c2006_0406.gif

Here's some helpful info:

Understand the basics of Linux routing
http://articles.techrepublic.com.com...5-1052888.html


All times are GMT -5. The time now is 04:02 PM.