- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Create Virtual IP Address
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 01:42 PM
тАО07-11-2005 01:42 PM
Currently, I need to create a virtural ip address under the eth0 NIC.
Currently, under the following directory, /etc/sysconfig/network-scripts
-rw-r--r-- 1 root root 97 Sep 8 2004 ifcfg-eth0
How do I proceed to do it?
Thanks/cliff
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 01:50 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 04:55 PM
тАО07-11-2005 04:55 PM
Re: Create Virtual IP Address
ifconfig eth0:0
For permanent effect, create a file as suggested by stuart.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 05:12 PM
тАО07-11-2005 05:12 PM
Re: Create Virtual IP Address
It works :)
Created the ifcfg-eth0:0 file for permanent effect after a reboot.
But i started it as eth0:1 instead....rather then eth0:0. Any convention to follow instead?
Thanks/cliff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 05:17 PM
тАО07-11-2005 05:17 PM
Re: Create Virtual IP Address
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-11-2005 05:20 PM
тАО07-11-2005 05:20 PM
Re: Create Virtual IP Address
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 11:48 AM
тАО07-19-2005 11:48 AM
Re: Create Virtual IP Address
Should one make their default IP address something like 10.0.0.2 with a netmask of 255.0.0.0 and then add a virtual ip address of 10.0.0.200 with a netmask of 255.255.255.255 or should the netmask of the virtual ip also be 255.0.0.0?
If you do the later, is there any risk of packets being routed out the wrong ip (whether syn or ack?) If you do the former, is there a risk of creating a "local router" problem?
Do firewalls/routers mind sending traffic back out on to their local network where it received the data from?
I've done a few google searches on this but it seems like people who add the entire netmask on to their vip's are also doing fun things like manual load balancing through routing.
Are there any specific RFC's out there for this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 11:57 AM
тАО07-19-2005 11:57 AM
Re: Create Virtual IP Address
You subnet it based on what traffic you want through that interface (whether it's virtual or physical).
That being said, I've never seen a situation in a business where an 8bit subnet mask is needed on a client or server (do you honestly have an office with over 16 million devices?), only on dedicated routers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 12:13 PM
тАО07-19-2005 12:13 PM
Re: Create Virtual IP Address
>>You subnet it based on what traffic you want through that interface (whether it's virtual or physical).
What is the default action on linux's routing table for initiating connections bound for the same network that multiple aliases reside on.
For instance, you decide to build a tcp connection and send a packet to a separate host on your network. Which ip does the routing table decide to source the packet from when all aliases have the same netmask?
Is linux's default reaction always to use the first interface defined? Or does it use the physical interface over an alias?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 04:48 PM
тАО07-19-2005 04:48 PM
Re: Create Virtual IP Address
Actually, lets clear this up a little bit. Since late 2.2.x series of kernels, there has been no 'physical interface ip address' and 'virtual' addresses. They are all 'virtual' addresses, which are bound to a 'physical' interface.
But anyway, Linux will take the ip from the interface it traverses, not the 'first' addressed attached to they physical interface, or the 'primary' address (which occurs in other Unicies i've used over the years).