LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-27-2002, 12:26 AM   #1
aceexpert
LQ Newbie
 
Registered: Apr 2002
Posts: 3

Rep: Reputation: 0
Multiple IP on on NIC


Is there a way to have multiple IP's assigned to on NIC. Say have
10.0.0.1 and 192.168.1.1 assigned to eth0. Im using RH6.1 (2.2.12) and squid is running on my linux box.

thanks
 
Old 05-27-2002, 12:44 AM   #2
MartBrooks
Member
 
Registered: May 2002
Location: London
Distribution: Debian
Posts: 388

Rep: Reputation: 31
Yes, use IP aliasing.

Make sure you have support for it compiled into your kernel then you can use, for example:

ifconfig eth0:0 192.168.1.1 netmask 255.255.255.0


Regards
 
Old 05-28-2002, 02:31 AM   #3
verigoth
Member
 
Registered: May 2002
Posts: 179

Rep: Reputation: Disabled
why not have three? then you have all classes represented...here's my set up:
eth0 - 10.10.3.1 (255.0.0.0)
eth0:0 - 172.16.1.1 (255.255.0.0)
eth0:1 - 192.168.1.1 (255.255.255.0)

verigoth
 
Old 05-28-2002, 05:04 AM   #4
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
as far as I remmember I had troubles wiht rh6x and ipaliasing
I could setup eth0:1 , eth0:2 ..
but when i went for
ifconfig eth0:2 down, it would stop entire eth0 and I got cut off my server. So be carefull if your computer is not at your reach
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple IPs on one NIC - How to use them all? MG-Cloud Linux - Networking 4 10-03-2005 02:28 AM
Multiple NIC Problem czelaya Linux - Networking 6 04-16-2004 04:01 PM
Samba 3 and multiple NIC Noerr Linux - Networking 0 01-08-2004 08:08 AM
Multiple ip's for same NIC hvdwatt Linux - Newbie 5 08-03-2003 04:33 AM
Multiple IP addresses on one NIC hrr Linux - Networking 2 03-07-2003 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:00 PM.

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