LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-20-2004, 09:32 AM   #1
bucklake
LQ Newbie
 
Registered: Feb 2004
Posts: 1

Rep: Reputation: 0
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
 
Old 02-20-2004, 10:00 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
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

Last edited by peter_robb; 02-20-2004 at 10:01 AM.
 
Old 02-20-2004, 10:07 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 02-20-2004, 10:44 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
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...
 
  


Reply



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
Binding multiple IP Addresses to same NIC Harlin Linux - Networking 4 10-26-2005 05:10 AM
multiple ip addresses on 1 nic? houler Linux - Networking 4 04-26-2005 03:53 PM
Multiple addresses on one NIC via DHCP - possible? babzog Linux - Networking 0 03-25-2004 10:43 AM
Multiple addresses for a single NIC grub Programming 1 08-04-2003 02:24 AM
Multiple IP addresses on one NIC hrr Linux - Networking 2 03-07-2003 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration