Koozali.org: home of the SME Server

Second (Alias) IP HOWTO

Offline sonoracomm

  • *
  • 208
  • +0/-0
    • http://www.sonoracomm.com
Second (Alias) IP HOWTO
« on: March 13, 2006, 06:11:21 AM »
Hi folks,

I finally came across a reason to add a second (alias) IP address to the internal network interface...a new client has managed switches and VLANs.

So I did some research and I wrote a short HOWTO.  It's mighty short on flexibility, but it seems to work...so far.  

http://www.sonoracomm.com/index.php?option=com_content&task=view&id=128

There has to be a better way to do this...but this is all I could come up with on my own.  ;-)  Please let me know of any improvements or corrections and I'll fix the HOWTO.

Update: I have updated the howto for 802.1q VLAN.  It's more of a guide than a howto...

I also found this: http://no.longer.valid/phpwiki/index.php/Additional%20IP%20How%20To

Update: updated URL

G

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Second (Alias) IP HOWTO
« Reply #1 on: March 14, 2006, 02:03:12 AM »
Why not just add a line to your rc.local:
ipaddress add 192.168.0.2 dev eth0

Offline sonoracomm

  • *
  • 208
  • +0/-0
    • http://www.sonoracomm.com
Second (Alias) IP HOWTO
« Reply #2 on: March 14, 2006, 06:26:23 PM »
If you only add a line to rc.local, you would have to reboot or manually reenter the command from the keyboard any time the networking got restarted for any reason.

Frankly, I don't know if it would be a problem at all, but I was afraid to just add a line to rc.local.  In my case, it's a customer machine and 85 users go down if something goes wrong...

G

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Second (Alias) IP HOWTO
« Reply #3 on: March 14, 2006, 06:37:16 PM »
...makes no sense.

Offline sonoracomm

  • *
  • 208
  • +0/-0
    • http://www.sonoracomm.com
Second (Alias) IP HOWTO
« Reply #4 on: March 14, 2006, 07:05:05 PM »
It does make sense.  I just don't claim it makes total sense.  Nor do I ever tell any other poster their post "doesn't make sense"...it's rude.  Perhaps you don't care.

Here's an example:  From the command line, you type 'service network restart'.  If you only had an entry in rc.local, the second (alias) IP is now gone.  If you follow the howto, it's still there.

I don't know if any server-manager panels ever restart the networking, but if any of them do...

G

p.s.  I'm not familiar with the 'ipaddress add' command you specify, nor do I find it on a SME test box I have on hand.

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Second (Alias) IP HOWTO
« Reply #5 on: March 15, 2006, 12:12:28 AM »
Sorry I didn´t mean to be rude.
I meant it does not make sense modify if you´re afraid to break things.

I do care!

Offline vfr

  • 3
  • +0/-0
Re: Second (Alias) IP HOWTO
« Reply #6 on: January 16, 2009, 09:45:29 PM »
I have used this howto to add another IP address to my SME server. The problem is it doesn't work for DNS. I like to have one address for my ususl server functions and one address for gateway functions. Just as if the gateway had been a separate PC, wich it used to be before SME.

When I use the alias address as gateway address it works fine, but as DNS address it doesn't work. As DNS address I must use the "physical" address and not the alias.

Why? I thought an alias should be an alias under all circumstances. Can I change some config to get this to work?

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Second (Alias) IP HOWTO
« Reply #7 on: January 16, 2009, 10:35:59 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!

Offline FraunhoferIFF

  • *
  • 932
  • +0/-0
  • Widerstand ist Zwecklos !
    • http://www.magic-figo.de
Re: Second (Alias) IP HOWTO
« Reply #8 on: January 17, 2009, 05:36:04 PM »
How goes with IPTV. Telekom Entertain functioned on Vlan7. I have tried on console: vconfig add eth1 7 occur up to now without.
How can I integrate the Vlan7?

Thx

Marcel