LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how can have multiple ip's on one LAN card ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-can-have-multiple-ips-on-one-lan-card-4175447510/)

contozo 01-28-2013 03:17 AM

how can have multiple ip's on one LAN card ?
 
Hi all,
i am pretty new to linux and wann aknow how can have multiple ip's on single interface. I tried with ifconfig , but after reboot i lose all settings. How i can make it permanently ?

jschiwal 01-28-2013 03:21 AM

Which distro are you using? Some use ifcfg.* config files which set variables. Some use a script which contains ifconfig commands.

contozo 01-28-2013 03:24 AM

I use Slackware 14.

jschiwal 01-28-2013 03:37 AM

Edit your network configuration script at
/etc/rc.d/rc.inet1.conf

contozo 01-28-2013 04:09 AM

and what actually have to change there ? When open it i see like
#config info for eth0:
addr
mask
dhcp
....
#config information for et1:
....
...
and so on

on the bottom see default gateway.

i changed
#conf info for eth1: to eth1:1
but think it's comment coz of "#"

bathory 01-28-2013 04:26 AM

Take a look at this example.

contozo 01-28-2013 04:49 AM

Thank you very much :)


All times are GMT -5. The time now is 11:36 PM.