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

Содержание

Журнал

Понедельник (11/24/14)

/dev/pts/3
09:11:49
#screen
/dev/pts/2
09:11:49
#screen
/dev/pts/5
09:11:54
#clear

09:13:42
## hallo

/dev/pts/7
09:15:09
#screen -x
/dev/pts/5
09:15:14
#clear

прошло >2 часов
/dev/pts/1
11:26:58
#screen
/dev/pts/0
11:26:58
#screen
/dev/pts/3
11:27:02
#ifconfig
eth0      Link encap:Ethernet  HWaddr e0:69:95:2e:da:af
          inet addr:192.168.12.6  Bcast:192.168.12.255  Mask:255.255.255.0
          inet6 addr: fe80::e269:95ff:fe2e:daaf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17549 errors:0 dropped:4 overruns:0 frame:0
          TX packets:7924 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:11801311 (11.2 MiB)  TX bytes:877688 (857.1 KiB)
          Interrupt:20 Memory:fe600000-fe620000
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:134 errors:0 dropped:0 overruns:0 frame:0
          TX packets:134 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8088 (7.8 KiB)  TX bytes:8088 (7.8 KiB)
11:27:06
#alias exit='echo no exit'

/dev/pts/5
11:27:20
#screen -ls
/dev/pts/7
11:27:31
#screen -x
/dev/pts/3
11:27:35
#ifconfig
eth0      Link encap:Ethernet  HWaddr e0:69:95:2e:da:af
          inet addr:192.168.12.6  Bcast:192.168.12.255  Mask:255.255.255.0
          inet6 addr: fe80::e269:95ff:fe2e:daaf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17759 errors:0 dropped:4 overruns:0 frame:0
          TX packets:8096 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:11852834 (11.3 MiB)  TX bytes:907173 (885.9 KiB)
          Interrupt:20 Memory:fe600000-fe620000
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:134 errors:0 dropped:0 overruns:0 frame:0
          TX packets:134 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8088 (7.8 KiB)  TX bytes:8088 (7.8 KiB)
11:28:01
#cat /etc/network/interfaces
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
     address 192.168.12.6
     netmask 255.255.255.0
     gateway 192.168.12.254
11:28:41
#ping 192.168.12..253
ping: unknown host 192.168.12..253
11:28:56
#ping 192.168.12.253
PING 192.168.12.253 (192.168.12.253) 56(84) bytes of data.
64 bytes from 192.168.12.253: icmp_req=1 ttl=64 time=1.40 ms
64 bytes from 192.168.12.253: icmp_req=2 ttl=64 time=1.69 ms
^C
--- 192.168.12.253 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 1.407/1.553/1.699/0.146 ms
прошло 48 минут
12:17:17
#clear

/dev/pts/6
12:18:56
#ls /etc/network
if-down.d  if-post-down.d  if-pre-up.d  if-up.d  interfaces  run
/dev/pts/5
12:18:56
#ls /etc/network
if-down.d  if-post-down.d  if-pre-up.d  if-up.d  interfaces  run
/dev/pts/6
12:19:19
#ls /etc/network/interfaces
/etc/network/interfaces
/dev/pts/5
12:19:19
#ls /etc/network/interfaces
/etc/network/interfaces
/dev/pts/6
12:19:38
#more /etc/network/interfaces
/dev/pts/5
12:19:38
#more /etc/network/interfaces
прошло 18 минут
/dev/pts/6
12:38:12
#ping 192.168.12.254
PING 192.168.12.254 (192.168.12.254) 56(84) bytes of data.
64 bytes from 192.168.12.254: icmp_req=1 ttl=64 time=0.271 ms
64 bytes from 192.168.12.254: icmp_req=2 ttl=64 time=0.271 ms
64 bytes from 192.168.12.254: icmp_req=3 ttl=64 time=0.403 ms
64 bytes from 192.168.12.254: icmp_req=4 ttl=64 time=0.343 ms
64 bytes from 192.168.12.254: icmp_req=5 ttl=64 time=0.372 ms
64 bytes from 192.168.12.254: icmp_req=6 ttl=64 time=0.344 ms
64 bytes from 192.168.12.254: icmp_req=7 ttl=64 time=0.196 ms
64 bytes from 192.168.12.254: icmp_req=8 ttl=64 time=0.326 ms
64 bytes from 192.168.12.254: icmp_req=9 ttl=64 time=0.362 ms
...
64 bytes from 192.168.12.254: icmp_req=21 ttl=64 time=0.419 ms
64 bytes from 192.168.12.254: icmp_req=22 ttl=64 time=0.250 ms
64 bytes from 192.168.12.254: icmp_req=23 ttl=64 time=0.390 ms
64 bytes from 192.168.12.254: icmp_req=24 ttl=64 time=0.217 ms
64 bytes from 192.168.12.254: icmp_req=25 ttl=64 time=0.281 ms
64 bytes from 192.168.12.254: icmp_req=26 ttl=64 time=0.215 ms
^C
--- 192.168.12.254 ping statistics ---
26 packets transmitted, 26 received, 0% packet loss, time 24997ms
rtt min/avg/max/mdev = 0.140/0.284/0.419/0.079 ms
/dev/pts/5
12:38:12
#ping 192.168.12.254
PING 192.168.12.254 (192.168.12.254) 56(84) bytes of data.
64 bytes from 192.168.12.254: icmp_req=1 ttl=64 time=0.271 ms
64 bytes from 192.168.12.254: icmp_req=2 ttl=64 time=0.271 ms
64 bytes from 192.168.12.254: icmp_req=3 ttl=64 time=0.403 ms
64 bytes from 192.168.12.254: icmp_req=4 ttl=64 time=0.343 ms
64 bytes from 192.168.12.254: icmp_req=5 ttl=64 time=0.372 ms
64 bytes from 192.168.12.254: icmp_req=6 ttl=64 time=0.344 ms
64 bytes from 192.168.12.254: icmp_req=7 ttl=64 time=0.196 ms
64 bytes from 192.168.12.254: icmp_req=8 ttl=64 time=0.326 ms
64 bytes from 192.168.12.254: icmp_req=9 ttl=64 time=0.362 ms
...
64 bytes from 192.168.12.254: icmp_req=21 ttl=64 time=0.419 ms
64 bytes from 192.168.12.254: icmp_req=22 ttl=64 time=0.250 ms
64 bytes from 192.168.12.254: icmp_req=23 ttl=64 time=0.390 ms
64 bytes from 192.168.12.254: icmp_req=24 ttl=64 time=0.217 ms
64 bytes from 192.168.12.254: icmp_req=25 ttl=64 time=0.281 ms
64 bytes from 192.168.12.254: icmp_req=26 ttl=64 time=0.215 ms
^C
--- 192.168.12.254 ping statistics ---
26 packets transmitted, 26 received, 0% packet loss, time 24997ms
rtt min/avg/max/mdev = 0.140/0.284/0.419/0.079 ms
/dev/pts/6
12:38:44
#ping 192.168.12.253
PING 192.168.12.253 (192.168.12.253) 56(84) bytes of data.
64 bytes from 192.168.12.253: icmp_req=1 ttl=64 time=1.40 ms
64 bytes from 192.168.12.253: icmp_req=2 ttl=64 time=0.624 ms
64 bytes from 192.168.12.253: icmp_req=3 ttl=64 time=0.609 ms
^C
--- 192.168.12.253 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.609/0.877/1.400/0.370 ms
/dev/pts/5
12:38:44
#ping 192.168.12.253
PING 192.168.12.253 (192.168.12.253) 56(84) bytes of data.
64 bytes from 192.168.12.253: icmp_req=1 ttl=64 time=1.40 ms
64 bytes from 192.168.12.253: icmp_req=2 ttl=64 time=0.624 ms
64 bytes from 192.168.12.253: icmp_req=3 ttl=64 time=0.609 ms
^C
--- 192.168.12.253 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.609/0.877/1.400/0.370 ms
/dev/pts/6
12:38:49
#ping 192.168.12.253
PING 192.168.12.253 (192.168.12.253) 56(84) bytes of data.
64 bytes from 192.168.12.253: icmp_req=1 ttl=64 time=0.598 ms
64 bytes from 192.168.12.253: icmp_req=2 ttl=64 time=0.606 ms
64 bytes from 192.168.12.253: icmp_req=3 ttl=64 time=0.627 ms
64 bytes from 192.168.12.253: icmp_req=4 ttl=64 time=0.607 ms
64 bytes from 192.168.12.253: icmp_req=5 ttl=64 time=0.608 ms
64 bytes from 192.168.12.253: icmp_req=6 ttl=64 time=0.605 ms
64 bytes from 192.168.12.253: icmp_req=7 ttl=64 time=0.616 ms
64 bytes from 192.168.12.253: icmp_req=8 ttl=64 time=0.614 ms
64 bytes from 192.168.12.253: icmp_req=9 ttl=64 time=0.729 ms
64 bytes from 192.168.12.253: icmp_req=10 ttl=64 time=0.618 ms
64 bytes from 192.168.12.253: icmp_req=11 ttl=64 time=0.620 ms
^C
--- 192.168.12.253 ping statistics ---
11 packets transmitted, 11 received, 0% packet loss, time 9997ms
rtt min/avg/max/mdev = 0.598/0.622/0.729/0.043 ms
/dev/pts/5
12:38:49
#ping 192.168.12.253
PING 192.168.12.253 (192.168.12.253) 56(84) bytes of data.
64 bytes from 192.168.12.253: icmp_req=1 ttl=64 time=0.598 ms
64 bytes from 192.168.12.253: icmp_req=2 ttl=64 time=0.606 ms
64 bytes from 192.168.12.253: icmp_req=3 ttl=64 time=0.627 ms
64 bytes from 192.168.12.253: icmp_req=4 ttl=64 time=0.607 ms
64 bytes from 192.168.12.253: icmp_req=5 ttl=64 time=0.608 ms
64 bytes from 192.168.12.253: icmp_req=6 ttl=64 time=0.605 ms
64 bytes from 192.168.12.253: icmp_req=7 ttl=64 time=0.616 ms
64 bytes from 192.168.12.253: icmp_req=8 ttl=64 time=0.614 ms
64 bytes from 192.168.12.253: icmp_req=9 ttl=64 time=0.729 ms
64 bytes from 192.168.12.253: icmp_req=10 ttl=64 time=0.618 ms
64 bytes from 192.168.12.253: icmp_req=11 ttl=64 time=0.620 ms
^C
--- 192.168.12.253 ping statistics ---
11 packets transmitted, 11 received, 0% packet loss, time 9997ms
rtt min/avg/max/mdev = 0.598/0.622/0.729/0.043 ms
/dev/pts/6
12:39:06
#ifconfig
eth0      Link encap:Ethernet  HWaddr e0:69:95:2e:da:af
          inet addr:192.168.12.6  Bcast:192.168.12.255  Mask:255.255.255.0
          inet6 addr: fe80::e269:95ff:fe2e:daaf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25214 errors:0 dropped:4 overruns:0 frame:0
          TX packets:11610 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13895666 (13.2 MiB)  TX bytes:1222354 (1.1 MiB)
          Interrupt:20 Memory:fe600000-fe620000
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:206 errors:0 dropped:0 overruns:0 frame:0
          TX packets:206 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:12408 (12.1 KiB)  TX bytes:12408 (12.1 KiB)
/dev/pts/5
12:39:06
#ifconfig
eth0      Link encap:Ethernet  HWaddr e0:69:95:2e:da:af
          inet addr:192.168.12.6  Bcast:192.168.12.255  Mask:255.255.255.0
          inet6 addr: fe80::e269:95ff:fe2e:daaf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:25214 errors:0 dropped:4 overruns:0 frame:0
          TX packets:11610 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13895666 (13.2 MiB)  TX bytes:1222354 (1.1 MiB)
          Interrupt:20 Memory:fe600000-fe620000
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:206 errors:0 dropped:0 overruns:0 frame:0
          TX packets:206 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:12408 (12.1 KiB)  TX bytes:12408 (12.1 KiB)
прошло 17 минут
/dev/pts/6
12:56:45
#sed -i s/192.168.12.6/192.168.60.1 /etc/network/interfaces
sed: -e expression #1, char 27: unterminated `s' command
/dev/pts/5
12:56:45
#sed -i s/192.168.12.6/192.168.60.1 /etc/network/interfaces
sed: -e expression #1, char 27: unterminated `s' command
/dev/pts/6
12:58:49
#sed -i s/192.168.12.6/192.168.60.1/ /etc/network/interfaces

/dev/pts/5
12:58:49
#sed -i s/192.168.12.6/192.168.60.1/ /etc/network/interfaces

/dev/pts/6
12:59:07
#sed -i s/192.168.12.254/192.168.60.254/ /etc/network/interfaces

/dev/pts/5
12:59:07