Editor Login | Register
Ekle

> Bilgisayar > Linux
Bir Ethernet’e 10 Farkli IP Adresi Atamak. - Linux - Bilgisayar -
ChayLaq
(Date : 12.11.2007 21:45:49)


Bir Ethernet’e 10 Farkli IP Adresi Atamak.
Diyelim systemde bazi denemeler yapmak istiyorunuz. Ama 1 tane ethernet kartiniz var. Oysa size diyelim 10 tane IP adresi lazim:-)) Hani olurya, deneme bu. Ama sorun degil :-)

Büyük ihtimal ile Kernelden IP Aliasing opsiyonu isaretlenmis bir sekilde kurulmustur. Eger bu asagidaki komutlar calismazsa , ozaman yeni bir kernel derleyip IP Aliasing opsiyonunu aktiv hale getirmeniz lazim.

Diyelim ki bir tane eth0 var:

Simdi bu karta 10 tane IP adresi verelim :

ifconfig eth0:0 192.168.1.1
ifconfig eth0:1 192.168.1.2
ifconfig eth0:2 192.168.1.3
ifconfig eth0:3 192.168.1.4
ifconfig eth0:4 192.168.1.5
ifconfig eth0:5 192.168.1.6
ifconfig eth0:6 192.168.1.7
ifconfig eth0:7 192.168.1.8
ifconfig eth0:8 192.168.1.9
ifconfig eth0:9 192.168.1.10


Eger daha cok bilgi almak istiyorsaniz, kernel sourcelerinin oldugu

Documentation/networking/alias.txt.  dosyasini dikkatlice inceleyin..



Derecelendir
Kaynak www.cyber-warrior.org
İçerik İhbarı
Bağlantılar: bilgininefendisi.net

Open Source Document Project AUP&TOS