Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-24-2007, 09:19 AM   #1
LQ Newbie
Registered: Sep 2005
Posts: 17

Rep: Reputation: 0
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!
Old 10-24-2007, 12:02 PM   #2
Registered: Oct 2007
Location: INDIA
Distribution: Rehat, Fedora, RHEL
Posts: 47

Rep: Reputation: 15
what you need to do is copy ifcfg-eth1 as ifcfg-eth1:1 and ifcfg-eth1:2

and do the change in it
Old 10-24-2007, 12:34 PM   #3
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,241
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Selva146 nailed it. heres a link for reference..
Old 10-24-2007, 12:35 PM   #4
LQ Newbie
Registered: Sep 2005
Posts: 17

Original Poster
Rep: Reputation: 0
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

Last edited by TooSlow; 10-24-2007 at 12:37 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting things straight: Apache, SSL, Multiple External IPs / Internal IPs Linux - Server 21 10-14-2007 12:39 AM
how to define a specific range of IPs and/or multiple IPs in an iptables rule?... TheHellsMaster Linux - Security 9 09-20-2004 11:06 AM
Multiple IPs patpawlowski Linux - Networking 7 08-09-2004 10:27 AM
multiple ips, multiple gateways, one interface drpixel Linux - Networking 6 12-04-2002 01:56 AM
how to assign 2 IPs to a computer dragon Linux - Networking 6 11-05-2002 09:07 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration