Multipe IP's on FC4 linux server

Recently my webhost offered me the opportunity to install Fedora Core 4 64bit on my server.
I installed plesk 8.0 and everything was working just fine untill I added another IP to it so I would be able to use another service on port 80 on the same server (plesk and truedesk fyi)

But now my plesk server seems unreachable. The command I used was:
 ifconfig <eth0> inet w.x.y.z netmask 255.255.255.0

I guess I did something wrong. Can you help me out?

LVL 2
liquidblazeAsked:
Who is Participating?
 
pablouruguayCommented:
ifconfig eth0:3 inet w.x.y.z netmask 255.255.255.255
0
 
xDamoxCommented:
Hi,

You have overwrote you original IP you will need to do:

ifconfig eth0 inet w.x.y.z netmask 255.255.255.0

replace w.x.y.z with your first IP address, now to ad another IP to eth0 you do:

ifconfig eth0:1 inet w.x.y.z netmask 255.255.255.0

If you do ifconfig you should now have two interfaces eth0 and eth0:1
0
 
liquidblazeAuthor Commented:
sounds kinda logical.

so - I already got 3 ips on that box, that would be eth0, eth0:1, eth0:2 - correct?

so to do what you suggest, I'll have to:

ifconfig eth0:3 inet w.x.y.z netmask 255.255.255.0

can you confirm this?
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
liquidblazeAuthor Commented:
that's what I meant.

thanks a bunch - points are yours (and a little bonus :-) )
0
 
pablouruguayCommented:
thnks
0
 
xDamoxCommented:
wtf, I was robbed of points :/
0
 
liquidblazeAuthor Commented:
oh my... I didnt look at the username when I assigned them ... suggestions?
0
 
pablouruguayCommented:
i didn't understand.... Xdamox you give a partial solution was a mistake in 255.255.255.0, i correct this error. simple. is not a robbery .
0
 
liquidblazeAuthor Commented:
actually, his comment / answer was correct as far as my first example goes.

I did indeed give a netmask of "255.255.255.0" in my example.
0
 
xDamoxCommented:
never mind I have decided to up my EE way of anwsering questions I have decided to black list certain users.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.