LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-24-2007, 08:19 AM   #1
TooSlow
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, 11:02 AM   #2
selva146
Member
 
Registered: Oct 2007
Location: INDIA
Distribution: Rehat, Fedora, RHEL
Posts: 47

Rep: Reputation: 15
Hi,
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, 11:34 AM   #3
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,228
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
Selva146 nailed it. heres a link for reference.. http://www.servepath.com/support/redhat_ip_config.htm
 
Old 10-24-2007, 11:35 AM   #4
TooSlow
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 11:37 AM.
 
  


Reply


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 robin.com.au Linux - Server 21 10-13-2007 11:39 PM
how to define a specific range of IPs and/or multiple IPs in an iptables rule?... TheHellsMaster Linux - Security 9 09-20-2004 10:06 AM
Multiple IPs patpawlowski Linux - Networking 7 08-09-2004 09:27 AM
multiple ips, multiple gateways, one interface drpixel Linux - Networking 6 12-04-2002 12:56 AM
how to assign 2 IPs to a computer dragon Linux - Networking 6 11-05-2002 08:07 AM


All times are GMT -5. The time now is 06:24 AM.

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