LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how set a few IP on comp? (https://www.linuxquestions.org/questions/linux-newbie-8/how-set-a-few-ip-on-comp-153343/)

sawoy 03-04-2004 02:14 AM

how set a few IP on comp?
 
How i can to set a few IP on comp?
i have Debian 3.0

twantrd 03-04-2004 02:23 AM

Take a look at your /etc/network/interfaces file.

iface eth0 inet static
address .....
netmask .....
network .....
broadcast .....
gateway .....

iface eth1 inet static
.
.
.
.

and so on. Afterwards, restart your network. Hope that helps.

-twantrd

sawoy 03-04-2004 03:03 AM

how restart my network? :) i'm newbie
and netmask and other' value dont change (except address)?

sawoy 03-04-2004 03:19 AM

it doesn't work

sawoy 03-04-2004 05:51 AM

/etc/network/interfaces

...

auto eth0
iface eth0 inet static
address 10.1.197.181
netmask 255.255.255.0
network 10.1.197.0
broadcast 10.1.197.255
gateway 10.1.1.1

auto eth0:0
iface eth0:0 inet static
address 10.1.197.182
netmask 255.255.0.0
#network 10.1.197.0
#broadcast 10.255.255.255
#gateway 10.1.1.1

ifconfig see it but
when i restart network ( /etc/init.d/networking restart)
print:

...network unreacheble...

what i must do?


All times are GMT -5. The time now is 12:15 PM.