Page 1 of 1

bind multiple IP adresses from different subnets ?

PostPosted: Wed Dec 26, 2012 12:56 am
by smartmeister
Hello,

I would like to bind both 192.168.x and 10.0.x IP adresses to my lacie interface, but i can't figure out the exact location of the interface configuration file in order to edit it (i was looking for something like /etc/network/interfaces or /etc/sysconfig but it's obviously not there)

Any help ?

Merry christmas to all of you guys and gals ;)

PS: the Minidlna feature breath new life into this aging NAS, it works like a charm with a samsung smartTV

Re: bind multiple IP adresses from different subnets ?

PostPosted: Wed Dec 26, 2012 10:52 am
by fvdw
smartmeister wrote:Hello,

I would like to bind both 192.168.x and 10.0.x IP adresses to my lacie interface, but i can't figure out the exact location of the interface configuration file in order to edit it (i was looking for something like /etc/network/interfaces or /etc/sysconfig but it's obviously not there)

Any help ?

Merry christmas to all of you guys and gals ;)

PS: the Minidlna feature breath new life into this aging NAS, it works like a charm with a samsung smartTV


not sure what you actually try to do :scratch you must explain somewhat more

Re: bind multiple IP adresses from different subnets ?

PostPosted: Wed Dec 26, 2012 4:00 pm
by smartmeister
thanks for getting back t o me.

Basically i want to assign both 192.168.1.8/24 and 10.0.0.8/24 to the eth0 of my lacie : The nas will be available in both subnets

To do so, i should follow this simple tutorial, but i can't find the file to edit.

Re: bind multiple IP adresses from different subnets ?

PostPosted: Wed Dec 26, 2012 4:23 pm
by fvdw
sorry but this is not a full blown linux system so what works on "redhat" for which the tutorial was not necessary works on our system.

But you can add any ip you like using if config command
For instance this command will make the nas respond to ip 192.168.1.230
Code: Select all
ifconfig eth0:1 192.168.1.230 netmask 255.255.255.0


You can add as many as you like by using a new sequence number behind eth0:x
Just giving the command ifconfig will list all interface defined

So you will need to make a command file if you this to happen at boot.

Re: bind multiple IP adresses from different subnets ?

PostPosted: Wed Dec 26, 2012 6:03 pm
by smartmeister
thank you, that worked as expected !

I didn't know this method for editing interfaces, very kind of you :)