Linux IP Alias

Source: Internet
Author: User

1. Abount IP Alias

IP alias/ip aliasing is assigning multiple IP addresses to a single physical network interface. Alias network interface is configured on top of existing physical network interface.


By IP aliasing we can make applications and services running on Linux server available on multiple IP addresses by using O nly one physical network interfase.


Requirements for IP alias

* Physical Network Interface Connectivity

* Available multiple IP Addresses


Limitations of IP alias:

* Subnet aliasing (alias network interface IP address is preffered to BES in the same network Subnet a s physical network interface below–if not proper network infrastructure configuration is needed)

* DHCP (alias interfaces don't support DHCP)



Example:nic eth0 192.168.1.100


2. Non-persistent IP Alias Configuration


[Email protected] ~]$ ifconfig eth0:0 192.168.1.100 up


3. Persistent IP Alias Configuration

[Email protected] network-scripts]$ Cat/etc/sysconfig/network-scripts/ifcfg-eth0

Device=eth0

Type=ethernet

Onboot=yes

Nm_controlled=no

Bootproto=none

ipaddr=192.168.1.100

Prefix=24

gateway=192.168.1.1

dns1=114.114.114.114

Ipv4_failure_fatal=yes

Ipv6init=no

Name= "System eth0"


[Email protected] network-scripts]$ cat/etc/sysconfig/network-scripts/ifcfg-eth0\:0

Device=eth0

Type=ethernet

Onboot=yes

Nm_controlled=no

Bootproto=static

Onparent=yes

Ipaddr=192.168.1.101

Prefix=24

Ipv4_failure_fatal=yes

Ipv6init=no

Name= "System eth0:0"


Linux IP Alias

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.