Peeyush Maurya's Technical Guide for an interface for multiple IP addresses
There are many network configuration tools today. They are:
These programs will modify values in the following files:
Configuring an interface for multiple IP addresses If you want to configure your network card to act as more than one IP address, issue the following command:
This uses the dummy system interface capability supported in the kernel to setup another virtual interface which operates at IP address 192.168.1.102. Substitute the IP address that you want your virtual interface to be with an appropriate netmask for your network. To disable this, issue the following command.
Another way to use multiple IP addresses on one ethernet card is to set up a new file in your /etc/sysconfig/network-scripts directory. Copy your ifcfg-eth0 role to ifcfg-eth0:0.
Edit that file and rename the device to "eth0:0" and the IP address to the desired IP address. You may also want to modify BROADCAST, NETWORK, or NETMASK. You can continue adding IP addresses by using :1, :2, etc such as ifcfg-eth0:2.
To make it effective, you must reboot your system or issue the command "/etc/rc.d/init.d/network restart" as root. Now run 'ifconfig' and you will see the status for the new IP address you had added. From any othe rcomputer on your network 'ping 192.168.0.102' .. You will get reply... Few related link: Multiple IP Addresses per Ethernet Card Please mail any good link
related to this topic |