/l3/users/eb/2009/linux3/user :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 |
|
#mii-tool -F 10baseT-FD
|
#mii-tool eth0
eth0: 10 Mbit, full duplex, link ok |
#mii-tool eth0
eth0: 10 Mbit, full duplex, link ok |
#mii-tool eth0 -к
mii-tool: invalid option -- 'Ð' mii-tool: invalid option -- 'º' usage: mii-tool [-VvRrwl] [-A media,... | -F media] [interface ...] -V, --version display version information -v, --verbose more verbose output -R, --reset reset MII to poweron state -r, --restart restart autonegotiation -w, --watch monitor for link status changes -l, --log with -w, write events to syslog -A, --advertise=media,... advertise only specified media -F, --force=media force specified media technology media: 1000baseTx-HD, 1000baseTx-FD, 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, 10baseT-HD, (to advertise both HD and FD) 1000baseTx, 100baseTx, 10baseT |
#mii-tool eth0 -Ðr
restarting autonegotiation... |
#mii-tool eth0
eth0: no link |
#mii-tool eth0
eth0: negotiated 1000baseT-FD flow-control, link ok |
#ьmidiag
bash: midiag: command not found |
#apt-file update
Downloading complete file http://127.0.0.1:9999/debian/dists/sid/Contents-i386.gz |
#apt-file search mii
hwb: /usr/share/doc/hwb/html/connector/network/mii.html iceape-dev: /usr/include/iceape/transformiix/nsIXFormsUtilityService.h iceape-dev: /usr/include/iceape/transformiix/nsIXFormsXPathEvaluator.h icedove: /usr/lib/icedove/components/libtransformiix.so icedove-dbg: /usr/lib/debug/usr/lib/icedove/components/libtransformiix.so icedove-dev: /usr/include/icedove/transformiix/nsIXFormsUtilityService.h icedove-dev: /usr/include/icedove/transformiix/nsIXFormsXPathEvaluator.h iceowl: /usr/lib/iceowl/components/libtransformiix.so iceowl-dev: /usr/include/iceowl/transformiix/nsIXFormsUtilityService.h iceowl-dev: /usr/include/iceowl/transformiix/nsIXFormsXPathEvaluator.h ... wmii2-doc: /usr/share/doc/wmii2-doc/pdf/beginnersguide-en.pdf.gz wmii2-doc: /usr/share/doc/wmii2-doc/pdf/beginnersguide-es.pdf.gz wmii2-doc: /usr/share/doc/wmii2-doc/pdf/beginnersguide-it.pdf.gz wmii2-doc: /usr/share/doc/wmii2-doc/ps/beginnersguide-de.ps.gz wmii2-doc: /usr/share/doc/wmii2-doc/ps/beginnersguide-en.ps.gz wmii2-doc: /usr/share/doc/wmii2-doc/ps/beginnersguide-es.ps.gz wmii2-doc: /usr/share/doc/wmii2-doc/ps/beginnersguide-it.ps.gz yorick-data: /usr/share/yorick/i/fermii.i zsh: /usr/share/zsh/functions/Completion/Linux/_mii-tool zsh-beta: /usr/share/zsh-beta/functions/Completion/Linux/_mii-tool |
#apt-get install mii-diag
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. Suggested packages: nictools-pci nictools-nopci The following NEW packages will be installed: mii-diag 0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded. Need to get 19.0kB of archives. After this operation, 57.3kB of additional disk space will be used. Get:1 http://127.0.0.1 sid/main mii-diag 2.11-2 [19.0kB] Fetched 19.0kB in 0s (228kB/s) Selecting previously deselected package mii-diag. (Reading database ... 55411 files and directories currently installed.) Unpacking mii-diag (from .../mii-diag_2.11-2_i386.deb) ... Processing triggers for man-db ... Setting up mii-diag (2.11-2) ... |
#mii-diag eth0
Basic registers of MII PHY #0: 3100 792d 02a8 0380 0de1 c1e1 000d 2801. The autonegotiated capability is 01e0. The autonegotiated media type is 100baseTx-FD. Basic mode control register 0x3100: Auto-negotiation enabled. You have link beat, and everything is working OK. Your link partner advertised c1e1: 100baseTx-FD 100baseTx 10baseT-FD 10baseT. End of basic transceiver information. |
#mii-tool eth0
eth0: negotiated 1000baseT-FD flow-control, link ok |
#lspci
00:00.0 Host bridge: Intel Corporation 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02) 00:03.0 PCI bridge: Intel Corporation 82865G/PE/P PCI to CSA Bridge (rev 02) 00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02) 00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02) 00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02) 00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02) 00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2) 00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02) 00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02) 00:1f.2 IDE interface: Intel Corporation 82801EB (ICH5) SATA Controller (rev 02) 00:1f.3 SMBus: Intel Corporation 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02) 00:1f.5 Multimedia audio controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02) 01:01.0 Ethernet controller: Intel Corporation 82547EI Gigabit Ethernet Controller |
#find /sys -name \*01:01.0\*
/sys/devices/pci0000:00/0000:00:03.0/0000:01:01.0 /sys/bus/pci/devices/0000:01:01.0 /sys/bus/pci/drivers/e1000/0000:01:01.0 |
#find /sys -name \*01:01.0\* | grep driver
/sys/bus/pci/drivers/e1000/0000:01:01.0 |
#modinfo e1000
filename: /lib/modules/2.6.29-2-686/kernel/drivers/net/e1000/e1000.ko version: 7.3.21-k3-NAPI license: GPL description: Intel(R) PRO/1000 Network Driver author: Intel Corporation, <linux.nics@intel.com> srcversion: B63893FA4766AF8E0455964 alias: pci:v00008086d000010B5sv*sd*bc*sc*i* alias: pci:v00008086d00001099sv*sd*bc*sc*i* alias: pci:v00008086d0000108Asv*sd*bc*sc*i* alias: pci:v00008086d0000107Csv*sd*bc*sc*i* ... parm: XsumRX:Disable or enable Receive Checksum offload (array of int) parm: TxIntDelay:Transmit Interrupt Delay (array of int) parm: TxAbsIntDelay:Transmit Absolute Interrupt Delay (array of int) parm: RxIntDelay:Receive Interrupt Delay (array of int) parm: RxAbsIntDelay:Receive Absolute Interrupt Delay (array of int) parm: InterruptThrottleRate:Interrupt Throttling Rate (array of int) parm: SmartPowerDownEnable:Enable PHY smart power down (array of int) parm: KumeranLockLoss:Enable Kumeran lock loss workaround (array of int) parm: copybreak:Maximum size of packet that is copied to a new buffer on receive (uint) parm: debug:Debug level (0=none,...,16=all) (int) |
#apt-get install ethtool
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: ethtool 0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded. Need to get 68.4kB of archives. After this operation, 262kB of additional disk space will be used. Get:1 http://127.0.0.1 sid/main ethtool 6+20090307-1 [68.4kB] Fetched 68.4kB in 0s (573kB/s) Selecting previously deselected package ethtool. (Reading database ... 55416 files and directories currently installed.) Unpacking ethtool (from .../ethtool_6+20090307-1_i386.deb) ... Processing triggers for man-db ... Setting up ethtool (6+20090307-1) ... |
#ethtool
ethtool: bad command line argument(s) For more information run ethtool -h |
#ethtool --help
ethtool version 6git Usage: ethtool DEVNAME Display standard information about device ethtool -s|--change DEVNAME Change generic options [ speed %%d ] [ duplex half|full ] [ port tp|aui|bnc|mii|fibre ] [ autoneg on|off ] [ advertise %%x ] [ phyad %%d ] ... ethtool -p|--identify DEVNAME Show visible port identification (e.g. blinking) [ TIME-IN-SECONDS ] ethtool -t|--test DEVNAME Execute adapter self test [ online | offline ] ethtool -S|--statistics DEVNAME Show adapter statistics ethtool -n|--show-nfc DEVNAME Show Rx network flow classificationoptions [ rx-flow-hash tcp4|udp4|ah4|sctp4|tcp6|udp6|ah6|sctp6 ] ethtool -N|--config-nfc DEVNAME Configure Rx network flow classification options [ rx-flow-hash tcp4|udp4|ah4|sctp4|tcp6|udp6|ah6|sctp6 p|m|v|t|s|d|f|n|r... ] ethtool -h|--help DEVNAME Show this help |
#ping --help
ping: invalid option -- '-' Usage: ping [-LRUbdfnqrvVaA] [-c count] [-i interval] [-w deadline] [-p pattern] [-s packetsize] [-t ttl] [-I interface or address] [-M mtu discovery hint] [-S sndbuf] [ -T timestamp option ] [ -Q tos ] [hop1 ...] destination |
$sudo ethtool -s eth0 speed 1000 autoneg off duplex full
[sudo] password for user: |
$sudo ethtool -s eth0 speed 10 autoneg off duplex full
|
$sudo ethtool -s eth0 speed 1000 autoneg off duplex full
[sudo] password for user: |
#ping -f 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. ...........................................................................................................................................................................................................................................................................................................................................................................................................^C --- 192.168.15.254 ping statistics --- 6729 packets transmitted, 6334 received, 5% packet loss, time 36413ms rtt min/avg/max/mdev = 2.159/4.873/64.123/2.993 ms, pipe 6, ipg/ewma 5.412/5.867 ms |
#ping -f -s 1400 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 1400(1428) bytes of data. ..............................................................................................................................................................................................................................................................................................................................................................................................................^C --- 192.168.15.254 ping statistics --- 1877 packets transmitted, 633 received, 66% packet loss, time 22233ms rtt min/avg/max/mdev = 3.807/18.896/203.340/36.752 ms, pipe 17, ipg/ewma 11.851/59.908 ms |
#ping -f -s 1400 192.168.15.11
PING 192.168.15.11 (192.168.15.11) 1400(1428) bytes of data. ...^C --- 192.168.15.11 ping statistics --- 5719 packets transmitted, 5716 received, 0% packet loss, time 15837ms rtt min/avg/max/mdev = 2.525/2.678/5.301/0.091 ms, ipg/ewma 2.769/2.678 ms |
#ping -f -s 1400 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 1400(1428) bytes of data. ...............................................................................................................................................................................................................................................................................................................................................................................................................^ --- 10.0.35.100 ping statistics --- 3405 packets transmitted, 2306 received, 32% packet loss, time 20291ms rtt min/avg/max/mdev = 2.854/2.990/3.417/0.129 ms, ipg/ewma 5.961/3.126 ms |
#ping -f 10.0.35.120
PING 10.0.35.120 (10.0.35.120) 56(84) bytes of data. ..............................................................................................................................................................................................................................................................................................................................................................................................................E. --- 10.0.35.120 ping statistics --- 6685 packets transmitted, 0 received, +6218 errors, 100% packet loss, time 12691ms , pipe 3 |
#apt-cache search icmp tunnel
icmptx - Tunnel IP over ICMP ptunnel - Tunnel TCP connections over ICMP packets |
#apt-cache search scapy
python-scapy - Packet generator/sniffer and network scanner/discovery |
#apt-cache search python-scapy
python-scapy - Packet generator/sniffer and network scanner/discovery |
#apt-get install python-scapy
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: portmap Use 'apt-get autoremove' to remove them. Suggested packages: imagemagick python-gnuplot python-crypto python-pyx ebtables python-visual sox xpdf gv The following NEW packages will be installed: python-scapy 0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded. Need to get 131kB of archives. After this operation, 741kB of additional disk space will be used. Get:1 http://127.0.0.1 sid/main python-scapy 2.0.0.5-1 [131kB] Fetched 131kB in 17s (7425B/s) Selecting previously deselected package python-scapy. (Reading database ... 55428 files and directories currently installed.) Unpacking python-scapy (from .../python-scapy_2.0.0.5-1_all.deb) ... Processing triggers for man-db ... Setting up python-scapy (2.0.0.5-1) ... Processing triggers for python-support ... |
#dpkg -L python-scapy | grep bin
/usr/bin /usr/bin/scapy |
#scapy
Welcome to Scapy (2.0.0.5 beta) >>> help Type help() for interactive help, or help(object) for help about object. >>> help() Welcome to Python 2.5! This is the online help utility. If this is your first time using Python, you should definitely check out the tutorial on the Internet at http://www.python.org/doc/tut/. Enter the name of any module, keyword, or topic to get help on writing Python programs and using Python modules. To quit this help utility and return to the interpreter, just type "quit". ... Enter any module name to get more help. Or, type "modules spam" to search for modules whose descriptions contain the word "spam". help> quit You are now leaving help and returning to the Python interpreter. If you want to ask for help on a particular object directly from the interpreter, you can type "help(object)". Executing "help('string')" has the same effect as typing a particular string at the help> prompt. >>> quit Use quit() or Ctrl-D (i.e. EOF) to exit >>> quit() |
$sudo traceroute -n 192.168.102.1
[sudo] password for user: traceroute to 192.168.102.1 (192.168.102.1), 30 hops max, 60 byte packets 1 192.168.102.1 0.046 ms 0.020 ms 0.017 ms |
#mtr crimea-board.info
My traceroute [v0.75] Tue Jun 2 11:17:29 2009 linux4 (0.0.0.0) Keys: Help Display mode Restart statistics Order of fields quit Packets Pings Loss% Snt Last Avg Best Wrst StDev Host 0.0% 136 0.7 1.4 0.7 57.2 5.2 10.0.35.1 0.0% 136 0.2 0.2 0.2 0.5 0.0 2. 192.168.70.1 93.3% 136 67.6 18.9 5.7 67.6 20.0 3. ip.194.150.93.65.veer.net.ua 94.8% 136 106.8 32.4 7.6 106.8 36.2 4. uplink-uaix.veer.net.ua 0.0% 136 15.6 84.1 8.1 630.1 103.6 5. 217.27.155.29.sitel.com.ua 0.0% 136 16.3 95.4 6.8 714.4 126.7 6. itsystems-10G-gw.ix.net.ua 0.0% 135 29.5 109.2 9.1 216.0 43.7 7. 195.3.245.137 0.0% 135 26.5 106.4 21.9 250.0 126.0 8. 193.238.110.93 0.0% 135 29.8 112.6 23.9 560.3 128.0 9. 193.238.109.57 0.0% 135 46.1 129.4 22.7 488.7 140.9 10. crimea-board.info 0.0% 135 38.1 131.4 23.8 729.4 136.1 11. ??? 747.2 117.7 747.2 132.6 688.7 131.8 648.5 126.5 |
#traceroute -I -U crimea-board.info
traceroute to crimea-board.info (193.238.109.9), 30 hops max, 60 byte packets 1 192.168.15.254 (192.168.15.254) 0.856 ms 1.081 ms 1.291 ms 2 10.0.35.1 (10.0.35.1) 0.141 ms 0.110 ms 0.167 ms 3 * * * 4 * * * 5 uplink-uaix.veer.net.ua (194.150.92.14) 16.728 ms 16.716 ms 16.687 ms 6 217.27.155.29.sitel.com.ua (217.27.155.29) 16.618 ms 16.516 ms 16.445 ms 7 itsystems-10G-gw.ix.net.ua (195.35.65.57) 16.350 ms 15.704 ms 23.072 ms 8 195.3.245.137 (195.3.245.137) 32.842 ms 27.434 ms 35.733 ms 9 193.238.110.93 (193.238.110.93) 41.798 ms 41.784 ms 41.747 ms 10 193.238.109.57 (193.238.109.57) 48.716 ms 56.154 ms 56.146 ms 11 crimea-board.info (193.238.109.9) 134.073 ms 124.263 ms 114.697 ms |
#traceroute -U crimea-board.info
traceroute to crimea-board.info (193.238.109.9), 30 hops max, 60 byte packets 1 192.168.15.254 (192.168.15.254) 0.852 ms 1.081 ms 1.293 ms 2 10.0.35.1 (10.0.35.1) 0.147 ms 0.172 ms 0.144 ms 3 * * * 4 * * * 5 uplink-uaix.veer.net.ua (194.150.92.14) 59.039 ms 59.031 ms 59.043 ms 6 217.27.155.29.sitel.com.ua (217.27.155.29) 12.683 ms 58.820 ms 58.758 ms 7 itsystems-10G-gw.ix.net.ua (195.35.65.57) 58.779 ms 58.085 ms 57.246 ms 8 195.3.245.137 (195.3.245.137) 57.238 ms 94.579 ms 48.281 ms 9 193.238.110.93 (193.238.110.93) 48.241 ms 48.199 ms 48.160 ms 10 193.238.109.57 (193.238.109.57) 48.058 ms 48.080 ms 48.043 ms 11 crimea-board.info (193.238.109.9) 112.200 ms 112.173 ms 64.209 ms |
#traceroute -I crimea-board.info
traceroute to crimea-board.info (193.238.109.9), 30 hops max, 60 byte packets 1 192.168.15.254 (192.168.15.254) 1.080 ms 1.359 ms 1.596 ms 2 10.0.35.1 (10.0.35.1) 0.243 ms 0.260 ms 0.261 ms 3 * * * 4 * * * 5 uplink-uaix.veer.net.ua (194.150.92.14) 21.991 ms 21.988 ms 22.044 ms 6 217.27.155.29.sitel.com.ua (217.27.155.29) 21.966 ms 21.720 ms 21.745 ms 7 itsystems-10G-gw.ix.net.ua (195.35.65.57) 21.640 ms 20.339 ms 20.269 ms 8 195.3.245.137 (195.3.245.137) 37.123 ms 28.421 ms 37.499 ms 9 193.238.110.93 (193.238.110.93) 37.505 ms 37.494 ms 37.485 ms 10 193.238.109.57 (193.238.109.57) 37.455 ms 37.444 ms 37.421 ms 11 crimea-board.info (193.238.109.9) 37.409 ms 27.754 ms 34.792 ms |
#tracepath
bash: tracepath: command not found |
#apt-file search trace
libace-dev: /usr/include/ace/os_include/os_trace.h libace-doc: /usr/share/doc/libace-doc/examples/Misc/test_trace.cpp libactivesupport-ruby1.8: /usr/lib/ruby/1.8/active_support/backtrace_cleaner.rb libactivesupport-ruby1.9: /usr/lib/ruby/1.9.0/active_support/backtrace_cleaner.rb libafterimage-dev: /usr/include/libAfterBase/trace.h liballegro-doc: /usr/share/man/man3/al_trace.3alleg.gz liballegro-doc: /usr/share/man/man3/register_trace_handler.3alleg.gz liballegro-doc: /usr/share/man/man3/retrace_count.3alleg.gz libapache-dbi-perl: /usr/share/doc/libapache-dbi-perl/traces.txt.gz libapache2-mod-perl2-dev: /usr/include/apache2/modperl_trace.h ... libnspr4-dev: /usr/include/nspr/prtrace.h libocamlbricks-ocaml-dev: /usr/share/doc/libocamlbricks-ocaml-dev/html/api/code_ATTMemo.memo.trace.html libocamlnet-ocaml-doc: /usr/share/doc/libocamlnet-ocaml-doc/html-main/Http_client.trace.html libocamlnet-ocaml-doc: /usr/share/doc/libocamlnet-ocaml-doc/html-main/Http_client.trace_call.html libocamlnet-ocaml-doc: /usr/share/doc/libocamlnet-ocaml-doc/html-main/type_Http_client.trace.html libocamlnet-ocaml-doc: /usr/share/doc/libocamlnet-ocaml-doc/html-main/type_Http_client.trace_call.html libomniorb4-dev: /usr/include/omniORB4/tracedthread.h libopencascade-modeling-dev: /usr/include/opencascade/TopOpeBRepDS_traceDSX.hxx libopencascade-modeling-dev: /usr/include/opencascade/TopOpeBRep_traceSIFF.hxx libopencascade-visualization-dev: /usr/include/opencascade/OpenGl_traces.h |
|