LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   not getting gateway information. (https://www.linuxquestions.org/questions/linux-networking-3/not-getting-gateway-information-108661/)

tusher 10-26-2003 09:09 AM

not getting gateway information.
 
Hi,

I am trying to findout my Lan card informaion...as i can do on windows box by "ipconfig /all" command. i m using "ifconfig" but this is only displaying the ipaddress and subnet mask inforamtion.

how to get the gateway and dns information as well ?

Any idea? (I m on Linux Red Hat 6.2 Platform)

Bye.

Tusher.

david_ross 10-26-2003 09:15 AM

For routing (gateway):
route -n

For DNS:
cat /etc/resolv.conf

tusher 10-26-2003 09:26 AM

but david,

I m using two netcard..for ip masquarding purpose.....one has internal ip: 192.168.0.1 and another has external: external ip.
I remember i used same gateway for both of them..

but from the command "route -n"

i m not getting appropriate answer.

thank for the reply.

david_ross 10-26-2003 09:43 AM

"i m not getting appropriate answer."

You aren't betting what you expected?

Post the output of:
route -n

and the output /details as you expect them.


All times are GMT -5. The time now is 03:13 PM.