[cod] 2 servers on one machine -Help, Friday deadline!

Eduardo E. Silva esilva at silvex.com
Tue Jan 13 17:31:38 EST 2004


I also forgot to ask to do a ethtool eth0 then eth1 anbd ethtool -i  eth0
then eth1. You have some collions. Are this cards in a swtich or hub ? Do
you have  a bond driver in them ? can you ping each card ? try a telnet ot
ssh to each card. Do these IP address resolve to your local dns servers.

do also a cat /etc/hosts, /etc/nsswitch.conf and /etc/resolv.conf.

Sorry for all of these...but these should be working.

Theo Macris said:
> Here is some additional info:
>
> Current Startup scripts:
> #!/bin/sh
> ./cod_lnxded +set net_ip 192.168.0.8 +set dedicated 1 +exec
> dedicated1.cfg +map_rotate
>
> #!/bin/sh
> ./cod_lnxded +set net_ip 192.168.0.9 +set dedicated 1 +exec
> dedicated2.cfg +map_rotate
>
> Two separate 1000mb NICs (overkill, I know, but its what I had)
>
> [cod at supermicro-1 cod]$ netstat -anlp
> udp        0      0 192.168.0.9:28960       0.0.0.0:*
> 13215/cod_lnxded
> udp        0      0 192.168.0.8:28960       0.0.0.0:*
> -
>
> Wierd, only one has PID.
>
> [cod at supermicro-1 cod]$ sar -n DEV
> Average:           lo      0.08      0.08      8.79      8.79
> 0.00      0.00      0.00
> Average:         eth0      0.07      0.03     11.87      5.38
> 0.00      0.00      0.00
> Average:         eth1      0.04      0.00      9.11      0.00
> 0.00      0.00      0.00
>
> Both are active.
>
> [root at supermicro-1 root]# ifconfig -a
> eth0      Link encap:Ethernet  HWaddr 00:02:B3:92:B4:95
>           inet addr:192.168.0.8  Bcast:192.168.0.255
> Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:24157 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:8145 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:6 txqueuelen:1000
>           RX bytes:3396473 (3.2 Mb)  TX bytes:1213258 (1.1 Mb)
>           Interrupt:11 Base address:0xb000 Memory:f7020000-f7040000
>
> eth1      Link encap:Ethernet  HWaddr 00:07:E9:11:E7:88
>           inet addr:192.168.0.9  Bcast:192.168.0.255
> Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:4612 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:1012 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:772943 (754.8 Kb)  TX bytes:64768 (63.2 Kb)
>           Interrupt:10 Base address:0xc400 Memory:f9100000-f9120000
>
>
> ---- Original Message ----
> From: esilva at silvex.com
> To: cod at icculus.org
> Subject: Re: [cod] 2 servers on one machine -Help, Friday deadline!
> Date: Tue, 13 Jan 2004 09:31:53 -0800 (PST)
>
>>Do a netstat -r, ifconfig -a and a sar -n DEV to see which NICs is
>>actutally doing all of the network traffic -- No just COD. Are these
>>100Mbs ? 1000Mbs ? NICs.
>>
>>Christopher Kunz said:
>>> cod at kaleplek.net wrote:
>>>
>>>> Hi there,
>>>>
>>>> Yoe can see in your logfile that both servers are using the same
>>port.
>>>> What you have to do is setup both servers on different ports.
>>>
>>> Sorry, but I really think that's nonsense. Why should there be any
>>> necessity to use different ports if one uses different IPs in the
>>first
>>> place?
>>>
>>> What _I_ see from the startup log is that the boxes are using the
>>same
>>> IP, which is the original reason for the posting.
>>>
>>> I have tried this with the current server release and a box that
>>has one
>>> interface with multiple IPs bound to it:
>>>
>>> ./cod_lnxded +set net_ip 62.4.81.209 +exec cod_server.cfg +set
>>net_port
>>> 28960 +set ttycon 0
>>>
>>> and
>>>
>>> ./cod_lnxded +set net_ip 62.4.81.207 +exec cod_server.cfg +set
>>net_port
>>> 28960 +set ttycon 0
>>>
>>> have this effect:
>>>
>>> udp        0      0 62.4.81.207:28960       0.0.0.0:*
>>>         11679/cod_lnxded
>>> udp        0      0 62.4.81.209:28960       0.0.0.0:*
>>>         11661/cod_lnxded
>>>
>>> So far, so good. As I fire up my copy of COD to see if both show up
>>in
>>> the server browser, I use the string "stormix.de" to look for the
>>> servers. Shazam, both show up in the in-game server browser.
>>>
>>> So, probably the above lines work, and of course you won't need to
>>set
>>> servers that are using different IPs to different ports.
>>>
>>> HTH,
>>>
>>> --ck
>>>
>>
>>
>>--
>>Thanks,
>>
>>Ed Silva
>>Silvex Consulting Inc.
>>esilva at silvex.com
>>(714) 504-6870 Cell
>>(714) 897-3800 Fax
>>
>
>
>


-- 
Thanks,

Ed Silva
Silvex Consulting Inc.
esilva at silvex.com
(714) 504-6870 Cell
(714) 897-3800 Fax




More information about the Cod mailing list