IP aliase loomine Ubuntus: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Ukaldaru (talk | contribs)
No edit summary
Ssurva (talk | contribs)
No edit summary
Line 17: Line 17:
sudo /etc/init.d/networking restart  
sudo /etc/init.d/networking restart  
</pre>
</pre>
[[Category:IT infrastruktuuri teenused]]

Revision as of 13:39, 5 October 2009

IP aliase loomiseks tuleb avada fail /etc/network/interfaces:

sudo nano /etc/network/interfaces

ja sisestada aliase võrguaadressid:

auto eth0:0
iface eth0:0 inet static
name Ethernet alias LAN card
address <IP aadress, näiteks 192.168.1.11>
netmask <võrgu mask, näiteks 255.255.255.0>
broadcast <broadcast aadress, näiteks 192.168.1.255>
network <võrgu aadress, näiteks 192.168.1.0>

Peale faili salvestamist tuleb võrguliides taaskäivitada:

sudo /etc/init.d/networking restart