AW: AW: AW: [mohaa] Server Requirements, Questions & Traffic
luke
lsalsich at cox.net
Wed Aug 20 21:08:59 EDT 2003
Thanks Guys. I know how to alias IP's - I just always thought you
couldn't alias ports. Luckily, I love to learn and am willing to admit
you all are clearly right.
-----Original Message-----
From: MOH at digitalnines.com [mailto:MOH at digitalnines.com]
Sent: Wednesday, August 20, 2003 8:30 PM
To: mohaa at icculus.org
Subject: Re: AW: AW: AW: [mohaa] Server Requirements, Questions &
Traffic
If you are unsure of how to add addional ips to a machine, follow this
small
tutorial:
Go to /etc/sysconfig/network-scripts/ as root
Make a new file called
# pico ifcfg-eth0-range0
Add the following lines and edit to match your ip addresses. The
following shows how to add 3 ip addresses. IPADDR_START=a.b.c.d2
IPADDR_END=a.b.c.d5 CLONENUM_START=0 NETMASK=w.x.y.z
After you are done editing do:
#ifup ifcfg-eth0-range0
**Note: The "CLONENUM_START" line is what determines where to start the
aliasing. For example if you want to start at eth0:5 then CLONENUM_START
would equal 5.
----- Original Message -----
From: "Eric Koldeweij" <eric at no-sense.net>
To: <mohaa at icculus.org>
Sent: Wednesday, August 20, 2003 7:46 PM
Subject: Re: AW: AW: AW: [mohaa] Server Requirements, Questions &
Traffic
>
>
> luke wrote:
>
> >Have you done this? My understanding of Linux is that this cant work.
> >Of course you have to alias the device to use different IP's on the
> >same NIC. But you cant have multiple processes running on the same
> >port on the same network card, regardless of whether you alias the
> >IP's. I could be wrong, though......
> >
>
> Unfortunately (well, fortunately for the community) you're wrong.
> Isn't linux great? ;) What you cannot do is bind the ANY address
> (listen on every IP addy) more than once on the same port. If you
> don't specify an IP addy on the cmd line using the +set net_ip
> argument, MOHAA will bind the ANY address, which means it'll listen on
> all IP addresses at once. In that case you cannot use the same port
> again (they're all taken by the first MOHAA). Use the +set net_ip and
> you can run as many servers on the same port as your server has IP
> addresses.
>
> To see if your server uses a single IP addy or all, use "netstat
> -uan". A MOHAA server listening on all IP addys will show up (among
> other lines)
as
>
> udp 0 0 0.0.0.0:12203 0.0.0.0:*
>
> Otherwise something like
>
> udp 0 0 213.206.85.18:12203 0.0.0.0:*
>
> will show up, the 0.0.0.0 replaced by the IP addy it's listening on.
>
> Hope this helps anyone struggling with this :)
>
> Eric.
>
More information about the Mohaa
mailing list