วันเสาร์ที่ 5 กุมภาพันธ์ พ.ศ. 2554

Use the ip tool

Use the ip tool

The ip command is a powerful network debugging tool available to you
in Ubuntu. You may have already used this tool in other Linux
distributions. But, if not, start by reading:

$ man ip

As you can see this tool is designed to, "show/manipulate routing,
devices, policy routing and tunnels."

For instance, if you are wondering what your default route is (or are)
you can simply type:

$ ip route

This is actually short for "ip route show". Maybe you are wondering
out which interface packets will go to a certain address? A quick way
to find out is:

$ ip route get 128.223.32.35

Clearly you can substitute any IP address you wish above. This is
useful for boxes that have multiple network interfaces defined.

Maybe you want to be able to sniff packets coming across an interface
on your box. To do this you may wish to place your interface in
promiscuous mode. Often this requires updating a kernel parameter.
With the ip command you can do:

$ sudo ip link set eth0 promisc on

Note the use of "sudo" here as setting an interface requires admin
privileges. Now you can snoop the packets on the eth0 interface by
doing:

$ sudo tcpdump -i eth0

Be sure to read the man page for tcpdump if you want further information.


--
*

ข้อสอบครูชำนาญการพิเศษ *
ข้อสอบครูผู้ช่วย,สอบบรรจุครูผู้ช่วย,แนวข้อสอบครูผู้ช่วย,สอบครูผู้ช่วย,แนวข้อสอบครูผู้ช่วย,ครูผู้ช่วย,ข้อสอบบรรจุครู,ข้อสอบครูชำนาญการพิเศษ
*http://www.oopps.bloggang.com*
*
* ฟิสิกส์ ข้อสอบฟิสิกส์ บทเรียนฟิสิกส์ ฟิสิกส์ออนไลน์
โจทย์ฟิสิกส์ แบบฝึกหัดวิชาฟิสิกส์ โจทย์วิชาฟิสิกส์ โจทย์วิชาฟิสิกส์
http://thaiphysics.blogspot.com


* บทเรียนบทรัก ความรัก บทความความรัก ดูดวงความรัก นิยามความรัก
กลอนรัก เพลงรักhttp://love8love9.blogspot.com


* ความรัก บทความความรัก ดูดวงความรัก นิยามความรัก กลอนรัก
เพลงรักhttp://kongkoymusic.blogspot.com

ไม่มีความคิดเห็น:

แสดงความคิดเห็น