/l3/users/eb/2009/linux9/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 |
|
#ifup eth0.215
Ignoring unknown interface eth0.215=eth0.215. |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1e:8c:64:2c:4a inet addr:192.168.15.9 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::21e:8cff:fe64:2c4a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:75777 errors:0 dropped:0 overruns:0 frame:0 TX packets:64434 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:40810690 (38.9 MiB) TX bytes:9669809 (9.2 MiB) eth0.105 Link encap:Ethernet HWaddr 00:1e:8c:64:2c:4a inet addr:192.168.105.1 Bcast:192.168.105.255 Mask:255.255.255.0 ... TX packets:6918 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:296793 (289.8 KiB) TX bytes:296793 (289.8 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.5 P-t-P:172.16.1.6 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:15 errors:0 dropped:0 overruns:0 frame:0 TX packets:84 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:836 (836.0 B) TX bytes:9312 (9.0 KiB) |
#vim /etc/network/interfaces
--- /tmp/l3-saved-6098.6848.11927 2009-06-03 20:22:48.000000000 +0300 +++ /etc/network/interfaces 2009-06-03 20:24:25.000000000 +0300 @@ -21,7 +21,7 @@ up ifconfig eth0.205 192.168.205.2 || true #network 255.255.255.0 -up ip route add default gw 192.168.205.1 table 1 || true +up route add default gw 192.168.205.1 table 1 || true #vlan_raw_device eth0 |
#ip route
172.16.1.6 dev tun0 proto kernel scope link src 172.16.1.5 192.168.215.0/24 dev eth0.215 proto kernel scope link src 192.168.215.2 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.9 192.168.205.0/24 dev eth0.205 proto kernel scope link src 192.168.205.2 192.168.105.0/24 dev eth0.105 proto kernel scope link src 192.168.105.1 192.168.106.0/24 via 172.16.1.6 dev tun0 default via 192.168.15.254 dev eth0 |
#ssh 192.168.202.2
ssh: connect to host 192.168.202.2 port 22: Connection refused |
#/etc/init.d/networking restart
Reconfiguring network interfaces...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 if-up.d/mountnfs[eth0]: waiting for interface eth0.105 before doing NFS mounts (warning). if-up.d/mountnfs[eth0]: waiting for interface eth0.205 before doing NFS mounts (warning). if-up.d/mountnfs[eth0]: waiting for interface eth0.215 before doing NFS mounts (warning). Ignoring unknown interface eth0.105=eth0.105. Ignoring unknown interface eth0.205=eth0.205. Ignoring unknown interface eth0.215=eth0.215. done. |
#/etc/init.d/networking restart
Reconfiguring network interfaces...if-up.d/mountnfs[eth0]: waiting for interface eth0.105 before doing NFS mounts (warning). if-up.d/mountnfs[eth0]: waiting for interface eth0.205 before doing NFS mounts (warning). if-up.d/mountnfs[eth0]: waiting for interface eth0.215 before doing NFS mounts (warning). Ignoring unknown interface eth0.105=eth0.105. Ignoring unknown interface eth0.205=eth0.205. Ignoring unknown interface eth0.215=eth0.215. done. |
#ssh 192.168.202.2 30222
ssh: connect to host 192.168.202.2 port 22: Connection refused |
#ssh 192.168.202.2 30022
ssh: connect to host 192.168.202.2 port 22: Connection refused |
#ssh 192.168.202.2 322
ssh: connect to host 192.168.202.2 port 22: Connection refused |
#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=62 time=0.439 ms 64 bytes from 10.0.35.100: icmp_seq=2 ttl=62 time=0.246 ms 64 bytes from 10.0.35.100: icmp_seq=3 ttl=62 time=0.262 ms ^C --- 10.0.35.100 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 1998ms rtt min/avg/max/mdev = 0.246/0.315/0.439/0.089 ms |
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE all -- anywhere anywhere MASQUERADE all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE all -- anywhere anywhere MASQUERADE all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#ssh 192.168.205.2
The authenticity of host '192.168.205.2 (192.168.205.2)' can't be established. RSA key fingerprint is 34:6c:c2:da:38:7c:d7:17:e9:cd:17:8d:e7:cf:f1:a6. +--[ RSA 2048]----+ | | | . . . ..| | o = o ..o| | . + + o . + o.| | = o S . o o.o| | o . . o+| | =| ... Warning: Permanently added '192.168.205.2' (RSA) to the list of known hosts. root@192.168.205.2's password: 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:19:55 2009 from 192.168.206.2 l3-agent is already running: pid=17118; pidfile=/root/.lilalo/l3-agent.pid |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:1e:8c:64:2c:4a inet addr:192.168.15.9 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::21e:8cff:fe64:2c4a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:77826 errors:0 dropped:0 overruns:0 frame:0 TX packets:66341 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:41383341 (39.4 MiB) TX bytes:10266654 (9.7 MiB) eth0.105 Link encap:Ethernet HWaddr 00:1e:8c:64:2c:4a inet addr:192.168.105.1 Bcast:192.168.105.255 Mask:255.255.255.0 ... TX packets:7001 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:307987 (300.7 KiB) TX bytes:307987 (300.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.5 P-t-P:172.16.1.6 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:361 errors:0 dropped:0 overruns:0 frame:0 TX packets:576 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:41656 (40.6 KiB) TX bytes:263916 (257.7 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:1e:8c:64:2c:4a inet addr:192.168.15.9 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::21e:8cff:fe64:2c4a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:77826 errors:0 dropped:0 overruns:0 frame:0 TX packets:66341 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:41383341 (39.4 MiB) TX bytes:10266654 (9.7 MiB) eth0.105 Link encap:Ethernet HWaddr 00:1e:8c:64:2c:4a inet addr:192.168.105.1 Bcast:192.168.105.255 Mask:255.255.255.0 ... TX packets:7001 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:307987 (300.7 KiB) TX bytes:307987 (300.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.5 P-t-P:172.16.1.6 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:361 errors:0 dropped:0 overruns:0 frame:0 TX packets:576 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:41656 (40.6 KiB) TX bytes:263916 (257.7 KiB) |
#ping 192.168.215.1
PING 192.168.215.1 (192.168.215.1) 56(84) bytes of data. 64 bytes from 192.168.215.1: icmp_seq=1 ttl=64 time=2.57 ms 64 bytes from 192.168.215.1: icmp_seq=2 ttl=64 time=0.903 ms ^C --- 192.168.215.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.903/1.739/2.575/0.836 ms |
#ping 192.168.215.1
PING 192.168.215.1 (192.168.215.1) 56(84) bytes of data. 64 bytes from 192.168.215.1: icmp_seq=1 ttl=64 time=2.57 ms 64 bytes from 192.168.215.1: icmp_seq=2 ttl=64 time=0.903 ms ^C --- 192.168.215.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 0.903/1.739/2.575/0.836 ms |
#ip route show
.bash_history data/ date.log file0 harddisk.img .lesshst .profile q! .screenrc .ssh/ .viminfo .bash_profile date05.log DFJ/ file1 .john/ .lilalo/ psword screen.dot .sendxmpp userad .vimrc .bashrc date2.log FDGJDGF/ FJHDGFJ/ .l3rc mailto q screen.png .sendxmpprc .vim/ .Xauthority |
#ip route show
.bash_history data/ date.log file0 harddisk.img .lesshst .profile q! .screenrc .ssh/ .viminfo .bash_profile date05.log DFJ/ file1 .john/ .lilalo/ psword screen.dot .sendxmpp userad .vimrc .bashrc date2.log FDGJDGF/ FJHDGFJ/ .l3rc mailto q screen.png .sendxmpprc .vim/ .Xauthority |
#ip route show
172.16.1.6 dev tun0 proto kernel scope link src 172.16.1.5 192.168.215.0/24 dev eth0.215 proto kernel scope link src 192.168.215.2 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.9 192.168.205.0/24 dev eth0.205 proto kernel scope link src 192.168.205.2 192.168.105.0/24 dev eth0.105 proto kernel scope link src 192.168.105.1 192.168.106.0/24 via 172.16.1.6 dev tun0 default via 192.168.205.1 dev eth0.205 default via 192.168.15.254 dev eth0 |
#ip route show
172.16.1.6 dev tun0 proto kernel scope link src 172.16.1.5 192.168.215.0/24 dev eth0.215 proto kernel scope link src 192.168.215.2 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.9 192.168.205.0/24 dev eth0.205 proto kernel scope link src 192.168.205.2 192.168.105.0/24 dev eth0.105 proto kernel scope link src 192.168.105.1 192.168.106.0/24 via 172.16.1.6 dev tun0 default via 192.168.205.1 dev eth0.205 default via 192.168.15.254 dev eth0 |
#ping -I 192.168.205.2 10.0.35.100
PING 10.0.35.100 (10.0.35.100) from 192.168.205.2 : 56(84) bytes of data. 64 bytes from 10.0.35.100: icmp_seq=1 ttl=62 time=0.449 ms ^C --- 10.0.35.100 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.449/0.449/0.449/0.000 ms |
#ping -I 192.168.205.2 10.0.35.100
PING 10.0.35.100 (10.0.35.100) from 192.168.205.2 : 56(84) bytes of data. 64 bytes from 10.0.35.100: icmp_seq=1 ttl=62 time=0.449 ms ^C --- 10.0.35.100 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.449/0.449/0.449/0.000 ms |
#ping -I 192.168.215.2 10.0.35.100
PING 10.0.35.100 (10.0.35.100) from 192.168.215.2 : 56(84) bytes of data. 64 bytes from 10.0.35.100: icmp_seq=1 ttl=62 time=0.248 ms 64 bytes from 10.0.35.100: icmp_seq=2 ttl=62 time=0.254 ms ^C --- 10.0.35.100 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.248/0.251/0.254/0.003 ms |
#ping -I 192.168.215.2 10.0.35.100
PING 10.0.35.100 (10.0.35.100) from 192.168.215.2 : 56(84) bytes of data. 64 bytes from 10.0.35.100: icmp_seq=1 ttl=62 time=0.248 ms 64 bytes from 10.0.35.100: icmp_seq=2 ttl=62 time=0.254 ms ^C --- 10.0.35.100 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.248/0.251/0.254/0.003 ms |
#vi chroute
--- /dev/null 2009-06-03 09:32:25.504617420 +0300 +++ chroute 2009-06-03 20:56:49.000000000 +0300 @@ -0,0 +1,15 @@ +IP1=192.168.205.2 +IP2=192.168.215.2 +GW1=192.168.205.1 +GW2=192.168.215.1 + +while true +do +if ping -I $IP1 -c 1 10.0.35.1 +then + ip route change default $GW1 +else + ping -I $IP2 -c 1 10.0.35.1 && ip route change default $GW2 +fi +sleep 1 +done |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 0.0.0.0 192.168.15.254 0.0.0.0 UG 0 0 0 eth0 |
#ssh 192.168.215.1
ssh: connect to host 192.168.215.1 port 22: No route to host |
#ssh 192.168.205.1
enable Enter the Manager Exec context. exit Return to the previous context or terminate current console/telnet session if you are in the Operator context level. link-test Test the connection to a MAC address on the LAN. logout Terminate this console/telnet session. menu Change console user interface to menu system. ping Send IP Ping requests to a device on the network. show Display switch operation information. ProCurve Switch 3400cl-48G# write memory Save the running configuration of the switch to flash. terminal Display the running configuration of the switch on the terminal. ProCurve Switch 3400cl-48G# write memory Save the running configuration of the switch to flash. terminal Display the running configuration of the switch on the terminal. ProCurve Switch 3400cl-48G# conf t ProCurve Switch 3400cl-48G(config)# vlan 205 ProCurve Switch 3400cl-48G(vlan-205)# no tagged 7Read from remote host 192.168.205.1: No route to host Connection to 192.168.205.1 closed. |
#chroute
bash: chroute: команда не найдена |
#./chroute
PING 10.0.35.1 (10.0.35.1) from 192.168.205.2 : 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.256 ms --- 10.0.35.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.256/0.256/0.256/0.000 ms Error: either "to" is duplicate, or "192.168.205.1" is a garbage. PING 10.0.35.1 (10.0.35.1) from 192.168.205.2 : 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.264 ms --- 10.0.35.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.264/0.264/0.264/0.000 ms Error: either "to" is duplicate, or "192.168.205.1" is a garbage. PING 10.0.35.1 (10.0.35.1) from 192.168.205.2 : 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.245 ms --- 10.0.35.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.245/0.245/0.245/0.000 ms Error: either "to" is duplicate, or "192.168.205.1" is a garbage. |
#./chroute
PING 10.0.35.1 (10.0.35.1) from 192.168.205.2 : 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.262 ms --- 10.0.35.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.262/0.262/0.262/0.000 ms Error: either "to" is duplicate, or "192.168.205.1" is a garbage. PING 10.0.35.1 (10.0.35.1) from 192.168.205.2 : 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.249 ms --- 10.0.35.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms ... --- 10.0.35.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.250/0.250/0.250/0.000 ms Error: either "to" is duplicate, or "192.168.205.1" is a garbage. PING 10.0.35.1 (10.0.35.1) from 192.168.205.2 : 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.248 ms --- 10.0.35.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.248/0.248/0.248/0.000 ms Error: either "to" is duplicate, or "192.168.205.1" is a garbage. |
#vi chroute
|
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
172.16.1.6 dev tun0 proto kernel scope link src 172.16.1.5 192.168.215.0/24 dev eth0.215 proto kernel scope link src 192.168.215.2 192.168.15.0/24 dev eth0 proto kernel scope link src 192.168.15.9 192.168.205.0/24 dev eth0.205 proto kernel scope link src 192.168.205.2 192.168.105.0/24 dev eth0.105 proto kernel scope link src 192.168.105.1 192.168.106.0/24 via 172.16.1.6 dev tun0 default via 192.168.205.1 dev eth0.205 default via 192.168.15.254 dev eth0 |
#ip route del defailt 192.168.15.254
Error: an inet prefix is expected rather than "defailt". |
#ip route delete default 192.168.15.254
Error: either "to" is duplicate, or "192.168.15.254" is a garbage. |
#ip route delete default 192.168.15.254 dev eth0
Error: either "to" is duplicate, or "192.168.15.254" is a garbage. |
#ip route del default 192.168.15.254 dev eth0
Error: either "to" is duplicate, or "192.168.15.254" is a garbage. |
#vi /etc/network/interfaces
--- /tmp/l3-saved-30944.30687.19425 2009-06-03 20:59:56.000000000 +0300 +++ /etc/network/interfaces 2009-06-03 21:00:11.000000000 +0300 @@ -9,7 +9,7 @@ netmask 255.255.255.0 network 192.168.15.0 broadcast 192.168.15.255 - gateway 192.168.15.254 +# gateway 192.168.15.254 #vconfig add eth0.105 #ifconfig eth0.105 192.168.105.1 |
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
Reconfiguring network interfaces...if-up.d/mountnfs[eth0]: waiting for interface eth0.105 before doing NFS mounts (warning). if-up.d/mountnfs[eth0]: waiting for interface eth0.205 before doing NFS mounts (warning). if-up.d/mountnfs[eth0]: waiting for interface eth0.215 before doing NFS mounts (warning). Ignoring unknown interface eth0.105=eth0.105. Ignoring unknown interface eth0.205=eth0.205. Ignoring unknown interface eth0.215=eth0.215. done. |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#vi chroute
|
#./chroute
1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.247/0.247/0.247/0.000 ms PING 10.0.35.1 (10.0.35.1) from 192.168.205.2 : 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.248 ms --- 10.0.35.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.248/0.248/0.248/0.000 ms PING 10.0.35.1 (10.0.35.1) from 192.168.205.2 : 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.249 ms --- 10.0.35.1 ping statistics --- ... PING 10.0.35.1 (10.0.35.1) from 192.168.215.2 : 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.243 ms --- 10.0.35.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.243/0.243/0.243/0.000 ms PING 10.0.35.1 (10.0.35.1) from 192.168.205.2 : 56(84) bytes of data. 64 bytes from 10.0.35.1: icmp_seq=1 ttl=63 time=0.260 ms --- 10.0.35.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.260/0.260/0.260/0.000 ms |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 |
#~ +q436f+q6b75+q6b64+q6b72+q6b6c+q2332+q2334+q2569+q2a37+q6b31
PING 10.0.35.1 (10.0.35.1) from 192.168.215.2 : 56(84) bytes of data. ^C --- 10.0.35.1 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 1998ms |
#ping 192.168.215.1
PING 192.168.215.1 (192.168.215.1) 56(84) bytes of data. 64 bytes from 192.168.215.1: icmp_seq=1 ttl=64 time=0.605 ms ^C --- 192.168.215.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.605/0.605/0.605/0.000 ms |
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE all -- anywhere anywhere MASQUERADE all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#iptables -L
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE all -- anywhere anywhere MASQUERADE all -- anywhere anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#iptables -t nat -V
iptables v1.4.3.2 |
#iptables -t nat -L -v
Chain PREROUTING (policy ACCEPT 1790 packets, 128K bytes) pkts bytes target prot opt in out source destination Chain POSTROUTING (policy ACCEPT 1133 packets, 83823 bytes) pkts bytes target prot opt in out source destination 815 52237 MASQUERADE all -- any eth0.205 anywhere anywhere 24 1968 MASQUERADE all -- any eth0.215 anywhere anywhere Chain OUTPUT (policy ACCEPT 626 packets, 42191 bytes) pkts bytes target prot opt in out source destination |
#iptables -t nat -F
|
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#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 |
#netstat -rn
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 172.16.1.6 0.0.0.0 255.255.255.255 UH 0 0 0 tun0 192.168.215.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.215 192.168.15.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.205.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.205 192.168.105.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.105 192.168.106.0 172.16.1.6 255.255.255.0 UG 0 0 0 tun0 0.0.0.0 192.168.205.1 0.0.0.0 UG 0 0 0 eth0.205 |
#ping -I 192.168.205.2 10.0.35.1
PING 10.0.35.1 (10.0.35.1) from 192.168.205.2 : 56(84) bytes of data. From 192.168.205.2 icmp_seq=2 Destination Host Unreachable From 192.168.205.2 icmp_seq=3 Destination Host Unreachable From 192.168.205.2 icmp_seq=5 Destination Host Unreachable From 192.168.205.2 icmp_seq=6 Destination Host Unreachable ^C --- 10.0.35.1 ping statistics --- 7 packets transmitted, 0 received, +4 errors, 100% packet loss, time 6029ms , pipe 2 |
#ping -I 192.168.215.2 10.0.35.1
PING 10.0.35.1 (10.0.35.1) from 192.168.215.2 : 56(84) bytes of data. From 192.168.215.2 icmp_seq=1 Destination Host Unreachable From 192.168.215.2 icmp_seq=2 Destination Host Unreachable From 192.168.215.2 icmp_seq=3 Destination Host Unreachable ^C --- 10.0.35.1 ping statistics --- 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3014ms , pipe 3 |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:1e:8c:64:2c:4a inet addr:192.168.15.9 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::21e:8cff:fe64:2c4a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:100993 errors:0 dropped:0 overruns:0 frame:0 TX packets:89248 errors:0 dropped:0 overruns:0 carrier:2 collisions:0 txqueuelen:1000 RX bytes:53021190 (50.5 MiB) TX bytes:21794660 (20.7 MiB) eth0.105 Link encap:Ethernet HWaddr 00:1e:8c:64:2c:4a inet addr:192.168.105.1 Bcast:192.168.105.255 Mask:255.255.255.0 ... TX packets:8326 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:426735 (416.7 KiB) TX bytes:426735 (416.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.5 P-t-P:172.16.1.6 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:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
Время первой команды журнала | 20:21:52 2009- 6- 3 | ||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 21:09:39 2009- 6- 3 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 14.85 | ||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.80 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.11 | ||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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