Configuring multi-IP network interfaces
This article explains how to configure a network interface to support virtual IP addresses. This is useful in a cluster environment or in any high-availability service cnfiguration, when you need to ensure that at least one IP address is always responsive regardless of its physical destination.
1. To make a machine support a virtua IP address:
ifconfig hme0:1 192.168.123.157 255.255.254.0 192.168.123.255 up
The first parameter (hme0) is the physical name of the primary network interface (NI). The NI name is followed by’:#’, where “#” is th number of the virtual interface you are creating. The second parameter is the new virtual IP address, followed by the netmask and the broadcast address. The last parameter is “up” to bring the new virtual NI online.
2. To bring this virtual NIC down without deleting it:
ifconfig hme0:1 down
3. To bring this virtual NI up again:
$ ifconfig hme0:1 up
4. To delete this virtual NI:
$ ifconfig hme0:1 0 down
Note: Assigning 0 as IP address, deletes it.
Here’s a practical example of creating a virtual NI:
1) Take a look at the available NIs
ifconfig -a lo0: flags=2001000849 mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 eri0: flags=1000843 mtu 1500 index 2 inet 129.226.147.22 netmask ffffff00 broadcast 129.226.147.255 ether 0:3:ba:44:9d:22
2) The primary NI in this case is eri0 and we will use it to create out virtual NI.
ifconfig eri0:1 129.226.147.23 255.255.254.0 129.226.147.255 up
3) Let’s take another look at our network interfaces
ifconfig -a
We are web development company we got a client who needs to broadcast their radio station to online. Can any body have any fine ideas about this?