network alias at Centos

Posted on 2011-10-21
Last Modified: 2012-05-12
I need to configure a network adapter under Centos with a alias, one of them with DHCP and the other with static ip.
How can I do it?

Administración de sistemas
Question by:verinsis
    LVL 11

    Accepted Solution

    You need to create virtual adaptors

    eg, your current nic is

    next virtual would be


    Each virtual adaptor can be assign IP via DHCP or assigned static addresses..

    LVL 31

    Assisted Solution

    If you are using graphical interface you can simply use

    If you are using command line, you can use


    Both the above are dependent upon the package installed on your machine.

    Otherwise, you can manually type up the information in files

    cd /etc/sysconfig/network-scripts

    vi ifcfg-eth0

    vi ifcfg-eth0:0

    Remember:  Use eth0 for DHCP and eth0:0 for static and not the other way round

    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now