Set Fedora9 to automatically update the Host Name and IP address. If the system restarts or gets a new IP address, we need to log on to no-ip to modify it, that's too inefficient! Therefore, no-ip provides users with a user-friendly program, which is the download link in the email! You can click the download link. In the displayed window, there are three programs, including "Windows, Mac, Linux/BSD/Unix". Of course, we choose the Linux project.
Set Fedora 9 to automatically update the Host Name and IP address
If we need to log on to the no-IP address to modify the no-ip address after the system restarts or gets a new IP address, it will be too inefficient! Therefore, no-ip provides users with a user-friendly program, which is the download link in the email! You can click the download link. There are three programs in the window that appears, including "Windows, Mac, Linux/BSD/Unix". Of course we chose the Linux project! Download the program and move it to the Linux host!
The installation and activation steps are as follows:
1. Compilation and installation:
[Root @ linux ~] # Cd/usr/local/src
[Root @ linux src] # tar-zxvf/root/noip-duc-linux.tar.gz
# Suppose you place the program under/root
[Root @ linux src] # cd noip-2.1.3
# Note: This directory contains a file named README. FIRST. Check the file!
[Root @ noip-2.1.3] # make
[Root @ noip-2.1.3] # make install
# In this way, the main program will be installed in/usr/local/bin/noip2, and the main parameter file will be placed in
#/Usr/local/etc/no-ip2.conf! Then you must begin to answer some questions:
Please select the Internet interface from this list.
By typing the number associated with it.
0 eth0
1 eth1
1 <== because the host of laruence uses the eth1 interface externally
Please enter the login/email string for no-ip.com kiki@gmail.com
Please enter the password for user 'kiki @ gmail.com '***
# The above two are the emails and passwords you entered at registration!
Only one host [tsai.no-ip.org] is registered to this account.
It will be used.
Do you wish to run something at successful update? [N] (y/N) n
Music/tmp/no-ip2.conf/usr/local/etc/no-ip2.conf
# Focus here! The configuration file you just created is put in the above file!
In this way, your no-ip is created and can be executed! The execution method is also very simple!
2. noip2 program usage:
[Root @ linux ~] #/Usr/local/bin/noip2
# Do not doubt! Enter the host name you registered on the no-ip address.
# It will automatically generate corresponding! That's easy!
[Root @ linux ~] # Noip2 [-CS]
Parameters:
-C: reset the parameter, that is, set the dump that we just entered in bold!
If you have more than two no-ip host names, you must use noip2-C
To reset the parameter file!
-S: displays the current noip2 status!
[Root @ linux ~] # Noip2-S
1 noip2 process active.
Process 4998, started as/usr/local/src/noip-2.1.3/noip2
Using configuration from/usr/local/etc/no-ip2.conf
Last IP Address set 61. xxx.111.ddd
Account kiki@gmail.com
Configured:
Host tsai.no-ip.org
Address check every 1 minute, directly connected via/dev/eth1.
Hey! This is the success! Moreover, noip2 can automatically go to the primary website for updates every minute! Really good! What if I want to start noip2 on the machine? Do this:
3. Set boot start:
[Root @ linux ~] # Vi/etc/rc. d/rc. local
# Add the following line:
/Usr/local/bin/noip2