Jump to content

Add second IP to interface


lal12

Recommended Posts

Hello,

 

I am looking for a way to add a second IP to the unraid main interface. 

I guess I could to "ip addr add x.x.x.x/24 dev br0" but this of course will only be kept until the next boot.

Is there a GUI way or another recommend way via a terminal?

Edited by lal12
Link to comment

You could add the command to the go file that's located in the config folder of your boot flash device to make it survive a reboot. I don't know of any GUI-based way of adding a second IP address to the main interface and I don't know if there will be any undesirable side effects of doing so. Most people would add a second NIC.

Link to comment
4 hours ago, Ron said:

What are the advantages of having 2 IP addresses...my MB also supports 2 IPs.

Well, in my case I set up Unraid for a small business as their storage solution, since they needed something, which has some pro features, but still is easily manageable by a not that experienced guy which is working for them. However I setup a new structure which was different from their old setup. But some devices are configured and managed by an external company to use an specific IP for their network share, which was not possible (or wished) to reconfigured or changed, so I needed to add a second IP. All that I was told after I was done with my original setups, so the easiest way was to add the additional IP.

But I really wondered that it was not possible through Unraid itself, since it is a really common feature, you find it in any PC or Server with WebGUI.

BTW what's your "MB"?

Edited by lal12
  • Like 1
  • Upvote 1
Link to comment

Thanks for the info, I was wondering if you could run more data across the ports with dual plans. I just checked and the new Motherboard I am running only has 1 lan port...my old mini board had 2 Lan ports. I think my friend has it. I will ask him.

Sent from my SM-T550 using Tapatalk

Link to comment

Well I actually have two NICs on my server, which in theory could be bonded (I guess unraid can't do that) but what I wanted was two IPs on one NIC, which is a different thing. Unraid does give you the option to set a separate IP on each NIC, so you probably could set up each NIC with a different IP and do some kind of load balancing, however not that great as a solution I would say.

Edited by lal12
  • Like 1
Link to comment
33 minutes ago, John_M said:

Yes it can. Config -> Network Config. It's enabled by default, in active backup mode.

OK I didn't know that, but still active backup mode is not the thing @Ron looked for, it only uses the slave NIC on failure of the first one. He wants higher speed so he would need one of the existing balance modes.

  • Like 1
Link to comment
13 hours ago, John_M said:

Active backup mode is the default for a good reason - when you first boot up Unraid it doesn't matter which port you plug your network cable into. You can, of course, change it to something else. There are various load balancing modes and a true link aggregation mode if your switch supports it. 

Ah ok, I misunderstood you, I got that there only is active backup available.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...