/l3/users/eb/2009/linux11/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 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 :40 :41 :42 :43 :44 :45 :46 :47 :48 :49 :50 :51 :52 :53 :54 :55 :56 :57 :58 :59 :60 :61 :62 :63 :64 :65 :66 :67 :68 :69 :70 :71 :72 :73 |
|
#ping 192.168.106.1
PING 192.168.106.1 (192.168.106.1) 56(84) bytes of data. 64 bytes from 192.168.106.1: icmp_seq=1 ttl=64 time=0.030 ms ^C --- 192.168.106.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.030/0.030/0.030/0.000 ms |
#ifconfig eth0 192.168.15.11 255.255.255.0
SIOCSIFADDR: Недопустимый аргумент |
#ifconfig eth0 192.168.15.11/24
|
#ssh 192.168.15.12
Enter passphrase for key '/root/.ssh/id_dsa': l3-agent is already running: pid=13430; pidfile=/root/.lilalo/l3-agent.pid -bash: agent: command not found |
#~^Z [suspend ssh]
[1]+ Stopped ssh 192.168.15.12 |
#kill %
tcsetattr: Interrupted system call [1]+ Exit 143 ssh 192.168.15.12 |
#kill %
bash: kill: %: не такой задачи |
#vi /etc/network/interfaces
|
#ifup eth0
SIOCADDRT: No such process Failed to bring up eth0. |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1b:fc:7d:bc:f5 inet addr:192.168.106.2 Bcast:192.168.106.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fe7d:bcf5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:74560 errors:0 dropped:0 overruns:0 frame:0 TX packets:65907 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:30130993 (28.7 MiB) TX bytes:8619551 (8.2 MiB) eth0.106 Link encap:Ethernet HWaddr 00:1b:fc:7d:bc:f5 inet addr:192.168.106.1 Bcast:192.168.106.255 Mask:255.255.255.0 ... TX packets:1273 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:75482 (73.7 KiB) TX bytes:75482 (73.7 KiB) tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:172.16.1.6 P-t-P:172.16.1.5 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:2231 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#/etc/init.d/networking restart
Reconfiguring network interfaces...SIOCADDRT: No such process Failed to bring up eth0. done. |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:fc:7d:bc:f5 inet addr:192.168.106.2 Bcast:192.168.106.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fe7d:bcf5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:74560 errors:0 dropped:0 overruns:0 frame:0 TX packets:65907 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:30130993 (28.7 MiB) TX bytes:8619551 (8.2 MiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 ... TX packets:1275 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:75540 (73.7 KiB) TX bytes:75540 (73.7 KiB) tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:172.16.1.6 P-t-P:172.16.1.5 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:2358 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
#ping 192.168.106.1
PING 192.168.106.1 (192.168.106.1) 56(84) bytes of data. 64 bytes from 192.168.106.1: icmp_seq=1 ttl=64 time=0.033 ms 64 bytes from 192.168.106.1: icmp_seq=2 ttl=64 time=0.020 ms 64 bytes from 192.168.106.1: icmp_seq=3 ttl=64 time=0.018 ms 64 bytes from 192.168.106.1: icmp_seq=4 ttl=64 time=0.017 ms 64 bytes from 192.168.106.1: icmp_seq=5 ttl=64 time=0.016 ms 64 bytes from 192.168.106.1: icmp_seq=6 ttl=64 time=0.023 ms 64 bytes from 192.168.106.1: icmp_seq=7 ttl=64 time=0.019 ms 64 bytes from 192.168.106.1: icmp_seq=8 ttl=64 time=0.018 ms 64 bytes from 192.168.106.1: icmp_seq=9 ttl=64 time=0.020 ms ^C --- 192.168.106.1 ping statistics --- 9 packets transmitted, 9 received, 0% packet loss, time 7999ms rtt min/avg/max/mdev = 0.016/0.020/0.033/0.006 ms |
#ping 192.168.106.1
PING 192.168.106.1 (192.168.106.1) 56(84) bytes of data. 64 bytes from 192.168.106.1: icmp_seq=1 ttl=64 time=0.033 ms ^C --- 192.168.106.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.033/0.033/0.033/0.000 ms |
#ping 192.168.106.1
PING 192.168.106.1 (192.168.106.1) 56(84) bytes of data. 64 bytes from 192.168.106.1: icmp_seq=1 ttl=64 time=0.037 ms 64 bytes from 192.168.106.1: icmp_seq=2 ttl=64 time=0.015 ms ^C --- 192.168.106.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.015/0.026/0.037/0.011 ms |
#ping 192.168.106.2
PING 192.168.106.2 (192.168.106.2) 56(84) bytes of data. 64 bytes from 192.168.106.2: icmp_seq=1 ttl=64 time=0.033 ms \^C --- 192.168.106.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.033/0.033/0.033/0.000 ms |
#ping 192.168.106.2
PING 192.168.106.2 (192.168.106.2) 56(84) bytes of data. 64 bytes from 192.168.106.2: icmp_seq=1 ttl=64 time=0.036 ms 64 bytes from 192.168.106.2: icmp_seq=2 ttl=64 time=0.017 ms 64 bytes from 192.168.106.2: icmp_seq=3 ttl=64 time=0.020 ms 64 bytes from 192.168.106.2: icmp_seq=4 ttl=64 time=0.017 ms ^C --- 192.168.106.2 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 2999ms rtt min/avg/max/mdev = 0.017/0.022/0.036/0.009 ms |
#/etc/init.d/openvpn stop
Stopping virtual private network daemon: client. |
#/etc/init.d/networking stop
Deconfiguring network interfaces...done. |
#/etc/init.d/networking start
Configuring network interfaces...SIOCADDRT: No such process Failed to bring up eth0. done. |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.106.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 |
#vi /etc/network/interfaces
|
#init 6
|
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.205.2 192.168.106.1 255.255.255.255 UGH 0 0 0 eth0 172.16.1.5 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.105.0 172.16.1.5 255.255.255.0 UG 0 0 0 tun0 192.168.106.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 172.16.1.5 0.0.0.0 UG 0 0 0 tun0 |
#ping 172.16.1.5
PING 172.16.1.5 (172.16.1.5) 56(84) bytes of data. ^C --- 172.16.1.5 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 172.16.1.6
PING 172.16.1.6 (172.16.1.6) 56(84) bytes of data. 64 bytes from 172.16.1.6: icmp_seq=1 ttl=64 time=0.017 ms ^C --- 172.16.1.6 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.017/0.017/0.017/0.000 ms |
#/etc/init.d/networking stop
Deconfiguring network interfaces...SIOCDELRT: No such process done. |
#/etc/init.d/openvpn stop
Stopping virtual private network daemon: client. |
#ping 192.168.106.2
PING 192.168.106.2 (192.168.106.2) 56(84) bytes of data. 64 bytes from 192.168.106.2: icmp_seq=1 ttl=64 time=0.020 ms 64 bytes from 192.168.106.2: icmp_seq=2 ttl=64 time=0.009 ms ^C --- 192.168.106.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.009/0.014/0.020/0.006 ms |
#ping 192.168.106.1
PING 192.168.106.1 (192.168.106.1) 56(84) bytes of data. From 192.168.106.2 icmp_seq=2 Destination Host Unreachable From 192.168.106.2 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.106.1 ping statistics --- 5 packets transmitted, 0 received, +2 errors, 100% packet loss, time 4025ms , pipe 2 |
#vi /etc/network/interfaces
--- /tmp/l3-saved-3434.25738.11597 2009-06-03 19:32:58.000000000 +0300 +++ /etc/network/interfaces 2009-06-03 19:33:58.000000000 +0300 @@ -9,7 +9,6 @@ # address 192.168.15.11 # netmask 255.255.255.0 -#iface lo inet loopback iface eth0 inet static address 192.168.106.2 netmask 255.255.255.0 |
#ping 192.168.206.2
PING 192.168.206.2 (192.168.206.2) 56(84) bytes of data. 64 bytes from 192.168.206.2: icmp_seq=1 ttl=64 time=0.224 ms 64 bytes from 192.168.206.2: icmp_seq=2 ttl=64 time=0.219 ms ^C --- 192.168.206.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.219/0.221/0.224/0.015 ms |
#ping 192.168.206.1
PING 192.168.206.1 (192.168.206.1) 56(84) bytes of data. ^C --- 192.168.206.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
#ping 192.168.206.2
PING 192.168.206.2 (192.168.206.2) 56(84) bytes of data. 64 bytes from 192.168.206.2: icmp_seq=1 ttl=64 time=0.222 ms 64 bytes from 192.168.206.2: icmp_seq=2 ttl=64 time=0.218 ms ^C --- 192.168.206.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.218/0.220/0.222/0.002 ms |
#ping 192.168.206.1
PING 192.168.206.1 (192.168.206.1) 56(84) bytes of data. ^C --- 192.168.206.1 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 192.168.206.2
PING 192.168.206.2 (192.168.206.2) 56(84) bytes of data. 64 bytes from 192.168.206.2: icmp_seq=1 ttl=64 time=1.37 ms ^C --- 192.168.206.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.374/1.374/1.374/0.000 ms |
#ping 192.168.106.1
PING 192.168.106.1 (192.168.106.1) 56(84) bytes of data. 64 bytes from 192.168.106.1: icmp_seq=1 ttl=64 time=0.222 ms ^C --- 192.168.106.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.222/0.222/0.222/0.000 ms |
#vi /etc/openvpn/cli
|
#~
1 port 443 2 proto tcp-client 3 dev tun 4 ifconfig 172.16.1.6 172.16.1.5 5 route 192.168.105.0 255.255.255.0 6 redirect-gateway 7 secret linux9.key 8 remote 192.168.205.2 "/etc/openvpn/client.conf" 8L, 155C |
#~
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data. 64 bytes from 10.0.35.100: icmp_seq=1 ttl=60 time=1.58 ms ^C --- 10.0.35.100 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 1.585/1.585/1.585/0.000 ms |
#ip route help
Usage: ip route { list | flush } SELECTOR ip route get ADDRESS [ from ADDRESS iif STRING ] [ oif STRING ] [ tos TOS ] ip route { add | del | change | append | replace | monitor } ROUTE SELECTOR := [ root PREFIX ] [ match PREFIX ] [ exact PREFIX ] [ table TABLE_ID ] [ proto RTPROTO ] [ type TYPE ] [ scope SCOPE ] ROUTE := NODE_SPEC [ INFO_SPEC ] NODE_SPEC := [ TYPE ] PREFIX [ tos TOS ] [ table TABLE_ID ] [ proto RTPROTO ] ... [ rto_min TIME ] TYPE := [ unicast | local | broadcast | multicast | throw | unreachable | prohibit | blackhole | nat ] TABLE_ID := [ local | main | default | all | NUMBER ] SCOPE := [ host | link | global | NUMBER ] FLAGS := [ equalize ] MP_ALGO := { rr | drr | random | wrandom } NHFLAGS := [ onlink | pervasive ] RTPROTO := [ kernel | boot | static | NUMBER ] TIME := NUMBER[s|ms|us|ns|j] |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. ^C --- 10.0.35.1 ping statistics --- 7 packets transmitted, 0 received, 100% packet loss, time 6048ms |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. ^C --- 10.0.35.1 ping statistics --- 7 packets transmitted, 0 received, 100% packet loss, time 6048ms |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. ^C --- 10.0.35.1 ping statistics --- 52 packets transmitted, 0 received, 100% packet loss, time 51400ms |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. ^C --- 10.0.35.1 ping statistics --- 52 packets transmitted, 0 received, 100% packet loss, time 51400ms |
#ping 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data. ^C --- 10.0.35.100 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data. ^C --- 10.0.35.100 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:fc:7d:bc:f5 inet addr:192.168.106.2 Bcast:192.168.106.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fe7d:bcf5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4023 errors:0 dropped:0 overruns:0 frame:0 TX packets:7047 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:950231 (927.9 KiB) TX bytes:871768 (851.3 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:59 errors:0 dropped:0 overruns:0 frame:0 TX packets:59 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5230 (5.1 KiB) TX bytes:5230 (5.1 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:1b:fc:7d:bc:f5 inet addr:192.168.106.2 Bcast:192.168.106.255 Mask:255.255.255.0 inet6 addr: fe80::21b:fcff:fe7d:bcf5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4023 errors:0 dropped:0 overruns:0 frame:0 TX packets:7047 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:950231 (927.9 KiB) TX bytes:871768 (851.3 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:59 errors:0 dropped:0 overruns:0 frame:0 TX packets:59 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5230 (5.1 KiB) TX bytes:5230 (5.1 KiB) |
#ping 192.168.106.1
PING 192.168.106.1 (192.168.106.1) 56(84) bytes of data. 64 bytes from 192.168.106.1: icmp_seq=1 ttl=64 time=0.231 ms ^C --- 192.168.106.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.231/0.231/0.231/0.000 ms |
#ping 192.168.106.1
PING 192.168.106.1 (192.168.106.1) 56(84) bytes of data. 64 bytes from 192.168.106.1: icmp_seq=1 ttl=64 time=0.231 ms ^C --- 192.168.106.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.231/0.231/0.231/0.000 ms |
#ping 192.168.206.2
PING 192.168.206.2 (192.168.206.2) 56(84) bytes of data. 64 bytes from 192.168.206.2: icmp_seq=1 ttl=64 time=0.229 ms ^C --- 192.168.206.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.229/0.229/0.229/0.000 ms |
#ping 192.168.206.2
PING 192.168.206.2 (192.168.206.2) 56(84) bytes of data. 64 bytes from 192.168.206.2: icmp_seq=1 ttl=64 time=0.229 ms ^C --- 192.168.206.2 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.229/0.229/0.229/0.000 ms |
#ping 192.168.206.1
PING 192.168.206.1 (192.168.206.1) 56(84) bytes of data. ^C --- 192.168.206.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
#ping 192.168.206.1
PING 192.168.206.1 (192.168.206.1) 56(84) bytes of data. ^C --- 192.168.206.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
#ping 192.168.205.2
PING 192.168.205.2 (192.168.205.2) 56(84) bytes of data. ^C --- 192.168.205.2 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 192.168.205.2
PING 192.168.205.2 (192.168.205.2) 56(84) bytes of data. ^C --- 192.168.205.2 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 192.168.205.1
PING 192.168.205.1 (192.168.205.1) 56(84) bytes of data. ^C --- 192.168.205.1 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 192.168.205.1
PING 192.168.205.1 (192.168.205.1) 56(84) bytes of data. ^C --- 192.168.205.1 ping statistics --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#ping 192.168.205.2
PING 192.168.205.2 (192.168.205.2) 56(84) bytes of data. ^C --- 192.168.205.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1007ms |
#ping 192.168.205.2
PING 192.168.205.2 (192.168.205.2) 56(84) bytes of data. ^C --- 192.168.205.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1007ms |
#ping 192.168.205.2
PING 192.168.205.2 (192.168.205.2) 56(84) bytes of data. ^C --- 192.168.205.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1007ms |
#ping 192.168.205.2
PING 192.168.205.2 (192.168.205.2) 56(84) bytes of data. ^C --- 192.168.205.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1007ms |
#ip route show
192.168.106.0/24 dev eth0 proto kernel scope link src 192.168.106.2 default via 192.168.106.1 dev eth0 |
#ip route show
192.168.106.0/24 dev eth0 proto kernel scope link src 192.168.106.2 default via 192.168.106.1 dev eth0 |
#ping 192.168.205.2
PING 192.168.205.2 (192.168.205.2) 56(84) bytes of data. ^C --- 192.168.205.2 ping statistics --- 17 packets transmitted, 0 received, 100% packet loss, time 16126ms |
#ping 192.168.205.2
PING 192.168.205.2 (192.168.205.2) 56(84) bytes of data. ^C --- 192.168.205.2 ping statistics --- 17 packets transmitted, 0 received, 100% packet loss, time 16126ms |
#ping 192.168.106.1
PING 192.168.106.1 (192.168.106.1) 56(84) bytes of data. 64 bytes from 192.168.106.1: icmp_seq=1 ttl=64 time=0.226 ms 64 bytes from 192.168.106.1: icmp_seq=2 ttl=64 time=0.223 ms ^C --- 192.168.106.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.223/0.224/0.226/0.015 ms |
#ping 192.168.106.1
PING 192.168.106.1 (192.168.106.1) 56(84) bytes of data. 64 bytes from 192.168.106.1: icmp_seq=1 ttl=64 time=0.226 ms 64 bytes from 192.168.106.1: icmp_seq=2 ttl=64 time=0.223 ms ^C --- 192.168.106.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.223/0.224/0.226/0.015 ms |
#ping 192.168.206.2
PING 192.168.206.2 (192.168.206.2) 56(84) bytes of data. 64 bytes from 192.168.206.2: icmp_seq=1 ttl=64 time=0.230 ms 64 bytes from 192.168.206.2: icmp_seq=2 ttl=64 time=0.221 ms ^C --- 192.168.206.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.221/0.225/0.230/0.015 ms |
#ping 192.168.206.2
PING 192.168.206.2 (192.168.206.2) 56(84) bytes of data. 64 bytes from 192.168.206.2: icmp_seq=1 ttl=64 time=0.230 ms 64 bytes from 192.168.206.2: icmp_seq=2 ttl=64 time=0.221 ms ^C --- 192.168.206.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.221/0.225/0.230/0.015 ms |
#ping 192.168.205.2
PING 192.168.205.2 (192.168.205.2) 56(84) bytes of data. ^C --- 192.168.205.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1008ms |
#ping 192.168.205.2
PING 192.168.205.2 (192.168.205.2) 56(84) bytes of data. ^C --- 192.168.205.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1008ms |
#ping 192.168.205.2
PING 192.168.205.2 (192.168.205.2) 56(84) bytes of data. ^C --- 192.168.205.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1006ms |
#ping 192.168.205.2
PING 192.168.205.2 (192.168.205.2) 56(84) bytes of data. ^C --- 192.168.205.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1006ms |
#ssh 192.168.105.1
The authenticity of host '192.168.105.1 (192.168.105.1)' can't be established. RSA key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6. Are you sure you want to continue connecting (yes/no)? n Please type 'yes' or 'no': n Please type 'yes' or 'no': no Host key verification failed. |
#ssh 192.168.105.1
The authenticity of host '192.168.105.1 (192.168.105.1)' can't be established. RSA key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6. Are you sure you want to continue connecting (yes/no)? n Please type 'yes' or 'no': n Please type 'yes' or 'no': no Host key verification failed. |
#ssh 192.168.105.1
The authenticity of host '192.168.105.1 (192.168.105.1)' can't be established. RSA key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.105.1' (RSA) to the list of known hosts. Enter passphrase for key '/root/.ssh/id_dsa': Linux linux9 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 20:30:06 2009 from 192.168.205.2 l3-agent is already running: pid=17118; pidfile=/root/.lilalo/l3-agent.pid |
#ssh 192.168.105.1
The authenticity of host '192.168.105.1 (192.168.105.1)' can't be established. RSA key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.105.1' (RSA) to the list of known hosts. Enter passphrase for key '/root/.ssh/id_dsa': Linux linux9 2.6.29-2-686 #1 SMP Sun May 17 17:56:29 UTC 2009 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jun 3 20:30:06 2009 from 192.168.205.2 l3-agent is already running: pid=17118; pidfile=/root/.lilalo/l3-agent.pid |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. ^C --- 192.168.105.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1006ms |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. ^C --- 192.168.105.2 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1006ms |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. 64 bytes from 192.168.105.1: icmp_seq=1 ttl=63 time=0.551 ms 64 bytes from 192.168.105.1: icmp_seq=2 ttl=63 time=0.542 ms 64 bytes from 192.168.105.1: icmp_seq=3 ttl=63 time=0.547 ms ^C --- 192.168.105.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.542/0.546/0.551/0.027 ms |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. 64 bytes from 192.168.105.1: icmp_seq=1 ttl=63 time=0.551 ms 64 bytes from 192.168.105.1: icmp_seq=2 ttl=63 time=0.542 ms 64 bytes from 192.168.105.1: icmp_seq=3 ttl=63 time=0.547 ms ^C --- 192.168.105.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.542/0.546/0.551/0.027 ms |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. 64 bytes from 192.168.105.1: icmp_seq=1 ttl=63 time=0.758 ms 64 bytes from 192.168.105.1: icmp_seq=2 ttl=63 time=0.553 ms 64 bytes from 192.168.105.1: icmp_seq=3 ttl=63 time=0.557 ms ^C --- 192.168.105.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev = 0.553/0.622/0.758/0.099 ms |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. 64 bytes from 192.168.105.1: icmp_seq=1 ttl=63 time=0.758 ms 64 bytes from 192.168.105.1: icmp_seq=2 ttl=63 time=0.553 ms 64 bytes from 192.168.105.1: icmp_seq=3 ttl=63 time=0.557 ms ^C --- 192.168.105.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev = 0.553/0.622/0.758/0.099 ms |
#ping 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data. ^C --- 10.0.35.100 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
#ping 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data. ^C --- 10.0.35.100 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
Время первой команды журнала | 19:11:44 2009- 6- 3 | ||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:55:27 2009- 6- 4 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 38.61 | ||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.04 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.61 | ||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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