Koozali.org: home of the SME Server

assign multiple ips to internal nic?

Offline davelister

  • *
  • 51
  • +0/-0
    • IgnitionJournal
assign multiple ips to internal nic?
« on: March 26, 2008, 03:30:09 AM »
g'day

I have tried searching but can not find an answer so I was hoping someone might be able to steer me in the right direction for this one.

I use SME as a lanparty 'dhcp and game' server setup for charity organisations. However, due to a dedicated linux bug for steam software, you can not run mulitple game instances without running different ports for each instance (I know that isn't a bug) but the moment you change the port number of the game instance the port will no longer be displayed in the lan browser (that is the bug) unless the gamers manually add the server details themselves. No big problem I know, but many of the kids seem unable to figure that out!

So the easy solution is just to have one ip for each game instance - that way keeping the ports all standard, allowing the game server to appear in the lan browser as normal.

The problem is then how do I setup the 7.3SME server to have multiple IP's on the internal nic? BTW the server is running in server gaetway mode

Offline zatnikatel

  • *****
  • 190
  • +0/-0
Re: assign multiple ips to internal nic?
« Reply #1 on: March 26, 2008, 06:04:57 AM »
this should do the trick and you can have ifcfg-eth0:0 then ifcfg-eth0:1 ETC

cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0
nano /etc/sysconfig/network-scripts/ifcfg-eth0:0

DEVICE=eth0:0
BOOTPROTO=static
BROADCAST=192.168.0.255
IPADDR=192.168.0.101
IPV6ADDR=
IPV6PREFIX=
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes

/etc/init.d/network restart

then do an ifconfig to make sure it is there


eth0      Link encap:Ethernet  HWaddr 00:0C:29:5A:9C:41
          inet addr:192.168.0.100  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe5a:9c41/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:535 errors:0 dropped:0 overruns:0 frame:0
          TX packets:363 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:52498 (51.2 KiB)  TX bytes:66064 (64.5 KiB)
          Interrupt:177 Base address:0x1400

eth0:0    Link encap:Ethernet  HWaddr 00:0C:29:5A:9C:41
          inet addr:192.168.0.101  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:177 Base address:0x1400

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 b)  TX bytes:560 (560.0 b)

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: assign multiple ips to internal nic?
« Reply #2 on: March 26, 2008, 03:50:56 PM »
just remember that the above solution is not templatized

Ciao
Stefano

Offline zatnikatel

  • *****
  • 190
  • +0/-0
RE: just remember that the above solution is not templatized
« Reply #3 on: March 26, 2008, 04:14:23 PM »
that is true but it is a work around and i love to help people out as much as i can

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: RE: just remember that the above solution is not templatized
« Reply #4 on: March 26, 2008, 06:06:39 PM »
that is true but it is a work around and i love to help people out as much as i can
If you would do so you should seriously inform them with above advice that changes might get lost over reconfigurations, updates and installation of additional packages as it might leave them wondering why things might not be working anymore.

Now you are not providing advice, you are just providing a pointer. You could at least have mentioned the template system and it's implications as you seem to be aware of it.

Since SME Server is CentOS and thus Redhat based this might also be nice to read: http://manuals.fujitsu-siemens.com/fgm/pcl42a20-lx-cd2_6_2007/documents/manuals/En/GLS/hanet10/hanet253.html
« Last Edit: March 26, 2008, 06:12:33 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline zatnikatel

  • *****
  • 190
  • +0/-0
Re: RE: just remember that the above solution is not templatized
« Reply #5 on: March 26, 2008, 06:17:27 PM »
If you would do so you should seriously inform them with above advice that changes might get lost over reconfigurations, updates and installation of additional packages as it might leave them wondering why things might not be working anymore.

Now you are not providing advice, you are just providing a pointer. You could at least have mentioned the template system and it's implications as you seem to be aware of it.

Since SME Server is CentOS and thus Redhat based this might also be nice to read: http://manuals.fujitsu-siemens.com/fgm/pcl42a20-lx-cd2_6_2007/documents/manuals/En/GLS/hanet10/hanet253.html

sorry that is my fault i really need to put a Disclaimer at the end of my help as well because i know i am not always right the templates system i know but i would have to look in to how do that mod for multi ip address on one nic

Offline Jean-Philippe Pialasse

  • *
  • 2,907
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: assign multiple ips to internal nic?
« Reply #6 on: March 26, 2008, 11:29:07 PM »
this might be also interesting for server only mode, i will have a look on how to integrate this with template and masq.

thanks for the pointer

Offline byte

  • *
  • 2,183
  • +2/-0
Re: assign multiple ips to internal nic?
« Reply #7 on: March 26, 2008, 11:33:20 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!