Pages

Thursday, July 15, 2010

பாடம் 3 : லினக்ஸ் networking command

இந்த பாடத்தில் சில networking command னை பற்றி பார்க்க போறோம்.

ethtool etho


இந்த command eithernet interface இன் status நை தெரிந்துகொள்ள உதவுகின்றது

உதாரணம்:-
chandru@chandru-laptop:~$ ethtool

iwconfig eth1


இந்த command wireless status னை தெரிந்துகொள்ள உதவும்

உதாரணம்:-

chandru@chandru-laptop:~$ iwconfig eth1

iwlist scan

இந்த command wireless range னை தெரிந்து கொள்ள உதவும்

உதாரணம்:-

chandru@chandru-laptop:~$ iwconfig eth1
eth1 No such device

iwlist scan

இந்த command network interface னை list out பண்ணி காட்டும்

உதாரணம்:-

chandru@chandru-laptop:~$ iwlist scan
lo Interface doesn't support scanning.

eth0 Interface doesn't support scanning.

wlan0 Failed to read scan data : Network is down

usb0 Interface doesn't support scanning.

ip link show

இந்த command network interface னை தெரிந்துக்கொள்ள உதவும்.

உதாரணம் : -

chandru@chandru-laptop:~$ ip link show
1: lo: mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether 54:42:49:0d:76:7a brd ff:ff:ff:ff:ff:ff
3: wlan0: mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 78:dd:08:c6:96:a9 brd ff:ff:ff:ff:ff:ff
5: usb0: mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 02:80:37:0a:03:00 brd ff:ff:ff:ff:ff:ff

ip addr show

இந்த command ip address interface னை தெரிந்துக்கொள்ள உதவும்.

உதாரணம்:-
chandru@chandru-laptop:~$ ip addr show
1: lo: mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether 54:42:49:0d:76:7a brd ff:ff:ff:ff:ff:ff
3: wlan0: mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 78:dd:08:c6:96:a9 brd ff:ff:ff:ff:ff:ff
5: usb0: mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 02:80:37:0a:03:00 brd ff:ff:ff:ff:ff:ff
inet 175.40.19.190/30 brd 175.40.19.191 scope global usb0
inet6 fe80::80:37ff:fe0a:300/64 scope link
valid_lft forever preferred_lft forever

ip route show

இந்த command routing table னை திரையில் காண்பிக்கும்.

உதாரணம் :-
chandru@chandru-laptop:~$ ip route show
175.40.19.188/30 dev usb0 proto kernel scope link src 175.40.19.190 metric 1
169.254.0.0/16 dev usb0 scope link metric 1000
default via 175.40.19.189 dev usb0 proto static

hostname -i

இந்த command hostname இன் local ip adddress னை திரையில் காண்பிக்கும்.

உதாரணம்:-
chandru@chandru-laptop:~$ hostname -i
127.0.1.1

netstat -tupl

இந்த command கணினியில் உள்ள அணைத்து இன்டர்நெட் service னை தெரிவிக்கும்.

உதாரணம்:-
chandru@chandru-laptop:~$ netstat -tupl
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost:ipp *:* LISTEN -
tcp6 0 0 localhost:ipp [::]:* LISTEN -
udp 0 0 *:bootpc *:* -
udp 0 0 *:mdns *:* -
udp 0 0 *:49055 *:*

netstat -tup

இந்த command நிலுவையில் உள்ள connection திரையில் காண்பிக்கும்.

உதாரணம்:-
chandru@chandru-laptop:~$ netstat -tup
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 1 0 chandru-laptop.lo:42410 WHOIS.ANYCAST-FO.:whois CLOSE_WAIT 25263/whois
tcp 0 0 chandru-laptop.lo:43453 lxer.com:www TIME_WAIT -
tcp 0 0 chandru-laptop.lo:33483 209.85.132.104:www ESTABLISHED 24703/firefox-bin
tcp 0 0 chandru-laptop.lo:43976 209.85.132.118:www ESTABLISHED 3826/yarssr
tcp 0 0 chandru-laptop.lo:33377 tx-in-f121.1e100.ne:www ESTABLISHED 3826/yarssr
tcp 0 0 chandru-laptop.lo:43975 209.85.132.118:www ESTABLISHED 3826/yarssr
tcp 4036 0 chandru-laptop.lo:53241 WHOIS.ANYCAST-FO.:whois CLOSE_WAIT 25268/whois

2 comments: