Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

E-Mailing server IP Address

Status
Not open for further replies.

ManagerJay

IS-IT--Management
Jul 24, 2000
302
US
One of our Regional Offices is moving and the move will be completed before the frame-relay connection is moved. So, I am installing a Linux server to masquerade the user's ip addresses to the Internet so they can connect to the corporate network through the VPN. Since we will only need the dial up connection for about a month (if everything goes well) we are not going to invest in a static IP address or a dedicated Internet connection for the server.

Since I am about 4 hours away from this server and will need to administer it, is it possible to have the server send its TCP/IP address that it is assigned by the ISP to me when the server connects to the Internet?

If so, how is this done since the server does not have a registered domain name?

Thanks for your help.



Jay Hall
 
Assuming that there is a sendmail (or similar) server process set up and running on the machine to forward messages to your ISP's mail server, you could try:

Code:
ifconfig ppp0 | grep inet | mail -s "IP Address" JHall@company.com

If you add this to the ip-up.local file, which is executed after every dialup process, and this will take care of mailing the ip address on every dialup for you...
AV
tnedor@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top