Журнал лабораторных работ

Содержание

Журнал

Понедельник (06/01/09)

/dev/pts/2
12:43:25
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting.  <14970.1243849412@linux1.unix.nt>
+OK Password required for user.
-ERR [IN-USE] /var/spool/pop/.user.pop lock busy!  Is another session active? (11)
+OK Pop server at linux1.unix.nt signing off.
12:43:30
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting.  <14971.1243849415@linux1.unix.nt>
+OK Password required for user.
-ERR [IN-USE] /var/spool/pop/.user.pop lock busy!  Is another session active? (11)
+OK Pop server at linux1.unix.nt signing off.
12:43:32
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting.  <14972.1243849440@linux1.unix.nt>
+OK Password required for user.
-ERR [IN-USE] /var/spool/pop/.user.pop lock busy!  Is another session active? (11)
+OK Pop server at linux1.unix.nt signing off.
12:43:58
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting.  <14973.1243849448@linux1.unix.nt>
+OK Password required for user.
-ERR [IN-USE] /var/spool/pop/.user.pop lock busy!  Is another session active? (11)
+OK Pop server at linux1.unix.nt signing off.
12:44:06
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting.  <14974.1243849450@linux1.unix.nt>
+OK Password required for user.
-ERR [IN-USE] /var/spool/pop/.user.pop lock busy!  Is another session active? (11)
+OK Pop server at linux1.unix.nt signing off.
12:44:07
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting.  <14975.1243849451@linux1.unix.nt>
+OK Password required for user.
-ERR [IN-USE] /var/spool/pop/.user.pop lock busy!  Is another session active? (11)
+OK Pop server at linux1.unix.nt signing off.
12:44:08
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting.  <14976.1243849451@linux1.unix.nt>
+OK Password required for user.
-ERR [IN-USE] /var/spool/pop/.user.pop lock busy!  Is another session active? (11)
+OK Pop server at linux1.unix.nt signing off.
12:44:09
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting.  <14977.1243849455@linux1.unix.nt>
+OK Password required for user.
-ERR [IN-USE] /var/spool/pop/.user.pop lock busy!  Is another session active? (11)
+OK Pop server at linux1.unix.nt signing off.
12:44:13
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting.  <14978.1243849456@linux1.unix.nt>
+OK Password required for user.
-ERR [IN-USE] /var/spool/pop/.user.pop lock busy!  Is another session active? (11)
+OK Pop server at linux1.unix.nt signing off.
12:44:14
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting.  <14979.1243849457@linux1.unix.nt>
+OK Password required for user.
-ERR [IN-USE] /var/spool/pop/.user.pop lock busy!  Is another session active? (11)
+OK Pop server at linux1.unix.nt signing off.
12:44:15
$(echo USER user ; echo PASS password ) | nc 192.168.15.1 110
+OK Qpopper (version 4.0.9) at linux1.unix.nt starting.  <14980.1243849458@linux1.unix.nt>
+OK Password required for user.
-ERR [IN-USE] /var/spool/pop/.user.pop lock busy!  Is another session active? (11)
+OK Pop server at linux1.unix.nt signing off.
прошло 82 минуты
/dev/pts/3
14:06:51
$ssh root@192.168.15.3
root@192.168.15.3's password:
Linux linux4 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: Mon Jun  1 12:42:08 2009 from 10.0.35.100
Removing stale pidfile
14:07:10
#vi /etc/init/tab
14:07:34
#~
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
#  <id>:<runlevels>:<action>:<process>
#
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
1:2345:respawn:/sbin/getty 38400 tty1
                                                              54,1          67%
14:08:52
#apt-get install rcconf
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  portmap
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  rcconf
0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded.
Need to get 23.1kB of archives.
After this operation, 135kB of additional disk space will be used.
Get:1 http://127.0.0.1 sid/main rcconf 2.2 [23.1kB]
Fetched 23.1kB in 0s (86.0kB/s)
Selecting previously deselected package rcconf.
(Reading database ... 55562 files and directories currently installed.)
Unpacking rcconf (from .../archives/rcconf_2.2_all.deb) ...
Processing triggers for man-db ...
Setting up rcconf (2.2) ...
14:09:25
#reboot; exit
Broadcast message from root@linux4 (pts/1) (Mon Jun  1 14:09:31 2009):
The system is going down for reboot NOW!
exit
Connection to 192.168.15.3 closed.
14:09:31
$sudo vi /etc/init
14:09:31
$sudo vi /etc/inittab
/dev/tty1
14:11:09
$startx
xauth:  creating new authority file /home/user/.Xauthority
xauth:  creating new authority file /home/user/.Xauthority
X: user not authorized to run the X server, aborting.
giving up.
xinit:  No such file or directory (errno 2):  unable to connect to X server
xinit:  No such process (errno 3):  Server error.
14:11:29
$xs
xscreensaver                 xset
xscreensaver-command         xsetmode
xscreensaver-demo            xsetpointer
xscreensaver-getimage        xsetroot
xscreensaver-getimage-file   xsm
xscreensaver-getimage-video  xstdcmap
xscreensaver-text            xsubpp
14:11:29
$x
Display all 122 possibilities? (y or n)
x11perf                       xinit
x11perfcomp                   xinput
xargs                         xkbbell
xaumix                        xkbcomp
xauth                         xkbevd
xbiff                         xkbprint
xcalc                         xkbvleds
xclipboard                    xkbwatch
xclock                        xkeystone
...
xdg-user-dirs-update          xlsatoms
xditview                      xlsclients
xdpyinfo                      xlsfonts
xdriinfo                      xmag
xev                           xman
xeyes                         xmessage
xfbrowser4                    xmodmap
xfce4-about                   xmore
xfce4-accessibility-settings  xprop
xfce4-appearance-settings     xrandr
14:11:29
$sudo vi /etc/inittab
/dev/pts/3
14:19:14
#reboot; exit
Broadcast message from root@linux4 (pts/1) (Mon Jun  1 14:19:18 2009):
The system is going down for reboot NOW!
exit
Connection to 192.168.15.3 closed.
14:19:19
$ls /
bin   dev    home        lost+found  opt   sbin     sys  var
boot  etc    initrd.img  media       proc  selinux  tmp  vmlinuz
data  flash  lib         mnt         root  srv      usr
14:26:12
$ld /mnt
ld: /mnt: No such file: File format not recognized
14:26:21
$ls /mnt
11.txt  lost+found
14:26:26
$cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 sda2[0] sdb2[1]
      29294400 blocks [2/2] [UU]
unused devices: <none>
прошло 25 минут
/dev/pts/1
14:52:23
$ssh -l root 10.0.35.100
root@10.0.35.100's password:
Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 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: Mon Jun  1 14:53:00 2009 from linux12.unix.nt
l3-agent is already running: pid=1851; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/3
14:53:00
$ls -al
total 180
drwxr-xr-x 25 user user  4096 2009-06-01 14:51 .
drwxr-xr-x  4 root root  4096 2009-05-30 14:07 ..
-rw-r--r--  1 user user    82 2009-05-30 10:14 11.txt
drwxr-xr-x  2 user user  4096 2009-05-26 15:38 a
-rw-------  1 user user  4409 2009-06-01 14:32 .bash_history
-rw-r--r--  1 user user   220 2009-03-01 11:31 .bash_logout
-rw-r--r--  1 user root    22 2009-05-26 10:40 .bash_profile
-rw-r--r--  1 user user  3159 2009-05-26 10:39 .bashrc
drwx------  5 user user  4096 2009-05-25 10:16 .cache
...
-rw-r--r--  1 user user   675 2009-03-01 11:31 .profile
drwxr-xr-x  2 user user  4096 2009-05-25 09:36 Public
-rw-r--r--  1 root root  3984 2009-05-25 17:25 .screenrc
drwx------  2 user user  4096 2009-05-25 11:17 .ssh
drwxr-xr-x  2 user user  4096 2009-05-25 09:36 Templates
drwxr-xr-x  2 user user  4096 2009-05-25 09:36 Videos
-rw-------  1 user user  3396 2009-06-01 14:18 .viminfo
-rw-r--r--  1 user user    52 2009-05-25 16:44 .vimrc
-rw-------  1 user user   117 2009-06-01 14:51 .Xauthority
-rw-r--r--  1 user user   271 2009-06-01 14:56 .xsession-errors
/dev/pts/5
14:53:09
$su - root
Password:
l3-agent is already running: pid=3078; pidfile=/root/.lilalo/l3-agent.pid
14:53:55
#fdisk -l /dev/sda
Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x12c36e6e
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        3648    29302528+  83  Linux
/dev/pts/3
14:58:43
$rm -rf ./.gajim/*

14:59:15
$ssh -l swd crimea-board.info
The authenticity of host 'crimea-board.info (193.238.109.9)' can't be established.
RSA key fingerprint is 07:a8:90:07:cd:88:49:21:1d:3d:3b:10:a7:b9:3f:66.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'crimea-board.info,193.238.109.9' (RSA) to the list of known hosts.
Password:
Linux crimea-board.info 2.6.27 #1 SMP Fri Oct 10 12:30:02 EEST 2008 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
...
-rw-r--r--  1 swd 1019 731539456 Май 15 16:09 Lost.s05e16e17.rus.LostFilm.TV.avi
lrwxrwxrwx  1 swd 1019        24 Май 14 19:26 Louis_Armstrong_Gold -> Louis Armstrong Gold 2CD
drwxr-xr-x  5 swd 1019       168 Май 14 19:26 Louis Armstrong Gold 2CD
drwxr-xr-x  2 swd 1019       408 Май  5 10:20 Midsomer_Murders_S01_DVDRip
drwxr-xr-x  2 swd 1019       336 Май 20 16:15 Midsomer_Murders_S02_DVDRip
drwxr-xr-x 47 swd 1019      1128 Апр 16 22:30 Poirot collection
drwxr-xr-x  7 swd 1019       168 Янв  5 16:06 The_Pink_Panther
lrwxrwxrwx  1 swd 1019        80 Июн  1 15:45 Жизнь после людей_2008_DVDRip.avi -> /var/www/flux/downloads/iverton/Жизнь после людей_2008_DVDRip.avi
drwxr-xr-x  5 swd 1019       224 Апр 29 18:48 Рада и Терновник
008_DVDRip.avi --target Life_after_humans.crimea-x.torrent
/dev/pts/5
15:04:22
#fdisk -l /dev/sdb
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xce5cf3c1
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       38913   312568672   83  Linux
/dev/pts/1
15:04:27
$ssh -l root 10.0.35.100
root@10.0.35.100's password:
Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 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: Mon Jun  1 15:18:30 2009 from linux11.unix.nt
l3-agent is already running: pid=1765; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/5
15:04:45
#cat /proc/sys/net/ipv4/ip_
ip_default_ttl       ip_forward           ip_nonlocal_bind
ip_dynaddr           ip_local_port_range  ip_no_pmtu_disc
15:04:45
#cat /proc/sys/net/ipv4/ip_forward
0
/dev/pts/1
15:06:49
#screen -x
прошло 11 минут
15:18:31
#screen -x
/dev/pts/5
15:20:05
#vi /etc/sysctl.conf
15:20:41
#apt-cache search hping3
hping3 - Active Network Smashing Tool
прошло 20 минут
/dev/pts/1
15:40:45
#screen -ды
/dev/pts/3
15:49:45
$sudo ping crimea-board.info
[sudo] password for user:
Sorry, try again.
[sudo] password for user:
PING crimea-board.info (193.238.109.9) 56(84) bytes of data.
64 bytes from crimea-board.info (193.238.109.9): icmp_seq=1 ttl=54 time=27.0 ms
64 bytes from crimea-board.info (193.238.109.9): icmp_seq=2 ttl=54 time=59.6 ms
64 bytes from crimea-board.info (193.238.109.9): icmp_seq=3 ttl=54 time=25.3 ms
64 bytes from crimea-board.info (193.238.109.9): icmp_seq=4 ttl=54 time=38.1 ms
^C
--- crimea-board.info ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3002ms
rtt min/avg/max/mdev = 25.383/37.579/59.667/13.666 ms
прошло 12 минут
/dev/pts/1
16:02:36
#screen -дls
16:02:40
#screen -дx
прошло 11 минут
/dev/pts/5
16:13:50
#whatis hping3
hping3 (8)           - send (almost) arbitrary TCP/IP packets to network hosts
16:15:08
#hping3 --help
usage: hping3 host [options]
  -h  --help      show this help
  -v  --version   show version
  -c  --count     packet count
  -i  --interval  wait (uX for X microseconds, for example -i u1000)
      --fast      alias for -i u10000 (10 packets for second)
      --faster    alias for -i u1000 (100 packets for second)
      --flood      sent packets as fast as possible. Don't show replies.
  -n  --numeric   numeric output
  -q  --quiet     quiet
...
  -j  --dump       dump packets in hex
  -J  --print      dump printable characters
  -B  --safe       enable 'safe' protocol
  -u  --end        tell you when --file reached EOF and prevent rewind
  -T  --traceroute traceroute mode              (implies --bind and --ttl 1)
  --tr-stop        Exit when receive the first not ICMP in traceroute mode
  --tr-keep-ttl    Keep the source TTL fixed, useful to monitor just one hop
  --tr-no-rtt       Don't calculate/show RTT information in traceroute mode
ARS packet description (new, unstable)
  --apd-send       Send the packet described with APD (see docs/APD.txt)
16:15:47
#hping3 crimea-board.info
HPING crimea-board.info (eth0 193.238.109.9): NO FLAGS are set, 40 headers + 0 data bytes
^C
--- crimea-board.info hping statistic ---
184 packets transmitted, 0 packets received, 100% packet loss
round-trip min/avg/max = 0.0/0.0/0.0 ms
16:19:40
#apt-get install vlan
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  portmap
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  vlan
0 upgraded, 1 newly installed, 0 to remove and 20 not upgraded.
Need to get 39.6kB of archives.
After this operation, 176kB of additional disk space will be used.
Get:1 http://127.0.0.1 sid/main vlan 1.9-3 [39.6kB]
Fetched 39.6kB in 0s (567kB/s)
Selecting previously deselected package vlan.
(Reading database ... 55397 files and directories currently installed.)
Unpacking vlan (from .../archives/vlan_1.9-3_i386.deb) ...
Processing triggers for man-db ...
Setting up vlan (1.9-3) ...
/dev/pts/3
16:23:14
$sudo hping3 -1 -V crimea-board.info
using eth0, addr: 192.168.15.3, MTU: 1500
HPING crimea-board.info (eth0 193.238.109.9): icmp mode set, 28 headers + 0 data bytes
len=46 ip=193.238.109.9 ttl=54 id=34323 tos=0 iplen=28
icmp_seq=0 rtt=23.4 ms
len=46 ip=193.238.109.9 ttl=54 id=34324 tos=0 iplen=28
icmp_seq=1 rtt=24.1 ms
len=46 ip=193.238.109.9 ttl=54 id=34325 tos=0 iplen=28
icmp_seq=2 rtt=24.7 ms
len=46 ip=193.238.109.9 ttl=54 id=34326 tos=0 iplen=28
icmp_seq=3 rtt=24.5 ms
...
len=46 ip=193.238.109.9 ttl=54 id=34334 tos=0 iplen=28
icmp_seq=11 rtt=25.9 ms
len=46 ip=193.238.109.9 ttl=54 id=34335 tos=0 iplen=28
icmp_seq=12 rtt=27.6 ms
len=46 ip=193.238.109.9 ttl=54 id=34336 tos=0 iplen=28
icmp_seq=13 rtt=26.2 ms
^C
--- crimea-board.info hping statistic ---
14 packets transmitted, 14 packets received, 0% packet loss
round-trip min/avg/max = 23.4/25.6/27.7 ms
16:23:55
$sudo hping3 -1 -V -m 1600 crimea-board.info
using eth0, addr: 192.168.15.3, MTU: 1500
HPING crimea-board.info (eth0 193.238.109.9): icmp mode set, 28 headers + 0 data bytes
len=46 ip=193.238.109.9 ttl=54 id=34337 tos=0 iplen=28
icmp_seq=0 rtt=28.4 ms
len=46 ip=193.238.109.9 ttl=54 id=34338 tos=0 iplen=28
icmp_seq=1 rtt=26.1 ms
len=46 ip=193.238.109.9 ttl=54 id=34339 tos=0 iplen=28
icmp_seq=2 rtt=24.6 ms
len=46 ip=193.238.109.9 ttl=54 id=34340 tos=0 iplen=28
icmp_seq=3 rtt=26.1 ms
len=46 ip=193.238.109.9 ttl=54 id=34341 tos=0 iplen=28
icmp_seq=4 rtt=26.2 ms
^C
--- crimea-board.info hping statistic ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 24.6/26.3/28.4 ms
16:25:33
$sudo hping3 -T crimea-board.info
HPING crimea-board.info (eth0 193.238.109.9): NO FLAGS are set, 40 headers + 0 data bytes
hop=1 TTL 0 during transit from ip=192.168.15.254 name=UNKNOWN
hop=1 hoprtt=0.8 ms
hop=2 TTL 0 during transit from ip=10.0.35.1 name=UNKNOWN
hop=2 hoprtt=0.2 ms
^C
--- crimea-board.info hping statistic ---
38 packets transmitted, 2 packets received, 95% packet loss
round-trip min/avg/max = 0.2/0.5/0.8 ms
/dev/pts/5
16:26:28
#vconfig
Expecting argc to be 3-5, inclusive.  Was: 1
Usage: add             [interface-name] [vlan_id]
       rem             [vlan-name]
       set_flag        [interface-name] [flag-num]       [0 | 1]
       set_egress_map  [vlan-name]      [skb_priority]   [vlan_qos]
       set_ingress_map [vlan-name]      [skb_priority]   [vlan_qos]
       set_name_type   [name-type]
* The [interface-name] is the name of the ethernet card that hosts
  the VLAN you are talking about.
* The vlan_id is the identifier (0-4095) of the VLAN you are operating on.
* skb_priority is the priority in the socket buffer (sk_buff).
* vlan_qos is the 3 bit priority in the VLAN header
* name-type:  VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),
              DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)
* FLAGS:  1 REORDER_HDR  When this is set, the VLAN device will move the
            ethernet header around to make it look exactly like a real
            ethernet device.  This may help programs such as DHCPd which
            read the raw ethernet packet and make assumptions about the
            location of bytes.  If you don't need it, don't turn it on, because
            there will be at least a small performance degradation.  Default
            is OFF.
/dev/pts/3
16:27:25
$ping 192.168.101.1
PING 192.168.101.1 (192.168.101.1) 56(84) bytes of data.
From 192.168.101.10 icmp_seq=1 Destination Host Unreachable
From 192.168.101.10 icmp_seq=2 Destination Host Unreachable
From 192.168.101.10 icmp_seq=3 Destination Host Unreachable
^C
--- 192.168.101.1 ping statistics ---
5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4024ms
, pipe 3
/dev/pts/5
16:27:30
#vconfig eth0 102
WARNING:  Could not open /proc/net/vlan/config.  Maybe you need to load the 8021q module, or maybe you are not using PROCFS??
Unknown command -:eth0:-
Usage: add             [interface-name] [vlan_id]
       rem             [vlan-name]
       set_flag        [interface-name] [flag-num]       [0 | 1]
       set_egress_map  [vlan-name]      [skb_priority]   [vlan_qos]
       set_ingress_map [vlan-name]      [skb_priority]   [vlan_qos]
       set_name_type   [name-type]
* The [interface-name] is the name of the ethernet card that hosts
  the VLAN you are talking about.
...
* vlan_qos is the 3 bit priority in the VLAN header
* name-type:  VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),
              DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)
* FLAGS:  1 REORDER_HDR  When this is set, the VLAN device will move the
            ethernet header around to make it look exactly like a real
            ethernet device.  This may help programs such as DHCPd which
            read the raw ethernet packet and make assumptions about the
            location of bytes.  If you don't need it, don't turn it on, because
            there will be at least a small performance degradation.  Default
            is OFF.
прошло 23 минуты
16:50:34
#vconfig add eth0 102
WARNING:  Could not open /proc/net/vlan/config.  Maybe you need to load the 8021q module, or maybe you are not using PROCFS??
Added VLAN with VID == 102 to IF -:eth0:-
16:50:41
#ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:07:e9:3c:2c:ba
          inet addr:192.168.15.3  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe3c:2cba/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11659 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11128 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7507516 (7.1 MiB)  TX bytes:1440680 (1.3 MiB)
eth0.102  Link encap:Ethernet  HWaddr 00:07:e9:3c:2c:ba
          BROADCAST MULTICAST  MTU:1500  Metric:1
...
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
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:253 errors:0 dropped:0 overruns:0 frame:0
          TX packets:253 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1329491 (1.2 MiB)  TX bytes:1329491 (1.2 MiB)
16:50:47
#ifconfig eth0.102 192.168.102.1 netmask 255.255.255.0

16:51:45
#ip route
192.168.102.0/24 dev eth0.102  proto kernel  scope link  src 192.168.102.1
192.168.15.0/24 dev eth0  proto kernel  scope link  src 192.168.15.3
default via 192.168.15.254 dev eth0
прошло 22 минуты
/dev/pts/3
17:14:29
$ping 192.168.101.2
PING 192.168.101.2 (192.168.101.2) 56(84) bytes of data.
^C
--- 192.168.101.2 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1008ms
17:14:34
$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.243 ms
64 bytes from 10.0.35.100: icmp_seq=2 ttl=62 time=0.243 ms
^C
--- 10.0.35.100 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.243/0.243/0.243/0.000 ms
/dev/pts/1
17:14:42
$ssh -l root 10.0.35.100
ssh: connect to host 10.0.35.100 port 22: Connection refused
17:14:46
$ssh -l root 10.0.35.100
ssh: connect to host 10.0.35.100 port 22: Connection refused
17:14:58
$ssh -l root 10.0.35.100
root@10.0.35.100's password:
Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 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: Mon Jun  1 17:29:19 2009 from linux15.unix.nt
l3-agent is already running: pid=1765; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/3
17:15:23
$ping 192.168.103.2
PING 192.168.103.2 (192.168.103.2) 56(84) bytes of data.
64 bytes from 192.168.103.2: icmp_seq=1 ttl=64 time=3.54 ms
64 bytes from 192.168.103.2: icmp_seq=2 ttl=64 time=0.127 ms
64 bytes from 192.168.103.2: icmp_seq=3 ttl=64 time=0.105 ms
64 bytes from 192.168.103.2: icmp_seq=4 ttl=64 time=0.155 ms
^C
--- 192.168.103.2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2999ms
rtt min/avg/max/mdev = 0.105/0.983/3.546/1.479 ms
/dev/pts/5
17:21:45
#шз кip route
192.168.101.0/24 dev eth0.101  proto kernel  scope link  src 192.168.101.10
192.168.102.0/24 dev eth0.102  proto kernel  scope link  src 192.168.102.1
192.168.103.0/24 dev eth0.103  proto kernel  scope link  src 192.168.103.10
192.168.15.0/24 dev eth0  proto kernel  scope link  src 192.168.15.3
default via 192.168.15.254 dev eth0
17:24:13
#exit
exit
/dev/pts/1
17:29:31
#screen -x
прошло 17 минут
17:47:17
#exit
exit
Connection to 10.0.35.100 closed.

Вторник (06/02/09)

/dev/pts/0
09:36:57
$ssh -l root 10.0.35.100
root@10.0.35.100's password:
Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 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: Tue Jun  2 09:48:52 2009 from linux9.unix.nt
l3-agent is already running: pid=1765; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/2
09:37:40
$su - root
Password:
l3-agent is already running: pid=3441; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/4
09:37:47
$su - root
Password:
09:38:02
#ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:07:e9:3c:2c:ba
          inet addr:192.168.15.3  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe3c:2cba/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:201 errors:0 dropped:0 overruns:0 frame:0
          TX packets:203 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:24716 (24.1 KiB)  TX bytes:18181 (17.7 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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
09:38:42
#vlock
vlock       vlock-main
09:38:42
#modprobe /lib/
firmware/       i686/           lsb/            oss-compat/     terminfo/       xtables/
i486-linux-gnu/ init/           modules/        security/       udev/
09:38:42
#modprobe /lib/modules/2.6.29-2-686/
build/  kernel/ source/
09:38:42
#modprobe /lib/modules/2.6.29-2-686/kernel/net/
802/       atm/       can/       econet/    irda/      mac80211/  rfkill/    sctp/      wimax/
8021q/     ax25/      core/      ipv4/      key/       netfilter/ rose/      sunrpc/    wireless/
9p/        bluetooth/ dccp/      ipv6/      lapb/      netrom/    rxrpc/     tipc/      x25/
appletalk/ bridge/    decnet/    ipx/       llc/       phonet/    sched/     wanrouter/ xfrm/
09:38:42
#modprobe /lib/modules/2.6.29-2-686/kernel/net/8021q/8021q.ko
FATAL: Module /lib/modules/2.6.29_2_686/kernel/net/8021q/8021q.ko not found.
/dev/pts/2
09:39:24
#/etc/init.d/
anacron                ifupdown-clean         rc
aoetools               keyboard-setup         rc.local
atd                    keymap.sh              rcS
aumix                  killprocs              reboot
bootlogd               lpd                    rmnologin
bootmisc.sh            lvm2                   rsync
checkfs.sh             mdadm                  rsyslog
checkroot.sh           mdadm-raid             screen-cleanup
console-cyrillic       module-init-tools      sendsigs
console-screen.kbd.sh  monit                  single
...
dbus                   mountdevsubfs.sh       stop-bootlogd-single
exim4                  mountkernfs.sh         sudo
gdm                    mountnfs-bootclean.sh  syslog-ng
glibc.sh               mountnfs.sh            udev
hal                    mountoverflowtmp       udev-mtab
halt                   mtab.sh                umountfs
hostname.sh            networking             umountnfs.sh
hwclockfirst.sh        openbsd-inetd          umountroot
hwclock.sh             portmap                urandom
ifupdown               procps                 x11-common
09:39:24
#exit
exit
/dev/pts/4
09:41:35
#modprobe /lib/modules/2.6.29-2-686/kernel/net/8021q
FATAL: Module /lib/modules/2.6.29_2_686/kernel/net/8021q not found.
09:41:43
#modprobe 8021q

09:43:06
#lsmod | grep 802
8021q                  17716  0
garp                    7040  1 8021q
09:44:05
#vi /etc/network/interfaces
09:48:54
#exit
exit
/dev/pts/0
09:51:11
#screen -ls
/dev/pts/0
09:51:11
$ssh -l root 10.0.35.100
root@10.0.35.100's password:
Linux linux0 2.6.18-6-xen-686 #1 SMP Sun Feb 10 22:43:13 UTC 2008 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: Tue Jun  2 10:16:50 2009 from 192.168.102.2
l3-agent is already running: pid=1765; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/2
09:51:16
$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.674 ms
64 bytes from 192.168.15.254: icmp_seq=2 ttl=64 time=0.628 ms
64 bytes from 192.168.15.254: icmp_seq=3 ttl=64 time=0.643 ms
64 bytes from 192.168.15.254: icmp_seq=4 ttl=64 time=0.648 ms
^C
--- 192.168.15.254 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 2997ms
rtt min/avg/max/mdev = 0.628/0.648/0.674/0.024 ms
/dev/pts/0
09:51:23
#screen -x
/dev/pts/4
09:51:27
$su - root
Password:
09:51:49
#ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:07:e9:3c:2c:ba
          inet addr:192.168.15.3  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::207:e9ff:fe3c:2cba/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:209 errors:0 dropped:0 overruns:0 frame:0
          TX packets:205 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:22557 (22.0 KiB)  TX bytes:17826 (17.4 KiB)
eth0.102  Link encap:Ethernet  HWaddr 00:07:e9:3c:2c:ba
          inet addr:192.168.102.1  Bcast:192.168.102.255  Mask:255.255.255.0
...
          collisions:0 txqueuelen:0
          RX bytes:782 (782.0 B)  TX bytes:468 (468.0 B)
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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
09:51:52
#mii-tool eth0
eth0: negotiated 1000baseT-FD flow-control, link ok
/dev/pts/2
09:59:17
$ping 192.168.102.2
PING 192.168.102.2 (192.168.102.2) 56(84) bytes of data.
64 bytes from 192.168.102.2: icmp_seq=1 ttl=64 time=0.129 ms
64 bytes from 192.168.102.2: icmp_seq=2 ttl=64 time=0.104 ms
64 bytes from 192.168.102.2: icmp_seq=3 ttl=64 time=0.119 ms
64 bytes from 192.168.102.2: icmp_seq=4 ttl=64 time=0.117 ms
64 bytes from 192.168.102.2: icmp_seq=5 ttl=64 time=0.136 ms
64 bytes from 192.168.102.2: icmp_seq=6 ttl=64 time=0.131 ms
64 bytes from 192.168.102.2: icmp_seq=7 ttl=64 time=0.131 ms
64 bytes from 192.168.102.2: icmp_seq=8 ttl=64 time=0.109 ms
^C
--- 192.168.102.2 ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 6998ms
rtt min/avg/max/mdev = 0.104/0.122/0.136/0.010 ms
/dev/pts/0
10:03:07
#exit
exit
Connection to 10.0.35.100 closed.
/dev/pts/2
10:11:33
$ьÑsu - root
Password:
su: Authentication failure
/dev/pts/0
10:17:56
#screen -x
/dev/pts/4
10:20:26
#mii-tool --help
usage: mii-tool [-VvRrwl] [-A media,... | -F media] [interface ...]
       -V, --version               display version information
       -v, --verbose               more verbose output
       -R, --reset                 reset MII to poweron state
       -r, --restart               restart autonegotiation
       -w, --watch                 monitor for link status changes
       -l, --log                   with -w, write events to syslog
       -A, --advertise=media,...   advertise only specified media
       -F, --force=media           force specified media technology
media: 1000baseTx-HD, 1000baseTx-FD,
       100baseT4, 100baseTx-FD, 100baseTx-HD,
       10baseT-FD, 10baseT-HD,
       (to advertise both HD and FD) 1000baseTx, 100baseTx, 10baseT
10:20:33
#mii-tool -A 100baseTx-FD
restarting autonegotiation...
10:21:12
#mii-tool eth0
eth0: negotiated 1000baseT-FD flow-control, link ok
10:21:15
#mii-tool -F 100baseTx-FD

10:21:37
#mii-tool eth0
eth0: 100 Mbit, full duplex, no link

Файлы

  • /proc/mdstat
  • /proc/sys/net/ipv4/ip_
  • /proc/sys/net/ipv4/ip_forward
  • /proc/mdstat
    >
    Personalities : [raid1]
    md0 : active raid1 sda2[0] sdb2[1]
          29294400 blocks [2/2] [UU]
    unused devices: <none>
    
    /proc/sys/net/ipv4/ip_
    >
    ip_default_ttl       ip_forward           ip_nonlocal_bind
    ip_dynaddr           ip_local_port_range  ip_no_pmtu_disc
    
    /proc/sys/net/ipv4/ip_forward
    >
    0
    

    Статистика

    Время первой команды журнала12:43:25 2009- 6- 1
    Время последней команды журнала10:21:37 2009- 6- 2
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %16.83
    Процент синтаксически неверно набранных команд, % 0.00
    Суммарное время работы с терминалом *, час 4.43
    Количество командных строк в единицу времени, команда/мин 0.38
    Частота использования команд
    echo11|========| 8.27%
    (echo11|========| 8.27%
    nc11|========| 8.27%
    screen9|======| 6.77%
    ssh9|======| 6.77%
    sudo7|=====| 5.26%
    ping7|=====| 5.26%
    exit7|=====| 5.26%
    mii-tool6|====| 4.51%
    vi6|====| 4.51%
    modprobe6|====| 4.51%
    hping35|===| 3.76%
    ifconfig4|===| 3.01%
    su4|===| 3.01%
    cat3|==| 2.26%
    ls3|==| 2.26%
    vconfig3|==| 2.26%
    reboot2|=| 1.50%
    apt-get2|=| 1.50%
    fdisk2|=| 1.50%
    ld1|| 0.75%
    rm1|| 0.75%
    ~1|| 0.75%
    vlock1|| 0.75%
    x1|| 0.75%
    ip1|| 0.75%
    lsmod1|| 0.75%
    whatis1|| 0.75%
    /etc/init.d/1|| 0.75%
    xs1|| 0.75%
    ьÑsu1|| 0.75%
    startx1|| 0.75%
    grep1|| 0.75%
    шз1|| 0.75%
    apt-cache1|| 0.75%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ 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
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$