/l3/users/2014-11-nt-voip/nt-voip/debian6/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 |
|
## hallo
|
#ifconfig
eth0 Link encap:Ethernet HWaddr e0:69:95:2e:da:af inet addr:192.168.12.6 Bcast:192.168.12.255 Mask:255.255.255.0 inet6 addr: fe80::e269:95ff:fe2e:daaf/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:17549 errors:0 dropped:4 overruns:0 frame:0 TX packets:7924 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:11801311 (11.2 MiB) TX bytes:877688 (857.1 KiB) Interrupt:20 Memory:fe600000-fe620000 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:134 errors:0 dropped:0 overruns:0 frame:0 TX packets:134 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8088 (7.8 KiB) TX bytes:8088 (7.8 KiB) |
#alias exit='echo no exit'
|
#ifconfig
eth0 Link encap:Ethernet HWaddr e0:69:95:2e:da:af inet addr:192.168.12.6 Bcast:192.168.12.255 Mask:255.255.255.0 inet6 addr: fe80::e269:95ff:fe2e:daaf/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:17759 errors:0 dropped:4 overruns:0 frame:0 TX packets:8096 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:11852834 (11.3 MiB) TX bytes:907173 (885.9 KiB) Interrupt:20 Memory:fe600000-fe620000 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:134 errors:0 dropped:0 overruns:0 frame:0 TX packets:134 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:8088 (7.8 KiB) TX bytes:8088 (7.8 KiB) |
#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.6 netmask 255.255.255.0 gateway 192.168.12.254 |
#ping 192.168.12..253
ping: unknown host 192.168.12..253 |
#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.40 ms 64 bytes from 192.168.12.253: icmp_req=2 ttl=64 time=1.69 ms ^C --- 192.168.12.253 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1001ms rtt min/avg/max/mdev = 1.407/1.553/1.699/0.146 ms |
#clear
|
#ping 192.168.12.254
PING 192.168.12.254 (192.168.12.254) 56(84) bytes of data. 64 bytes from 192.168.12.254: icmp_req=1 ttl=64 time=0.271 ms 64 bytes from 192.168.12.254: icmp_req=2 ttl=64 time=0.271 ms 64 bytes from 192.168.12.254: icmp_req=3 ttl=64 time=0.403 ms 64 bytes from 192.168.12.254: icmp_req=4 ttl=64 time=0.343 ms 64 bytes from 192.168.12.254: icmp_req=5 ttl=64 time=0.372 ms 64 bytes from 192.168.12.254: icmp_req=6 ttl=64 time=0.344 ms 64 bytes from 192.168.12.254: icmp_req=7 ttl=64 time=0.196 ms 64 bytes from 192.168.12.254: icmp_req=8 ttl=64 time=0.326 ms 64 bytes from 192.168.12.254: icmp_req=9 ttl=64 time=0.362 ms ... 64 bytes from 192.168.12.254: icmp_req=21 ttl=64 time=0.419 ms 64 bytes from 192.168.12.254: icmp_req=22 ttl=64 time=0.250 ms 64 bytes from 192.168.12.254: icmp_req=23 ttl=64 time=0.390 ms 64 bytes from 192.168.12.254: icmp_req=24 ttl=64 time=0.217 ms 64 bytes from 192.168.12.254: icmp_req=25 ttl=64 time=0.281 ms 64 bytes from 192.168.12.254: icmp_req=26 ttl=64 time=0.215 ms ^C --- 192.168.12.254 ping statistics --- 26 packets transmitted, 26 received, 0% packet loss, time 24997ms rtt min/avg/max/mdev = 0.140/0.284/0.419/0.079 ms |
#ping 192.168.12.254
PING 192.168.12.254 (192.168.12.254) 56(84) bytes of data. 64 bytes from 192.168.12.254: icmp_req=1 ttl=64 time=0.271 ms 64 bytes from 192.168.12.254: icmp_req=2 ttl=64 time=0.271 ms 64 bytes from 192.168.12.254: icmp_req=3 ttl=64 time=0.403 ms 64 bytes from 192.168.12.254: icmp_req=4 ttl=64 time=0.343 ms 64 bytes from 192.168.12.254: icmp_req=5 ttl=64 time=0.372 ms 64 bytes from 192.168.12.254: icmp_req=6 ttl=64 time=0.344 ms 64 bytes from 192.168.12.254: icmp_req=7 ttl=64 time=0.196 ms 64 bytes from 192.168.12.254: icmp_req=8 ttl=64 time=0.326 ms 64 bytes from 192.168.12.254: icmp_req=9 ttl=64 time=0.362 ms ... 64 bytes from 192.168.12.254: icmp_req=21 ttl=64 time=0.419 ms 64 bytes from 192.168.12.254: icmp_req=22 ttl=64 time=0.250 ms 64 bytes from 192.168.12.254: icmp_req=23 ttl=64 time=0.390 ms 64 bytes from 192.168.12.254: icmp_req=24 ttl=64 time=0.217 ms 64 bytes from 192.168.12.254: icmp_req=25 ttl=64 time=0.281 ms 64 bytes from 192.168.12.254: icmp_req=26 ttl=64 time=0.215 ms ^C --- 192.168.12.254 ping statistics --- 26 packets transmitted, 26 received, 0% packet loss, time 24997ms rtt min/avg/max/mdev = 0.140/0.284/0.419/0.079 ms |
#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.40 ms 64 bytes from 192.168.12.253: icmp_req=2 ttl=64 time=0.624 ms 64 bytes from 192.168.12.253: icmp_req=3 ttl=64 time=0.609 ms ^C --- 192.168.12.253 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 0.609/0.877/1.400/0.370 ms |
#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.40 ms 64 bytes from 192.168.12.253: icmp_req=2 ttl=64 time=0.624 ms 64 bytes from 192.168.12.253: icmp_req=3 ttl=64 time=0.609 ms ^C --- 192.168.12.253 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 0.609/0.877/1.400/0.370 ms |
#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=0.598 ms 64 bytes from 192.168.12.253: icmp_req=2 ttl=64 time=0.606 ms 64 bytes from 192.168.12.253: icmp_req=3 ttl=64 time=0.627 ms 64 bytes from 192.168.12.253: icmp_req=4 ttl=64 time=0.607 ms 64 bytes from 192.168.12.253: icmp_req=5 ttl=64 time=0.608 ms 64 bytes from 192.168.12.253: icmp_req=6 ttl=64 time=0.605 ms 64 bytes from 192.168.12.253: icmp_req=7 ttl=64 time=0.616 ms 64 bytes from 192.168.12.253: icmp_req=8 ttl=64 time=0.614 ms 64 bytes from 192.168.12.253: icmp_req=9 ttl=64 time=0.729 ms 64 bytes from 192.168.12.253: icmp_req=10 ttl=64 time=0.618 ms 64 bytes from 192.168.12.253: icmp_req=11 ttl=64 time=0.620 ms ^C --- 192.168.12.253 ping statistics --- 11 packets transmitted, 11 received, 0% packet loss, time 9997ms rtt min/avg/max/mdev = 0.598/0.622/0.729/0.043 ms |
#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=0.598 ms 64 bytes from 192.168.12.253: icmp_req=2 ttl=64 time=0.606 ms 64 bytes from 192.168.12.253: icmp_req=3 ttl=64 time=0.627 ms 64 bytes from 192.168.12.253: icmp_req=4 ttl=64 time=0.607 ms 64 bytes from 192.168.12.253: icmp_req=5 ttl=64 time=0.608 ms 64 bytes from 192.168.12.253: icmp_req=6 ttl=64 time=0.605 ms 64 bytes from 192.168.12.253: icmp_req=7 ttl=64 time=0.616 ms 64 bytes from 192.168.12.253: icmp_req=8 ttl=64 time=0.614 ms 64 bytes from 192.168.12.253: icmp_req=9 ttl=64 time=0.729 ms 64 bytes from 192.168.12.253: icmp_req=10 ttl=64 time=0.618 ms 64 bytes from 192.168.12.253: icmp_req=11 ttl=64 time=0.620 ms ^C --- 192.168.12.253 ping statistics --- 11 packets transmitted, 11 received, 0% packet loss, time 9997ms rtt min/avg/max/mdev = 0.598/0.622/0.729/0.043 ms |
#ifconfig
eth0 Link encap:Ethernet HWaddr e0:69:95:2e:da:af inet addr:192.168.12.6 Bcast:192.168.12.255 Mask:255.255.255.0 inet6 addr: fe80::e269:95ff:fe2e:daaf/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:25214 errors:0 dropped:4 overruns:0 frame:0 TX packets:11610 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:13895666 (13.2 MiB) TX bytes:1222354 (1.1 MiB) Interrupt:20 Memory:fe600000-fe620000 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:206 errors:0 dropped:0 overruns:0 frame:0 TX packets:206 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:12408 (12.1 KiB) TX bytes:12408 (12.1 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr e0:69:95:2e:da:af inet addr:192.168.12.6 Bcast:192.168.12.255 Mask:255.255.255.0 inet6 addr: fe80::e269:95ff:fe2e:daaf/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:25214 errors:0 dropped:4 overruns:0 frame:0 TX packets:11610 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:13895666 (13.2 MiB) TX bytes:1222354 (1.1 MiB) Interrupt:20 Memory:fe600000-fe620000 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:206 errors:0 dropped:0 overruns:0 frame:0 TX packets:206 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:12408 (12.1 KiB) TX bytes:12408 (12.1 KiB) |
#sed -i s/192.168.12.6/192.168.60.1 /etc/network/interfaces
sed: -e expression #1, char 27: unterminated `s' command |
#sed -i s/192.168.12.6/192.168.60.1 /etc/network/interfaces
sed: -e expression #1, char 27: unterminated `s' command |
#ifconfig
eth0 Link encap:Ethernet HWaddr e0:69:95:2e:da:af inet addr:192.168.60.1 Bcast:192.168.60.255 Mask:255.255.255.0 inet6 addr: fe80::e269:95ff:fe2e:daaf/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:27419 errors:0 dropped:4 overruns:0 frame:0 TX packets:13276 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14261521 (13.6 MiB) TX bytes:1373274 (1.3 MiB) Interrupt:20 Memory:fe600000-fe620000 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:277 errors:0 dropped:0 overruns:0 frame:0 TX packets:277 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:20403 (19.9 KiB) TX bytes:20403 (19.9 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr e0:69:95:2e:da:af inet addr:192.168.60.1 Bcast:192.168.60.255 Mask:255.255.255.0 inet6 addr: fe80::e269:95ff:fe2e:daaf/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:27419 errors:0 dropped:4 overruns:0 frame:0 TX packets:13276 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14261521 (13.6 MiB) TX bytes:1373274 (1.3 MiB) Interrupt:20 Memory:fe600000-fe620000 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:277 errors:0 dropped:0 overruns:0 frame:0 TX packets:277 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:20403 (19.9 KiB) TX bytes:20403 (19.9 KiB) |
#ping 192.168.60.253
PING 192.168.60.253 (192.168.60.253) 56(84) bytes of data. From 192.168.60.1 icmp_seq=1 Destination Host Unreachable From 192.168.60.1 icmp_seq=2 Destination Host Unreachable From 192.168.60.1 icmp_seq=3 Destination Host Unreachable From 192.168.60.1 icmp_seq=4 Destination Host Unreachable From 192.168.60.1 icmp_seq=5 Destination Host Unreachable From 192.168.60.1 icmp_seq=6 Destination Host Unreachable From 192.168.60.1 icmp_seq=7 Destination Host Unreachable From 192.168.60.1 icmp_seq=8 Destination Host Unreachable From 192.168.60.1 icmp_seq=9 Destination Host Unreachable ^C --- 192.168.60.253 ping statistics --- 10 packets transmitted, 0 received, +9 errors, 100% packet loss, time 9047ms pipe 3 |
#ping 192.168.60.253
PING 192.168.60.253 (192.168.60.253) 56(84) bytes of data. From 192.168.60.1 icmp_seq=1 Destination Host Unreachable From 192.168.60.1 icmp_seq=2 Destination Host Unreachable From 192.168.60.1 icmp_seq=3 Destination Host Unreachable From 192.168.60.1 icmp_seq=4 Destination Host Unreachable From 192.168.60.1 icmp_seq=5 Destination Host Unreachable From 192.168.60.1 icmp_seq=6 Destination Host Unreachable From 192.168.60.1 icmp_seq=7 Destination Host Unreachable From 192.168.60.1 icmp_seq=8 Destination Host Unreachable From 192.168.60.1 icmp_seq=9 Destination Host Unreachable ^C --- 192.168.60.253 ping statistics --- 10 packets transmitted, 0 received, +9 errors, 100% packet loss, time 9047ms pipe 3 |
#ping 192.168.60.254
PING 192.168.60.254 (192.168.60.254) 56(84) bytes of data. 64 bytes from 192.168.60.254: icmp_req=1 ttl=64 time=0.631 ms 64 bytes from 192.168.60.254: icmp_req=2 ttl=64 time=0.631 ms ^C --- 192.168.60.254 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.631/0.631/0.631/0.000 ms |
#ping 192.168.60.254
PING 192.168.60.254 (192.168.60.254) 56(84) bytes of data. 64 bytes from 192.168.60.254: icmp_req=1 ttl=64 time=0.631 ms 64 bytes from 192.168.60.254: icmp_req=2 ttl=64 time=0.631 ms ^C --- 192.168.60.254 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.631/0.631/0.631/0.000 ms |
#ping 192.168.12.254
PING 192.168.12.254 (192.168.12.254) 56(84) bytes of data. 64 bytes from 192.168.12.254: icmp_req=1 ttl=63 time=0.276 ms 64 bytes from 192.168.12.254: icmp_req=2 ttl=63 time=0.306 ms ^C --- 192.168.12.254 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.276/0.291/0.306/0.015 ms |
#ping 192.168.12.254
PING 192.168.12.254 (192.168.12.254) 56(84) bytes of data. 64 bytes from 192.168.12.254: icmp_req=1 ttl=63 time=0.276 ms 64 bytes from 192.168.12.254: icmp_req=2 ttl=63 time=0.306 ms ^C --- 192.168.12.254 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.276/0.291/0.306/0.015 ms |
#ping 192.168.60.254
PING 192.168.60.254 (192.168.60.254) 56(84) bytes of data. 64 bytes from 192.168.60.254: icmp_req=1 ttl=64 time=0.616 ms 64 bytes from 192.168.60.254: icmp_req=2 ttl=64 time=0.992 ms ^C --- 192.168.60.254 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.616/0.804/0.992/0.188 ms |
#ping 192.168.60.254
PING 192.168.60.254 (192.168.60.254) 56(84) bytes of data. 64 bytes from 192.168.60.254: icmp_req=1 ttl=64 time=0.616 ms 64 bytes from 192.168.60.254: icmp_req=2 ttl=64 time=0.992 ms ^C --- 192.168.60.254 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.616/0.804/0.992/0.188 ms |
#ping 192.168.60.1
PING 192.168.60.1 (192.168.60.1) 56(84) bytes of data. 64 bytes from 192.168.60.1: icmp_req=1 ttl=64 time=0.018 ms ^C --- 192.168.60.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.018/0.018/0.018/0.000 ms |
#ping 192.168.60.1
PING 192.168.60.1 (192.168.60.1) 56(84) bytes of data. 64 bytes from 192.168.60.1: icmp_req=1 ttl=64 time=0.018 ms ^C --- 192.168.60.1 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.018/0.018/0.018/0.000 ms |
#ping 192.168.60.254
PING 192.168.60.254 (192.168.60.254) 56(84) bytes of data. 64 bytes from 192.168.60.254: icmp_req=1 ttl=64 time=0.639 ms ^C --- 192.168.60.254 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.639/0.639/0.639/0.000 ms |
#ping 192.168.60.254
PING 192.168.60.254 (192.168.60.254) 56(84) bytes of data. 64 bytes from 192.168.60.254: icmp_req=1 ttl=64 time=0.639 ms ^C --- 192.168.60.254 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.639/0.639/0.639/0.000 ms |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.60.254 0.0.0.0 UG 0 0 0 eth0 192.168.60.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.60.254 0.0.0.0 UG 0 0 0 eth0 192.168.60.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 |
#apt-cache search dhcp
ahcpd - Ad-Hoc Configuration Protocol arpon - versatile anti ARP poisoning daemon autodns-dhcp - Automatic DNS updates for DHCP avahi-autoipd - Avahi IPv4LL network address configuration daemon backuppc - high-performance, enterprise-grade system for backing up PCs batctl - B.A.T.M.A.N. advanced control and management tool bootp - server for the bootp protocol with DHCP support busybox - Tiny utilities for small and embedded systems udhcpc - Provides the busybox DHCP client implementation udhcpd - Provides the busybox DHCP server implementation ... pump - BOOTP and DHCP client for automatic IP configuration pxe - free PXE daemon python-pydhcplib - Python DHCP client/server library python-pypureomapi - ISC DHCP OMAPI protocol implementation in Python resolvconf - name server information handler whereami - Automatically reconfigure your (laptop) system for a new location wide-dhcpv6-client - DHCPv6 client for automatic IPv6 hosts configuration wide-dhcpv6-relay - DHCPv6 relay for automatic IPv6 hosts configuration wide-dhcpv6-server - DHCPv6 server for automatic IPv6 hosts configuration yersinia - Network vulnerabilities check software |
#apt-cache search dhcp
ahcpd - Ad-Hoc Configuration Protocol arpon - versatile anti ARP poisoning daemon autodns-dhcp - Automatic DNS updates for DHCP avahi-autoipd - Avahi IPv4LL network address configuration daemon backuppc - high-performance, enterprise-grade system for backing up PCs batctl - B.A.T.M.A.N. advanced control and management tool bootp - server for the bootp protocol with DHCP support busybox - Tiny utilities for small and embedded systems udhcpc - Provides the busybox DHCP client implementation udhcpd - Provides the busybox DHCP server implementation ... pump - BOOTP and DHCP client for automatic IP configuration pxe - free PXE daemon python-pydhcplib - Python DHCP client/server library python-pypureomapi - ISC DHCP OMAPI protocol implementation in Python resolvconf - name server information handler whereami - Automatically reconfigure your (laptop) system for a new location wide-dhcpv6-client - DHCPv6 client for automatic IPv6 hosts configuration wide-dhcpv6-relay - DHCPv6 relay for automatic IPv6 hosts configuration wide-dhcpv6-server - DHCPv6 server for automatic IPv6 hosts configuration yersinia - Network vulnerabilities check software |
#apt-cache search dhcp | grep isc
dhcp-probe - network DHCP or BootP server discover isc-dhcp-client - ISC DHCP client isc-dhcp-client-dbg - ISC DHCP client (debugging symbols) isc-dhcp-common - common files used by all the isc-dhcp* packages isc-dhcp-dev - API for accessing and modifying the DHCP server and client state isc-dhcp-relay - ISC DHCP relay daemon isc-dhcp-relay-dbg - DHCP relay daemon (debugging symbols) isc-dhcp-server - ISC DHCP server for automatic IP address assignment isc-dhcp-server-dbg - ISC DHCP server for automatic IP address assignment (debug) isc-dhcp-server-ldap - DHCP server able to use LDAP as backend netdiscover - active/passive network address scanner using arp requests netdiscover-dbg - active/passive network address scanner using arp requests (debug) |
#apt-cache search dhcp | grep isc
dhcp-probe - network DHCP or BootP server discover isc-dhcp-client - ISC DHCP client isc-dhcp-client-dbg - ISC DHCP client (debugging symbols) isc-dhcp-common - common files used by all the isc-dhcp* packages isc-dhcp-dev - API for accessing and modifying the DHCP server and client state isc-dhcp-relay - ISC DHCP relay daemon isc-dhcp-relay-dbg - DHCP relay daemon (debugging symbols) isc-dhcp-server - ISC DHCP server for automatic IP address assignment isc-dhcp-server-dbg - ISC DHCP server for automatic IP address assignment (debug) isc-dhcp-server-ldap - DHCP server able to use LDAP as backend netdiscover - active/passive network address scanner using arp requests netdiscover-dbg - active/passive network address scanner using arp requests (debug) |
#apt-get install isc-dhcp-server
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. Suggested packages: isc-dhcp-server-ldap The following NEW packages will be installed: isc-dhcp-server ... Preconfiguring packages ... Selecting previously unselected package isc-dhcp-server. (Reading database ... 130788 files and directories currently installed.) Unpacking isc-dhcp-server (from .../isc-dhcp-server_4.2.2.dfsg.1-5+deb70u6_amd64.deb) ... Processing triggers for man-db ... Setting up isc-dhcp-server (4.2.2.dfsg.1-5+deb70u6) ... Generating /etc/default/isc-dhcp-server... [FAIL] Starting ISC DHCP server: dhcpd[....] check syslog for diagnostics. ... failed! failed! invoke-rc.d: initscript isc-dhcp-server, action "start" failed. |
#apt-get install isc-dhcp-server
Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libgadu3 libmozjs24d xulrunner-24.0 Use 'apt-get autoremove' to remove them. Suggested packages: isc-dhcp-server-ldap The following NEW packages will be installed: isc-dhcp-server ... Preconfiguring packages ... Selecting previously unselected package isc-dhcp-server. (Reading database ... 130788 files and directories currently installed.) Unpacking isc-dhcp-server (from .../isc-dhcp-server_4.2.2.dfsg.1-5+deb70u6_amd64.deb) ... Processing triggers for man-db ... Setting up isc-dhcp-server (4.2.2.dfsg.1-5+deb70u6) ... Generating /etc/default/isc-dhcp-server... [FAIL] Starting ISC DHCP server: dhcpd[....] check syslog for diagnostics. ... failed! failed! invoke-rc.d: initscript isc-dhcp-server, action "start" failed. |
#cat /etc/default/isc-dhcp-server
# Defaults for isc-dhcp-server initscript # sourced by /etc/init.d/isc-dhcp-server # installed at /etc/default/isc-dhcp-server by the maintainer scripts # # This is a POSIX shell fragment # # Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf). #DHCPD_CONF=/etc/dhcp/dhcpd.conf # Path to dhcpd's PID file (default: /var/run/dhcpd.pid). #DHCPD_PID=/var/run/dhcpd.pid # Additional options to start dhcpd with. # Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead #OPTIONS="" # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1". INTERFACES="eth0" |
#~
bash: etc/default/isc-dhcp-server: No such file or directory bash: gep: command not found |
#~
bash: etc/default/isc-dhcp-server: No such file or directory bash: gep: command not found |
#grep INTER | etc/default/isc-dhcp-server
bash: etc/default/isc-dhcp-server: No such file or directory ^C |
#grep INTER | etc/default/isc-dhcp-server
bash: etc/default/isc-dhcp-server: No such file or directory ^C |
#grep INTER | /etc/default/isc-dhcp-server
bash: /etc/default/isc-dhcp-server: Permission denied ^C |
#grep INTER | /etc/default/isc-dhcp-server
bash: /etc/default/isc-dhcp-server: Permission denied ^C |
#vim /etc/dhcp/dhcpd.conf
--- /tmp/l3-saved-5534.14724.18735 2014-11-24 14:51:38.747122482 +0200 +++ /etc/dhcp/dhcpd.conf 2014-11-24 15:01:19.127135267 +0200 @@ -9,31 +9,19 @@ # have support for DDNS.) 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; - default-lease-time 600; max-lease-time 7200; - -# If this DHCP server is the official DHCP server for the local -# network, the authoritative directive should be uncommented. -#authoritative; - -# Use this to send dhcp log messages to a different log file (you also -# have to hack syslog.conf to complete the redirection). log-facility local7; -# No service will be given on this subnet, but declaring it helps the -# DHCP server to understand the network topology. - -#subnet 10.152.187.0 netmask 255.255.255.0 { -#} # 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; +subnet 192.168.60.0 netmask 255.255.255.0 { +range 192.168.60.100 192.168.60.200; +option domain-name-server 192.168.12.254; +option domain-name "unix.nt"; +option routers 192.168.12.254 + # option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org; #} |
#/etc/init.d/isc-dhcp-server restart
dhcpd self-test failed. Please fix /etc/dhcp/dhcpd.conf. The error was: Internet Systems Consortium DHCP Server 4.2.2 Copyright 2004-2011 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /etc/dhcp/dhcpd.conf line 21: unknown option dhcp.domain-name-server option domain-name-server 192. ^ /etc/dhcp/dhcpd.conf line 23: semicolon expected. ^ /etc/dhcp/dhcpd.conf line 23: unexpected end of file ^ Configuration file errors encountered -- exiting |
#/etc/init.d/isc-dhcp-server restart
dhcpd self-test failed. Please fix /etc/dhcp/dhcpd.conf. The error was: Internet Systems Consortium DHCP Server 4.2.2 Copyright 2004-2011 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /etc/dhcp/dhcpd.conf line 21: unknown option dhcp.domain-name-server option domain-name-server 192. ^ /etc/dhcp/dhcpd.conf line 23: semicolon expected. ^ /etc/dhcp/dhcpd.conf line 23: unexpected end of file ^ Configuration file errors encountered -- exiting |
#ps aux | grep dhcp
root 7472 0.0 0.0 13024 5544 ? Ss 15:06 0:00 /usr/sbin/dhcpd -q -cf /etc/dhcp/dhcpd.conf -pf /var/run/dhcpd.pid eth0 root 7513 0.0 0.0 7836 880 pts/10 S+ 15:11 0:00 grep dhcp |
#ps aux | grep dhcp
root 7472 0.0 0.0 13024 5544 ? Ss 15:06 0:00 /usr/sbin/dhcpd -q -cf /etc/dhcp/dhcpd.conf -pf /var/run/dhcpd.pid eth0 root 7513 0.0 0.0 7836 880 pts/10 S+ 15:11 0:00 grep dhcp |
#ps aux | grep [d]hcp
root 7472 0.0 0.0 13024 5544 ? Ss 15:06 0:00 /usr/sbin/dhcpd -q -cf /etc/dhcp/dhcpd.conf -pf /var/run/dhcpd.pid eth0 |
#ps aux | grep [d]hcp
root 7472 0.0 0.0 13024 5544 ? Ss 15:06 0:00 /usr/sbin/dhcpd -q -cf /etc/dhcp/dhcpd.conf -pf /var/run/dhcpd.pid eth0 |
# Defaults for isc-dhcp-server initscript # sourced by /etc/init.d/isc-dhcp-server # installed at /etc/default/isc-dhcp-server by the maintainer scripts # # This is a POSIX shell fragment # # Path to dhcpd's config file (default: /etc/dhcp/dhcpd.conf). #DHCPD_CONF=/etc/dhcp/dhcpd.conf # Path to dhcpd's PID file (default: /var/run/dhcpd.pid). #DHCPD_PID=/var/run/dhcpd.pid # Additional options to start dhcpd with. # Don't use options -cf or -pf here; use DHCPD_CONF/ DHCPD_PID instead #OPTIONS="" # On what interfaces should the DHCP server (dhcpd) serve DHCP requests? # Separate multiple interfaces with spaces, e.g. "eth0 eth1". INTERFACES="eth0"
auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet static address 192.168.12.6 netmask 255.255.255.0 gateway 192.168.12.254
Время первой команды журнала | 09:11:49 2014-11-24 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:19:02 2014-11-24 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 18.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 6.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 2.12 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 0.79 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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