LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   1 NIC with 2 IP addresses (https://www.linuxquestions.org/questions/linux-networking-3/1-nic-with-2-ip-addresses-148392/)

bucklake 02-20-2004 09:32 AM

1 NIC with 2 IP addresses
 
I have a Redhat 8 system up and running. Telnet, FTP, Internet access, and Email are all working behind a company firewall.

Now I have a need to add a second IP address and hostname to the system on the same NIC. Any idea if it can be done? If so, where can I find out how to do to?

Thanks,

Bucklake

peter_robb 02-20-2004 10:00 AM

Copy /etc/sysconfig/network-scripts/ifcfg-eth~ as /etc/sysconfig/network-scripts/ifcfg-eth~:1 and edit the numbers inside the file for the additional ones.
Interface name will become eth~:1

acid_kewpie 02-20-2004 10:07 AM

am i not right in thinking that the : in the filename will screw everything up? sure it's done me before now. i found that you can just call it ifcfg-eth0_1 or similar instead.

peter_robb 02-20-2004 10:44 AM

No problem with the : ...

The RH Docs specify it that way as well, and it has been working for me in a RH7.2 system for several years... :)


All times are GMT -5. The time now is 02:50 AM.