LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How can I tell what my default gateway is currently set as? (https://www.linuxquestions.org/questions/linux-networking-3/how-can-i-tell-what-my-default-gateway-is-currently-set-as-361886/)

abefroman 09-09-2005 05:42 PM

How can I tell what my default gateway is currently set as?
 
How can I tell what my default gateway is currently set as?

mrcheeks 09-09-2005 06:11 PM

exemple:
ip adress is : 135.100.100.20
gateway is 135.100.100.1

just replace the last number of your ip adress by 1

colabus 09-09-2005 06:59 PM

Quote:

Originally posted by mrcheeks
exemple:
ip adress is : 135.100.100.20
gateway is 135.100.100.1

just replace the last number of your ip adress by 1

for a senior member this is a poor reply.. :/

dude, have a look at "man route" "ifconfig" and "/etc/network/interfaces"

mrcheeks 09-09-2005 07:01 PM

it is a simple answer...yes i know the ifconfig, but it is usually that unless someone specify it...

abefroman 09-09-2005 11:50 PM

can route show all gateways on my box?

carl.waldbieser 09-10-2005 11:53 AM

Quote:

Originally posted by abefroman
can route show all gateways on my box?
Yes. In essence, route will show where any packet delivered to your system is supposed to go to.

Walman 09-10-2005 12:15 PM

Use command /sbin/route

the entry with the UG on the flag columm is the gateway


All times are GMT -5. The time now is 12:19 PM.