Thursday, 24 May 2012
 Home arrow Blog arrow How to Configure Virtual IP Address in Linux
   
Main Menu
Home
News
Blog
Links
Search
FAQs
Spider
Articles
@intrenet
Free Softwares
Break for fun
Friends VIdeos
Techno videos
Contact Us
Disclaimer
Guest Book
Speed test
V.E.C. Calculator
IPv4 Subnet Calc
IPv6 Subnet Calc
Byte Converter
Converter
GMT/UTC Time
Bandwidth Calc
Allinone Calc
IANA Port Numbers
Country Call Codes
Pk Postal Codes
Surf Anonumously
Visitors Counter
mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday171
mod_vvisit_counterYesterday302
mod_vvisit_counterThis week733
mod_vvisit_counterThis month5282
mod_vvisit_counterAll125958
 
 
 
 


How to Configure Virtual IP Address in Linux PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Amanatullah khalil   
Saturday, 23 May 2009

How to Configure Virtual IP Address in Linux

 

  1. Invoke the linuxconf tool. ( type linuxconf in the shell prompt and press Enter ). For starting this tool you have to be logged in as Super user.

  2. In the displayed menu, select the menu item : IP Aliases for virtual hosts and press Enter. This will display the two interfaces eth0 and lo. (Ethernet interfaces in Linux are called by such names as eth0 and eth1)

  3. Select eth0 and press Enter. This will show all the IP aliases configured for the selected interface.

  4. Example

    IP alias or range : 177.177.177.1-25
    Netmask : 255.255.255.0
  5. In the field IP alias or range, enter the desired IP address or the range with a corresponding Netmask.
     

     

    Note:

    1. These commands have to be executed with the super user privilege.

    2. You will have to re-start the system for the changes to take effect.

    3. When you are configuring a large number of IP address, it might take a long time to boot up.

Using the following command, we can configure Virtual IPs in the Linux box at run-time without re-booting the machine or re-starting the network.

 ifconfig eth0:1 172.19.1.2 netmask 255.255.255.0   up

ifconfig eth0:3 172.19.1.3 netmask 255.255.255.0 up

 The interface number must be unique for each interface (for example eth0:1, eth0:2 etc). The same interfaces can be made down by using the following command.

 ifconfig eth0:1 172.19.1.2 netmask 255.255.255.0   down

ifconfig eth0:3 172.19.1.3 netmask 255.255.255.0 down
     

     

    Note:

    1. These commands have to be executed with the super user privilege.

    2. It can be used in versions up to 7.2

    3. The configurations will not be available when you re-start your system.

    4. Thanks to http://techgurulive.com/2009/03/07/how-to-configure-virtual-ip-address-in-linux/
Last Updated ( Saturday, 23 May 2009 )
 
< Prev   Next >
 
 
 
csatpk Newsflash
Statistics
OS: Linux h
PHP: 5.2.17
MySQL: 5.1.63-community-log
Time: 02:27
Caching: Disabled
GZIP: Disabled
Members: 3
News: 368
Web Links: 5
Visitors: 266519
Popular