/l3/users/sbond/nt-voip-2011-06/linux8.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 :37 :38 :39 |
|
#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 |
#pkill l3-agent
|
#ps aux | grep l3-a
root 8466 0.0 0.0 10056 852 pts/3 S+ 12:26 0:00 grep l3-a |
#l3-agent
|
#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 |
#cat /tmp/x
hello |
#cd /tmp/
|
##wget xgu.ru/lilalo/install
|
#vim install
|
#vim ~/.bashrc
|
#~
l3-agent . ~/.bashrc "~/.bash_profile" 3L, 22C |
#~
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. |
#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 |
#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 |
#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 |
#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 |
#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 |
#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 |
#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) ... |
#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) ... |
#/etc/def
![]() default/ defoma/ |
#/etc/def
![]() default/ defoma/ |
#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 |
#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 |
#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" |
#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 |
#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="" |
#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. |
#vim /etc/dhcp/dhc
![]() |
#vim /etc/dhcp/dhc
![]() |
#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. |
#/etc/init.d/ |