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

Содержание

Журнал

Понедельник (12/01/14)

/dev/pts/0
14:58:18
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.12.1    0.0.0.0         UG    0      0        0 eth0
192.168.12.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
/dev/pts/1
14:58:18
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.12.1    0.0.0.0         UG    0      0        0 eth0
192.168.12.0    0.0.0.0         255.255.255.0   U     0      0        0 eth0
/dev/pts/0
14:58:29
#ping 192.168.12.1
PING 192.168.12.1 (192.168.12.1) 56(84) bytes of data.
^C
--- 192.168.12.1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1007ms
/dev/pts/1
14:58:29
#ping 192.168.12.1
PING 192.168.12.1 (192.168.12.1) 56(84) bytes of data.
^C
--- 192.168.12.1 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1007ms
/dev/pts/0
14:58:38
#/etc/init.d/networking restart
[warn] Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
[....] Reconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/6c:3b:e5:39:37:4d
Sending on   LPF/eth0/6c:3b:e5:39:37:4d
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.10.240 port 67
done.
/dev/pts/1
14:58:38
#/etc/init.d/networking restart
[warn] Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
[....] Reconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/eth0/6c:3b:e5:39:37:4d
Sending on   LPF/eth0/6c:3b:e5:39:37:4d
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.10.240 port 67
done.
/dev/pts/0
14:59:47
#ping 192.168.12.254
connect: Network is unreachable
/dev/pts/1
14:59:47
#ping 192.168.12.254
connect: Network is unreachable
/dev/pts/0
14:59:54
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
/dev/pts/1
14:59:54
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
/dev/pts/0
15:00:01
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
/dev/pts/1
15:00:01
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
/dev/pts/0
15:00:17
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
/dev/pts/1
15:00:17
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
/dev/pts/0
15:01:18
#ifconfig
eth1      Link encap:Ethernet  HWaddr 00:1b:21:9d:5a:04
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:17 Memory:ff6c0000-ff6e0000
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:2682 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2682 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:669033 (653.3 KiB)  TX bytes:669033 (653.3 KiB)
/dev/pts/1
15:01:18
#ifconfig
eth1      Link encap:Ethernet  HWaddr 00:1b:21:9d:5a:04
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:17 Memory:ff6c0000-ff6e0000
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:2682 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2682 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:669033 (653.3 KiB)  TX bytes:669033 (653.3 KiB)
/dev/pts/0
15:01:24
#vi /etc/net
/dev/pts/1
15:01:24
#vi /etc/net
/dev/pts/0
15:01:24
#vi /etc/network/interfaces
/dev/pts/1
15:01:24
#vi /etc/network/interfaces
/dev/pts/0
15:03:16
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.12.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
/dev/pts/1
15:03:16