Thank you Ray,

I would like to see the information, not to set or change it. 'netstat' is
not installed by default in Bering, and /etc/resolv.conf does not contain
the ISP DNSes by default, either. I can install 'netstat' or look inside log
files of DHCP client.

I just think Bering could have something similar to Win2K's 'ipconfig /all'.
I tried 'ip' but do not know which parameter I should use to show gateway.

M Lu.



----- Original Message ----- 
From: "Ray Olszewski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 16, 2003 10:36 AM
Subject: Re: [leaf-user] How to show default gateway IP?


> At 10:24 AM 6/16/2003 -0700, M  Lu wrote:
> >Hi,
> >
> >What command in Bering should I use to get the default-gateway IP (and
> >possibly the DNSes) for the interface eth0 which gets a dynamic IP from
the
> >ISP?
>
> By "get", do you mean that after this information is on the router (by way
> of a DHCP lease or PPPoE assignment, or however the router "gets a dynamic
> IP"), you just want to see what it is? If that is what you mean, and if
you
> have command-line access to the router:
>
>          -- the default gateway will be in the routing table.
"netstat -nr"
> will display that.
>
>          -- the DNS servers will be entered in /etc/resolv.conf . Use
> "more" or "cat" to display its contents.
>
> The information might also be elsewhere on the system, but that depends on
> the method used to get the dynamic address, while these locations are
> reliable for any method that works.
>
>
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by: eBay
> Great deals on office technology -- on eBay now! Click here:
> http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
> ------------------------------------------------------------------------
> leaf-user mailing list: [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/leaf-user
> SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
>


-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to