LinuxQuestions.org
Review your favorite Linux distribution.
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 11-25-2006, 03:32 PM   #1
john_d13
Member
 
Registered: Apr 2004
Posts: 34

Rep: Reputation: 15
1 Server 3 IP address how do I ?


Heres the lowdown

I rent out game servers off my linux box (fedora core 6)

I have 3 IP address from ARIN. I want each user to have a seperate ssh and ftp login for their specific IP address.

Do I need 3 NIC's ? Ive never done this before,, usually i seperate by port #
 
Old 11-25-2006, 03:47 PM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
You could do it either way. Here is a link for ip aliasing:

http://tldp.org/HOWTO/IP-Alias/index.html
 
Old 11-25-2006, 05:06 PM   #3
john_d13
Member
 
Registered: Apr 2004
Posts: 34

Original Poster
Rep: Reputation: 15
ty

the only part i dont get is the default gateway... what IP would this be,,,

I am given 3 IP's from ARIN whats hte default gateway
 
Old 11-25-2006, 06:00 PM   #4
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
How do you have this setup relative to your router?
 
Old 11-25-2006, 09:25 PM   #5
john_d13
Member
 
Registered: Apr 2004
Posts: 34

Original Poster
Rep: Reputation: 15
My server is located at a datacenter off a 1u rack. I beleive its connected to a switch via a Gig port.

They gave me 3 IP addresses 64.18.44.11, .12, and .13

I need to assign users an ip address, ssh and ftp login. All going to seperate home directories
 
Old 11-25-2006, 10:02 PM   #6
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
The data center should be able to provide with the default gateway/router for that subnet.
 
Old 11-26-2006, 02:34 AM   #7
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
You only set one default route. After all, it's the default. You do not need to separately set routes for IPs on the same subnet.

Second point, no one gets IPs directly from ARIN... well, OK the very large carriers do, but not individuals. ARIN assigns huge netblocks to ISPs and backbone carriers, and they sub-divide the IPs among their customers. That's just a nit-pick.

Last point, just connecting to a particular service on a different IP doesn't mean you go to a different directory. If you have 3 IPs, all your services are going to listen on each IP by default, so the same SSH daemon will listen on all three IP addresses, the same FTP daemon will be on all 3, etc. You need to have separate usernames in order to keep their information separate. You could define a different config file for each daemon for each of the 3 IPs, but why? That would be a pain. Just having separate users will accomplish that.

If you want to run the game servers on separate IPs in order to use the default server port, that's fine (but in most cases probably not necessary). You'll have to define which IP to use in the game server config file.
 
Old 11-26-2006, 09:54 AM   #8
john_d13
Member
 
Registered: Apr 2004
Posts: 34

Original Poster
Rep: Reputation: 15
TY Chort u are correct. In my game startup paramaeter I add, +ip xx.xx.xx.xx

My question would be, how does my linux box know to listen to those IP's given to me or how does it know their available. IP aliasing ? I guess it knows after i configure those ip's in eth0 via the post above correct?

do I have to configure apache to listen to those ip's also ?

They are being given to me by a big company that owns the racks at the data center. ARIN is not giving them to me personally
 
Old 11-27-2006, 04:54 AM   #9
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
IP aliasing is how your server knows it has the additional IPs. SSH and Apache will listen on all the IPs by default.
 
  


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
client's IP address in server? hegdeshashi Linux - Networking 2 01-05-2006 03:15 AM
DHCP Server address srbbabu Linux - Networking 1 11-05-2005 09:33 PM
Server Changes IP Address Magsol Linux - Networking 11 03-25-2005 06:57 PM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM
Server IP Address ptreves Linux - Hardware 3 06-18-2004 01:44 PM

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

All times are GMT -5. The time now is 11:17 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