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

Содержание

Журнал

Суббота (02/18/06)

/dev/ttyv0
14:31:56
#/etc/rc.d/routing restart
default              192.168.16.1         done
192.168.16           192.168.16.66        done
192.168.17           192.168.16.66        done
add net default: gateway 192.168.16.66
add net 192.168.16.0: gateway 192.168.16.1
add net 192.168.17.0: gateway 192.168.16.1
Additional routing options: IP gateway=YES.
14:32:19
#ping 192.168.16.65
PING 192.168.16.65 (192.168.16.65): 56 data bytes
64 bytes from 192.168.16.65: icmp_seq=0 ttl=64 time=0.072 ms
64 bytes from 192.168.16.65: icmp_seq=1 ttl=64 time=0.065 ms
64 bytes from 192.168.16.65: icmp_seq=2 ttl=64 time=0.063 ms
64 bytes from 192.168.16.65: icmp_seq=3 ttl=64 time=0.064 ms
^C
--- 192.168.16.65 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.063/0.066/0.072/0.004 ms
14:32:41
#ping 192.168.16.66
PING 192.168.16.66 (192.168.16.66): 56 data bytes
64 bytes from 192.168.16.66: icmp_seq=0 ttl=64 time=0.223 ms
64 bytes from 192.168.16.66: icmp_seq=1 ttl=64 time=0.174 ms
^C
--- 192.168.16.66 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.174/0.199/0.223/0.024 ms
14:32:49
#ping 192.168.16.129
PING 192.168.16.129 (192.168.16.129): 56 data bytes
^C
--- 192.168.16.129 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
14:33:01
#ifconf
bash: ifconf: command not found
14:33:36
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1
        inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63
        ether 00:04:79:67:96:71
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2
        inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127
        ether 00:07:e9:45:0d:2c
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
14:33:41
#ping 192.168.16.129
PING 192.168.16.129 (192.168.16.129): 56 data bytes
^C
--- 192.168.16.129 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
14:34:10
#ping 192.168.16.66
PING 192.168.16.66 (192.168.16.66): 56 data bytes
64 bytes from 192.168.16.66: icmp_seq=0 ttl=64 time=0.180 ms
64 bytes from 192.168.16.66: icmp_seq=1 ttl=64 time=0.166 ms
64 bytes from 192.168.16.66: icmp_seq=2 ttl=64 time=0.154 ms
64 bytes from 192.168.16.66: icmp_seq=3 ttl=64 time=0.145 ms
64 bytes from 192.168.16.66: icmp_seq=4 ttl=64 time=0.166 ms
^C
--- 192.168.16.66 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.145/0.162/0.180/0.012 ms
14:34:18
#ping 192.168.17.21
PING 192.168.17.21 (192.168.17.21): 56 data bytes
^C
--- 192.168.17.21 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
14:35:04
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1
        inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63
        ether 00:04:79:67:96:71
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2
        inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127
        ether 00:07:e9:45:0d:2c
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
14:35:35
#netstat -rn
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.16.66      UGS         0       99   fxp0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.16/26      link#1             UC          0        0    xl0 =>
192.168.16         192.168.16.1       UGS         0        8    xl0
192.168.16.1       00:0a:01:d4:d1:e3  UHLW        3     6064    xl0    780
192.168.16.2       00:04:79:67:96:71  UHLW        1     3636    lo0
192.168.16.64/26   link#2             UC          0        0   fxp0
...
fe80::%xl0/64                     link#1                        UC          xl0
fe80::204:79ff:fe67:9671%xl0      00:04:79:67:96:71             UHL         lo0
fe80::%fxp0/64                    link#2                        UC         fxp0
fe80::207:e9ff:fe45:d2c%fxp0      00:07:e9:45:0d:2c             UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#3                        UHL         lo0
ff01::/32                         ::1                           U           lo0
ff02::%xl0/32                     link#1                        UC          xl0
ff02::%fxp0/32                    link#2                        UC         fxp0
ff02::%lo0/32                     ::1                           UC          lo0
14:36:03
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1
        inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63
        ether 00:04:79:67:96:71
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2
        inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127
        ether 00:07:e9:45:0d:2c
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
14:36:11
#ping 192.168.17.21
PING 192.168.17.21 (192.168.17.21): 56 data bytes
^C
--- 192.168.17.21 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
14:36:30
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1
        inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63
        ether 00:04:79:67:96:71
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2
        inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127
        ether 00:07:e9:45:0d:2c
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
14:36:32
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1
        inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63
        ether 00:04:79:67:96:71
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2
        inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127
        ether 00:07:e9:45:0d:2c
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
14:36:43
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1
        inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63
        ether 00:04:79:67:96:71
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2
        inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127
        ether 00:07:e9:45:0d:2c
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
14:36:45
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1
        inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63
        ether 00:04:79:67:96:71
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2
        inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127
        ether 00:07:e9:45:0d:2c
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
14:36:47
#ping 192.168.16.130
PING 192.168.16.130 (192.168.16.130): 56 data bytes
^C
--- 192.168.16.130 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
14:37:10
#ping 192.168.16.66
PING 192.168.16.66 (192.168.16.66): 56 data bytes
64 bytes from 192.168.16.66: icmp_seq=0 ttl=64 time=0.217 ms
64 bytes from 192.168.16.66: icmp_seq=1 ttl=64 time=0.160 ms
64 bytes from 192.168.16.66: icmp_seq=2 ttl=64 time=0.158 ms
^C
--- 192.168.16.66 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.158/0.178/0.217/0.027 ms
14:37:18
#ping 192.168.16.129
PING 192.168.16.129 (192.168.16.129): 56 data bytes
^C
--- 192.168.16.129 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
14:37:29
#netstat -rn
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.16.66      UGS         0      151   fxp0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.16/26      link#1             UC          0        0    xl0 =>
192.168.16         192.168.16.1       UGS         0       15    xl0
192.168.16.1       00:0a:01:d4:d1:e3  UHLW        3     6064    xl0    656
192.168.16.2       00:04:79:67:96:71  UHLW        1     3636    lo0
192.168.16.64/26   link#2             UC          0        0   fxp0
...
fe80::%xl0/64                     link#1                        UC          xl0
fe80::204:79ff:fe67:9671%xl0      00:04:79:67:96:71             UHL         lo0
fe80::%fxp0/64                    link#2                        UC         fxp0
fe80::207:e9ff:fe45:d2c%fxp0      00:07:e9:45:0d:2c             UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#3                        UHL         lo0
ff01::/32                         ::1                           U           lo0
ff02::%xl0/32                     link#1                        UC          xl0
ff02::%fxp0/32                    link#2                        UC         fxp0
ff02::%lo0/32                     ::1                           UC          lo0
14:38:07
#ping 192.168.16.129
PING 192.168.16.129 (192.168.16.129): 56 data bytes
^C
--- 192.168.16.129 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
14:38:54
#ipconfig
bash: ipconfig: command not found
14:39:09
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1
        inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63
        ether 00:04:79:67:96:71
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2
        inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127
        ether 00:07:e9:45:0d:2c
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
14:39:16
#vi /etc/rc.conf
14:41:58
# /etc/rc.d/routing restart
default              192.168.16.66        done
192.168.16           192.168.16.1         done
192.168.17           192.168.16.1         done
add net default: gateway 192.168.16.66
route: writing to routing socket: Invalid argument
add net : Invalid argument
add net 192.168.17.0: gateway 192.168.16.1
Additional routing options: IP gateway=YES.
14:42:23
#ping 192.168.1.17
PING 192.168.1.17 (192.168.1.17): 56 data bytes
92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 2af5   0 0000  3f  01 be11 192.168.16.65  192.168.1.17
36 bytes from 192.168.16.65: Time to live exceeded
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 2af5   0 0000  01  01 fc11 192.168.16.65  192.168.1.17
92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 2b07   0 0000  3f  01 bdff 192.168.16.65  192.168.1.17
...
 4  5  00 5400 2b19   0 0000  01  01 fbed 192.168.16.65  192.168.1.17
92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 2b2b   0 0000  3f  01 bddb 192.168.16.65  192.168.1.17
36 bytes from 192.168.16.65: Time to live exceeded
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 2b2b   0 0000  01  01 fbdb 192.168.16.65  192.168.1.17
^C
--- 192.168.1.17 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
14:42:38
#vi /etc/rc.conf
14:43:03
# /etc/rc.d/routing restart
default              192.168.16.66        done
192.168.17           192.168.16.1         done
add net default: gateway 192.168.16.66
add net 192.168.16.0: gateway 192.168.16.1
route: writing to routing socket: Invalid argument
add net : Invalid argument
Additional routing options: IP gateway=YES.
14:43:07
#ping 192.168.1.17
PING 192.168.1.17 (192.168.1.17): 56 data bytes
92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 2b3d   0 0000  3f  01 bdc9 192.168.16.65  192.168.1.17
36 bytes from 192.168.16.65: Time to live exceeded
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 2b3d   0 0000  01  01 fbc9 192.168.16.65  192.168.1.17
92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 2b4f   0 0000  3f  01 bdb7 192.168.16.65  192.168.1.17
...
 4  5  00 5400 2b4f   0 0000  01  01 fbb7 192.168.16.65  192.168.1.17
92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 2b61   0 0000  3f  01 bda5 192.168.16.65  192.168.1.17
36 bytes from 192.168.16.65: Time to live exceeded
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 2b61   0 0000  01  01 fba5 192.168.16.65  192.168.1.17
^C
--- 192.168.1.17 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
14:43:42
#ping 192.168.16.129
 4  5  00 0054 2d96   0 0000  25  01 c63f 192.168.16.2  192.168.16.129
36 bytes from 192.168.16.1: Redirect Host(New addr: 192.168.16.2)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 2d96   0 0000  24  01 c73f 192.168.16.2  192.168.16.129
36 bytes from 192.168.16.2: Redirect Host(New addr: 192.168.16.1)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 2d96   0 0000  23  01 c83f 192.168.16.2  192.168.16.129
36 bytes from 192.168.16.1: Redirect Host(New addr: 192.168.16.2)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 2d96   0 0000  22  01 c93f 192.168.16.2  192.168.16.129
...
 4  5  00 0054 2d96   0 0000  03  01 e83f 192.168.16.2  192.168.16.129
36 bytes from 192.168.16.1: Redirect Host(New addr: 192.168.16.2)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 2d96   0 0000  02  01 e93f 192.168.16.2  192.168.16.129
36 bytes from 192.168.16.2: Time to live exceeded
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 2d96   0 0000  01  01 ea3f 192.168.16.2  192.168.16.129
^C
--- 192.168.16.129 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
14:43:58
#vi /etc/rc.conf
14:45:50
# /etc/rc.d/routing restart
default              192.168.16.66        done
192.168.16           192.168.16.1         done
add net default: gateway 192.168.16.66
route: writing to routing socket: Invalid argument
add net : Invalid argument
add net 192.168.17.0: gateway 192.168.16.1
Additional routing options: IP gateway=YES.
14:45:53
#ping 192.168.16.129
PING 192.168.16.129 (192.168.16.129): 56 data bytes
64 bytes from 192.168.16.129: icmp_seq=0 ttl=64 time=0.217 ms
64 bytes from 192.168.16.129: icmp_seq=1 ttl=64 time=0.175 ms
64 bytes from 192.168.16.129: icmp_seq=2 ttl=64 time=0.147 ms
^C
--- 192.168.16.129 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.147/0.180/0.217/0.029 ms
14:46:00
#5
bash: 5: command not found
14:46:15
#ping 192.168.15.5
PING 192.168.15.5 (192.168.15.5): 56 data bytes
92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 2fd3   0 0000  3f  01 ab3f 192.168.16.65  192.168.15.5
36 bytes from 192.168.16.65: Time to live exceeded
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 2fd3   0 0000  01  01 e93f 192.168.16.65  192.168.15.5
92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 2fe5   0 0000  3f  01 ab2d 192.168.16.65  192.168.15.5
...
 4  5  00 5400 2fe5   0 0000  01  01 e92d 192.168.16.65  192.168.15.5
92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 2ff7   0 0000  3f  01 ab1b 192.168.16.65  192.168.15.5
36 bytes from 192.168.16.65: Time to live exceeded
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 2ff7   0 0000  01  01 e91b 192.168.16.65  192.168.15.5
^C
--- 192.168.15.5 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
14:46:29
#ping 192.168.16.66
PING 192.168.16.66 (192.168.16.66): 56 data bytes
64 bytes from 192.168.16.66: icmp_seq=0 ttl=64 time=0.230 ms
64 bytes from 192.168.16.66: icmp_seq=1 ttl=64 time=0.146 ms
^C
--- 192.168.16.66 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.146/0.188/0.230/0.042 ms
14:46:41
#ping 192.168.16.129
PING 192.168.16.129 (192.168.16.129): 56 data bytes
64 bytes from 192.168.16.129: icmp_seq=0 ttl=64 time=0.219 ms
64 bytes from 192.168.16.129: icmp_seq=1 ttl=64 time=0.182 ms
64 bytes from 192.168.16.129: icmp_seq=2 ttl=64 time=0.177 ms
^C
--- 192.168.16.129 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.177/0.193/0.219/0.019 ms
14:46:47
#ping 192.168.16.193
PING 192.168.16.193 (192.168.16.193): 56 data bytes
92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 3011   0 0000  3f  01 a945 192.168.16.65  192.168.16.193
36 bytes from 192.168.16.65: Time to live exceeded
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 3011   0 0000  01  01 e745 192.168.16.65  192.168.16.193
92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 3023   0 0000  3f  01 a933 192.168.16.65  192.168.16.193
...
 4  5  00 5400 3023   0 0000  01  01 e733 192.168.16.65  192.168.16.193
92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 3035   0 0000  3f  01 a921 192.168.16.65  192.168.16.193
36 bytes from 192.168.16.65: Time to live exceeded
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 3035   0 0000  01  01 e721 192.168.16.65  192.168.16.193
^C
--- 192.168.16.193 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
14:47:01
#ping 192.168.16.130
PING 192.168.16.130 (192.168.16.130): 56 data bytes
^C
--- 192.168.16.130 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
14:47:12
#ping 192.168.17.21
PING 192.168.17.21 (192.168.17.21): 56 data bytes
64 bytes from 192.168.17.21: icmp_seq=0 ttl=64 time=0.211 ms
64 bytes from 192.168.17.21: icmp_seq=1 ttl=64 time=0.187 ms
64 bytes from 192.168.17.21: icmp_seq=2 ttl=64 time=0.199 ms
^C
--- 192.168.17.21 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.187/0.199/0.211/0.010 ms
14:47:25
#ping 192.168.16.129
PING 192.168.16.129 (192.168.16.129): 56 data bytes
64 bytes from 192.168.16.129: icmp_seq=0 ttl=64 time=0.215 ms
64 bytes from 192.168.16.129: icmp_seq=1 ttl=64 time=0.179 ms
^C
--- 192.168.16.129 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.179/0.197/0.215/0.018 ms
14:47:39
#ping 192.168.16.130
PING 192.168.16.130 (192.168.16.130): 56 data bytes
^C
--- 192.168.16.130 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
14:47:46
#traceroute 192.168.16.130
traceroute to 192.168.16.130 (192.168.16.130), 64 hops max, 40 byte packets
 1  192.168.16.66 (192.168.16.66)  0.285 ms  0.345 ms  0.238 ms
 2  * * *
 3  *^C
14:48:55
#ping 192.168.16.130
PING 192.168.16.130 (192.168.16.130): 56 data bytes
^C
--- 192.168.16.130 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
14:49:26
#ping 192.168.17.21
PING 192.168.17.21 (192.168.17.21): 56 data bytes
64 bytes from 192.168.17.21: icmp_seq=0 ttl=64 time=0.207 ms
64 bytes from 192.168.17.21: icmp_seq=1 ttl=64 time=0.186 ms
64 bytes from 192.168.17.21: icmp_seq=2 ttl=64 time=0.173 ms
64 bytes from 192.168.17.21: icmp_seq=3 ttl=64 time=0.192 ms
64 bytes from 192.168.17.21: icmp_seq=4 ttl=64 time=0.186 ms
^C
--- 192.168.17.21 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.173/0.189/0.207/0.011 ms
14:50:25
#ping
usage: ping [-AaDdfnoQqRrv] [-c count] [-i wait] [-l preload] [-M mask | time]
            [-m ttl] [-P policy] [-p pattern] [-S src_addr] [-s packetsize]
            [-t timeout] [-z tos] [-G sweepmaxsize ] [-g sweepminsize ]
            [-h sweepincrsize ] host
       ping [-AaDdfLnoQqRrv] [-c count] [-I iface] [-i wait] [-l preload]
            [-M mask | time] [-m ttl] [-P policy] [-p pattern] [-S src_addr]
            [-s packetsize] [-T ttl] [-t timeout] [-z tos] mcast-group
14:50:51
#ping -S 192.168.16.65 192.168.17.21
PING 192.168.17.21 (192.168.17.21) from 192.168.16.65: 56 data bytes
64 bytes from 192.168.17.21: icmp_seq=1 ttl=64 time=0.326 ms
64 bytes from 192.168.17.21: icmp_seq=2 ttl=64 time=0.197 ms
64 bytes from 192.168.17.21: icmp_seq=3 ttl=64 time=0.198 ms
64 bytes from 192.168.17.21: icmp_seq=4 ttl=64 time=0.203 ms
^C
--- 192.168.17.21 ping statistics ---
5 packets transmitted, 4 packets received, 20% packet loss
round-trip min/avg/max/stddev = 0.197/0.231/0.326/0.055 ms
14:51:23
#ping 192.168.16.130
PING 192.168.16.130 (192.168.16.130): 56 data bytes
64 bytes from 192.168.16.130: icmp_seq=0 ttl=63 time=0.330 ms
64 bytes from 192.168.16.130: icmp_seq=1 ttl=63 time=0.277 ms
^C
--- 192.168.16.130 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.277/0.303/0.330/0.027 ms
14:52:00
#ping 192.168.16.193
PING 192.168.16.193 (192.168.16.193): 56 data bytes
92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 3086   0 0000  3f  01 a8d0 192.168.16.65  192.168.16.193
36 bytes from 192.168.16.65: Time to live exceeded
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 3086   0 0000  01  01 e6d0 192.168.16.65  192.168.16.193
92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 3098   0 0000  3f  01 a8be 192.168.16.65  192.168.16.193
...
 4  5  00 5400 3098   0 0000  01  01 e6be 192.168.16.65  192.168.16.193
92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65)
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 0054 30aa   0 0000  3f  01 a8ac 192.168.16.65  192.168.16.193
36 bytes from 192.168.16.65: Time to live exceeded
Vr HL TOS  Len   ID Flg  off TTL Pro  cks      Src      Dst
 4  5  00 5400 30aa   0 0000  01  01 e6ac 192.168.16.65  192.168.16.193
^C
--- 192.168.16.193 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
14:54:11
#traceroute -n 192.168.16.130
traceroute to 192.168.16.130 (192.168.16.130), 64 hops max, 40 byte packets
 1  192.168.16.66  0.326 ms  0.251 ms  0.235 ms
 2  192.168.16.130  0.298 ms  0.250 ms  0.241 ms
14:57:21
#traceroute -n 192.168.16.193
traceroute to 192.168.16.193 (192.168.16.193), 64 hops max, 40 byte packets
 1  192.168.16.66  0.317 ms  0.254 ms  0.238 ms
 2  192.168.16.65  0.295 ms  0.291 ms  0.247 ms
 3  192.168.16.66  0.313 ms  0.295 ms  0.280 ms
 4  192.168.16.65  0.306 ms  0.308 ms  0.289 ms
 5  *
    192.168.16.66  0.436 ms  0.389 ms
 6  192.168.16.65  0.396 ms  0.382 ms  0.374 ms
 7  192.168.16.66  0.467 ms  0.475 ms  0.459 ms
 8  192.168.16.65  0.471 ms  0.467 ms  0.477 ms
 9  *
    192.168.16.66  0.614 ms  0.559 ms
10  192.168.16.65  0.574 ms  0.557 ms  0.558 ms
11  192.168.16.66  0.638 ms  0.629 ms  0.639 ms
12  192.168.16.65  0.647 ms  0.636 ms  0.645 ms
^C
14:57:41
#pstree
-+= 00000 root [swapper]
 |-+= 00001 root /sbin/init --
 | |--= 00169 root adjkerntz -i
 | |--= 00268 root /sbin/devd
 | |--= 00297 root /usr/sbin/syslogd -s
 | |--= 00370 root /usr/sbin/usbd
 | |--= 00423 root /usr/sbin/sshd
 | |-+= 00482 root /usr/sbin/cron -s
 | | \-+- 03750 root cron: running job (cron)
 | |   \-+= 03751 root /bin/sh -c date >> /tmp/new ; sleep 30 ; >> /tmp/new
...
 |--- 00051 root [vmdaemon]
 |--- 00052 root [pagezero]
 |--- 00053 root [bufdaemon]
 |--- 00054 root [vnlru]
 |--- 00055 root [syncer]
 |--- 00056 root [nfsiod 0]
 |--- 00057 root [nfsiod 1]
 |--- 00058 root [nfsiod 2]
 |--- 00059 root [nfsiod 3]
 \--- 00060 root [schedcpu]
14:58:22
#man pstree
14:58:42
#history
  483  ping m05
  484  ping m02
  485  ping m01
  486  ping 192.168.15.21
  487  ping m05
  488  ping m05
  489  ifconfig
  490  ifconfig -l
  491  man fxp
  492  man fxp
...
  622  ping 192.168.17.21
  623  ping
  624  ping -S 192.168.16.65 192.168.17.21
  625  ping 192.168.16.130
  626  ping 192.168.16.193
  627  traceroute -n 192.168.16.130
  628  traceroute -n 192.168.16.193
  629  pstree
  630  man pstree
  631  history
15:03:22
#traceroute -n 192.168.16.193
traceroute to 192.168.16.193 (192.168.16.193), 64 hops max, 40 byte packets
 1  192.168.16.66  0.329 ms  0.249 ms  0.197 ms
 2  192.168.16.193  0.320 ms  0.251 ms  0.252 ms
15:05:21
#ping 192.168.15.5
PING 192.168.15.5 (192.168.15.5): 56 data bytes
64 bytes from 192.168.15.5: icmp_seq=0 ttl=62 time=0.456 ms
64 bytes from 192.168.15.5: icmp_seq=1 ttl=62 time=0.386 ms
64 bytes from 192.168.15.5: icmp_seq=2 ttl=62 time=0.363 ms
64 bytes from 192.168.15.5: icmp_seq=3 ttl=62 time=0.388 ms
64 bytes from 192.168.15.5: icmp_seq=4 ttl=62 time=0.360 ms
^C
--- 192.168.15.5 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.360/0.391/0.456/0.035 ms
15:05:39
#ping mail.ru
PING mail.ru (194.67.57.26): 56 data bytes
64 bytes from 194.67.57.26: icmp_seq=0 ttl=110 time=126.802 ms
64 bytes from 194.67.57.26: icmp_seq=1 ttl=110 time=122.645 ms
64 bytes from 194.67.57.26: icmp_seq=2 ttl=109 time=121.759 ms
64 bytes from 194.67.57.26: icmp_seq=3 ttl=109 time=121.809 ms
64 bytes from 194.67.57.26: icmp_seq=4 ttl=109 time=121.963 ms
64 bytes from 194.67.57.26: icmp_seq=5 ttl=110 time=120.964 ms
^C
--- mail.ru ping statistics ---
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max/stddev = 120.964/122.657/126.802/1.917 ms
15:05:54
#vi /etc/rc.conf
15:09:10
#/etc/rc.d/netif restart
Stopping network: lo0 xl0 fxp0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1
        inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63
        ether 00:04:79:67:96:71
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2
        inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255
        ether 00:07:e9:45:0d:2c
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
15:09:34
#/etc/rc.d/routing restart
add net default: gateway 192.168.15.254
route: writing to routing socket: Invalid argument
add net : Invalid argument
route: writing to routing socket: Invalid argument
add net : Invalid argument
Additional routing options: IP gateway=YES.
15:09:49
#ping 192.168.15.22
PING 192.168.15.22 (192.168.15.22): 56 data bytes
64 bytes from 192.168.15.22: icmp_seq=0 ttl=64 time=0.088 ms
64 bytes from 192.168.15.22: icmp_seq=1 ttl=64 time=0.061 ms
64 bytes from 192.168.15.22: icmp_seq=2 ttl=64 time=0.060 ms
64 bytes from 192.168.15.22: icmp_seq=3 ttl=64 time=0.055 ms
^C
--- 192.168.15.22 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.055/0.066/0.088/0.013 ms
15:10:18
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes
^C
--- 192.168.15.254 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
15:10:27
#netstat -n
Active UNIX domain sockets
Address  Type   Recv-Q Send-Q    Inode     Conn     Refs  Nextref Addr
c26ec000 stream      0      0 c2641330        0        0        0 /var/run/devd.pipe
c26eb3d4 dgram       0      0        0 c26ebe38        0 c26ebb7c
c26ebb7c dgram       0      0        0 c26ebe38        0        0
c26ebe38 dgram       0      0 c26ed990        0 c26eb3d4        0 /var/run/logpriv
c26ebec4 dgram       0      0 c26edaa0        0        0        0 /var/run/log
15:10:53
#netstat -nrn
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.15.254     UGS         0        0   fxp0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.15         link#2             UC          0        0   fxp0
192.168.15.22      00:07:e9:45:0d:2c  UHLW        1        8    lo0
192.168.15.254     link#2             UHLW        2        2   fxp0
192.168.16/26      link#1             UC          0        0    xl0
Internet6:
...
fe80::%xl0/64                     link#1                        UC          xl0
fe80::204:79ff:fe67:9671%xl0      00:04:79:67:96:71             UHL         lo0
fe80::%fxp0/64                    link#2                        UC         fxp0
fe80::207:e9ff:fe45:d2c%fxp0      00:07:e9:45:0d:2c             UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#3                        UHL         lo0
ff01::/32                         ::1                           U           lo0
ff02::%xl0/32                     link#1                        UC          xl0
ff02::%fxp0/32                    link#2                        UC         fxp0
ff02::%lo0/32                     ::1                           UC          lo0
15:10:58
#vi /etc/rc.conf
14,15c14,15
< static_routes="net16 net17"
< #:qroute_net16="192.168.16.0/24 192.168.16.1"
---
> #static_routes="net16 net17"
> #route_net16="192.168.16.0/24 192.168.16.1"
15:12:04
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes
^C
--- 192.168.15.254 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss
15:12:15
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1
        inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63
        ether 00:04:79:67:96:71
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2
        inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255
        ether 00:07:e9:45:0d:2c
        media: Ethernet autoselect (none)
        status: no carrier
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
15:12:28
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1
        inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63
        ether 00:04:79:67:96:71
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2
        inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255
        ether 00:07:e9:45:0d:2c
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
15:13:20
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes
64 bytes from 192.168.15.254: icmp_seq=0 ttl=64 time=0.394 ms
64 bytes from 192.168.15.254: icmp_seq=1 ttl=64 time=0.210 ms
64 bytes from 192.168.15.254: icmp_seq=2 ttl=64 time=0.264 ms
^C
--- 192.168.15.254 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.210/0.289/0.394/0.077 ms
15:13:26
#ping mail.ru
PING mail.ru (194.67.57.26): 56 data bytes
64 bytes from 194.67.57.26: icmp_seq=0 ttl=113 time=127.151 ms
64 bytes from 194.67.57.26: icmp_seq=1 ttl=113 time=125.061 ms
64 bytes from 194.67.57.26: icmp_seq=2 ttl=112 time=121.487 ms
^C
--- mail.ru ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 121.487/124.566/127.151/2.339 ms
15:13:58
#who
root             ttyv0    18 ÆÅ× 12:13
user             ttyv2    18 ÆÅ× 12:22
root             ttyp2    18 ÆÅ× 15:17 (linux.nt)
/dev/ttyp2
15:17:22
#cd /usr/ports/net
net/      net-im/   net-mgmt/ net-p2p/
15:17:22
#cd /usr/ports/net-mgmt/

15:18:03
#cd ettercap/

15:18:12
#make install WITHOUT_GTK=yes
 install  -o root -g wheel -m 555 'libtool' '/usr/local/bin/libtool15'
 install  -o root -g wheel -m 555 'libtoolize' '/usr/local/bin/libtoolize15'
test -z "/usr/local/share/aclocal" || /bin/sh /usr/ports/devel/libtool15/work/libtool-1.5.22/install-sh -d "/usr/local/share/aclocal"
 install  -o root -g wheel -m 444 'libtool15.m4' '/usr/local/share/aclocal/libtool15.m4'
 install  -o root -g wheel -m 444 'ltdl15.m4' '/usr/local/share/aclocal/ltdl15.m4'
test -z "/usr/local/share/libtool15/libltdl" || /bin/sh /usr/ports/devel/libtool15/work/libtool-1.5.22/install-sh -d "/usr/local/share/libtool15/libltdl"
 install  -o root -g wheel -m 444 'libltdl/COPYING.LIB' '/usr/local/share/libtool15/libltdl/COPYING.LIB'
 install  -o root -g wheel -m 444 'libltdl/README' '/usr/local/share/libtool15/libltdl/README'
 install  -o root -g wheel -m 444 'libltdl/configure.ac' '/usr/local/share/libtool15/libltdl/configure.ac'
 install  -o root -g wheel -m 444 'libltdl/Makefile.am' '/usr/local/share/libtool15/libltdl/Makefile.am'
 install  -o root -g wheel -m 444 'libltdl/ltdl.c' '/usr/local/share/libtool15/libltdl/ltdl.c'
15:24:27
#man ettercap
/dev/ttyv0
15:25:12
#host mail.ru
mail.ru has address 192.168.15.254
mail.ru mail is handled by 10 mxs.mail.ru.
/dev/ttyp2
15:25:41
#ls -l
total 22
-rw-r--r--  1 root  wheel  3070 11 ÆÅ× 16:47 Makefile
-rw-r--r--  1 root  wheel   576 18 ÆÅ× 15:25 arp
-rw-r--r--  1 root  wheel   209 11 ÆÅ× 16:47 distinfo
drwxr-xr-x  2 root  wheel   512 11 ÆÅ× 16:47 files
-rw-------  1 root  wheel    32 18 ÆÅ× 15:25 log.eci
-rw-------  1 root  wheel    32 18 ÆÅ× 15:25 log.ecp
-rw-r--r--  1 root  wheel   343  9 ÆÅ×  2005 pkg-descr
-rw-r--r--  1 root  wheel  2453 29 ÄÅË  2004 pkg-plist
drwxr-xr-x  3 root  wheel   512 18 ÆÅ× 15:23 work
15:25:43
#less log.eci
15:25:56
#cd

15:25:58
#ping 192.168.15.3
PING 192.168.15.3 (192.168.15.3): 56 data bytes
64 bytes from 192.168.15.3: icmp_seq=0 ttl=64 time=0.406 ms
^C
--- 192.168.15.3 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.406/0.406/0.406/0.000 ms
15:26:01
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes
64 bytes from 192.168.15.254: icmp_seq=0 ttl=64 time=0.248 ms
^C
--- 192.168.15.254 ping statistics ---
1 packets transmitted, 1 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.248/0.248/0.248/0.000 ms
15:26:05
#ettercap -T -m arp /192.168.15.3/ /192.168.15.254/ -L log
ettercap NG-0.7.3 copyright 2001-2004 ALoR & NaGA
Listening on xl0... (Ethernet)
   xl0 ->       00:04:79:67:96:71      192.168.16.2   255.255.255.192
SSL dissection needs a valid 'redir_command_on' script in the etter.conf file
Privileges dropped to UID 65534 GID 65534...
  28 plugins
  39 protocol dissectors
  53 ports monitored
7587 mac vendor fingerprint
1698 tcp OS fingerprint
2183 known services
Scanning for merged targets (2 hosts)...
* |==================================================>| 100.00 %
0 hosts added to the hosts list...
Starting Unified sniffing...
Text only Interface activated...
Hit 'h' for inline help
Closing text interface...
Unified sniffing was stopped.
15:27:09
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1
        inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63
        ether 00:04:79:67:96:71
        media: Ethernet autoselect (none)
        status: no carrier
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2
        inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255
        ether 00:07:e9:45:0d:2c
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet 127.0.0.1 netmask 0xff000000
15:27:12
#ifconfig xl0 down

15:27:59
#ls -l
total 122
-rw-------   1 root  wheel   157 18 ÆÅ× 09:47 .ICEauthority
-rw-------   1 root  wheel    51 18 ÆÅ× 09:50 .Xauthority
-rw-r--r--   1 root  wheel  1126  6 ÄÅË  2003 .Xresources
-rw-r--r--   1 root  wheel  7705 18 ÆÅ× 11:35 .bash_history
-rw-r--r--   1 root  wheel    24  6 ÄÅË  2003 .bash_logout
-rw-r--r--   1 root  wheel   336 14 ÑÎ× 00:19 .bash_profile
-rw-r--r--   1 root  wheel  1440 13 ÑÎ× 23:58 .bashrc
-rw-r--r--   2 root  wheel   210  6 ÄÅË  2003 .cshrc
drwx------   4 root  wheel   512 18 ÆÅ× 09:50 .gconf
...
-rw-r--r--   1 root  wheel  4676 13 ÑÎ× 21:09 mi.sh
-rw-r--r--   2 root  wheel     0 14 ÑÎ× 16:47 myfile
-rw-r--r--   1 root  wheel    79  6 ÄÅË  2003 mymotd
-rw-r--r--   1 root  wheel    86  6 ÄÅË  2003 mynologin
drwxr-xr-x   2 root  wheel   512 28 ÑÎ× 12:54 mytgz
drwxr-xr-x  10 root  wheel   512 21 ÑÎ× 16:29 nt.com.ua
-r--r--r--   1 root  wheel  3886 11 ÆÅ× 16:25 ports-supfile
drwxr-xr-x   2 root  wheel   512 28 ÑÎ× 12:54 soft
lrwxr-xr-x   1 root  wheel     6 14 ÑÎ× 16:56 sum-myfile -> myfile
-rw-r--r--   1 root  wheel  2610 13 ÑÎ× 21:03 xorg.conf.new
/dev/ttyp2
15:36:44
#man ettercap
15:38:58
#ettercap -i fxp0 -T -m arp /192.168.15.3/ /192.168.15.254/
ettercap NG-0.7.3 copyright 2001-2004 ALoR & NaGA
Listening on fxp0... (Ethernet)
  fxp0 ->       00:07:E9:45:0D:2C     192.168.15.22     255.255.255.0
SSL dissection needs a valid 'redir_command_on' script in the etter.conf file
Privileges dropped to UID 65534 GID 65534...
  28 plugins
  39 protocol dissectors
  53 ports monitored
7587 mac vendor fingerprint
1698 tcp OS fingerprint
...
q
FATAL: Unsupported format (q)
Packet visualization restarted...
Packet visualization stopped...
Packet visualization restarted...
Packet visualization stopped...
Packet visualization restarted...
Connections list:
Closing text interface...
Unified sniffing was stopped.
15:39:53
#ettercap -i fxp0 -T -m arp /192.168.15.3/ /192.168.15.4/
ettercap NG-0.7.3 copyright 2001-2004 ALoR & NaGA
Listening on fxp0... (Ethernet)
  fxp0 ->       00:07:E9:45:0D:2C     192.168.15.22     255.255.255.0
SSL dissection needs a valid 'redir_command_on' script in the etter.conf file
Privileges dropped to UID 65534 GID 65534...
  28 plugins
  39 protocol dissectors
  53 ports monitored
7587 mac vendor fingerprint
1698 tcp OS fingerprint
2183 known services
Scanning for merged targets (2 hosts)...
* |==================================================>| 100.00 %
2 hosts added to the hosts list...
Starting Unified sniffing...
Text only Interface activated...
Hit 'h' for inline help
User requested a CTRL+C... (deprecated, next time use proper shutdown)
15:40:16
#cd /usr/ports/net-mgmt/ettercap/

15:40:35
#ls
Makefile        distinfo        log.eci         pkg-descr       work
arp             files           log.ecp         pkg-plist
15:40:36
#less Makefile
15:40:57
#ls /usr/local/etc/etter.conf
/usr/local/etc/etter.conf
15:41:01
#less /usr/local/etc/etter.conf
прошло 13 минут
/dev/ttyv0
15:54:06
#host google.com.ua
google.com.ua has address 192.168.15.254
google.com.ua mail is handled by 30 smtp3.google.com.
google.com.ua mail is handled by 10 smtp1.google.com.
google.com.ua mail is handled by 20 smtp2.google.com.
15:55:28
#ping 192.168.15.100
PING 192.168.15.100 (192.168.15.100): 56 data bytes
64 bytes from 192.168.15.100: icmp_seq=1 ttl=255 time=1.312 ms
64 bytes from 192.168.15.100: icmp_seq=2 ttl=255 time=1.288 ms
^C
--- 192.168.15.100 ping statistics ---
3 packets transmitted, 2 packets received, 33% packet loss
round-trip min/avg/max/stddev = 1.288/1.300/1.312/0.012 ms
прошла 31 минута
16:26:29
#telnet 192.168.15.100
^C
16:26:49
#ping 192.168.15.21
PING 192.168.15.21 (192.168.15.21): 56 data bytes
64 bytes from 192.168.15.21: icmp_seq=0 ttl=64 time=0.253 ms
64 bytes from 192.168.15.21: icmp_seq=1 ttl=64 time=0.232 ms
^C
--- 192.168.15.21 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.232/0.242/0.253/0.010 ms
16:26:57
#telnet 192.168.15.100
^C
16:27:27
#telnet 192.168.15.100
Building configuration...
Current configuration:
!
version 12.0
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname sw-down
...
2    vlan2                            active    Fa0/2
3    vlan3                            active    Fa0/3
4    vlan4                            active    Fa0/4
5    vlan5                            active    Fa0/5
1002 fddi-default                     active
1003 token-ring-default               active
1004 fddinet-default                  active
1005 trnet-default                    active
sw-down#exit
Connection closed by foreign host.

Статистика

Время первой команды журнала14:31:56 2006- 2-18
Время последней команды журнала16:27:27 2006- 2-18
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %20.79
Процент синтаксически неверно набранных команд, % 2.97
Суммарное время работы с терминалом *, час 1.41
Количество командных строк в единицу времени, команда/мин 1.20
Частота использования команд
ping40|=======================================| 39.60%
ifconfig12|===========| 11.88%
cd5|====| 4.95%
vi5|====| 4.95%
/etc/rc.d/routing5|====| 4.95%
traceroute4|===| 3.96%
netstat4|===| 3.96%
ls4|===| 3.96%
ettercap3|==| 2.97%
telnet3|==| 2.97%
man3|==| 2.97%
less3|==| 2.97%
host2|=| 1.98%
51|| 0.99%
ipconfig1|| 0.99%
make1|| 0.99%
history1|| 0.99%
who1|| 0.99%
ifconf1|| 0.99%
/etc/rc.d/netif1|| 0.99%
pstree1|| 0.99%
____
*) Интервалы неактивности длительностью 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$