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

Содержание

Журнал

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

/dev/pts/2
09:06:04
#screen
/dev/pts/1
09:06:04
#screen
/dev/pts/4
09:08:44
## hello

/dev/pts/6
09:14:38
#screen -x
прошло 70 минут
/dev/pts/4
10:24:44
#layout "us,ru"
                  ping 192.168.12.254шасщташп
ping: unknown host 192.168.12.254шасщташп
прошло 59 минут
11:23:57
#шifconfig
eth0      Link encap:Ethernet  HWaddr 6c:3b:e5:3a:d3:57
          inet addr:192.168.12.4  Bcast:192.168.12.255  Mask:255.255.255.0
          inet6 addr: fe80::6e3b:e5ff:fe3a:d357/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:19652 errors:0 dropped:4 overruns:0 frame:0
          TX packets:9606 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13675265 (13.0 MiB)  TX bytes:959295 (936.8 KiB)
          Interrupt:18
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:155 errors:0 dropped:0 overruns:0 frame:0
          TX packets:155 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:9389 (9.1 KiB)  TX bytes:9389 (9.1 KiB)
11:24:13
#cat/etc/network/interfaces
bash: cat/etc/network/interfaces: No such file or directory
11:26:11
#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.4
     netmask 255.255.255.0
     gateway 192.168.12.254
/dev/pts/6
11:26:41
#screen -x
11:26:42
#screen -x
/dev/pts/2
11:26:47
#layout "us,ru"

11:26:47
#creen
[root@debian4:~]#
/dev/pts/1
11:26:47
#layout "us,ru"

11:26:47
#creen
[root@debian4:~]#
/dev/pts/4
11:26:57
#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.4
     netmask 255.255.255.0
     gateway 192.168.12.254
11:26:59
#alias exit='echo no exit'

11:27:16
#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.43 ms
64 bytes from 192.168.12.253: icmp_req=2 ttl=64 time=0.662 ms
64 bytes from 192.168.12.253: icmp_req=3 ttl=64 time=0.661 ms
64 bytes from 192.168.12.253: icmp_req=4 ttl=64 time=0.674 ms
64 bytes from 192.168.12.253: icmp_req=5 ttl=64 time=0.669 ms
^C
--- 192.168.12.253 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4001ms
rtt min/avg/max/mdev = 0.661/0.820/1.436/0.308 ms
11:29:03
#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.42 ms
64 bytes from 192.168.12.253: icmp_req=2 ttl=64 time=0.677 ms
64 bytes from 192.168.12.253: icmp_req=3 ttl=64 time=0.669 ms
64 bytes from 192.168.12.253: icmp_req=4 ttl=64 time=0.660 ms
64 bytes from 192.168.12.253: icmp_req=5 ttl=64 time=0.679 ms
64 bytes from 192.168.12.253: icmp_req=6 ttl=64 time=0.742 ms
64 bytes from 192.168.12.253: icmp_req=7 ttl=64 time=0.612 ms
64 bytes from 192.168.12.253: icmp_req=8 ttl=64 time=1.01 ms
64 bytes from 192.168.12.253: icmp_req=9 ttl=64 time=0.677 ms
...
64 bytes from 192.168.12.253: icmp_req=18 ttl=64 time=0.661 ms
64 bytes from 192.168.12.253: icmp_req=19 ttl=64 time=0.661 ms
64 bytes from 192.168.12.253: icmp_req=20 ttl=64 time=0.679 ms
64 bytes from 192.168.12.253: icmp_req=21 ttl=64 time=0.675 ms
64 bytes from 192.168.12.253: icmp_req=22 ttl=64 time=0.660 ms
64 bytes from 192.168.12.253: icmp_req=23 ttl=64 time=0.677 ms
^C
--- 192.168.12.253 ping statistics ---
23 packets transmitted, 23 received, 0% packet loss, time 21998ms
rtt min/avg/max/mdev = 0.612/0.895/4.790/0.847 ms
прошло 69 минут
12:38:27
#^C

прошло 19 минут
12:58:05
#sed -i s/192.168.12.4/192.168.40.1/ /etc/network/interfaces

13:04:45
#cat /etc/network/interfaces
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
     address 192.168.40.1
     netmask 255.255.255.0
     gateway 192.168.40.254
13:05:27
#cat /etc/network/interfaces
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
     address 192.168.40.1
     netmask 255.255.255.0
     gateway 192.168.40.254
13:05:45
#cat /etc/network/interfaces

13:05:45
#cat /etc/network/interfaces
                  ping 192.168.12.253
PING 192.168.12.253 (192.168.12.253) 56(84) bytes of data.
From 192.168.12.4 icmp_seq=1 Destination Host Unreachable
From 192.168.12.4 icmp_seq=2 Destination Host Unreachable
From 192.168.12.4 icmp_seq=3 Destination Host Unreachable
From 192.168.12.4 icmp_seq=4 Destination Host Unreachable
From 192.168.12.4 icmp_seq=5 Destination Host Unreachable
From 192.168.12.4 icmp_seq=6 Destination Host Unreachable
From 192.168.12.4 icmp_seq=7 Destination Host Unreachable
From 192.168.12.4 icmp_seq=8 Destination Host Unreachable
...
From 192.168.12.4 icmp_seq=19 Destination Host Unreachable
From 192.168.12.4 icmp_seq=20 Destination Host Unreachable
From 192.168.12.4 icmp_seq=21 Destination Host Unreachable
From 192.168.12.4 icmp_seq=22 Destination Host Unreachable
From 192.168.12.4 icmp_seq=23 Destination Host Unreachable
From 192.168.12.4 icmp_seq=24 Destination Host Unreachable
^C
--- 192.168.12.253 ping statistics ---
25 packets transmitted, 0 received, +24 errors, 100% packet loss, time 24118ms
pipe 3
прошло 17 минут
13:23:23
#ifdown
ifdown: Use --help for help
13:23:35