bind multiple IP adresses from different subnets ?

bind multiple IP adresses from different subnets ?

Postby smartmeister » Wed Dec 26, 2012 12:56 am

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
smartmeister
 
Posts: 9
Joined: Sun Apr 15, 2012 9:45 am

Re: bind multiple IP adresses from different subnets ?

Postby fvdw » Wed Dec 26, 2012 10:52 am

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
fvdw
Site Admin - expert
 
Posts: 13245
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: bind multiple IP adresses from different subnets ?

Postby smartmeister » Wed Dec 26, 2012 4:00 pm

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.
smartmeister
 
Posts: 9
Joined: Sun Apr 15, 2012 9:45 am

Re: bind multiple IP adresses from different subnets ?

Postby fvdw » Wed Dec 26, 2012 4:23 pm

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.
fvdw
Site Admin - expert
 
Posts: 13245
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: bind multiple IP adresses from different subnets ?

Postby smartmeister » Wed Dec 26, 2012 6:03 pm

thank you, that worked as expected !

I didn't know this method for editing interfaces, very kind of you :)
smartmeister
 
Posts: 9
Joined: Sun Apr 15, 2012 9:45 am


Return to Lacie Network Space vs1

Who is online

Users browsing this forum: No registered users and 5 guests

cron