LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Redhat 7 what file is being used to assign my multiple IPs? (https://www.linuxquestions.org/questions/linux-networking-3/redhat-7-what-file-is-being-used-to-assign-my-multiple-ips-594191/)

TooSlow 10-24-2007 08:19 AM

Redhat 7 what file is being used to assign my multiple IPs?
 
I have a RedHat 7 firewall that I'm preparing to replace with a Juniper appliance. It is hosting several external IP addresses (one for each internal server) and forwards traffic for only specific ports.

I searched and thought I had found how to unassign each external IP as I pointed each server to use our new Juniper box as the gateway. ETH0 is hosting the internal IP, and ETH1 is hosting the primary external IP. All the other external IPs are assigned to ETH1:x.

I looked in /etc/sysconfig/network-scripts and found the ifcfg-eth0 and eth1 files. Each have their single IP assigned. However I couldn't find any reference to ifcfg-eth1:1, 1:2, etc anywhere.

Could anyone tell me where I'm going wrong? Thanks!

selva146 10-24-2007 11:02 AM

Hi,
what you need to do is copy ifcfg-eth1 as ifcfg-eth1:1 and ifcfg-eth1:2

and do the change in it

farslayer 10-24-2007 11:34 AM

Selva146 nailed it. heres a link for reference.. http://www.servepath.com/support/redhat_ip_config.htm

TooSlow 10-24-2007 11:35 AM

Thank you both for your reply. The IP addresses are already assigned. When I run ifconfig, it shows all of the external IP addresses already assigned to eth1:1, 1:2, etc but when I go to /etc/sysconfig/network-scripts/ I can see ifcfg-eth0 and eth1, but I'm not finding ifcfg-eth1:1 or 1:2. Since they are already assigned to the external nic (they are all reachable by ping and other services) and they show up properly in ifconfig, shouldn't ifcfg-eth1:1 and the others already exist? That is what is throwing me off.

I understand that if these external IP addresses are not yet assigned to the nic that I would create these ifcfg- files, but they are already assigned and working, so I thought the files would already be there. If they were not configured in this manner, is there another file that they could be in? Here is what I have when I list the contents of /etc/sysconfig/network-scripts/:

ifcfg-eth0 ifdown-isdn ifup-aliases ifup-plusb ifup-wireless
ifcfg-eth1 ifdown-post ifup-ippp ifup-post init.ipv6-global
ifcfg-lo ifdown-ppp ifup-ipv6 ifup-ppp network-functions
ifdown ifdown-sit ifup-ipx ifup-routes network-functions-ipv6
ifdown-ippp ifdown-sl ifup-isdn ifup-sit
ifdown-ipv6 ifup ifup-plip ifup-sl


All times are GMT -5. The time now is 11:01 PM.