/l3/users/ids/nt-voip/linux23.unix.nt.unix.nt/ids :1 :2 :3 :4 :5 :6 :7 :8 :9 |
|
#l3
![]() l3 l3cd l3-config l3mass_upload l3_save_last_line l3shot l3-agent l3_close_session l3_fix_prompt l3pwd l3script l3upload |
#l3
![]() l3 l3cd l3-config l3mass_upload l3_save_last_line l3shot l3-agent l3_close_session l3_fix_prompt l3pwd l3script l3upload |
#l3-agent
|
#l3
![]() l3 l3cd l3-config l3mass_upload l3_save_last_line l3shot l3-agent l3_close_session l3_fix_prompt l3pwd l3script l3upload |
#l3
![]() l3 l3cd l3-config l3mass_upload l3_save_last_line l3shot l3-agent l3_close_session l3_fix_prompt l3pwd l3script l3upload |
#l3script restart
![]() l3script: restart: No such file or directory |
#w
07:24:28 up 1:32, 2 users, load average: 0.23, 0.16, 0.10 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT ids tty7 :0 06:00 1.00s 45.78s 0.24s x-session-manager ids pts/0 :0.0 06:00 1.00s 1.42s 10.82s gnome-terminal |
#l3-agent
l3-agent is already running: pid=5464; pidfile=/home/ids/.lilalo/l3-agent.pid |
$apt-get install mozilla
![]() E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? |
$sudo -s
[sudo] password for ids: |
#apt-get install mozilla
![]() Reading package lists... Done Building dependency tree Reading state information... Done Package mozilla is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package mozilla has no installation candidate |
#apt-get install mozilla
![]() Reading package lists... Done Building dependency tree Reading state information... Done Package mozilla is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package mozilla has no installation candidate |
#echo hello world
hello world |
#tracert mail.ukravto.kiev.ua
traceroute to mail.ukravto.kiev.ua (193.27.80.33), 30 hops max, 40 byte packets 1 192.168.15.254 (192.168.15.254) 0.891 ms * * 2 10.0.35.1 (10.0.35.1) 0.278 ms 0.276 ms 0.291 ms 3 10.0.3.4 (10.0.3.4) 1.209 ms * * 4 * * * 5 * * * 6 * * * 7 * * * 8 193.27.80.33 (193.27.80.33) 10.760 ms 11.326 ms 12.106 ms |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface localnet * 255.255.255.0 U 0 0 0 eth1 default 192.168.15.254 0.0.0.0 UG 0 0 0 eth1 |
#route
![]() Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface localnet * 255.255.255.0 U 0 0 0 eth1 ^C |
#vi /etc/resolv.conf
|
#~
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface localnet * 255.255.255.0 U 0 0 0 eth1 default gw.unix.nt 0.0.0.0 UG 0 0 0 eth1 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface localnet * 255.255.255.0 U 0 0 0 eth1 default gw.unix.nt 0.0.0.0 UG 0 0 0 eth1 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface localnet * 255.255.255.0 U 0 0 0 eth1 default gw.unix.nt 0.0.0.0 UG 0 0 0 eth1 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface localnet * 255.255.255.0 U 0 0 0 eth1 default gw.unix.nt 0.0.0.0 UG 0 0 0 eth1 |
#ps ax | grep Net
2656 ? Ssl 0:00 /usr/sbin/NetworkManager --pid-file /var/run/NetworkManager/NetworkManager.pid 5940 pts/1 S+ 0:00 grep Net |
#/etc/init.d/network-manager
![]() network-manager network-manager-dispatcher |
#/etc/init.d/network-manager stop
Stopping network connection manager: NetworkManager. |
#/etc/init.d/network-manager-dispatcher stop
Stopping network events dispatcher: NetworkManagerDispatcher. |
#mtr ya.ru
![]() bash: mtr: command not found |
#apt-get install mtr
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: mtr 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 49.5kB of archives. After this operation, 168kB of additional disk space will be used. Get:1 http://10.0.35.1 lenny/main mtr 0.73-1 [49.5kB] Fetched 49.5kB in 45s (1100B/s) Selecting previously deselected package mtr. (Reading database ... 92235 files and directories currently installed.) Unpacking mtr (from .../archives/mtr_0.73-1_i386.deb) ... Processing triggers for menu ... Processing triggers for man-db ... Setting up mtr (0.73-1) ... Processing triggers for menu ... |
#cat /home/ids/.l3rc
l3cd=/users/ids/nt-voip/linux23.unix.nt.unix.nt/ids |
#ps ax | grep l3
5464 ? Ss 0:30 l3-agent 6245 pts/1 R+ 0:00 grep l3 |
#pkill 5464
![]() |
#cat /home/ids/.l3rc
l3cd=/users/ids/nt-voip/linux23.unix.nt.unix.nt/ids |
#vi /etc/hosts
--- /tmp/l3-saved-5424.30663.8893 2010-10-25 07:40:35.000000000 -0400 +++ /etc/hosts 2010-10-25 07:40:48.000000000 -0400 @@ -1,5 +1,5 @@ 127.0.0.1 localhost -192.168.15.23 linux23.unix.nt.unix.nt linux23.unix.nt +192.168.15.23 linux23.unix.nt linux23 # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback |
#sed -i s/192.168.15/192.168.103/ /etc/hosts /etc/network/interfaces
|
#less /etc/network/interfaces
|
#sed -i s/192.168.103.23/192.168.103.1/ /etc/hosts /etc/network/interfaces
|
#ls /etc/network/interfaces
/etc/network/interfaces |
$ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data. 64 bytes from 192.168.15.254: icmp_seq=1 ttl=64 time=0.771 ms 64 bytes from 192.168.15.254: icmp_seq=2 ttl=64 time=0.748 ms 64 bytes from 192.168.15.254: icmp_seq=3 ttl=64 time=0.755 ms 64 bytes from 192.168.15.254: icmp_seq=4 ttl=64 time=0.763 ms 64 bytes from 192.168.15.254: icmp_seq=5 ttl=64 time=0.596 ms 64 bytes from 192.168.15.254: icmp_seq=6 ttl=64 time=0.603 ms 64 bytes from 192.168.15.254: icmp_seq=7 ttl=64 time=0.775 ms 64 bytes from 192.168.15.254: icmp_seq=8 ttl=64 time=0.621 ms 64 bytes from 192.168.15.254: icmp_seq=9 ttl=64 time=0.620 ms 64 bytes from 192.168.15.254: icmp_seq=10 ttl=64 time=0.610 ms 64 bytes from 192.168.15.254: icmp_seq=11 ttl=64 time=0.619 ms ^C --- 192.168.15.254 ping statistics --- 11 packets transmitted, 11 received, 0% packet loss, time 10007ms rtt min/avg/max/mdev = 0.596/0.680/0.775/0.076 ms |
$ifconfig
![]() bash: ifconfig: command not found |
$/ifconfig
![]() bash: /ifconfig: No such file or directory |
$/sbin/ifconfig
eth1 Link encap:Ethernet HWaddr 00:50:04:a2:02:99 inet addr:192.168.15.23 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::250:4ff:fea2:299/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:36341 errors:0 dropped:0 overruns:2 frame:0 TX packets:5495 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:31145140 (29.7 MiB) TX bytes:514861 (502.7 KiB) Interrupt:21 Base address:0xac00 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:12 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:800 (800.0 B) TX bytes:800 (800.0 B) |
$ssh 192.168.108.1
![]() The authenticity of host '192.168.108.1 (192.168.108.1)' can't be established. RSA key fingerprint is da:4a:92:81:55:fc:a8:1b:fd:c8:e4:7a:2e:68:f0:fa. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.108.1' (RSA) to the list of known hosts. ids@192.168.108.1's password: |
#cat /etc/network/interfaces
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth1 iface eth1 inet static address 192.168.103.1 netmask 255.255.255.0 network 192.168.103.0 broadcast 192.168.103.255 gateway 192.168.103.254 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 10.0.35.1 dns-search unix.nt |
#q!
![]() bash: q!: command not found |
#cat /etc/hosts
127.0.0.1 localhost 192.168.105.1 linux23.unix.nt linux23 # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts |
#ssh localhost
![]() The authenticity of host 'localhost (127.0.0.1)' can't be established. RSA key fingerprint is a8:20:0f:d6:b2:91:28:43:ee:36:02:27:88:87:2f:d5. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'localhost' (RSA) to the list of known hosts. root@localhost's password: |
#/etc/init.d/networking restart
Reconfiguring network interfaces...SIOCDELRT: No such process done. |
#/etc/init.d/networking restart
Reconfiguring network interfaces...done. |
#ifconfig
eth1 Link encap:Ethernet HWaddr 00:50:04:a2:02:99 inet addr:192.168.15.23 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::250:4ff:fea2:299/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:38748 errors:0 dropped:0 overruns:2 frame:0 TX packets:5551 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:31457939 (30.0 MiB) TX bytes:527179 (514.8 KiB) Interrupt:21 Base address:0xac00 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:41 errors:0 dropped:0 overruns:0 frame:0 TX packets:41 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5300 (5.1 KiB) TX bytes:5300 (5.1 KiB) |
#cat /etc/network/interfaces
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth1 iface eth1 inet static address 192.168.105.1 netmask 255.255.255.0 network 192.168.105.0 broadcast 192.168.105.255 gateway 192.168.105.254 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 10.0.35.1 dns-search unix.nt |
#/etc/init.d/network
![]() networking network-manager network-manager-dispatcher |
#/etc/init.d/network
![]() networking network-manager network-manager-dispatcher |
#/etc/init.d/network restart
![]() bash: /etc/init.d/network: No such file or directory |
#/etc/init.d/network stop
![]() bash: /etc/init.d/network: No such file or directory |
#/etc/init.d/network
![]() networking network-manager network-manager-dispatcher |
#/etc/init.d/networking stop
Deconfiguring network interfaces...done. |
#/etc/init.d/networking start
Configuring network interfaces...done. |
#ifconfig eth0 down
|
#ifconfig eth0 up
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:38 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) eth1 Link encap:Ethernet HWaddr 00:50:04:a2:02:99 inet addr:192.168.15.23 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::250:4ff:fea2:299/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ... RX bytes:31507314 (30.0 MiB) TX bytes:539235 (526.5 KiB) Interrupt:21 Base address:0xac00 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:51 errors:0 dropped:0 overruns:0 frame:0 TX packets:51 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:6148 (6.0 KiB) TX bytes:6148 (6.0 KiB) |
#cat /etc/network/interfaces
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth1 iface eth1 inet static address 192.168.105.1 netmask 255.255.255.0 network 192.168.105.0 broadcast 192.168.105.255 gateway 192.168.105.254 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 10.0.35.1 dns-search unix.nt |
#/etc/init.d/networking restart
Reconfiguring network interfaces...done. |
#q!q
![]() qq! bash: qq!: command not found |
#ifdown eth1
ifdown: interface eth1 not configured |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:38 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) eth1 Link encap:Ethernet HWaddr 00:50:04:a2:02:99 inet addr:192.168.15.23 Bcast:192.168.15.255 Mask:255.255.255.0 inet6 addr: fe80::250:4ff:fea2:299/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ... RX bytes:31528585 (30.0 MiB) TX bytes:545905 (533.1 KiB) Interrupt:21 Base address:0xac00 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:51 errors:0 dropped:0 overruns:0 frame:0 TX packets:51 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:6148 (6.0 KiB) TX bytes:6148 (6.0 KiB) |
#cat /etc/network/interfaces
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth1 iface eth1 inet static address 192.168.105.1 netmask 255.255.255.0 network 192.168.105.0 broadcast 192.168.105.255 gateway 192.168.105.254 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 10.0.35.1 dns-search unix.nt |
#if
![]() if ifconfig ifdown ifup |
#ifdown eth1
ifdown: interface eth1 not configured |
#ifdown eth0
ifdown: interface eth0 not configured |
#/etc/init.d/ifupdown
![]() ifupdown ifupdown-clean |
#/etc/init.d/ifupdown
![]() Usage: /etc/init.d/ifupdown {start|stop|restart|force-reload} |
#/etc/init.d/ifupdown start
Setting up networking.... |
#/etc/init.d/networking restart
Reconfiguring network interfaces...done. |
#cat /etc/network/interfaces
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth1 iface eth1 inet static address 192.168.105.1 netmask 255.255.255.0 network 192.168.105.0 broadcast 192.168.105.255 gateway 192.168.105.254 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 10.0.35.1 dns-search unix.nt |
#ifdown eth1
ifdown: interface eth1 not configured |
#ifup eth1
|
#ping ya.ru
![]() ^C |
#ping 192.168.106.1
![]() PING 192.168.106.1 (192.168.106.1) 56(84) bytes of data. From 192.168.105.1 icmp_seq=1 Destination Host Unreachable From 192.168.105.1 icmp_seq=2 Destination Host Unreachable From 192.168.105.1 icmp_seq=3 Destination Host Unreachable From 192.168.105.1 icmp_seq=6 Destination Host Unreachable From 192.168.105.1 icmp_seq=7 Destination Host Unreachable From 192.168.105.1 icmp_seq=9 Destination Host Unreachable From 192.168.105.1 icmp_seq=10 Destination Host Unreachable From 192.168.105.1 icmp_seq=11 Destination Host Unreachable From 192.168.105.1 icmp_seq=13 Destination Host Unreachable ... From 192.168.105.1 icmp_seq=75 Destination Host Unreachable From 192.168.105.1 icmp_seq=76 Destination Host Unreachable From 192.168.105.1 icmp_seq=77 Destination Host Unreachable From 192.168.105.1 icmp_seq=79 Destination Host Unreachable From 192.168.105.1 icmp_seq=80 Destination Host Unreachable From 192.168.105.1 icmp_seq=81 Destination Host Unreachable ^C --- 192.168.106.1 ping statistics --- 82 packets transmitted, 0 received, +57 errors, 100% packet loss, time 81096ms , pipe 3 |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:38 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) eth1 Link encap:Ethernet HWaddr 00:50:04:a2:02:99 inet addr:192.168.105.1 Bcast:192.168.105.255 Mask:255.255.255.0 inet6 addr: fe80::250:4ff:fea2:299/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ... RX bytes:31794399 (30.3 MiB) TX bytes:614023 (599.6 KiB) Interrupt:21 Base address:0xac00 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:382 errors:0 dropped:0 overruns:0 frame:0 TX packets:382 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:36024 (35.1 KiB) TX bytes:36024 (35.1 KiB) |
#ping 192.168.106.1
![]() PING 192.168.106.1 (192.168.106.1) 56(84) bytes of data. ^C --- 192.168.106.1 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1014ms |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. 64 bytes from 192.168.105.1: icmp_seq=1 ttl=64 time=0.045 ms 64 bytes from 192.168.105.1: icmp_seq=2 ttl=64 time=0.040 ms ^C --- 192.168.105.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.040/0.042/0.045/0.007 ms |
#ping 192.168.105.1
PING 192.168.105.1 (192.168.105.1) 56(84) bytes of data. 64 bytes from 192.168.105.1: icmp_seq=1 ttl=64 time=0.042 ms 64 bytes from 192.168.105.1: icmp_seq=2 ttl=64 time=0.034 ms ^C --- 192.168.105.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.034/0.038/0.042/0.004 ms |
#ping 192.168.105.2
![]() PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. From 192.168.105.1 icmp_seq=1 Destination Host Unreachable From 192.168.105.1 icmp_seq=2 Destination Host Unreachable From 192.168.105.1 icmp_seq=3 Destination Host Unreachable From 192.168.105.1 icmp_seq=5 Destination Host Unreachable From 192.168.105.1 icmp_seq=6 Destination Host Unreachable From 192.168.105.1 icmp_seq=7 Destination Host Unreachable From 192.168.105.1 icmp_seq=9 Destination Host Unreachable From 192.168.105.1 icmp_seq=10 Destination Host Unreachable From 192.168.105.1 icmp_seq=11 Destination Host Unreachable ... From 192.168.105.1 icmp_seq=17 Destination Host Unreachable From 192.168.105.1 icmp_seq=18 Destination Host Unreachable From 192.168.105.1 icmp_seq=19 Destination Host Unreachable From 192.168.105.1 icmp_seq=21 Destination Host Unreachable From 192.168.105.1 icmp_seq=22 Destination Host Unreachable From 192.168.105.1 icmp_seq=23 Destination Host Unreachable ^C --- 192.168.105.2 ping statistics --- 23 packets transmitted, 0 received, +18 errors, 100% packet loss, time 22034ms , pipe 3 |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:e9:3c:2c:38 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) eth1 Link encap:Ethernet HWaddr 00:50:04:a2:02:99 inet addr:192.168.105.1 Bcast:192.168.105.255 Mask:255.255.255.0 inet6 addr: fe80::250:4ff:fea2:299/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ... RX bytes:31843551 (30.3 MiB) TX bytes:627989 (613.2 KiB) Interrupt:21 Base address:0xac00 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:477 errors:0 dropped:0 overruns:0 frame:0 TX packets:477 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:44568 (43.5 KiB) TX bytes:44568 (43.5 KiB) |
#ping 192.168.105.2
PING 192.168.105.2 (192.168.105.2) 56(84) bytes of data. 64 bytes from 192.168.105.2: icmp_seq=1 ttl=128 time=2.44 ms 64 bytes from 192.168.105.2: icmp_seq=2 ttl=128 time=0.214 ms 64 bytes from 192.168.105.2: icmp_seq=3 ttl=128 time=0.361 ms ^C --- 192.168.105.2 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2005ms rtt min/avg/max/mdev = 0.214/1.005/2.442/1.018 ms |
#tracert ya.ru
traceroute to ya.ru (77.88.21.3), 30 hops max, 40 byte packets 1 192.168.105.254 (192.168.105.254) 0.822 ms 1.087 ms * 2 10.0.35.1 (10.0.35.1) 0.350 ms 0.366 ms 0.372 ms 3 * * * 4 * * * 5 * * * 6 * * * 7 * * * 8 * * * 9 * * * 10 * * * 11 * * * 12 * * * 13 www.yandex.ru (77.88.21.3) 53.242 ms 55.197 ms 56.062 ms |
#apt-get install dhcp
![]() dhcp dhcp3-common dhcp3-relay dhcp3-server-ldap dhcpcd-sv dhcpd dhcpdump dhcping dhcp3-client dhcp3-dev dhcp3-server dhcpcd dhcp-client dhcp-dns dhcp-helper dhcp-relay |
#apt-get install dhcp3-server
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ⤠DHCP Server ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ â â â Non-authoritative version of DHCP server â â â â The version 3 DHCP server is non-authoritative by default. â â â â This means that if a client requests an address that the server knows nothing about and the address is incorrect for that network segment, the server â â will _not_ send a DHCPNAK (which tells the client it should stop using the address). If you want to change this behavior, you must explicitly state in â â dhcpd.conf what network segments your server is authoritative for using the 'authoritative' statement. â â â ... âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ Selecting previously deselected package dhcp3-server. (Reading database ... 92247 files and directories currently installed.) Unpacking dhcp3-server (from .../dhcp3-server_3.1.1-6+lenny4_i386.deb) ... Processing triggers for man-db ... Setting up dhcp3-server (3.1.1-6+lenny4) ... Generating /etc/default/dhcp3-server... Starting DHCP server: dhcpd3check syslog for diagnostics. failed! failed! invoke-rc.d: initscript dhcp3-server, action "start" failed. |
$ssh 192.168.108.1 -l root
root@192.168.108.1's password: Permission denied, please try again. root@192.168.108.1's password: Permission denied, please try again. root@192.168.108.1's password: Linux linux8.unix.nt 2.6.26-2-686 #1 SMP Thu Sep 16 19:35:51 UTC 2010 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Mon Oct 25 16:04:50 2010 from 192.168.111.1 l3-agent is already running: pid=6070; pidfile=/root/.lilalo/l3-agent.pid |
#screen -x
|
#vi /etc/dhcp3/dhc
![]() |
#vi /etc/dhcp3/dhcpd.conf
|
#}
|
#cd /etc/dhcp3/
|
#ls
dhclient.conf dhclient-enter-hooks.d dhclient-exit-hooks.d dhcpd.conf dhcpd.conf.SAVE |
#vim dhcpd.conf
--- /tmp/l3-saved-5424.1029.15510 2010-10-25 09:10:08.000000000 -0400 +++ dhcpd.conf 2010-10-25 09:14:10.000000000 -0400 @@ -11,8 +11,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 "unix.nt"; +option domain-name-servers 10.0.35.1; default-lease-time 600; max-lease-time 7200; @@ -33,76 +33,7 @@ # 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; -#} - -# This declaration allows BOOTP clients to get dynamic addresses, -# which we don't really recommend. - -#subnet 10.254.239.32 netmask 255.255.255.224 { -# range dynamic-bootp 10.254.239.40 10.254.239.60; -# option broadcast-address 10.254.239.31; -# option routers rtr-239-32-1.example.org; -#} - -# A slightly different configuration for an internal subnet. -#subnet 10.5.5.0 netmask 255.255.255.224 { -# range 10.5.5.26 10.5.5.30; -# option domain-name-servers ns1.internal.example.org; -# option domain-name "internal.example.org"; -# option routers 10.5.5.1; -# option broadcast-address 10.5.5.31; -# default-lease-time 600; -# max-lease-time 7200; -#} - -# Hosts which require special configuration options can be listed in -# host statements. If no address is specified, the address will be -# allocated dynamically (if possible), but the host-specific information -# will still come from the host declaration. - -#host passacaglia { -# hardware ethernet 0:0:c0:5d:bd:95; -# filename "vmunix.passacaglia"; -# server-name "toccata.fugue.com"; -#} - -# Fixed IP addresses can also be specified for hosts. These addresses -# should not also be listed as being available for dynamic assignment. -# Hosts for which fixed IP addresses have been specified can boot using -# BOOTP or DHCP. Hosts for which no fixed address is specified can only -# be booted with DHCP, unless there is an address range on the subnet -# to which a BOOTP client is connected which has the dynamic-bootp flag -# set. -#host fantasia { -# hardware ethernet 08:00:07:26:c0:a5; -# fixed-address fantasia.fugue.com; -#} - -# You can declare a class of clients and then do address allocation -# based on that. The example below shows a case where all clients -# in a certain class get addresses on the 10.17.224/24 subnet, and all -# other clients get addresses on the 10.0.29/24 subnet. - -#class "foo" { -# match if substring (option vendor-class-identifier, 0, 4) = "SUNW"; -#} - -#shared-network 224-29 { -# subnet 10.17.224.0 netmask 255.255.255.0 { -# option routers rtr-224.example.org; -# } -# subnet 10.0.29.0 netmask 255.255.255.0 { -# option routers rtr-29.example.org; -# } -# pool { -# allow members of "foo"; -# range 10.17.224.10 10.17.224.250; -# } -# pool { -# deny members of "foo"; -# range 10.0.29.10 10.0.29.230; -# } -#} +subnet 192.168.105.0 netmask 255.255.255.0 { + range 192.168.105.200 192.168.105.250; + option routers 192.168.105.254; +} |
127.0.0.1 localhost 192.168.105.1 linux23.unix.nt linux23 # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts
netscsid.conf network/ networks
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth1 iface eth1 inet static address 192.168.105.1 netmask 255.255.255.0 network 192.168.105.0 broadcast 192.168.105.255 gateway 192.168.105.254 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 10.0.35.1 dns-search unix.nt
l3cd=/users/ids/nt-voip/linux23.unix.nt.unix.nt/ids
Время первой команды журнала | 13:23:49 2010-10-25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 15:09:52 2010-10-25 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 10.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 10.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.77 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.94 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008