/l3/users/eb/2009/linux10/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 |
|
#ls -la
итого 9588 drwxr-xr-x 33 user user 4096 Июн 3 16:25 . drwxr-xr-x 204 root root 4096 Май 30 14:07 .. drwx------ 3 user user 4096 Май 29 18:55 .adobe -rw------- 1 user user 2116 Июн 3 18:54 .bash_history -rw-r--r-- 1 user user 220 Мар 1 11:31 .bash_logout -rw-r--r-- 1 user root 22 Май 26 10:40 .bash_profile -rw-r--r-- 1 user user 3159 Май 26 10:39 .bashrc drwx------ 5 user user 4096 Май 26 13:48 .cache drwxr-xr-x 7 user user 4096 Май 26 11:43 .config ... -rw-r--r-- 1 root root 3984 Май 25 17:25 .screenrc drwx------ 2 user user 4096 Май 25 12:25 .ssh drwxr-xr-x 2 user user 4096 Май 25 01:11 Templates drwxr-xr-x 4 user user 4096 Май 29 16:07 .thumbnails drwxr-xr-x 2 user user 4096 Май 25 01:11 Videos -rw------- 1 user user 2921 Июн 2 21:45 .viminfo -rw------- 1 user user 118 Июн 3 16:25 .Xauthority -rw-r--r-- 1 user user 781254 Июн 3 13:57 xf86-video-intel-2.7.0.tar.bz2 -rw-r--r-- 1 user user 10554 Май 26 13:44 .xscreensaver -rw-r--r-- 1 user user 147 Июн 3 16:25 .xsession-errors |
#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 --- 4 packets transmitted, 0 received, 100% packet loss, time 2999ms |
#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 --- 4 packets transmitted, 0 received, 100% packet loss, time 3023ms |
#ls -la
итого 9588 drwxr-xr-x 33 user user 4096 Июн 3 16:25 . drwxr-xr-x 204 root root 4096 Май 30 14:07 .. drwx------ 3 user user 4096 Май 29 18:55 .adobe -rw------- 1 user user 2116 Июн 3 18:54 .bash_history -rw-r--r-- 1 user user 220 Мар 1 11:31 .bash_logout -rw-r--r-- 1 user root 22 Май 26 10:40 .bash_profile -rw-r--r-- 1 user user 3159 Май 26 10:39 .bashrc drwx------ 5 user user 4096 Май 26 13:48 .cache drwxr-xr-x 7 user user 4096 Май 26 11:43 .config ... -rw-r--r-- 1 root root 3984 Май 25 17:25 .screenrc drwx------ 2 user user 4096 Май 25 12:25 .ssh drwxr-xr-x 2 user user 4096 Май 25 01:11 Templates drwxr-xr-x 4 user user 4096 Май 29 16:07 .thumbnails drwxr-xr-x 2 user user 4096 Май 25 01:11 Videos -rw------- 1 user user 2921 Июн 2 21:45 .viminfo -rw------- 1 user user 118 Июн 3 16:25 .Xauthority -rw-r--r-- 1 user user 781254 Июн 3 13:57 xf86-video-intel-2.7.0.tar.bz2 -rw-r--r-- 1 user user 10554 Май 26 13:44 .xscreensaver -rw-r--r-- 1 user user 147 Июн 3 16:25 .xsession-errors |
#vim /etc/init.d/networking restart
|
# 22 check_network_file_systems() {
Reconfiguring network interfaces...done. |
#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 192.168.202.1
PING 192.168.202.1 (192.168.202.1) 56(84) bytes of data. ^C --- 192.168.202.1 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 |
#ip route
192.168.105.0/24 dev eth0 proto kernel scope link src 192.168.105.2 default via 192.168.105.1 dev eth0 |
#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 --- 3 packets transmitted, 0 received, 100% packet loss, time 2016ms |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=62 time=1.00 ms 64 bytes from 10.0.35.1: icmp_seq=2 ttl=62 time=1.00 ms 64 bytes from 10.0.35.1: icmp_seq=3 ttl=62 time=0.991 ms 64 bytes from 10.0.35.1: icmp_seq=4 ttl=62 time=1.00 ms ^C --- 10.0.35.1 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3002ms rtt min/avg/max/mdev = 0.991/1.000/1.008/0.023 ms |
#ping 10.0.35.100
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=61 time=3.68 ms 64 bytes from 10.0.35.100: icmp_seq=2 ttl=61 time=1.00 ms ^C --- 10.0.35.100 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 1.008/2.345/3.683/1.338 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 --- 3 packets transmitted, 0 received, 100% packet loss, time 2014ms |
#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 --- 5 packets transmitted, 0 received, 100% packet loss, time 3999ms |
#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 --- 4 packets transmitted, 0 received, 100% packet loss, time 3024ms |
#ping 10.0.35.100
PING 10.0.35.100 (10.0.35.100) 56(84) bytes of data. From 192.168.105.2 icmp_seq=1 Destination Host Unreachable From 192.168.105.2 icmp_seq=2 Destination Host Unreachable ^C --- 10.0.35.100 ping statistics --- 3 packets transmitted, 0 received, +2 errors, 100% packet loss, time 2007ms , pipe 2 |
#tcpdump 10.0.35.100
tcpdump: syntax error |
#tcpdamp 10.0.35.100
bash: tcpdamp: команда не найдена |
#ping 192.168.106.2
PING 192.168.106.2 (192.168.106.2) 56(84) bytes of data. From 192.168.105.2 icmp_seq=1 Destination Host Unreachable From 192.168.105.2 icmp_seq=2 Destination Host Unreachable From 192.168.105.2 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.106.2 ping statistics --- 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3000ms , pipe 3 |
#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 1007ms |
#traceroute 10.0.35.100
traceroute to 10.0.35.100 (10.0.35.100), 30 hops max, 60 byte packets 1 (192.168.105.2) 3003.641 ms !H 3003.637 ms !H 3003.630 ms !H |
#vim /etc/network/interfaces
|
#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 1007ms |
#ip route
192.168.105.0/24 dev eth0 proto kernel scope link src 192.168.105.2 default via 192.168.105.1 dev eth0 |
#tracert 10.0.35.100
traceroute to 10.0.35.100 (10.0.35.100), 30 hops max, 60 byte packets 1 linux10 (192.168.105.1) 1.027 ms 1.012 ms 1.010 ms 2 192.168.205.1 (192.168.205.1) 1.009 ms 2.008 ms 2.017 ms 3 * * * 4 10.0.35.100 (10.0.35.100) 1.538 ms 1.511 ms 1.494 ms |
#ip route
192.168.105.0/24 dev eth0 proto kernel scope link src 192.168.105.2 default via 192.168.105.1 dev eth0 |
#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 --- 3 packets transmitted, 0 received, 100% packet loss, time 2015ms |
#ping 10.0.35.100
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=61 time=5.79 ms 64 bytes from 10.0.35.100: icmp_seq=2 ttl=61 time=1.02 ms 64 bytes from 10.0.35.100: icmp_seq=3 ttl=61 time=0.978 ms ^C --- 10.0.35.100 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 0.978/2.598/5.795/2.260 ms |
#ping 10.0.35.100
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=61 time=1.00 ms 64 bytes from 10.0.35.100: icmp_seq=2 ttl=61 time=1.01 ms 64 bytes from 10.0.35.100: icmp_seq=3 ttl=61 time=0.984 ms ^C --- 10.0.35.100 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 0.984/1.000/1.016/0.038 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 --- 3 packets transmitted, 0 received, 100% packet loss, time 2014ms |
#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 --- 3 packets transmitted, 0 received, 100% packet loss, time 2016ms |
#ping 10.0.35.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. From 192.168.105.2 icmp_seq=1 Destination Host Unreachable From 192.168.105.2 icmp_seq=2 Destination Host Unreachable From 192.168.105.2 icmp_seq=3 Destination Host Unreachable From 192.168.105.2 icmp_seq=4 Destination Host Unreachable ^C --- 10.0.35.1 ping statistics --- 5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 4015ms , pipe 3 |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:13:d4:b2:4f:e0 inet addr:192.168.105.2 Bcast:192.168.105.255 Mask:255.255.255.0 inet6 addr: fe80::213:d4ff:feb2:4fe0/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:84685 errors:0 dropped:0 overruns:0 frame:0 TX packets:81466 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:65375331 (62.3 MiB) TX bytes:24888217 (23.7 MiB) Memory:cffe0000-d0000000 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:1617 errors:0 dropped:0 overruns:0 frame:0 TX packets:1617 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:16277939 (15.5 MiB) TX bytes:16277939 (15.5 MiB) |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. From 192.168.105.2 icmp_seq=2 Destination Host Unreachable From 192.168.105.2 icmp_seq=3 Destination Host Unreachable From 192.168.105.2 icmp_seq=4 Destination Host Unreachable ^C --- 192.168.105.1 ping statistics --- 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms , pipe 3 |
#ping 192.168.205.1
PING 192.168.205.1 (192.168.205.1) 56(84) bytes of data. From 192.168.105.2 icmp_seq=1 Destination Host Unreachable From 192.168.105.2 icmp_seq=2 Destination Host Unreachable ^C --- 192.168.205.1 ping statistics --- 3 packets transmitted, 0 received, +2 errors, 100% packet loss, time 2006ms , pipe 2 |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. ^C --- 192.168.105.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1007ms |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. 64 bytes from 192.168.105.2: icmp_seq=1 ttl=64 time=0.041 ms 64 bytes from 192.168.105.2: icmp_seq=2 ttl=64 time=0.029 ms 64 bytes from 192.168.105.2: icmp_seq=3 ttl=64 time=0.023 ms ^C --- 192.168.105.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.023/0.031/0.041/0.007 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.1
PING 192.168.205.1 (192.168.205.1) 56(84) bytes of data. From 192.168.105.2 icmp_seq=1 Destination Host Unreachable ^C --- 192.168.205.1 ping statistics --- 2 packets transmitted, 0 received, +1 errors, 100% packet loss, time 1000ms |
#/etc/init.d/networking restart
Reconfiguring network interfaces...SIOCADDRT: File exists SIOCADDRT: No such process done. |
#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 --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
#ip route
192.168.105.0/24 dev eth0 proto kernel scope link src 192.168.105.2 default via 192.168.105.1 dev eth0 |
#ping 192.168.215.1
PING 192.168.215.1 (192.168.215.1) 56(84) bytes of data. ^C --- 192.168.215.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
#ping 192.168.215.2
PING 192.168.215.2 (192.168.215.2) 56(84) bytes of data. ^C --- 192.168.215.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 999ms |
#ip route
192.168.105.0/24 dev eth0 proto kernel scope link src 192.168.105.2 default via 192.168.105.1 dev eth0 |
#ip route
192.168.105.0/24 dev eth0 proto kernel scope link src 192.168.105.2 default via 192.168.105.1 dev eth0 |
#ping 192.168.205.2
PING 192.168.205.2 (192.168.205.2) 56(84) bytes of data. From 192.168.105.2 icmp_seq=1 Destination Host Unreachable From 192.168.105.2 icmp_seq=2 Destination Host Unreachable ^C --- 192.168.205.2 ping statistics --- 2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 999ms , pipe 2 |
#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 --- 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. ^C --- 192.168.105.1 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2014ms |
#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 1006ms |
#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 --- 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. 64 bytes from 192.168.105.2: icmp_seq=1 ttl=64 time=0.045 ms 64 bytes from 192.168.105.2: icmp_seq=2 ttl=64 time=0.029 ms ^C --- 192.168.105.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.029/0.037/0.045/0.008 ms |
#init 6
|
#ip route
192.168.105.0/24 dev eth0 proto kernel scope link src 192.168.105.2 default via 192.168.105.1 dev eth0 |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. ^C --- 192.168.105.1 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2014ms |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. 64 bytes from 192.168.105.2: icmp_seq=1 ttl=64 time=0.037 ms 64 bytes from 192.168.105.2: icmp_seq=2 ttl=64 time=0.030 ms 64 bytes from 192.168.105.2: icmp_seq=3 ttl=64 time=0.029 ms ^C --- 192.168.105.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.029/0.032/0.037/0.003 ms |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. From 192.168.105.2 icmp_seq=1 Destination Host Unreachable From 192.168.105.2 icmp_seq=2 Destination Host Unreachable From 192.168.105.2 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.105.1 ping statistics --- 5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4022ms , pipe 3 |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. From 192.168.105.2 icmp_seq=2 Destination Host Unreachable From 192.168.105.2 icmp_seq=3 Destination Host Unreachable From 192.168.105.2 icmp_seq=4 Destination Host Unreachable ^C --- 192.168.105.1 ping statistics --- 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2999ms , pipe 3 |
#ip route
192.168.105.0/24 dev eth0 proto kernel scope link src 192.168.105.2 default via 192.168.105.1 dev eth0 |
#/etc/init.d/networking restart
Reconfiguring network interfaces...SIOCADDRT: File exists done. |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. ^C --- 192.168.105.1 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2016ms |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. 64 bytes from 192.168.105.2: icmp_seq=1 ttl=64 time=0.046 ms 64 bytes from 192.168.105.2: icmp_seq=2 ttl=64 time=0.033 ms 64 bytes from 192.168.105.2: icmp_seq=3 ttl=64 time=0.033 ms ^C --- 192.168.105.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev = 0.033/0.037/0.046/0.007 ms |
#ip route
192.168.105.0/24 dev eth0 proto kernel scope link src 192.168.105.2 default via 192.168.105.1 dev eth0 |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. 64 bytes from 192.168.105.2: icmp_seq=1 ttl=64 time=0.042 ms 64 bytes from 192.168.105.2: icmp_seq=2 ttl=64 time=0.029 ms 64 bytes from 192.168.105.2: icmp_seq=3 ttl=64 time=0.027 ms ^C --- 192.168.105.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.027/0.032/0.042/0.009 ms |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. ^C --- 192.168.105.1 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 1999ms |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. From 192.168.105.2 icmp_seq=1 Destination Host Unreachable From 192.168.105.2 icmp_seq=2 Destination Host Unreachable From 192.168.105.2 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.105.1 ping statistics --- 5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4023ms , pipe 3 |
#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 --- 2 packets transmitted, 0 received, 100% packet loss, time 1008ms |
#ifconfig eth0 192.168.15.10/24 up
|
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. 64 bytes from 192.168.15.254: icmp_seq=1 ttl=64 time=0.047 ms 64 bytes from 192.168.15.254: icmp_seq=2 ttl=64 time=0.031 ms 64 bytes from 192.168.15.254: icmp_seq=3 ttl=64 time=0.032 ms 64 bytes from 192.168.15.254: icmp_seq=4 ttl=64 time=0.028 ms 64 bytes from 192.168.15.254: icmp_seq=5 ttl=64 time=0.034 ms ^C --- 192.168.15.254 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 3998ms rtt min/avg/max/mdev = 0.028/0.034/0.047/0.008 ms |
#ping 192.168.105.1
connect: Network is unreachable |
#ping 10.0.35.1
connect: Network is unreachable |
#ping 10.0.35.100
connect: Network is unreachable |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. 64 bytes from 192.168.15.254: icmp_seq=1 ttl=64 time=0.042 ms 64 bytes from 192.168.15.254: icmp_seq=2 ttl=64 time=0.032 ms ^C --- 192.168.15.254 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.032/0.037/0.042/0.005 ms |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. 64 bytes from 192.168.15.254: icmp_seq=1 ttl=64 time=0.041 ms 64 bytes from 192.168.15.254: icmp_seq=2 ttl=64 time=0.031 ms ^C --- 192.168.15.254 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.031/0.036/0.041/0.005 ms |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:13:d4:b2:4f:e0 inet addr:192.168.15.254 Bcast:192.168.15.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Memory:cffe0000-d0000000 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:108 errors:0 dropped:0 overruns:0 frame:0 TX packets:108 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:10296 (10.0 KiB) TX bytes:10296 (10.0 KiB) |
#vim /etc/network/interfaces
--- /tmp/l3-saved-3086.14718.26420 2009-06-04 10:22:35.000000000 +0300 +++ /etc/network/interfaces 2009-06-04 10:22:57.000000000 +0300 @@ -11,6 +11,6 @@ # broadcast 192.168.15.255 # gateway 192.168.15.254 iface eth0 inet manual - up ifconfig eth0 192.168.105.2 || true - up route add default gw 192.168.105.1 || true + up ifconfig eth0 192.168.15.10 || true + up route add default gw 192.168.15.254 || true #up route add default gw 192.168.205.1 || true |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:13:d4:b2:4f:e0 inet addr:192.168.15.10 Bcast:192.168.15.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Memory:cffe0000-d0000000 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:122 errors:0 dropped:0 overruns:0 frame:0 TX packets:122 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:11648 (11.3 KiB) TX bytes:11648 (11.3 KiB) |
#ping 192.168.15.10
PING 192.168.15.10 (192.168.15.10) 56(84) bytes of data. 64 bytes from 192.168.15.10: icmp_seq=1 ttl=64 time=0.041 ms 64 bytes from 192.168.15.10: icmp_seq=2 ttl=64 time=0.028 ms 64 bytes from 192.168.15.10: icmp_seq=3 ttl=64 time=0.031 ms ^C --- 192.168.15.10 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2000ms rtt min/avg/max/mdev = 0.028/0.033/0.041/0.007 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.1
PING 10.0.35.1 (10.0.35.1) 56(84) bytes of data. ^C --- 10.0.35.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1006ms |
#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 --- 1 packets transmitted, 0 received, 100% packet loss, time 0ms |
#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 --- 2 packets transmitted, 0 received, 100% packet loss, time 1007ms |
#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 1007ms |
#ssh 192.168.15.254
ssh: connect to host 192.168.15.254 port 22: No route to host |
#ping 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 --- 2 packets transmitted, 0 received, 100% packet loss, time 1007ms |
#ip route
192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.10 |
#ip route
192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.10 default via 192.168.15.254 dev eth0 |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. From 192.168.15.10 icmp_seq=1 Destination Host Unreachable From 192.168.15.10 icmp_seq=2 Destination Host Unreachable From 192.168.15.10 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.15.254 ping statistics --- 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3013ms , pipe 3 |
#ping 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 --- 3 packets transmitted, 0 received, 100% packet loss, time 2015ms |
#ping 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 --- 3 packets transmitted, 0 received, 100% packet loss, time 2015ms |
#ping 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 --- 2 packets transmitted, 0 received, 100% packet loss, time 1006ms |
#ip route
192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.10 default via 192.168.15.254 dev eth0 |
#mii-tool
SIOCGMIIREG on eth0 failed: Input/output error SIOCGMIIREG on eth0 failed: Input/output error No MII transceiver present!. |
#eth-tool
bash: eth-tool: команда не найдена |
#ip route
192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.10 default via 192.168.15.254 dev eth0 |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. 64 bytes from 192.168.15.254: icmp_seq=1 ttl=64 time=8.12 ms 64 bytes from 192.168.15.254: icmp_seq=2 ttl=64 time=0.728 ms 64 bytes from 192.168.15.254: icmp_seq=3 ttl=64 time=0.622 ms ^C --- 192.168.15.254 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2003ms rtt min/avg/max/mdev = 0.622/3.157/8.121/3.510 ms |
#mii-tool
SIOCGMIIREG on eth0 failed: Input/output error SIOCGMIIREG on eth0 failed: Input/output error eth0: negotiated 1000baseT-FD flow-control, link ok |
#vim /etc/apt/sources.list
|
#apt-get install eth-tool
Чтение списков пакетов... Готово Построение дерева зависимостей Чтение информации о состоянии... Готово E: Не удалось найти пакет eth-tool |
Время первой команды журнала | 18:57:47 2009- 6- 3 | ||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 10:55:05 2009- 6- 4 | ||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 47.52 | ||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | ||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.71 | ||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.62 | ||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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