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

Reply via email to