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

Содержание

Журнал

Понедельник (06/20/11)

/dev/pts/2
11:23:57
#w
 12:24:02 up 28 min,  4 users,  load average: 0.03, 0.03, 0.03
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
user     tty7     :0               11:56   28:23   6.13s  0.07s x-session-manag
user     pts/0    :0.0             11:57    9:54   0.42s  3.72s gnome-terminal
user     pts/1    :0.0             12:09    4:57   0.29s  3.72s gnome-terminal
root     pts/2    linux253.unix.ba 12:23    0.00s  0.14s  0.00s script -f -c ba
11:26:30
#pkill l3-agent

11:26:34
#ps aux | grep l3-a
root      8466  0.0  0.0  10056   852 pts/3    S+   12:26   0:00 grep l3-a
11:26:38
#l3-agent

11:26:40
#vim /tmp/x
--- /dev/null	2011-06-20 11:55:39.162839365 +0300
+++ /tmp/x	2011-06-20 12:27:35.000000000 +0300
@@ -0,0 +1 @@
+hello
11:27:37
#cat /tmp/x
hello
11:27:40
#cd /tmp/

11:28:21
##wget xgu.ru/lilalo/install

11:28:59
#vim install
11:31:46
#vim ~/.bashrc
11:36:00
#~
l3-agent
. ~/.bashrc
"~/.bash_profile" 3L, 22C
11:37:05
#~
Reading package lists... Done
Building dependency tree
Reading state information... Done
w3m is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
11:38:57
#w3m http://xgu.ru/l3/users/sbond
user     tty7  гÑ:0°Ð¼Ð¼Ðµ        11:56   28:23   6.13s  0.07s x-session-manag
         pts/0    :0.0             11:57    9:54   0.42s  3.72s gnome-terminal
user     pts/1    :0.0             12:09    4:57   0.29s  3.72s gnome-terminal
user     pts/2    linux253.unix.ba 12:23    0.00s  0.14s  0.00s script -f -c ba
rootрнал
12:26:30
#w
#pkill l3-agent‹
 12:24:02 up 28 min,  4 users,  load average: 0.03, 0.03, 0.03
          8466  0.0  0.0  10056   852 pts/3    S+   12:26   0:00 grep l3-a
...
#l3-agent
#psraux |pgrep l3-ainux253.unix.ba 12:23    0.00s  0.14s  0.00s script -f -c ba
12:26:40/2
root6:30        2011-06-20 11:55:39.162839365 +0300
#vim /tmp/x [err2011-06-20 12:27:35.000000000 +0300
@@ -0,0p+1 @@
root      8466  0.0  0.0  10056   852 pts/3    S+   12:26   0:00 grep l3-a
--- /dev/nulliewing <root>
12:26:34
#ps aux | grep l3-a
/dev/pts/4
11:45:35
#vim /etc/network/interfaces
--- /tmp/l3-saved-8706.2312.1016	2011-06-20 12:53:20.000000000 +0300
+++ /etc/network/interfaces	2011-06-20 12:58:49.000000000 +0300
@@ -3,16 +3,17 @@
 
 # The loopback network interface
 auto lo
+auto eth0
 iface lo inet loopback
 
 # The primary network interface
 allow-hotplug eth0
 iface eth0 inet static
-	address 192.168.15.8
+	address 192.168.108.1
 	netmask 255.255.255.0
-	network 192.168.15.0
-	broadcast 192.168.15.255
-	gateway 192.168.15.253
+	network 192.168.108.0
+	broadcast 192.168.108.255
+	gateway 192.168.108.253
 	# dns-* options are implemented by the resolvconf package, if installed
 	dns-nameservers 192.168.15.253
 	dns-search unix.nt
прошло 98 минут
/dev/pts/1
13:24:01
#traceroute 192.168.101.1
traceroute to 192.168.101.1 (192.168.101.1), 30 hops max, 60 byte packets
 1  192.168.108.253 (192.168.108.253)  0.315 ms  0.305 ms  0.298 ms
 2  192.168.101.1 (192.168.101.1)  0.960 ms  0.958 ms  0.951 ms
/dev/pts/6
13:24:01
#traceroute 192.168.101.1
traceroute to 192.168.101.1 (192.168.101.1), 30 hops max, 60 byte packets
 1  192.168.108.253 (192.168.108.253)  0.315 ms  0.305 ms  0.298 ms
 2  192.168.101.1 (192.168.101.1)  0.960 ms  0.958 ms  0.951 ms
/dev/pts/1
13:24:54
#apt-cache search dhcp3-server
dhcp3-server - ISC DHCP server (transitional package)
isc-dhcp-server-ldap - DHCP server able to use LDAP as backend
isc-dhcp-server - ISC DHCP server for automatic IP address assignment
/dev/pts/6
13:24:54
#apt-cache search dhcp3-server
dhcp3-server - ISC DHCP server (transitional package)
isc-dhcp-server-ldap - DHCP server able to use LDAP as backend
isc-dhcp-server - ISC DHCP server for automatic IP address assignment
/dev/pts/1
13:26:10
#apt-get install dhcp3-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  isc-dhcp-server
Suggested packages:
  isc-dhcp-server-ldap
The following NEW packages will be installed:
  dhcp3-server isc-dhcp-server
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
...
Unpacking isc-dhcp-server (from .../isc-dhcp-server_4.1.1-P1-15+squeeze2_amd64.deb) ...
Selecting previously deselected package dhcp3-server.
Unpacking dhcp3-server (from .../dhcp3-server_4.1.1-P1-15+squeeze2_all.deb) ...
Processing triggers for man-db ...
Setting up isc-dhcp-server (4.1.1-P1-15+squeeze2) ...
Generating /etc/default/isc-dhcp-server...
Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed!
 failed!
invoke-rc.d: initscript isc-dhcp-server, action "start" failed.
Setting up dhcp3-server (4.1.1-P1-15+squeeze2) ...
/dev/pts/6
13:26:10
#apt-get install dhcp3-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  isc-dhcp-server
Suggested packages:
  isc-dhcp-server-ldap
The following NEW packages will be installed:
  dhcp3-server isc-dhcp-server
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
...
Unpacking isc-dhcp-server (from .../isc-dhcp-server_4.1.1-P1-15+squeeze2_amd64.deb) ...
Selecting previously deselected package dhcp3-server.
Unpacking dhcp3-server (from .../dhcp3-server_4.1.1-P1-15+squeeze2_all.deb) ...
Processing triggers for man-db ...
Setting up isc-dhcp-server (4.1.1-P1-15+squeeze2) ...
Generating /etc/default/isc-dhcp-server...
Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed!
 failed!
invoke-rc.d: initscript isc-dhcp-server, action "start" failed.
Setting up dhcp3-server (4.1.1-P1-15+squeeze2) ...
/dev/pts/1
13:26:35
#ps aux | grep dhc
root      9335  0.0  0.0  10056   848 pts/7    S+   14:27   0:00 grep dhc
/dev/pts/6
13:26:35
#ps aux | grep dhc
root      9335  0.0  0.0  10056   848 pts/7    S+   14:27   0:00 grep dhc
/dev/pts/1
13:27:07
#ps aux | grep dhcp
root      9344  0.0  0.0  10056   852 pts/7    S+   14:27   0:00 grep dhcp
/dev/pts/6
13:27:07
#ps aux | grep dhcp
root      9344  0.0  0.0  10056   852 pts/7    S+   14:27   0:00 grep dhcp
/dev/pts/1
13:27:09
#/etc/def
default/ defoma/
13:27:09
#/etc/def
default/ defoma/
/dev/pts/6
13:27:09
#/etc/def
default/ defoma/
13:27:09
#/etc/def
default/ defoma/
/dev/pts/1
13:27:09
#ls /etc/default/
acpid         bluetooth  console-setup  dbus    grub    ifupdown         keyboard    ntpdate  rsyslog  tmpfs
alsa          bootlogd   cron           devpts  halt    isc-dhcp-server  locale      portmap  saned    useradd
avahi-daemon  cacerts    cups           exim4   hdparm  kdm.d            nfs-common  rcS      ssh
/dev/pts/6
13:27:09
#ls /etc/default/
acpid         bluetooth  console-setup  dbus    grub    ifupdown         keyboard    ntpdate  rsyslog  tmpfs
alsa          bootlogd   cron           devpts  halt    isc-dhcp-server  locale      portmap  saned    useradd
avahi-daemon  cacerts    cups           exim4   hdparm  kdm.d            nfs-common  rcS      ssh
/dev/pts/1
13:27:35
#vim /etc/def
/dev/pts/6
13:27:35
#vim /etc/def
/dev/pts/1
13:27:35
#vim /etc/default/isc-dhcp-server
/dev/pts/6
13:27:35
#vim /etc/default/isc-dhcp-server
--- /tmp/l3-saved-9094.25108.16360	2011-06-20 14:28:17.000000000 +0300
+++ /etc/default/isc-dhcp-server	2011-06-20 14:28:26.000000000 +0300
@@ -8,4 +8,4 @@
 
 # On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
 #	Separate multiple interfaces with spaces, e.g. "eth0 eth1".
-INTERFACES=""
+INTERFACES="eth0"
/dev/pts/8
13:27:47
#cat /etc/default/
acpid            console-setup    grub             keyboard         rsyslog
alsa             cron             halt             locale           saned
avahi-daemon     cups             hdparm           nfs-common       ssh
bluetooth        dbus             ifupdown         ntpdate          tmpfs
bootlogd         devpts           isc-dhcp-server  portmap          useradd
cacerts          exim4            kdm.d/           rcS
13:27:47
#cat /etc/default/isc-dhcp-server
# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/isc-dhcp-server by the maintainer scripts
#
# This is a POSIX shell fragment
#
# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".
INTERFACES=""
13:28:07
#vim /etc/dhcp/dhcpd.conf
--- /tmp/l3-saved-9416.11162.14022	2011-06-20 14:29:53.000000000 +0300
+++ /etc/dhcp/dhcpd.conf	2011-06-20 14:35:25.000000000 +0300
@@ -10,8 +10,8 @@
 ddns-update-style none;
 
 # option definitions common to all supported networks...
-option domain-name "example.org";
-option domain-name-servers ns1.example.org, ns2.example.org;
+option domain-name "d8.unix.nt";
+option domain-name-servers 192.168.15.253;
 
 default-lease-time 600;
 max-lease-time 7200;
@@ -32,10 +32,10 @@
 
 # This is a very basic subnet declaration.
 
-#subnet 10.254.239.0 netmask 255.255.255.224 {
-#  range 10.254.239.10 10.254.239.20;
-#  option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
-#}
+subnet 192.168.108.0 netmask 255.255.255.0 {
+  range 192.168.108.200 192.168.108.250;
+ # option routers 192.168.108.253;
+}
 
 # This declaration allows BOOTP clients to get dynamic addresses,
 # which we don't really recommend.
/dev/pts/1
13:28:26
#vim /etc/default/isc-dhcp-server
/dev/pts/6
13:28:26
#vim /etc/default/isc-dhcp-server
/dev/pts/1
13:28:36
#~
dhclient.conf           dhclient-enter-hooks.d/ dhclient-exit-hooks.d/  dhcpd.conf
13:28:36
#vim /etc/dhcp/dhc
/dev/pts/6
13:28:36
#~
dhclient.conf           dhclient-enter-hooks.d/ dhclient-exit-hooks.d/  dhcpd.conf
13:28:36
#vim /etc/dhcp/dhc
/dev/pts/1
13:28:36
#vim /etc/dhcp/dhcpd.conf
/dev/pts/6
13:28:36
#vim /etc/dhcp/dhcpd.conf
13:30:42
#vim /etc/dhcp/dhcpd.conf
--- /tmp/l3-saved-9094.26838.17223	2011-06-20 14:30:43.000000000 +0300
+++ /etc/dhcp/dhcpd.conf	2011-06-20 14:35:25.000000000 +0300
@@ -10,8 +10,8 @@
 ddns-update-style none;
 
 # option definitions common to all supported networks...
-option domain-name "example.org";
-option domain-name-servers ns1.example.org, ns2.example.org;
+option domain-name "d8.unix.nt";
+option domain-name-servers 192.168.15.253;
 
 default-lease-time 600;
 max-lease-time 7200;
@@ -32,10 +32,10 @@
 
 # This is a very basic subnet declaration.
 
-#subnet 10.254.239.0 netmask 255.255.255.224 {
-#  range 10.254.239.10 10.254.239.20;
-#  option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
-#}
+subnet 192.168.108.0 netmask 255.255.255.0 {
+  range 192.168.108.200 192.168.108.250;
+ # option routers 192.168.108.253;
+}
 
 # This declaration allows BOOTP clients to get dynamic addresses,
 # which we don't really recommend.
/dev/pts/1
13:30:42
#vim /etc/dhcp/dhcpd.conf
13:35:25
#/etc/init.d/</