[rešeno] Več IP-jev na enem systemu
LP
Na razpolago imam več ipjev uporabljam samo enega...
Zanima me pa, če sa da narediti tako da lahko uporabljam več ipjev na enem systemu?
Trenutne nastavitve imam pa takšne
# The primary network interface
auto eth0
iface eth0 inet static
address xxx.185.208.xxx
netmask 255.255.255.0
network xxx.185.208.xxx
gateway xxx.185.208.xxx
broadcast xxx.185.208.xxx
# dns-* options are implemented by the resolvconf package, if installed
#dns-nameservers
#dns-search linux
Na razpolago imam več ipjev uporabljam samo enega...
Zanima me pa, če sa da narediti tako da lahko uporabljam več ipjev na enem systemu?
Trenutne nastavitve imam pa takšne
# The primary network interface
auto eth0
iface eth0 inet static
address xxx.185.208.xxx
netmask 255.255.255.0
network xxx.185.208.xxx
gateway xxx.185.208.xxx
broadcast xxx.185.208.xxx
# dns-* options are implemented by the resolvconf package, if installed
#dns-nameservers
#dns-search linux
Komentarji
V /etc/network/interfaces moras dodat virtualni interface, npr. :
Kjer je eth0:0 virtualni interface za eth0. Lahko jih dodaš še več (eth0:1, eth0:2,...)
ne pozabi na:
Preveri če stvar deluje z ifconfigom
navoljo imam ipje
IP-ji:
91.185.208.208/29
Uporabni: 210-214
GW: 91.185.208.209
maska: 255.255.255.248
V interfaces imam pa takole
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 91.185.208.214
netmask 255.255.255.248
network 91.185.208.0
gateway 91.185.208.209
broadcast 91.185.208.255
# dns-* options are implemented by the resolvconf package, if installed
#dns-nameservers 91.185.208.209
#dns-search linux
Kaj morem sedaj dodati....
Tole bo pomoje delal, nimam pa pojma kako naprej, ker se s tem še nikoli nism igral. Če ti uspe poročaj.