How to have Virtual IP Address
Hi
I have IP Address assigned via DHCP. In all the guides i find that they have static IP Address but in my virtual machine, my ip address is via DHCP. So any guide on how can i have a virtual ip address over single NIC so that i can use it for heartbeat. Current Configuration of ETH0 :- Code:
DEVICE=eth0 I tried and copy pasted it with ETH0:01 and upped that interface with command ifup eth0:01. Than did ifconfig but could not find anything, it just shows eth0 and lo. |
Quote:
|
He said ti right, but ..
To make it clear, your physical interface CAN have a dynamic address and your alias a static. The other way does not work.
You need to assign an address and settings to the alias. You might look at http://www.cyberciti.biz/tips/ubuntu...rk-device.html for details. |
thanks blueh20 & wpeckham.
That method from cyberciti worked, but was wondering, the address which i create with ifconfig eth0:0 192.168.1.11 up can be considered as a virtual IP address ? I am able to ping the address i create, but i cannot see it in : ifconfig -a |
All times are GMT -5. The time now is 03:46 PM. |