Re: reference for 2 IP #'s for 1 NIC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Hey all,
>
> Could someone point me in the direction of documentation on how to set
> up one NIC card to use two IP numbers? I did a man on ifconfig and
> didn't see how to do it. I took a RedHat class several years ago, and
> the manual for that class states that you can have as many as 256 ip
> numbers for a single NIC, but it didn't say how to do it.

ifconfig eth1:1 inet 10.0.0.1 netmask 255.255.255.0 up

that will attach another IP to device eth1 (you can use :0 through to :254)

you will also need to add any corresponding routing information but yeah..

there is a way to do it "properly" under redhat
(/etc/sysconfig/network-scripts/ifcfg-eth0:x where X is the device alias
number) but i forget off teh top of my head and they removed the text
based tools and I dont have a gui

you will probably find that redhat-config-network* will allow you to add
aliases if you are using a GUI but at least this gives you a start point
:-)

-- 
Steve.


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux