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

Содержание

Журнал

Понедельник (09/10/07)

/dev/ttyp6
16:34:17
#sysctl -a|grep forward
kern.smp.forward_signal_enabled: 1
kern.smp.forward_roundrobin_enabled: 1
net.inet.ip.forwarding: 0
net.inet.ip.fastforwarding: 0
net.inet6.ip6.forwarding: 0
16:34:31
#sysctl net.inet.ip.forwarding=1
net.inet.ip.forwarding: 0 -> 1
16:35:20
#sysctl -a|grep forward
kern.smp.forward_signal_enabled: 1
kern.smp.forward_roundrobin_enabled: 1
net.inet.ip.forwarding: 1
net.inet.ip.fastforwarding: 0
net.inet6.ip6.forwarding: 0
16:35:22
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.15.237 netmask 0xffffff00 broadcast 192.168.15.255
        inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
16:35:42
#netstat -na
Active Internet connections (including servers)
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp4       0      0  *.110                  *.*                    LISTEN
tcp4       0      0  192.168.15.237.50716   192.168.15.242.22      ESTABLISHED
tcp4       0      0  *.6000                 *.*                    LISTEN
tcp6       0      0  *.6000                 *.*                    LISTEN
tcp4       0      0  127.0.0.1.25           *.*                    LISTEN
tcp4       0      0  *.22                   *.*                    LISTEN
tcp6       0      0  *.22                   *.*                    LISTEN
udp4       0      0  *.514                  *.*
...
c7133348 stream      0      0 c70d9660        0        0        0 /tmp/.X11-unix/X0
c684271c stream      0      0 c70dadd0        0        0        0 /tmp/fam-user/fam-
c68414ec stream      0      0 c6896660        0        0        0 /var/run/devd.pipe
c8034348 dgram       0      0        0 c68412bc        0 c6841000
c6841000 dgram       0      0        0 c68412bc        0 c68411a4
c68411a4 dgram       0      0        0 c68412bc        0 c6841118
c684108c dgram       0      0        0 c6841348        0        0
c6841118 dgram       0      0        0 c68412bc        0        0
c68412bc dgram       0      0 c68a9770        0 c8034348        0 /var/run/logpriv
c6841348 dgram       0      0 c68a9880        0 c684108c        0 /var/run/log
16:37:13
#netstat -nr
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
0                  link#1             UC          0        0    em0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.16/26      link#2             UC          0        0    xl0
192.168.16.64/26   link#1             UC          0        0    em0
Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#4                        UHL         lo0
ff01:4::/32                       fe80::1%lo0                   UC          lo0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0
16:37:18
#ipconfig -a
bash: ipconfig: command not found
16:37:44
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
16:37:50
#vim /etc/rc
16:37:50
#vim /etc/rc.conf
16:37:50
#vim /etc/rc.conf
16:37:50
#vim /etc/rc.conf
16:39:36
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
16:39:53
#rout add default 192.168.16.126
bash: rout: command not found
16:42:23
#routeadd default 192.168.16.126
route: writing to routing socket: Network is unreachable
add net default: gateway 192.168.16.126: Network is unreachable
16:42:30
#netstat -n -r
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
0                  link#1             UC          0        0    em0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.16/26      link#2             UC          0        0    xl0
192.168.16.1       00:07:e9:3c:29:f9  UHLW        1      136    xl0    906
Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#4                        UHL         lo0
ff01:4::/32                       fe80::1%lo0                   UC          lo0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0
16:42:48
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
16:44:14
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
16:44:15
#vim /etc/rc.conf
11c11
< ifconfig_em0="DHCP"
---
> #ifconfig_em0="DHCP"
20c20,21
< ifconfig_xl0="inet 10.0.15.133/24"
---
> ifconfig_em0="inet 192.168.16.65/26"
> ifconfig_xl0="inet 192.168.16.62/26"
22a24
> gateway_enable="YES"
16:44:15
#vim /etc/rc.conf
11c11
< ifconfig_em0="DHCP"
---
> #ifconfig_em0="DHCP"
20c20,21
< ifconfig_xl0="inet 10.0.15.133/24"
---
> ifconfig_em0="inet 192.168.16.65/26"
> ifconfig_xl0="inet 192.168.16.62/26"
22a24
> gateway_enable="YES"
16:47:49
#sh /etc/rc.conf

16:47:49
#sh /etc/rc.conf

16:47:51
#/etc/netstart
devd already running? (pid=627).
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
Additional routing options: IP gateway=YES.
16:47:51
#/etc/netstart
devd already running? (pid=627).
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
Additional routing options: IP gateway=YES.
16:47:58
#netstat -rn
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
10.0.15.3/32       link#2             UC          0        0    xl0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.16/26      link#2             UC          0        0    xl0
192.168.16.1       00:07:e9:3c:29:f9  UHLW        1       17    xl0   1179
192.168.16.64/26   link#1             UC          0        0    em0
192.168.16.126     link#1             UHLW        1        8    em0
Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#4                        UHL         lo0
ff01:4::/32                       fe80::1%lo0                   UC          lo0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0
16:48:25
#ping 192.168.16.126
PING 192.168.16.126 (192.168.16.126): 56 data bytes
^C
--- 192.168.16.126 ping statistics ---
9 packets transmitted, 0 packets received, 100% packet loss
16:51:46
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
16:52:07
#ifconfig -u
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
16:52:54
#ping 192.168.16.126
PING 192.168.16.126 (192.168.16.126): 56 data bytes
^C
--- 192.168.16.126 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
16:52:54
#ping 192.168.16.126
PING 192.168.16.126 (192.168.16.126): 56 data bytes
^C
--- 192.168.16.126 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
16:53:18
#ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1): 56 data bytes
64 bytes from 192.168.16.1: icmp_seq=0 ttl=64 time=0.304 ms
64 bytes from 192.168.16.1: icmp_seq=1 ttl=64 time=0.226 ms
64 bytes from 192.168.16.1: icmp_seq=2 ttl=64 time=0.244 ms
^C
--- 192.168.16.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.226/0.258/0.304/0.033 ms
16:53:18
#ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1): 56 data bytes
64 bytes from 192.168.16.1: icmp_seq=0 ttl=64 time=0.304 ms
64 bytes from 192.168.16.1: icmp_seq=1 ttl=64 time=0.226 ms
64 bytes from 192.168.16.1: icmp_seq=2 ttl=64 time=0.244 ms
^C
--- 192.168.16.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.226/0.258/0.304/0.033 ms
16:53:18
#ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1): 56 data bytes
64 bytes from 192.168.16.1: icmp_seq=0 ttl=64 time=0.304 ms
64 bytes from 192.168.16.1: icmp_seq=1 ttl=64 time=0.226 ms
64 bytes from 192.168.16.1: icmp_seq=2 ttl=64 time=0.244 ms
^C
--- 192.168.16.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.226/0.258/0.304/0.033 ms
16:53:28
#netstat -nr
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
10.0.15.3/32       link#2             UC          0        0    xl0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.16/26      link#2             UC          0        0    xl0
192.168.16.1       00:07:e9:3c:29:f9  UHLW        1      468    xl0    869
192.168.16.64/26   link#1             UC          0        0    em0
Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#4                        UHL         lo0
ff01:4::/32                       fe80::1%lo0                   UC          lo0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0
16:53:35
#arp -a
? (192.168.16.1) at 00:07:e9:3c:29:f9 on xl0 [ethernet]
16:54:06
#ping 192.168.16.126
PING 192.168.16.126 (192.168.16.126): 56 data bytes
64 bytes from 192.168.16.126: icmp_seq=0 ttl=64 time=0.488 ms
64 bytes from 192.168.16.126: icmp_seq=1 ttl=64 time=0.209 ms
64 bytes from 192.168.16.126: icmp_seq=2 ttl=64 time=0.222 ms
64 bytes from 192.168.16.126: icmp_seq=3 ttl=64 time=0.235 ms
64 bytes from 192.168.16.126: icmp_seq=4 ttl=64 time=0.242 ms
64 bytes from 192.168.16.126: icmp_seq=5 ttl=64 time=0.253 ms
64 bytes from 192.168.16.126: icmp_seq=6 ttl=64 time=0.266 ms
64 bytes from 192.168.16.126: icmp_seq=7 ttl=64 time=0.279 ms
64 bytes from 192.168.16.126: icmp_seq=8 ttl=64 time=0.292 ms
...
64 bytes from 192.168.16.126: icmp_seq=43 ttl=64 time=0.187 ms
64 bytes from 192.168.16.126: icmp_seq=44 ttl=64 time=0.197 ms
64 bytes from 192.168.16.126: icmp_seq=45 ttl=64 time=0.209 ms
64 bytes from 192.168.16.126: icmp_seq=46 ttl=64 time=0.223 ms
64 bytes from 192.168.16.126: icmp_seq=47 ttl=64 time=0.231 ms
64 bytes from 192.168.16.126: icmp_seq=48 ttl=64 time=0.241 ms
^C
--- 192.168.16.126 ping statistics ---
49 packets transmitted, 49 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.185/0.249/0.488/0.049 ms
16:55:23
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
...
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
^C
--- 192.168.15.243 ping statistics ---
30 packets transmitted, 0 packets received, 100% packet loss
16:55:23
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
...
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
^C
--- 192.168.15.243 ping statistics ---
30 packets transmitted, 0 packets received, 100% packet loss
16:55:23
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
...
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
^C
--- 192.168.15.243 ping statistics ---
30 packets transmitted, 0 packets received, 100% packet loss
16:58:53
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
...
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
ping: sendto: No route to host
^C
--- 192.168.15.243 ping statistics ---
22 packets transmitted, 0 packets received, 100% packet loss
16:59:20
#tcpdump -n -i em0 -p icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on em0, link-type EN10MB (Ethernet), capture size 96 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel
17:00:09
#tcpdump -n -i xl-p icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on xl0, link-type EN10MB (Ethernet), capture size 96 bytes
17:00:16.388723 IP 192.168.16.1 > 192.168.15.243: ICMP echo request, id 62321, seq 102, length 64
17:00:16.388780 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.243 unreachable, length 36
17:00:16.389256 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.180 unreachable, length 36
17:00:16.389556 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.180 unreachable, length 36
17:00:17.389711 IP 192.168.16.1 > 192.168.15.243: ICMP echo request, id 62321, seq 103, length 64
17:00:17.389768 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.243 unreachable, length 36
17:00:17.390254 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.180 unreachable, length 36
17:00:17.390556 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.180 unreachable, length 36
...
17:00:45.438870 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.180 unreachable, length 36
17:00:45.439185 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.180 unreachable, length 36
17:00:46.439335 IP 192.168.16.1 > 192.168.15.243: ICMP echo request, id 62321, seq 132, length 64
17:00:46.439391 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.243 unreachable, length 36
17:00:46.439871 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.180 unreachable, length 36
17:00:46.440180 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.180 unreachable, length 36
^C
132 packets captured
202 packets received by filter
0 packets dropped by kernel
17:00:47
#netstat -rn
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
10.0.15.3/32       link#2             UC          0        0    xl0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.16/26      link#2             UC          0        0    xl0
192.168.16.1       00:07:e9:3c:29:f9  UHLW        1     1101    xl0    431
192.168.16.64/26   link#1             UC          0        0    em0
Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#4                        UHL         lo0
ff01:4::/32                       fe80::1%lo0                   UC          lo0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0
17:00:53
#route add default 192.168.16.126
add net default: gateway 192.168.16.126
17:00:53
#route add default 192.168.16.126
add net default: gateway 192.168.16.126
17:00:53
#route add default 192.168.16.126
add net default: gateway 192.168.16.126
17:00:53
#route add default 192.168.16.126
add net default: gateway 192.168.16.126
17:01:23
#netstat -rn
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.16.126     UGS         0        9    em0
10.0.15.3/32       link#2             UC          0        0    xl0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.16/26      link#2             UC          0        0    xl0
192.168.16.1       00:07:e9:3c:29:f9  UHLW        1     1206    xl0    396
192.168.16.64/26   link#1             UC          0        0    em0
192.168.16.126     00:01:02:b4:61:97  UHLW        2        0    em0   1196
Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#4                        UHL         lo0
ff01:4::/32                       fe80::1%lo0                   UC          lo0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0
17:01:28
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes
64 bytes from 192.168.15.243: icmp_seq=0 ttl=64 time=0.247 ms
64 bytes from 192.168.15.243: icmp_seq=1 ttl=64 time=0.233 ms
^C
--- 192.168.15.243 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.233/0.240/0.247/0.007 ms
17:01:28
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes
64 bytes from 192.168.15.243: icmp_seq=0 ttl=64 time=0.247 ms
64 bytes from 192.168.15.243: icmp_seq=1 ttl=64 time=0.233 ms
^C
--- 192.168.15.243 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.233/0.240/0.247/0.007 ms
17:01:28
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes
64 bytes from 192.168.15.243: icmp_seq=0 ttl=64 time=0.247 ms
64 bytes from 192.168.15.243: icmp_seq=1 ttl=64 time=0.233 ms
^C
--- 192.168.15.243 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.233/0.240/0.247/0.007 ms
17:01:28
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes
64 bytes from 192.168.15.243: icmp_seq=0 ttl=64 time=0.247 ms
64 bytes from 192.168.15.243: icmp_seq=1 ttl=64 time=0.233 ms
^C
--- 192.168.15.243 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.233/0.240/0.247/0.007 ms
17:01:46
#ping 192.168.15.126
PING 192.168.15.126 (192.168.15.126): 56 data bytes
^C
--- 192.168.15.126 ping statistics ---
6 packets transmitted, 0 packets received, 100% packet loss
17:01:46
#ping 192.168.15.126
PING 192.168.15.126 (192.168.15.126): 56 data bytes
^C
--- 192.168.15.126 ping statistics ---
6 packets transmitted, 0 packets received, 100% packet loss
17:01:57
#ping 192.168.15126
PING 192.168.15.126 (192.168.15.126): 56 data bytes
^C
--- 192.168.15.126 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
17:01:57
#ping 192.168.15126
PING 192.168.15.126 (192.168.15.126): 56 data bytes
^C
--- 192.168.15.126 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss
17:02:02
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes
64 bytes from 192.168.15.243: icmp_seq=0 ttl=64 time=0.251 ms
64 bytes from 192.168.15.243: icmp_seq=1 ttl=64 time=0.303 ms
64 bytes from 192.168.15.243: icmp_seq=2 ttl=64 time=0.293 ms
64 bytes from 192.168.15.243: icmp_seq=3 ttl=64 time=0.302 ms
64 bytes from 192.168.15.243: icmp_seq=4 ttl=64 time=0.208 ms
64 bytes from 192.168.15.243: icmp_seq=5 ttl=64 time=0.224 ms
64 bytes from 192.168.15.243: icmp_seq=6 ttl=64 time=0.232 ms
64 bytes from 192.168.15.243: icmp_seq=7 ttl=64 time=0.223 ms
64 bytes from 192.168.15.243: icmp_seq=8 ttl=64 time=0.243 ms
64 bytes from 192.168.15.243: icmp_seq=9 ttl=64 time=0.259 ms
64 bytes from 192.168.15.243: icmp_seq=10 ttl=64 time=0.274 ms
64 bytes from 192.168.15.243: icmp_seq=11 ttl=64 time=0.285 ms
64 bytes from 192.168.15.243: icmp_seq=12 ttl=64 time=0.290 ms
64 bytes from 192.168.15.243: icmp_seq=13 ttl=64 time=0.307 ms
64 bytes from 192.168.15.243: icmp_seq=14 ttl=64 time=0.298 ms
64 bytes from 192.168.15.243: icmp_seq=15 ttl=64 time=0.206 ms
^C
--- 192.168.15.243 ping statistics ---
16 packets transmitted, 16 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.206/0.262/0.307/0.035 ms
17:02:02
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes
64 bytes from 192.168.15.243: icmp_seq=0 ttl=64 time=0.251 ms
64 bytes from 192.168.15.243: icmp_seq=1 ttl=64 time=0.303 ms
64 bytes from 192.168.15.243: icmp_seq=2 ttl=64 time=0.293 ms
64 bytes from 192.168.15.243: icmp_seq=3 ttl=64 time=0.302 ms
64 bytes from 192.168.15.243: icmp_seq=4 ttl=64 time=0.208 ms
64 bytes from 192.168.15.243: icmp_seq=5 ttl=64 time=0.224 ms
64 bytes from 192.168.15.243: icmp_seq=6 ttl=64 time=0.232 ms
64 bytes from 192.168.15.243: icmp_seq=7 ttl=64 time=0.223 ms
64 bytes from 192.168.15.243: icmp_seq=8 ttl=64 time=0.243 ms
64 bytes from 192.168.15.243: icmp_seq=9 ttl=64 time=0.259 ms
64 bytes from 192.168.15.243: icmp_seq=10 ttl=64 time=0.274 ms
64 bytes from 192.168.15.243: icmp_seq=11 ttl=64 time=0.285 ms
64 bytes from 192.168.15.243: icmp_seq=12 ttl=64 time=0.290 ms
64 bytes from 192.168.15.243: icmp_seq=13 ttl=64 time=0.307 ms
64 bytes from 192.168.15.243: icmp_seq=14 ttl=64 time=0.298 ms
64 bytes from 192.168.15.243: icmp_seq=15 ttl=64 time=0.206 ms
^C
--- 192.168.15.243 ping statistics ---
16 packets transmitted, 16 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.206/0.262/0.307/0.035 ms
17:02:02
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes
64 bytes from 192.168.15.243: icmp_seq=0 ttl=64 time=0.251 ms
64 bytes from 192.168.15.243: icmp_seq=1 ttl=64 time=0.303 ms
64 bytes from 192.168.15.243: icmp_seq=2 ttl=64 time=0.293 ms
64 bytes from 192.168.15.243: icmp_seq=3 ttl=64 time=0.302 ms
64 bytes from 192.168.15.243: icmp_seq=4 ttl=64 time=0.208 ms
64 bytes from 192.168.15.243: icmp_seq=5 ttl=64 time=0.224 ms
64 bytes from 192.168.15.243: icmp_seq=6 ttl=64 time=0.232 ms
64 bytes from 192.168.15.243: icmp_seq=7 ttl=64 time=0.223 ms
64 bytes from 192.168.15.243: icmp_seq=8 ttl=64 time=0.243 ms
64 bytes from 192.168.15.243: icmp_seq=9 ttl=64 time=0.259 ms
64 bytes from 192.168.15.243: icmp_seq=10 ttl=64 time=0.274 ms
64 bytes from 192.168.15.243: icmp_seq=11 ttl=64 time=0.285 ms
64 bytes from 192.168.15.243: icmp_seq=12 ttl=64 time=0.290 ms
64 bytes from 192.168.15.243: icmp_seq=13 ttl=64 time=0.307 ms
64 bytes from 192.168.15.243: icmp_seq=14 ttl=64 time=0.298 ms
64 bytes from 192.168.15.243: icmp_seq=15 ttl=64 time=0.206 ms
^C
--- 192.168.15.243 ping statistics ---
16 packets transmitted, 16 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.206/0.262/0.307/0.035 ms
17:02:02
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes
64 bytes from 192.168.15.243: icmp_seq=0 ttl=64 time=0.251 ms
64 bytes from 192.168.15.243: icmp_seq=1 ttl=64 time=0.303 ms
64 bytes from 192.168.15.243: icmp_seq=2 ttl=64 time=0.293 ms
64 bytes from 192.168.15.243: icmp_seq=3 ttl=64 time=0.302 ms
64 bytes from 192.168.15.243: icmp_seq=4 ttl=64 time=0.208 ms
64 bytes from 192.168.15.243: icmp_seq=5 ttl=64 time=0.224 ms
64 bytes from 192.168.15.243: icmp_seq=6 ttl=64 time=0.232 ms
64 bytes from 192.168.15.243: icmp_seq=7 ttl=64 time=0.223 ms
64 bytes from 192.168.15.243: icmp_seq=8 ttl=64 time=0.243 ms
64 bytes from 192.168.15.243: icmp_seq=9 ttl=64 time=0.259 ms
64 bytes from 192.168.15.243: icmp_seq=10 ttl=64 time=0.274 ms
64 bytes from 192.168.15.243: icmp_seq=11 ttl=64 time=0.285 ms
64 bytes from 192.168.15.243: icmp_seq=12 ttl=64 time=0.290 ms
64 bytes from 192.168.15.243: icmp_seq=13 ttl=64 time=0.307 ms
64 bytes from 192.168.15.243: icmp_seq=14 ttl=64 time=0.298 ms
64 bytes from 192.168.15.243: icmp_seq=15 ttl=64 time=0.206 ms
^C
--- 192.168.15.243 ping statistics ---
16 packets transmitted, 16 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.206/0.262/0.307/0.035 ms
17:02:23
#ping 192.168.16.180
PING 192.168.16.180 (192.168.16.180): 56 data bytes
^C
--- 192.168.16.180 ping statistics ---
164 packets transmitted, 0 packets received, 100% packet loss
17:02:23
#ping 192.168.16.180
PING 192.168.16.180 (192.168.16.180): 56 data bytes
^C
--- 192.168.16.180 ping statistics ---
164 packets transmitted, 0 packets received, 100% packet loss
17:02:23
#ping 192.168.16.180
PING 192.168.16.180 (192.168.16.180): 56 data bytes
^C
--- 192.168.16.180 ping statistics ---
164 packets transmitted, 0 packets received, 100% packet loss
17:02:23
#ping 192.168.16.180
PING 192.168.16.180 (192.168.16.180): 56 data bytes
^C
--- 192.168.16.180 ping statistics ---
164 packets transmitted, 0 packets received, 100% packet loss
17:05:32
#ping 192.168.15180
PING 192.168.15.180 (192.168.15.180): 56 data bytes
64 bytes from 192.168.15.180: icmp_seq=161 ttl=63 time=0.554 ms
64 bytes from 192.168.15.180: icmp_seq=162 ttl=63 time=0.565 ms
64 bytes from 192.168.15.180: icmp_seq=163 ttl=63 time=0.452 ms
64 bytes from 192.168.15.180: icmp_seq=164 ttl=63 time=0.463 ms
64 bytes from 192.168.15.180: icmp_seq=165 ttl=63 time=0.472 ms
64 bytes from 192.168.15.180: icmp_seq=166 ttl=63 time=0.361 ms
64 bytes from 192.168.15.180: icmp_seq=167 ttl=63 time=0.499 ms
64 bytes from 192.168.15.180: icmp_seq=168 ttl=63 time=0.510 ms
64 bytes from 192.168.15.180: icmp_seq=169 ttl=63 time=0.521 ms
...
64 bytes from 192.168.15.180: icmp_seq=181 ttl=63 time=0.531 ms
64 bytes from 192.168.15.180: icmp_seq=182 ttl=63 time=0.415 ms
64 bytes from 192.168.15.180: icmp_seq=183 ttl=63 time=0.560 ms
64 bytes from 192.168.15.180: icmp_seq=184 ttl=63 time=0.435 ms
64 bytes from 192.168.15.180: icmp_seq=185 ttl=63 time=0.571 ms
64 bytes from 192.168.15.180: icmp_seq=186 ttl=63 time=0.582 ms
^C
--- 192.168.15.180 ping statistics ---
187 packets transmitted, 26 packets received, 86% packet loss
round-trip min/avg/max/stddev = 0.361/0.505/0.600/0.059 ms
17:08:42
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (none)
        status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
прошло 14 минут
17:23:21
#ifconfig em0 192.168.16

17:23:47
#ifconfig em0 192.168.15

17:23:47
#ifconfig -a

17:23:47
#ifconfig em0 192.168.15

17:23:47
#ifconfig -a

17:23:47
#route add default 192.168.15.180
route: writing to routing socket: Network is unreachable
add net default: gateway 192.168.15.180: Network is unreachable
17:23:47
#route add default 192.168.15.180
route: writing to routing socket: Network is unreachable
add net default: gateway 192.168.15.180: Network is unreachable
17:24:08
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.16.2 netmask 0xffffff00 broadcast 192.168.15.255
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (none)
        status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
17:24:08
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.16.2 netmask 0xffffff00 broadcast 192.168.15.255
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (none)
        status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
17:24:22
#ifconfig em0 192.168.15

17:24:22
#ifconfig em0 192.168.15

17:24:45
#ifconfig -a

17:24:45
#route add default 192.168.15.180
add net default: gateway 192.168.15.180
17:24:45
#ifconfig -a

17:24:45
#route add default 192.168.15.180
add net default: gateway 192.168.15.180
17:24:48
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (none)
        status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
17:24:48
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (none)
        status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
17:24:56
#netstat -nr
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.15.180     UGS         0       34    em0
10.0.15.3/32       link#2             UC          0        0    xl0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.15         link#1             UC          0        0    em0
192.168.15.180     00:04:75:7f:23:26  UHLW        2        8    em0   1185
192.168.16/26      link#2             UC          0        0    xl0
192.168.16.1       00:07:e9:3c:29:f9  UHLW        1     1332    xl0    176
Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#4                        UHL         lo0
ff01:4::/32                       fe80::1%lo0                   UC          lo0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0
17:24:56
#netstat -nr
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.15.180     UGS         0       34    em0
10.0.15.3/32       link#2             UC          0        0    xl0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.15         link#1             UC          0        0    em0
192.168.15.180     00:04:75:7f:23:26  UHLW        2        8    em0   1185
192.168.16/26      link#2             UC          0        0    xl0
192.168.16.1       00:07:e9:3c:29:f9  UHLW        1     1332    xl0    176
Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#4                        UHL         lo0
ff01:4::/32                       fe80::1%lo0                   UC          lo0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0
17:25:05
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (none)
        status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
17:25:05
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (none)
        status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
17:30:19
#ping 192.168.15.240
PING 192.168.15.240 (192.168.15.240): 56 data bytes
64 bytes from 192.168.15.240: icmp_seq=1 ttl=255 time=0.543 ms
64 bytes from 192.168.15.240: icmp_seq=2 ttl=255 time=0.552 ms
^C
--- 192.168.15.240 ping statistics ---
3 packets transmitted, 2 packets received, 33% packet loss
round-trip min/avg/max/stddev = 0.543/0.548/0.552/0.004 ms
17:30:37
#route add default 192.168.23.2
route: writing to routing socket: File exists
add net default: gateway 192.168.23.2: route already in table
17:30:37
#route add default 192.168.23.2
route: writing to routing socket: File exists
add net default: gateway 192.168.23.2: route already in table
17:30:37
#route add default 192.168.23.2
route: writing to routing socket: File exists
add net default: gateway 192.168.23.2: route already in table
17:34:38
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (none)
        status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
17:34:38
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (none)
        status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
17:34:50
#netstat -nr
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.15.180     UGS         0      104    em0
10.0.15.3/32       link#2             UC          0        0    xl0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.15         link#1             UC          0        0    em0
192.168.15.180     00:04:75:7f:23:26  UHLW        2       22    em0   1183
192.168.15.240     00:0a:b8:ab:eb:c0  UHLW        1        3    em0    976
192.168.16/26      link#2             UC          0        0    xl0
Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#4                        UHL         lo0
ff01:4::/32                       fe80::1%lo0                   UC          lo0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0
17:34:50
#netstat -nr
Routing tables
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            192.168.15.180     UGS         0      104    em0
10.0.15.3/32       link#2             UC          0        0    xl0
127.0.0.1          127.0.0.1          UH          0        0    lo0
192.168.15         link#1             UC          0        0    em0
192.168.15.180     00:04:75:7f:23:26  UHLW        2       22    em0   1183
192.168.15.240     00:0a:b8:ab:eb:c0  UHLW        1        3    em0    976
192.168.16/26      link#2             UC          0        0    xl0
Internet6:
Destination                       Gateway                       Flags      Netif Expire
::1                               ::1                           UHL         lo0
fe80::%lo0/64                     fe80::1%lo0                   U           lo0
fe80::1%lo0                       link#4                        UHL         lo0
ff01:4::/32                       fe80::1%lo0                   UC          lo0
ff02::%lo0/32                     fe80::1%lo0                   UC          lo0
17:36:56
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255
        inet 192.168.23.1 netmask 0xffffff00 broadcast 192.168.23.255
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (none)
        status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
17:36:56
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255
        inet 192.168.23.1 netmask 0xffffff00 broadcast 192.168.23.255
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (none)
        status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
17:36:56
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255
        inet 192.168.23.1 netmask 0xffffff00 broadcast 192.168.23.255
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (none)
        status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
17:36:56
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255
        inet 192.168.23.1 netmask 0xffffff00 broadcast 192.168.23.255
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (none)
        status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
17:36:56
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=b<RXCSUM,TXCSUM,VLAN_MTU>
        inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255
        inet 192.168.23.1 netmask 0xffffff00 broadcast 192.168.23.255
        ether 00:07:e9:3c:2c:15
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63
        inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3
        ether 00:04:76:a1:f0:5d
        media: Ethernet autoselect (none)
        status: no carrier
plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
17:37:07
#netstat -nr

Статистика

Время первой команды журнала16:34:17 2007- 9-10
Время последней команды журнала17:37:07 2007- 9-10
Количество командных строк в журнале101
Процент команд с ненулевым кодом завершения, %20.79
Процент синтаксически неверно набранных команд, % 1.98
Суммарное время работы с терминалом *, час 1.05
Количество командных строк в единицу времени, команда/мин 1.61
Частота использования команд
ifconfig30|=============================| 29.13%
ping29|============================| 28.16%
netstat12|===========| 11.65%
route11|==========| 10.68%
vim6|=====| 5.83%
sysctl3|==| 2.91%
sh2|=| 1.94%
grep2|=| 1.94%
tcpdump2|=| 1.94%
/etc/netstart2|=| 1.94%
routeadd1|| 0.97%
ipconfig1|| 0.97%
arp1|| 0.97%
rout1|| 0.97%
____
*) Интервалы неактивности длительностью 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$