Networking Forums

Networking Forums > Computer Networking > Linux Networking > multiple IP addresses on a single machine

Reply
Thread Tools Display Modes

multiple IP addresses on a single machine

 
 
internetgoo@googlemail.com
Guest
Posts: n/a

 
      10-08-2007, 11:35 AM
I need to create multiple IP addresses for a single machine. The
machine is a linux machine behind a firewall. The machine is assigned
an IP address, but I need to create additional IP addresses for this
machine. Can I assign additional IP addresses for this machine giving
whatever IP addresses I want, or can I only assign additonal IP
addresses as designated by the network admin?

 
Reply With Quote
 
 
 
 
Burkhard Ott
Guest
Posts: n/a

 
      10-08-2007, 12:13 PM
Am Mon, 08 Oct 2007 11:35:53 +0000 schrieb internetgoo:

> I need to create multiple IP addresses for a single machine. The


ifconfig eth0:0 1.1.1.1 netmask 255.255.255.0 up
ifconfig eth0:2 2.2.2.2 netmask 255.255.255.0 up

> machine is a linux machine behind a firewall. The machine is assigned
> an IP address, but I need to create additional IP addresses for this
> machine. Can I assign additional IP addresses for this machine giving
> whatever IP addresses I want, or can I only assign additonal IP
> addresses as designated by the network admin?


You should take only IP adresses which not used in your network, otherwise
you'll get trouble with arp.

cheers
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      10-08-2007, 03:16 PM
(E-Mail Removed) writes:

>I need to create multiple IP addresses for a single machine. The
>machine is a linux machine behind a firewall. The machine is assigned
>an IP address, but I need to create additional IP addresses for this
>machine. Can I assign additional IP addresses for this machine giving
>whatever IP addresses I want, or can I only assign additonal IP
>addresses as designated by the network admin?



If you told us your problem rather than your solution it would help.
You cannot use public IP addresses unless issued by an authorized person
who can issue such addresses. Addresses are way s for other computers to
connect to yours, and there must be a way to find out on which wires to
send the packets to get those packets to you. That can only be done if
those addresses are "centrally" allocated. And they cannot duplicate.
If you use the private address range 10.x.x.x 192.168.x.x then you can do
with them what you want, since noone will be able to route to them anyway
over the public nets.

However if you want your machine to be found with those addresses, even
private, you had better agree with your network admin.

Now whyin the world do you want to assign multiple addresses to a single
machine?

 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      10-08-2007, 03:18 PM
Burkhard Ott <(E-Mail Removed)> writes:

>Am Mon, 08 Oct 2007 11:35:53 +0000 schrieb internetgoo:


>> I need to create multiple IP addresses for a single machine. The


>ifconfig eth0:0 1.1.1.1 netmask 255.255.255.0 up
>ifconfig eth0:2 2.2.2.2 netmask 255.255.255.0 up


NONONONONONONONONO Do not use public addresses. Use only addresses in the
private ranges. 10.x.x.x or 192.168.x.x


>> machine is a linux machine behind a firewall. The machine is assigned
>> an IP address, but I need to create additional IP addresses for this
>> machine. Can I assign additional IP addresses for this machine giving
>> whatever IP addresses I want, or can I only assign additonal IP
>> addresses as designated by the network admin?


>You should take only IP adresses which not used in your network, otherwise
>you'll get trouble with arp.




>cheers

 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      10-08-2007, 03:32 PM
Hello,

Unruh a écrit :
>
>>ifconfig eth0:0 1.1.1.1 netmask 255.255.255.0 up
>>ifconfig eth0:2 2.2.2.2 netmask 255.255.255.0 up

>
> NONONONONONONONONO Do not use public addresses. Use only addresses in the
> private ranges.


May I ask why ?

> 10.x.x.x or 192.168.x.x


Why does everybody always forget about the third private range,
172.16-31.x.x ? :-D
 
Reply With Quote
 
Ignoramus17253
Guest
Posts: n/a

 
      10-08-2007, 03:37 PM
On 2007-10-08, (E-Mail Removed) <(E-Mail Removed)> wrote:
> I need to create multiple IP addresses for a single machine. The
> machine is a linux machine behind a firewall. The machine is assigned
> an IP address, but I need to create additional IP addresses for this
> machine. Can I assign additional IP addresses for this machine giving
> whatever IP addresses I want, or can I only assign additonal IP
> addresses as designated by the network admin?
>


You can assign any IP address to a machine you control; but if the
packets cannot be routed on the network to some of those IPs, they
will not work properly.

The command is something like

ifconfig eth0:1 ano.th.er.ip
ifconfig eth0:2 yet.mo.re.ip

etc

i
 
Reply With Quote
 
Moe Trin
Guest
Posts: n/a

 
      10-08-2007, 07:42 PM
On Mon, 08 Oct 2007, in the Usenet newsgroup comp.os.linux.networking, in
article <(E-Mail Removed). com>,
(E-Mail Removed) wrote:

NOTE: Posting from groups.google.com (or some web-forums) dramatically
reduces the chance of your post being seen. Find a real news server.

>I need to create multiple IP addresses for a single machine.


IP-Alias, Setting Up IP Aliasing On A Linux Machine Mini-HOWTO
Updated: Jan 2001. How to set up and run IP aliasing on a Linux box.

-rw-rw-r-- 1 gferg ldp 13575 Jan 26 2001 IP-Alias

>The machine is a linux machine behind a firewall. The machine is
>assigned an IP address, but I need to create additional IP addresses
>for this machine. Can I assign additional IP addresses for this
>machine giving whatever IP addresses I want, or can I only assign
>additonal IP addresses as designated by the network admin?


If there is an network administrator, I'd _STRONGLY_ advise that
you get addresses from the network administrator, rather than just
randomly grabbing addresses not explicitly authorized by the
admin. At the very least, this can cause confusion and maybe anger,
and could lead to severe disciplinary actions.

Old guy
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      10-08-2007, 10:57 PM
Pascal Hambourg <boite-a-(E-Mail Removed)> writes:

>Hello,


>Unruh a écrit :
>>
>>>ifconfig eth0:0 1.1.1.1 netmask 255.255.255.0 up
>>>ifconfig eth0:2 2.2.2.2 netmask 255.255.255.0 up

>>
>> NONONONONONONONONO Do not use public addresses. Use only addresses in the
>> private ranges.


>May I ask why ?


If you know enough to ask about the 172range you can answer this yourself.


>> 10.x.x.x or 192.168.x.x


>Why does everybody always forget about the third private range,
>172.16-31.x.x ? :-D


Because it is even more restricted and who cares if they forget about it?


 
Reply With Quote
 
Ignoramus17253
Guest
Posts: n/a

 
      10-09-2007, 03:03 AM
There is nothing wrong with multiple public IP addresses. I have a
server with several IPs. Actually, two such servers.

i
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding a single IP Address to two different MAC addresses Ramesh Linux Networking 6 02-20-2008 01:35 PM
Server 2003 obtaining multiple multiple IP addresses via DHCP pbrommer@gmail.com Windows Networking 1 03-29-2007 02:24 AM
[WinXP] How to Bind Multiple IP Addresses to Single NIC - Via DHCP? E11 Windows Networking 1 01-25-2007 01:59 PM
Multiple Static IP addresses through single DSL Modem C Newlin Windows Networking 2 06-29-2004 03:40 AM
NAT single machine?? John Sparrow Linux Networking 1 08-22-2003 05:35 AM



1 2 3 4 5 6 7 8 9 10 11