Linux’te IP Adresi Öğrenme
Linux’te sistem IP adresini öğrenmemiz için öncelikle ethernet kablosunun takılı olması gerekir (veya Wifi bağlantısının kurulması gerekir.).
Linux’te sistem IP adresini öğrenmek için “ifconfig” komutunu kullanıyoruz.
- Linux terminalde “ifconfig” yazıp “Enter”a basıyoruz.
eth0 Link encap:Ethernet HWaddr 54:10:ec:a9:cb:52
inet addr:192.168.1.60 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:28 Base address:0x8000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:140 (140.0 B) TX bytes:140 (140.0 B)
Bilgisayar IP adresi 192.168.1.60 olduğunu görüyoruz.
Cevapla
Want to join the discussion?Feel free to contribute!