အင္တာနက္နဲ သူအတြက္ အနည္းငယ္ေျပာျကည့္မယ္ .. လင္းနစ္မွာလည္း ၀င္းဒိုးအတိုင္းပါပဲ ဒါေပမယ့္ သူကေတာ့ ipconfig မဟုတ္ေတာ့ပဲ ifconfig ျဖစ္သြားတာပါ ..
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:22:15:a1:fb:0e
inet addr:192.168.1.125 Bcast:192.168.2.12 Mask:255.255.255.0
inet6 addr: eb0:ff66:ab08:0963:badc:afe0:3796:0012/64 Scope:Global
inet6 addr: fec0::b:222:15ff:fea1:fb0e/64 Scope:Site
inet6 addr: eb0:ff66:ab08:0963:badc:afe0:3796:0012/64 Scope:Global
inet6 addr: eb0:ff66:ab08:0963:badc:afe0:3796:0012/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:115604 errors:0 dropped:0 overruns:0 frame:0
TX packets:4438 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14199814 (14.1 MB) TX bytes:458319 (458.3 KB)
Interrupt:27 Base address:0x5000
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:16436 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:0
RX bytes:240 (240.0 B) TX bytes:240 (240.0 B)
အဲဒီမွာစျပီးေတြရမွာကေတာ့ Link encao: Ethernet ဆိုတာပါပဲ .. သူက LAN interface ကိုျပတာပါ .. အကယ္လို WAN သံုးေနတာဆိုရင္ေတာ့ PPP ေပါ့ ..ေနာက္ HWaddr ဆိုတာကေတာ့ hardware address (MAC) ကိုေျပာတာပါ ..ေနာက္ inet addr ဆိုတာကေတာ့ IPv4 အတြက္ပါ .. inet6 addr ကေတာ့ IPv6 အတြက္ပါ . RX packets ဆိုတာ receive packets .... TX packets ကေတာ့ transmitted packets ပါ .. ..
မွတ္ခ်က္ ... အမ်ားစုအားျဖင့္ ကြန္ပ်ူတာ ေတာ္ေတာ္မ်ားမ်ားမွာ IP version 4 ip address ကိုသံုးပါတယ္ .. IP version 4 ဆိုတာကေတာ့ ip address 4 billion ေလာက္သံုးနိုင္တာကိုေျပာတာပါ ...IPv6 ကေတာ့ အိုင္ပီအမ်ားျကီးကို အေထာက္အကူျပုနိုင္ပါတယ္ .. Migration to IPv6 goes slowly လိုေျပာပါတယ္ .. ဒါေပမယ့္လည္း .... အဖြဲအစည္းေတြမွာ နက္၀ါဒ္ေတြခ်ိန္းေျပာင္းမယ္ဆိုရင္ေတာ့ သံုးျကပါတယ္ .. လင္းနစ္ကဒီဗားရွင္းကို အျပည့္အစ support လုပ္ပါတယ္ .. Distro အမ်ားစုကလည္း enable default ပါလာျပီးသားပါ .. IP 6 က hexadecimal နဲတြက္ခ်က္တာျဖစ္လုိ ဥပမာအားျဖင့္ feb0:ff66:ab08:0963:badc:afe0:3796:0012 လိုေဖာ္ျပပါတယ္ .. ဒါေပမယ့္ ip4 မွာေတာ့ ခုနက အိုင္ပီကိုဘယ္လိုျပလည္းဆိုေတာ့ 129.13.57.192 လိုျပတာပါ ..
Configuring a network card with ifconfig
မိမိကြန္ထဲမွာ IP address ရွိျပိးသားဆိုေမယ့္ အိုင္ပီေျပင္းဖိုလိုလာတဲ့ အခါမွာေတာ့ ဒီေကာင္ကိုသံုးပါတယ္ .. နက္၀ါဒ္ကဒ္ကို eth ဆိုျပီ ဖတ္ပါတယ္ လင္းနစ္မွာ တစ္ခုတည္းဆိုရင္ေတာ့ default အေနနဲ eth0 လို သိပါတယ္ .. ၂ ခုဆိုရင္ေတာ့ eth0 , eth1 ေပါ့ ကဲေျပာင္းျကည့္မယ္ ..
# ifconfig eth0 192.168.1.125
ဒါဆိုရင္ေတာ့ အိုင္ပီေျပင္းသြားပါျပီ .. သူအတြက္ subnet mask က default (255.255.255.0) ပါ ..
အကယ္လို ေျပာင္းမယ္ဆိုရင္ေတာ့
# ifconfig eth0 192.168.1.125 netmask 255.255.255.0 ပါ
Bring interface up and down eth0
အိုင္ပီခ်ိတ္ေတာ့မယ္ဆိုရင္ သံုးတာကေတာ့ up and down ပါ
# ifconfig eth0 down
# ifconfig eth0 up
ေနာက္တစ္မ်ိုးကေတာ့
# ifup
# ifdown
ဆိုလည္းအတူတူပါပဲ
Command with IP
# ip address show
# ip link show
Ubuntu မွာ အိုင္ပီေတြကို /etc/network/interfaces ေအာက္မွာ သိမ္းထားပါတယ္ ..
DNS sever name ကိုေတာ့ /etc/resolv.conf ေအာက္မွာသိမ္းထားပါတယ္
# cat /etc/resolv.conf
namesever 192.168.1.10
namesever 193.76.234.36
search blackhawk.com
IP testing
မိမိ အင္တာနက္ကို စမ္းမယ္ဆိုရင္ေတာ့
# traceroute www.ubuntu.com
# netstats -platune
# nmap 192.168.1.32
option ေတြကိုေတာ့ man page ထဲမွာ သြားျကည့္လိုက္ပါ ..
0 မွတ္ခ်က္:
Post a Comment