/l3/users/vmk64646464/nt-scale/debian4.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 |
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:0f:fe:7e:a7:7b inet addr:10.0.35.44 Bcast:10.0.35.255 Mask:255.255.255.0 inet6 addr: fe80::20f:feff:fe7e:a77b/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:29708 errors:0 dropped:0 overruns:0 frame:0 TX packets:3627 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4791434 (4.5 MiB) TX bytes:858069 (837.9 KiB) Interrupt:19 Memory:f0180000-f01a0000 eth0.10 Link encap:Ethernet HWaddr 00:0f:fe:7e:a7:7b ... collisions:0 txqueuelen:0 RX bytes:30874 (30.1 KiB) TX bytes:8360 (8.1 KiB) 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:48 errors:0 dropped:0 overruns:0 frame:0 TX packets:48 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4300 (4.1 KiB) TX bytes:4300 (4.1 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:0f:fe:7e:a7:7b inet addr:10.0.35.44 Bcast:10.0.35.255 Mask:255.255.255.0 inet6 addr: fe80::20f:feff:fe7e:a77b/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:29708 errors:0 dropped:0 overruns:0 frame:0 TX packets:3627 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:4791434 (4.5 MiB) TX bytes:858069 (837.9 KiB) Interrupt:19 Memory:f0180000-f01a0000 eth0.10 Link encap:Ethernet HWaddr 00:0f:fe:7e:a7:7b ... collisions:0 txqueuelen:0 RX bytes:30874 (30.1 KiB) TX bytes:8360 (8.1 KiB) 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:48 errors:0 dropped:0 overruns:0 frame:0 TX packets:48 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:4300 (4.1 KiB) TX bytes:4300 (4.1 KiB) |
#vim /etc/network/interfaces
--- /tmp/l3-saved-2784.32316.13223 2012-02-22 10:08:57.000000000 +0200 +++ /etc/network/interfaces 2012-02-22 10:09:15.000000000 +0200 @@ -23,7 +23,7 @@ netmask 255.255.255.0 broadcast 10.0.35.255 -iface eth0.40 inet static - address 192.168.40.4 +iface eth0.20 inet static + address 192.168.20.4 netmask 255.255.255.0 broadcast 10.0.35.255 |
#vim /etc/network/interfaces
--- /tmp/l3-saved-2784.7841.27793 2012-02-22 10:10:35.000000000 +0200 +++ /etc/network/interfaces 2012-02-22 10:12:03.000000000 +0200 @@ -2,7 +2,7 @@ # and how to activate them. For more information, see interfaces(5). # The loopback network interface -auto lo eth0.10 eth0.20 +auto lo eth0.10 eth0.40 iface lo inet loopback # The primary network interface @@ -21,9 +21,7 @@ iface eth0.10 inet static address 192.168.10.4 netmask 255.255.255.0 - broadcast 10.0.35.255 -iface eth0.20 inet static - address 192.168.20.4 +iface eth0.40 inet static + address 192.168.40.4 netmask 255.255.255.0 - broadcast 10.0.35.255 |
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. 64 bytes from 192.168.10.1: icmp_req=1 ttl=64 time=3.31 ms 64 bytes from 192.168.10.1: icmp_req=2 ttl=64 time=0.533 ms 64 bytes from 192.168.10.1: icmp_req=3 ttl=64 time=0.534 ms 64 bytes from 192.168.10.1: icmp_req=4 ttl=64 time=0.533 ms 64 bytes from 192.168.10.1: icmp_req=5 ttl=64 time=0.513 ms 64 bytes from 192.168.10.1: icmp_req=6 ttl=64 time=0.531 ms 64 bytes from 192.168.10.1: icmp_req=7 ttl=64 time=0.483 ms ^C --- 192.168.10.1 ping statistics --- 7 packets transmitted, 7 received, 0% packet loss, time 6000ms rtt min/avg/max/mdev = 0.483/0.920/3.319/0.979 ms |
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. 64 bytes from 192.168.10.1: icmp_req=1 ttl=64 time=3.31 ms 64 bytes from 192.168.10.1: icmp_req=2 ttl=64 time=0.533 ms 64 bytes from 192.168.10.1: icmp_req=3 ttl=64 time=0.534 ms 64 bytes from 192.168.10.1: icmp_req=4 ttl=64 time=0.533 ms 64 bytes from 192.168.10.1: icmp_req=5 ttl=64 time=0.513 ms 64 bytes from 192.168.10.1: icmp_req=6 ttl=64 time=0.531 ms 64 bytes from 192.168.10.1: icmp_req=7 ttl=64 time=0.483 ms ^C --- 192.168.10.1 ping statistics --- 7 packets transmitted, 7 received, 0% packet loss, time 6000ms rtt min/avg/max/mdev = 0.483/0.920/3.319/0.979 ms |
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data. From 192.168.40.4 icmp_seq=1 Destination Host Unreachable From 192.168.40.4 icmp_seq=2 Destination Host Unreachable From 192.168.40.4 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.40.3 ping statistics --- 6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5031ms pipe 3 |
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data. From 192.168.40.4 icmp_seq=1 Destination Host Unreachable From 192.168.40.4 icmp_seq=2 Destination Host Unreachable From 192.168.40.4 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.40.3 ping statistics --- 6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5031ms pipe 3 |
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data. 64 bytes from 192.168.40.3: icmp_req=1 ttl=64 time=3.40 ms 64 bytes from 192.168.40.3: icmp_req=2 ttl=64 time=0.536 ms 64 bytes from 192.168.40.3: icmp_req=3 ttl=64 time=0.235 ms ^C --- 192.168.40.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev = 0.235/1.391/3.402/1.427 ms |
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data. 64 bytes from 192.168.40.3: icmp_req=1 ttl=64 time=3.40 ms 64 bytes from 192.168.40.3: icmp_req=2 ttl=64 time=0.536 ms 64 bytes from 192.168.40.3: icmp_req=3 ttl=64 time=0.235 ms ^C --- 192.168.40.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev = 0.235/1.391/3.402/1.427 ms |
#echo 1 > /proc/sys/net/ipv4/ip_forwar
bash: /proc/sys/net/ipv4/ip_forwar: Нет такого файла или каталога |
#echo 1 > /proc/sys/net/ipv4/ip_forwar
bash: /proc/sys/net/ipv4/ip_forwar: Нет такого файла или каталога |
#route add
Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If] inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M] [netmask N] [mss Mss] [window W] [irtt I] [mod] [dyn] [reinstate] [[dev] If] inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject inet_route [-FC] flush NOT supported |
#route add
Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If] inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M] [netmask N] [mss Mss] [window W] [irtt I] [mod] [dyn] [reinstate] [[dev] If] inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject inet_route [-FC] flush NOT supported |
#route print
Usage: route [-nNvee] [-FC] [<AF>] List kernel routing tables route [-v] [-FC] {add|del|flush} ... Modify routing table for AF. route {-h|--help} [<AF>] Detailed usage syntax for specified AF. route {-V|--version} Display version/author and exit. -v, --verbose be verbose -n, --numeric don't resolve names -e, --extend display other/more information -F, --fib display Forwarding Information Base (default) -C, --cache display routing cache instead of FIB <AF>=Use '-A <af>' or '--<af>'; default: inet List of possible address families (which support routing): inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25) netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP) x25 (CCITT X.25) |
#route print
Usage: route [-nNvee] [-FC] [<AF>] List kernel routing tables route [-v] [-FC] {add|del|flush} ... Modify routing table for AF. route {-h|--help} [<AF>] Detailed usage syntax for specified AF. route {-V|--version} Display version/author and exit. -v, --verbose be verbose -n, --numeric don't resolve names -e, --extend display other/more information -F, --fib display Forwarding Information Base (default) -C, --cache display routing cache instead of FIB <AF>=Use '-A <af>' or '--<af>'; default: inet List of possible address families (which support routing): inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25) netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP) x25 (CCITT X.25) |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.10 192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.40 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.10 192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.40 |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. ^C --- 192.168.20.1 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2014ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. ^C --- 192.168.20.1 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2014ms |
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. 64 bytes from 192.168.10.1: icmp_req=1 ttl=64 time=5.61 ms 64 bytes from 192.168.10.1: icmp_req=2 ttl=64 time=0.501 ms 64 bytes from 192.168.10.1: icmp_req=3 ttl=64 time=0.498 ms 64 bytes from 192.168.10.1: icmp_req=4 ttl=64 time=0.533 ms 64 bytes from 192.168.10.1: icmp_req=5 ttl=64 time=0.498 ms ^C --- 192.168.10.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 3999ms rtt min/avg/max/mdev = 0.498/1.529/5.615/2.043 ms |
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. 64 bytes from 192.168.10.1: icmp_req=1 ttl=64 time=5.61 ms 64 bytes from 192.168.10.1: icmp_req=2 ttl=64 time=0.501 ms 64 bytes from 192.168.10.1: icmp_req=3 ttl=64 time=0.498 ms 64 bytes from 192.168.10.1: icmp_req=4 ttl=64 time=0.533 ms 64 bytes from 192.168.10.1: icmp_req=5 ttl=64 time=0.498 ms ^C --- 192.168.10.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 3999ms rtt min/avg/max/mdev = 0.498/1.529/5.615/2.043 ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. 64 bytes from 192.168.20.1: icmp_req=1 ttl=64 time=2.99 ms 64 bytes from 192.168.20.1: icmp_req=2 ttl=64 time=0.555 ms ^C --- 192.168.20.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.555/1.772/2.990/1.218 ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. 64 bytes from 192.168.20.1: icmp_req=1 ttl=64 time=2.99 ms 64 bytes from 192.168.20.1: icmp_req=2 ttl=64 time=0.555 ms ^C --- 192.168.20.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.555/1.772/2.990/1.218 ms |
#ping 192.168.20.2
PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data. From 192.168.10.4 icmp_seq=1 Destination Host Unreachable From 192.168.10.4 icmp_seq=2 Destination Host Unreachable From 192.168.10.4 icmp_seq=3 Destination Host Unreachable From 192.168.10.4 icmp_seq=4 Destination Host Unreachable From 192.168.10.4 icmp_seq=5 Destination Host Unreachable From 192.168.10.4 icmp_seq=6 Destination Host Unreachable ^C --- 192.168.20.2 ping statistics --- 7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6030ms pipe 3 |
#ping 192.168.20.2
PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data. From 192.168.10.4 icmp_seq=1 Destination Host Unreachable From 192.168.10.4 icmp_seq=2 Destination Host Unreachable From 192.168.10.4 icmp_seq=3 Destination Host Unreachable From 192.168.10.4 icmp_seq=4 Destination Host Unreachable From 192.168.10.4 icmp_seq=5 Destination Host Unreachable From 192.168.10.4 icmp_seq=6 Destination Host Unreachable ^C --- 192.168.20.2 ping statistics --- 7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6030ms pipe 3 |
#ping 192.168.30.3
PING 192.168.30.3 (192.168.30.3) 56(84) bytes of data. 64 bytes from 192.168.30.3: icmp_req=1 ttl=64 time=3.92 ms 64 bytes from 192.168.30.3: icmp_req=2 ttl=64 time=0.500 ms 64 bytes from 192.168.30.3: icmp_req=3 ttl=64 time=0.236 ms 64 bytes from 192.168.30.3: icmp_req=4 ttl=64 time=0.488 ms ^C --- 192.168.30.3 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms rtt min/avg/max/mdev = 0.236/1.288/3.929/1.528 ms |
#ping 192.168.30.3
PING 192.168.30.3 (192.168.30.3) 56(84) bytes of data. 64 bytes from 192.168.30.3: icmp_req=1 ttl=64 time=3.92 ms 64 bytes from 192.168.30.3: icmp_req=2 ttl=64 time=0.500 ms 64 bytes from 192.168.30.3: icmp_req=3 ttl=64 time=0.236 ms 64 bytes from 192.168.30.3: icmp_req=4 ttl=64 time=0.488 ms ^C --- 192.168.30.3 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms rtt min/avg/max/mdev = 0.236/1.288/3.929/1.528 ms |
#ping 192.168.30.2
PING 192.168.30.2 (192.168.30.2) 56(84) bytes of data. ^C --- 192.168.30.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1000ms |
#ping 192.168.30.2
PING 192.168.30.2 (192.168.30.2) 56(84) bytes of data. ^C --- 192.168.30.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1000ms |
#ping 192.168.20.2
PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data. From 192.168.10.4 icmp_seq=1 Destination Host Unreachable From 192.168.10.4 icmp_seq=2 Destination Host Unreachable From 192.168.10.4 icmp_seq=3 Destination Host Unreachable From 192.168.10.4 icmp_seq=4 Destination Host Unreachable From 192.168.10.4 icmp_seq=5 Destination Host Unreachable From 192.168.10.4 icmp_seq=6 Destination Host Unreachable ^C --- 192.168.20.2 ping statistics --- 7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6033ms pipe 3 |
#ping 192.168.20.2
PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data. From 192.168.10.4 icmp_seq=1 Destination Host Unreachable From 192.168.10.4 icmp_seq=2 Destination Host Unreachable From 192.168.10.4 icmp_seq=3 Destination Host Unreachable From 192.168.10.4 icmp_seq=4 Destination Host Unreachable From 192.168.10.4 icmp_seq=5 Destination Host Unreachable From 192.168.10.4 icmp_seq=6 Destination Host Unreachable ^C --- 192.168.20.2 ping statistics --- 7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6033ms pipe 3 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.10 192.168.20.0 192.168.10.1 255.255.255.0 UG 0 0 0 eth0.10 192.168.30.0 192.168.40.3 255.255.255.0 UG 0 0 0 eth0.40 192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.40 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.10 192.168.20.0 192.168.10.1 255.255.255.0 UG 0 0 0 eth0.10 192.168.30.0 192.168.40.3 255.255.255.0 UG 0 0 0 eth0.40 192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.40 |
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data. 64 bytes from 192.168.40.3: icmp_req=1 ttl=64 time=0.534 ms 64 bytes from 192.168.40.3: icmp_req=2 ttl=64 time=0.233 ms 64 bytes from 192.168.40.3: icmp_req=3 ttl=64 time=0.537 ms ^C --- 192.168.40.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.233/0.434/0.537/0.144 ms |
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data. 64 bytes from 192.168.40.3: icmp_req=1 ttl=64 time=0.534 ms 64 bytes from 192.168.40.3: icmp_req=2 ttl=64 time=0.233 ms 64 bytes from 192.168.40.3: icmp_req=3 ttl=64 time=0.537 ms ^C --- 192.168.40.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.233/0.434/0.537/0.144 ms |
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. 64 bytes from 192.168.10.1: icmp_req=1 ttl=64 time=0.488 ms 64 bytes from 192.168.10.1: icmp_req=2 ttl=64 time=0.476 ms ^X64 bytes from 192.168.10.1: icmp_req=3 ttl=64 time=0.535 ms 64 bytes from 192.168.10.1: icmp_req=4 ttl=64 time=0.500 ms 64 bytes from 192.168.10.1: icmp_req=5 ttl=64 time=0.539 ms ^C --- 192.168.10.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4000ms rtt min/avg/max/mdev = 0.476/0.507/0.539/0.035 ms |
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. 64 bytes from 192.168.10.1: icmp_req=1 ttl=64 time=0.488 ms 64 bytes from 192.168.10.1: icmp_req=2 ttl=64 time=0.476 ms ^X64 bytes from 192.168.10.1: icmp_req=3 ttl=64 time=0.535 ms 64 bytes from 192.168.10.1: icmp_req=4 ttl=64 time=0.500 ms 64 bytes from 192.168.10.1: icmp_req=5 ttl=64 time=0.539 ms ^C --- 192.168.10.1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4000ms rtt min/avg/max/mdev = 0.476/0.507/0.539/0.035 ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. 64 bytes from 192.168.20.1: icmp_req=1 ttl=64 time=0.498 ms 64 bytes from 192.168.20.1: icmp_req=2 ttl=64 time=0.535 ms 64 bytes from 192.168.20.1: icmp_req=3 ttl=64 time=0.499 ms ^C --- 192.168.20.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1999ms rtt min/avg/max/mdev = 0.498/0.510/0.535/0.031 ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. 64 bytes from 192.168.20.1: icmp_req=1 ttl=64 time=0.498 ms 64 bytes from 192.168.20.1: icmp_req=2 ttl=64 time=0.535 ms 64 bytes from 192.168.20.1: icmp_req=3 ttl=64 time=0.499 ms ^C --- 192.168.20.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1999ms rtt min/avg/max/mdev = 0.498/0.510/0.535/0.031 ms |
#ping 192.168.30.3
PING 192.168.30.3 (192.168.30.3) 56(84) bytes of data. 64 bytes from 192.168.30.3: icmp_req=1 ttl=64 time=0.245 ms 64 bytes from 192.168.30.3: icmp_req=2 ttl=64 time=0.459 ms 64 bytes from 192.168.30.3: icmp_req=3 ttl=64 time=0.235 ms ^C --- 192.168.30.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.235/0.313/0.459/0.103 ms |
#ping 192.168.30.3
PING 192.168.30.3 (192.168.30.3) 56(84) bytes of data. 64 bytes from 192.168.30.3: icmp_req=1 ttl=64 time=0.245 ms 64 bytes from 192.168.30.3: icmp_req=2 ttl=64 time=0.459 ms 64 bytes from 192.168.30.3: icmp_req=3 ttl=64 time=0.235 ms ^C --- 192.168.30.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.235/0.313/0.459/0.103 ms |
#ping 192.168.30.2
PING 192.168.30.2 (192.168.30.2) 56(84) bytes of data. ^C --- 192.168.30.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
#ping 192.168.30.2
PING 192.168.30.2 (192.168.30.2) 56(84) bytes of data. ^C --- 192.168.30.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
#ping 192.168.20.2
PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data. ^C --- 192.168.20.2 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 3022ms |
#ping 192.168.20.2
PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data. ^C --- 192.168.20.2 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 3022ms |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.10 192.168.20.0 192.168.10.1 255.255.255.0 UG 0 0 0 eth0.10 192.168.30.0 192.168.40.3 255.255.255.0 UG 0 0 0 eth0.40 192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.40 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.10 192.168.20.0 192.168.10.1 255.255.255.0 UG 0 0 0 eth0.10 192.168.30.0 192.168.40.3 255.255.255.0 UG 0 0 0 eth0.40 192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.40 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface ^C |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface ^C |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.10 192.168.20.0 192.168.10.1 255.255.255.0 UG 0 0 0 eth0.10 192.168.30.0 192.168.40.3 255.255.255.0 UG 0 0 0 eth0.40 192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.40 |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.10 192.168.20.0 192.168.10.1 255.255.255.0 UG 0 0 0 eth0.10 192.168.30.0 192.168.40.3 255.255.255.0 UG 0 0 0 eth0.40 192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.40 |
#vconfig rem
Expecting argc to be 3-5, inclusive. Was: 2 Usage: add [interface-name] [vlan_id] rem [vlan-name] set_flag [interface-name] [flag-num] [0 | 1] set_egress_map [vlan-name] [skb_priority] [vlan_qos] set_ingress_map [vlan-name] [skb_priority] [vlan_qos] set_name_type [name-type] * The [interface-name] is the name of the ethernet card that hosts the VLAN you are talking about. * The vlan_id is the identifier (0-4095) of the VLAN you are operating on. * skb_priority is the priority in the socket buffer (sk_buff). * vlan_qos is the 3 bit priority in the VLAN header * name-type: VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5), DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5) * FLAGS: 1 REORDER_HDR When this is set, the VLAN device will move the ethernet header around to make it look exactly like a real ethernet device. This may help programs such as DHCPd which read the raw ethernet packet and make assumptions about the location of bytes. If you don't need it, don't turn it on, because there will be at least a small performance degradation. Default is OFF. |
#vconfig rem
Expecting argc to be 3-5, inclusive. Was: 2 Usage: add [interface-name] [vlan_id] rem [vlan-name] set_flag [interface-name] [flag-num] [0 | 1] set_egress_map [vlan-name] [skb_priority] [vlan_qos] set_ingress_map [vlan-name] [skb_priority] [vlan_qos] set_name_type [name-type] * The [interface-name] is the name of the ethernet card that hosts the VLAN you are talking about. * The vlan_id is the identifier (0-4095) of the VLAN you are operating on. * skb_priority is the priority in the socket buffer (sk_buff). * vlan_qos is the 3 bit priority in the VLAN header * name-type: VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5), DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5) * FLAGS: 1 REORDER_HDR When this is set, the VLAN device will move the ethernet header around to make it look exactly like a real ethernet device. This may help programs such as DHCPd which read the raw ethernet packet and make assumptions about the location of bytes. If you don't need it, don't turn it on, because there will be at least a small performance degradation. Default is OFF. |
#ping 192.168.20.2
PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data. ^C --- 192.168.20.2 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 3023ms |
#ping 192.168.20.2
PING 192.168.20.2 (192.168.20.2) 56(84) bytes of data. ^C --- 192.168.20.2 ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 3023ms |
#ping 192.168.30.3
PING 192.168.30.3 (192.168.30.3) 56(84) bytes of data. 64 bytes from 192.168.30.3: icmp_req=1 ttl=64 time=2.77 ms 64 bytes from 192.168.30.3: icmp_req=2 ttl=64 time=0.249 ms 64 bytes from 192.168.30.3: icmp_req=3 ttl=64 time=0.251 ms 64 bytes from 192.168.30.3: icmp_req=4 ttl=64 time=0.559 ms ^C --- 192.168.30.3 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms rtt min/avg/max/mdev = 0.249/0.958/2.775/1.056 ms |
#ping 192.168.30.3
PING 192.168.30.3 (192.168.30.3) 56(84) bytes of data. 64 bytes from 192.168.30.3: icmp_req=1 ttl=64 time=2.77 ms 64 bytes from 192.168.30.3: icmp_req=2 ttl=64 time=0.249 ms 64 bytes from 192.168.30.3: icmp_req=3 ttl=64 time=0.251 ms 64 bytes from 192.168.30.3: icmp_req=4 ttl=64 time=0.559 ms ^C --- 192.168.30.3 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms rtt min/avg/max/mdev = 0.249/0.958/2.775/1.056 ms |
#ping 192.168.30.2
PING 192.168.30.2 (192.168.30.2) 56(84) bytes of data. 64 bytes from 192.168.30.2: icmp_req=2 ttl=63 time=1.03 ms 64 bytes from 192.168.30.2: icmp_req=3 ttl=63 time=1.05 ms 64 bytes from 192.168.30.2: icmp_req=4 ttl=63 time=0.572 ms ^C --- 192.168.30.2 ping statistics --- 4 packets transmitted, 3 received, 25% packet loss, time 3009ms rtt min/avg/max/mdev = 0.572/0.885/1.053/0.223 ms |
#ping 192.168.30.2
PING 192.168.30.2 (192.168.30.2) 56(84) bytes of data. 64 bytes from 192.168.30.2: icmp_req=2 ttl=63 time=1.03 ms 64 bytes from 192.168.30.2: icmp_req=3 ttl=63 time=1.05 ms 64 bytes from 192.168.30.2: icmp_req=4 ttl=63 time=0.572 ms ^C --- 192.168.30.2 ping statistics --- 4 packets transmitted, 3 received, 25% packet loss, time 3009ms rtt min/avg/max/mdev = 0.572/0.885/1.053/0.223 ms |
#ping 192.168.30.2
PING 192.168.30.2 (192.168.30.2) 56(84) bytes of data. 64 bytes from 192.168.30.2: icmp_req=1 ttl=63 time=0.789 ms 64 bytes from 192.168.30.2: icmp_req=2 ttl=63 time=0.667 ms 64 bytes from 192.168.30.2: icmp_req=3 ttl=63 time=0.827 ms ^C --- 192.168.30.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev = 0.667/0.761/0.827/0.068 ms |
#ping 192.168.30.2
PING 192.168.30.2 (192.168.30.2) 56(84) bytes of data. 64 bytes from 192.168.30.2: icmp_req=1 ttl=63 time=0.789 ms 64 bytes from 192.168.30.2: icmp_req=2 ttl=63 time=0.667 ms 64 bytes from 192.168.30.2: icmp_req=3 ttl=63 time=0.827 ms ^C --- 192.168.30.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev = 0.667/0.761/0.827/0.068 ms |
#ping 192.168.30.3
PING 192.168.30.3 (192.168.30.3) 56(84) bytes of data. 64 bytes from 192.168.30.3: icmp_req=1 ttl=64 time=0.577 ms 64 bytes from 192.168.30.3: icmp_req=2 ttl=64 time=0.514 ms 64 bytes from 192.168.30.3: icmp_req=3 ttl=64 time=0.234 ms ^C --- 192.168.30.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1999ms rtt min/avg/max/mdev = 0.234/0.441/0.577/0.151 ms |
#ping 192.168.30.3
PING 192.168.30.3 (192.168.30.3) 56(84) bytes of data. 64 bytes from 192.168.30.3: icmp_req=1 ttl=64 time=0.577 ms 64 bytes from 192.168.30.3: icmp_req=2 ttl=64 time=0.514 ms 64 bytes from 192.168.30.3: icmp_req=3 ttl=64 time=0.234 ms ^C --- 192.168.30.3 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1999ms rtt min/avg/max/mdev = 0.234/0.441/0.577/0.151 ms |
#traceroute 192.168.30.3
traceroute to 192.168.30.3 (192.168.30.3), 30 hops max, 60 byte packets ^C |
#traceroute 192.168.30.3
traceroute to 192.168.30.3 (192.168.30.3), 30 hops max, 60 byte packets ^C |
#traceroute -n 192.168.30.3
traceroute to 192.168.30.3 (192.168.30.3), 30 hops max, 60 byte packets 1 192.168.30.3 0.465 ms 0.376 ms 0.366 ms |
#traceroute -n 192.168.30.3
traceroute to 192.168.30.3 (192.168.30.3), 30 hops max, 60 byte packets 1 192.168.30.3 0.465 ms 0.376 ms 0.366 ms |
#traceroute -n 192.168.30.2
traceroute to 192.168.30.2 (192.168.30.2), 30 hops max, 60 byte packets 1 10.0.35.43 0.246 ms 0.213 ms 0.437 ms 2 192.168.30.2 0.716 ms 0.712 ms 0.705 ms |
0
Время первой команды журнала | 09:08:20 2012- 2-22 | ||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:37:55 2012- 2-22 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 27.72 | ||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.49 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 3.41 | ||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008