Friday, September 14, 2007

Komut satırında IP değiştirmek

Linux da, root yetkileri ile bu işlem için kullanmamız gereken komut şu şekilde:

ifconfig eth0 192.168.x.x netmask 255.255.255.0 up
route add default gw 192.168.x.x

DHCP sunucudan IP almak icin ise:
dhclient eth0
Benzer işlem, güncel Windows sürümlerin de ise Administrator yetkileri ile:
netsh interface ip set address local static 192.168.x.x 255.255.255.0 192.168.x.x 1
Sondaki 192.168.x.x gateway olan IP niz.
DHCP sunucusundan IP almak gerekirse:
netsh interface ip set address "Local Area Connection" dhcp

No comments: