/l3/users/dgoleg/SET-YOUR-FIRSTLAB-NAME-HERE/debian2.unix.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 |
|
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:0f:fe:7e:b9:2f inet addr:10.0.35.42 Bcast:10.0.35.255 Mask:255.255.255.0 inet6 addr: fe80::20f:feff:fe7e:b92f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:32788 errors:0 dropped:0 overruns:0 frame:0 TX packets:16030 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:11908274 (11.3 MiB) TX bytes:2318519 (2.2 MiB) Interrupt:19 Memory:f0180000-f01a0000 eth0.10 Link encap:Ethernet HWaddr 00:0f:fe:7e:b9:2f ... collisions:0 txqueuelen:0 RX bytes:6122 (5.9 KiB) TX bytes:26143 (25.5 KiB) 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:104 errors:0 dropped:0 overruns:0 frame:0 TX packets:104 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:9081 (8.8 KiB) TX bytes:9081 (8.8 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:0f:fe:7e:b9:2f inet addr:10.0.35.42 Bcast:10.0.35.255 Mask:255.255.255.0 inet6 addr: fe80::20f:feff:fe7e:b92f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:33863 errors:0 dropped:0 overruns:0 frame:0 TX packets:16231 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:11998083 (11.4 MiB) TX bytes:2349925 (2.2 MiB) Interrupt:19 Memory:f0180000-f01a0000 eth0.10 Link encap:Ethernet HWaddr 00:0f:fe:7e:b9:2f ... collisions:0 txqueuelen:0 RX bytes:6122 (5.9 KiB) TX bytes:26143 (25.5 KiB) 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:104 errors:0 dropped:0 overruns:0 frame:0 TX packets:104 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:9081 (8.8 KiB) TX bytes:9081 (8.8 KiB) |
#ps aux | grep l3
root 2911 0.3 0.1 13072 8964 ? Ss 09:57 0:01 l3-agent root 3438 0.0 0.0 3912 736 pts/6 S+ 10:03 0:00 grep l3 |
#vim /etc/network/interfaces
|
$Selecting previously deselected package mii-diag.
|
$Need to get 18.3 kB of archives.
|
$The following NEW packages will be installed:
|
$Selecting previously deselected package mii-diag.
|
$Need to get 18.3 kB of archives.
|
$The following NEW packages will be installed:
|
$SIOCGMIIREG on eth0 failed: Input/output error
|
$Selecting previously deselected package mii-diag.
|
$Need to get 18.3 kB of archives.
|
$Need to get 18.3 kB of archives.
|
$The following NEW packages will be installed:
pkill -1 l3-agent pkill: 2911 - Operation not permitted |
$The following NEW packages will be installed:
pkill -1 l3-agent pkill: 2911 - Operation not permitted |
$sudo pkill -l l3-agent
[sudo] password for user: pkill: invalid option -- 'l' Usage: pkill [-SIGNAL] [-fvx] [-n|-o] [-P PPIDLIST] [-g PGRPLIST] [-s SIDLIST] [-u EUIDLIST] [-U UIDLIST] [-G GIDLIST] [-t TERMLIST] [PATTERN] |
$sudo pkill -l l3-agent
[sudo] password for user: pkill: invalid option -- 'l' Usage: pkill [-SIGNAL] [-fvx] [-n|-o] [-P PPIDLIST] [-g PGRPLIST] [-s SIDLIST] [-u EUIDLIST] [-U UIDLIST] [-G GIDLIST] [-t TERMLIST] [PATTERN] |
$su -
Password: l3-agent is already running: pid=2911; pidfile=/root/.lilalo/l3-agent.pid |
$su -
Password: l3-agent is already running: pid=2911; pidfile=/root/.lilalo/l3-agent.pid |
#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 auto eth0.10 eth0.20 # The primary network interface allow-hotplug eth0 iface eth0 inet static address 10.0.35.42 ... dns-nameservers 10.0.35.1 dns-search unix.nt iface eth0.10 inet static address 192.168.10.2 netmask 255.255.255.0 network 10.0.35.0 iface eth0.20 inet static address 192.168.20.2 netmask 255.255.255.0 network 10.0.35.0 |
#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 auto eth0.10 eth0.20 # The primary network interface allow-hotplug eth0 iface eth0 inet static address 10.0.35.42 ... dns-nameservers 10.0.35.1 dns-search unix.nt iface eth0.10 inet static address 192.168.10.2 netmask 255.255.255.0 network 10.0.35.0 iface eth0.20 inet static address 192.168.20.2 netmask 255.255.255.0 network 10.0.35.0 |
#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 auto eth0.10 eth0.20 # The primary network interface allow-hotplug eth0 iface eth0 inet static address 10.0.35.42 ... dns-nameservers 10.0.35.1 dns-search unix.nt iface eth0.10 inet static address 192.168.10.2 netmask 255.255.255.0 network 10.0.35.0 iface eth0.20 inet static address 192.168.20.2 netmask 255.255.255.0 network 10.0.35.0 |
#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 auto eth0.10 eth0.20 # The primary network interface allow-hotplug eth0 iface eth0 inet static address 10.0.35.42 ... dns-nameservers 10.0.35.1 dns-search unix.nt iface eth0.10 inet static address 192.168.10.2 netmask 255.255.255.0 network 10.0.35.0 iface eth0.20 inet static address 192.168.20.2 netmask 255.255.255.0 network 10.0.35.0 |
#route add -net 192.168.20.0/24 gw 10.0.35.42
|
#route add -net 192.168.30.0/24 gw 10.0.35.43
|
#route add -net 192.168.40.0/24 gw 10.0.35.44
|
#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 auto eth0.10 eth0.20 # The primary network interface allow-hotplug eth0 iface eth0 inet static address 10.0.35.42 ... dns-nameservers 10.0.35.1 dns-search unix.nt iface eth0.10 inet static address 192.168.10.2 netmask 255.255.255.0 network 10.0.35.0 iface eth0.20 inet static address 192.168.20.2 netmask 255.255.255.0 network 10.0.35.0 |
#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 auto eth0.10 eth0.20 # The primary network interface allow-hotplug eth0 iface eth0 inet static address 10.0.35.42 ... dns-nameservers 10.0.35.1 dns-search unix.nt iface eth0.10 inet static address 192.168.10.2 netmask 255.255.255.0 network 10.0.35.0 iface eth0.20 inet static address 192.168.20.2 netmask 255.255.255.0 network 10.0.35.0 |
#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 auto eth0.10 eth0.20 # The primary network interface allow-hotplug eth0 iface eth0 inet static address 10.0.35.42 ... dns-nameservers 10.0.35.1 dns-search unix.nt iface eth0.10 inet static address 192.168.10.2 netmask 255.255.255.0 network 10.0.35.0 iface eth0.20 inet static address 192.168.20.2 netmask 255.255.255.0 network 10.0.35.0 |
#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 auto eth0.10 eth0.20 # The primary network interface allow-hotplug eth0 iface eth0 inet static address 10.0.35.42 ... dns-nameservers 10.0.35.1 dns-search unix.nt iface eth0.10 inet static address 192.168.10.2 netmask 255.255.255.0 network 10.0.35.0 iface eth0.20 inet static address 192.168.20.2 netmask 255.255.255.0 network 10.0.35.0 |
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data. ^X^C --- 192.168.40.3 ping statistics --- 29 packets transmitted, 0 received, 100% packet loss, time 28224ms |
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data. ^X^C --- 192.168.40.3 ping statistics --- 29 packets transmitted, 0 received, 100% packet loss, time 28224ms |
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data. ^X^C --- 192.168.40.3 ping statistics --- 29 packets transmitted, 0 received, 100% packet loss, time 28224ms |
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data. ^X^C --- 192.168.40.3 ping statistics --- 29 packets transmitted, 0 received, 100% packet loss, time 28224ms |
#ping 192.168.40.4
PING 192.168.40.4 (192.168.40.4) 56(84) bytes of data. ^C --- 192.168.40.4 ping statistics --- 5 packets transmitted, 0 received, 100% packet loss, time 3999ms |
#ping 192.168.40.4
PING 192.168.40.4 (192.168.40.4) 56(84) bytes of data. ^C --- 192.168.40.4 ping statistics --- 5 packets transmitted, 0 received, 100% packet loss, time 3999ms |
#ping 192.168.40.4
PING 192.168.40.4 (192.168.40.4) 56(84) bytes of data. ^C --- 192.168.40.4 ping statistics --- 5 packets transmitted, 0 received, 100% packet loss, time 3999ms |
#ping 192.168.40.4
PING 192.168.40.4 (192.168.40.4) 56(84) bytes of data. ^C --- 192.168.40.4 ping statistics --- 5 packets transmitted, 0 received, 100% packet loss, time 3999ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. 64 bytes from 192.168.20.1: icmp_req=1 ttl=64 time=1.17 ms 64 bytes from 192.168.20.1: icmp_req=2 ttl=64 time=0.508 ms 64 bytes from 192.168.20.1: icmp_req=3 ttl=64 time=0.548 ms ^C --- 192.168.20.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 0.508/0.743/1.173/0.304 ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. 64 bytes from 192.168.20.1: icmp_req=1 ttl=64 time=1.17 ms 64 bytes from 192.168.20.1: icmp_req=2 ttl=64 time=0.508 ms 64 bytes from 192.168.20.1: icmp_req=3 ttl=64 time=0.548 ms ^C --- 192.168.20.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 0.508/0.743/1.173/0.304 ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. 64 bytes from 192.168.20.1: icmp_req=1 ttl=64 time=1.17 ms 64 bytes from 192.168.20.1: icmp_req=2 ttl=64 time=0.508 ms 64 bytes from 192.168.20.1: icmp_req=3 ttl=64 time=0.548 ms ^C --- 192.168.20.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 0.508/0.743/1.173/0.304 ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. 64 bytes from 192.168.20.1: icmp_req=1 ttl=64 time=1.17 ms 64 bytes from 192.168.20.1: icmp_req=2 ttl=64 time=0.508 ms 64 bytes from 192.168.20.1: icmp_req=3 ttl=64 time=0.548 ms ^C --- 192.168.20.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 0.508/0.743/1.173/0.304 ms |
#ping 192.168.10.4
PING 192.168.10.4 (192.168.10.4) 56(84) bytes of data. From 192.168.10.2 icmp_seq=1 Destination Host Unreachable From 192.168.10.2 icmp_seq=2 Destination Host Unreachable From 192.168.10.2 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.10.4 ping statistics --- 6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5032ms pipe 3 |
#ping 192.168.10.4
PING 192.168.10.4 (192.168.10.4) 56(84) bytes of data. From 192.168.10.2 icmp_seq=1 Destination Host Unreachable From 192.168.10.2 icmp_seq=2 Destination Host Unreachable From 192.168.10.2 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.10.4 ping statistics --- 6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5032ms pipe 3 |
#ping 192.168.10.4
PING 192.168.10.4 (192.168.10.4) 56(84) bytes of data. From 192.168.10.2 icmp_seq=1 Destination Host Unreachable From 192.168.10.2 icmp_seq=2 Destination Host Unreachable From 192.168.10.2 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.10.4 ping statistics --- 6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5032ms pipe 3 |
#ping 192.168.10.4
PING 192.168.10.4 (192.168.10.4) 56(84) bytes of data. From 192.168.10.2 icmp_seq=1 Destination Host Unreachable From 192.168.10.2 icmp_seq=2 Destination Host Unreachable From 192.168.10.2 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.10.4 ping statistics --- 6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5032ms pipe 3 |
#ping 192.168.10.3
PING 192.168.10.3 (192.168.10.3) 56(84) bytes of data. From 192.168.10.2 icmp_seq=1 Destination Host Unreachable From 192.168.10.2 icmp_seq=2 Destination Host Unreachable From 192.168.10.2 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.10.3 ping statistics --- 5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4024ms pipe 3 |
#ping 192.168.10.3
PING 192.168.10.3 (192.168.10.3) 56(84) bytes of data. From 192.168.10.2 icmp_seq=1 Destination Host Unreachable From 192.168.10.2 icmp_seq=2 Destination Host Unreachable From 192.168.10.2 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.10.3 ping statistics --- 5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4024ms pipe 3 |
#ping 192.168.10.3
PING 192.168.10.3 (192.168.10.3) 56(84) bytes of data. From 192.168.10.2 icmp_seq=1 Destination Host Unreachable From 192.168.10.2 icmp_seq=2 Destination Host Unreachable From 192.168.10.2 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.10.3 ping statistics --- 5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4024ms pipe 3 |
#ping 192.168.10.3
PING 192.168.10.3 (192.168.10.3) 56(84) bytes of data. From 192.168.10.2 icmp_seq=1 Destination Host Unreachable From 192.168.10.2 icmp_seq=2 Destination Host Unreachable From 192.168.10.2 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.10.3 ping statistics --- 5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4024ms pipe 3 |
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data. ^C --- 192.168.40.3 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1008ms |
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data. ^C --- 192.168.40.3 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1008ms |
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data. ^C --- 192.168.40.3 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1008ms |
#ping 192.168.40.3
PING 192.168.40.3 (192.168.40.3) 56(84) bytes of data. ^C --- 192.168.40.3 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1008ms |
#ping 192.168.40.4
PING 192.168.40.4 (192.168.40.4) 56(84) bytes of data. ^C --- 192.168.40.4 ping statistics --- 8 packets transmitted, 0 received, 100% packet loss, time 7055ms |
#ping 192.168.40.4
PING 192.168.40.4 (192.168.40.4) 56(84) bytes of data. ^C --- 192.168.40.4 ping statistics --- 8 packets transmitted, 0 received, 100% packet loss, time 7055ms |
#ping 192.168.40.4
PING 192.168.40.4 (192.168.40.4) 56(84) bytes of data. ^C --- 192.168.40.4 ping statistics --- 8 packets transmitted, 0 received, 100% packet loss, time 7055ms |
#ping 192.168.40.4
PING 192.168.40.4 (192.168.40.4) 56(84) bytes of data. ^C --- 192.168.40.4 ping statistics --- 8 packets transmitted, 0 received, 100% packet loss, time 7055ms |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 localnet * 255.255.255.0 U 0 0 0 eth0 192.168.10.0 * 255.255.255.0 U 0 0 0 eth0.10 192.168.20.0 * 255.255.255.0 U 0 0 0 eth0.20 192.168.30.0 * 255.255.255.0 U 0 0 0 eth0.30 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 localnet * 255.255.255.0 U 0 0 0 eth0 192.168.10.0 * 255.255.255.0 U 0 0 0 eth0.10 192.168.20.0 * 255.255.255.0 U 0 0 0 eth0.20 192.168.30.0 * 255.255.255.0 U 0 0 0 eth0.30 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 localnet * 255.255.255.0 U 0 0 0 eth0 192.168.10.0 * 255.255.255.0 U 0 0 0 eth0.10 192.168.20.0 * 255.255.255.0 U 0 0 0 eth0.20 192.168.30.0 * 255.255.255.0 U 0 0 0 eth0.30 |
#route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 localnet * 255.255.255.0 U 0 0 0 eth0 192.168.10.0 * 255.255.255.0 U 0 0 0 eth0.10 192.168.20.0 * 255.255.255.0 U 0 0 0 eth0.20 192.168.30.0 * 255.255.255.0 U 0 0 0 eth0.30 |
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. From 192.168.10.2 icmp_seq=2 Destination Host Unreachable From 192.168.10.2 icmp_seq=3 Destination Host Unreachable From 192.168.10.2 icmp_seq=4 Destination Host Unreachable ^C --- 192.168.10.1 ping statistics --- 5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4000ms pipe 3 |
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. From 192.168.10.2 icmp_seq=2 Destination Host Unreachable From 192.168.10.2 icmp_seq=3 Destination Host Unreachable From 192.168.10.2 icmp_seq=4 Destination Host Unreachable ^C --- 192.168.10.1 ping statistics --- 5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4000ms pipe 3 |
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. From 192.168.10.2 icmp_seq=2 Destination Host Unreachable From 192.168.10.2 icmp_seq=3 Destination Host Unreachable From 192.168.10.2 icmp_seq=4 Destination Host Unreachable ^C --- 192.168.10.1 ping statistics --- 5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4000ms pipe 3 |
#ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1) 56(84) bytes of data. From 192.168.10.2 icmp_seq=2 Destination Host Unreachable From 192.168.10.2 icmp_seq=3 Destination Host Unreachable From 192.168.10.2 icmp_seq=4 Destination Host Unreachable ^C --- 192.168.10.1 ping statistics --- 5 packets transmitted, 0 received, +3 errors, 100% packet loss, time 4000ms pipe 3 |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. 64 bytes from 192.168.20.1: icmp_req=1 ttl=64 time=2.31 ms 64 bytes from 192.168.20.1: icmp_req=2 ttl=64 time=0.494 ms ^C --- 192.168.20.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.494/1.404/2.314/0.910 ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. 64 bytes from 192.168.20.1: icmp_req=1 ttl=64 time=2.31 ms 64 bytes from 192.168.20.1: icmp_req=2 ttl=64 time=0.494 ms ^C --- 192.168.20.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.494/1.404/2.314/0.910 ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. 64 bytes from 192.168.20.1: icmp_req=1 ttl=64 time=2.31 ms 64 bytes from 192.168.20.1: icmp_req=2 ttl=64 time=0.494 ms ^C --- 192.168.20.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.494/1.404/2.314/0.910 ms |
#ping 192.168.20.1
PING 192.168.20.1 (192.168.20.1) 56(84) bytes of data. 64 bytes from 192.168.20.1: icmp_req=1 ttl=64 time=2.31 ms 64 bytes from 192.168.20.1: icmp_req=2 ttl=64 time=0.494 ms ^C --- 192.168.20.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.494/1.404/2.314/0.910 ms |
#ping 192.168.10.4
PING 192.168.10.4 (192.168.10.4) 56(84) bytes of data. From 192.168.10.2 icmp_seq=1 Destination Host Unreachable From 192.168.10.2 icmp_seq=2 Destination Host Unreachable From 192.168.10.2 icmp_seq=3 Destination Host Unreachable From 192.168.10.2 icmp_seq=4 Destination Host Unreachable From 192.168.10.2 icmp_seq=5 Destination Host Unreachable From 192.168.10.2 icmp_seq=6 Destination Host Unreachable ^C --- 192.168.10.4 ping statistics --- 9 packets transmitted, 0 received, +6 errors, 100% packet loss, time 8046ms pipe 3 |
#ping 192.168.10.4
PING 192.168.10.4 (192.168.10.4) 56(84) bytes of data. From 192.168.10.2 icmp_seq=1 Destination Host Unreachable From 192.168.10.2 icmp_seq=2 Destination Host Unreachable From 192.168.10.2 icmp_seq=3 Destination Host Unreachable From 192.168.10.2 icmp_seq=4 Destination Host Unreachable From 192.168.10.2 icmp_seq=5 Destination Host Unreachable From 192.168.10.2 icmp_seq=6 Destination Host Unreachable ^C --- 192.168.10.4 ping statistics --- 9 packets transmitted, 0 received, +6 errors, 100% packet loss, time 8046ms pipe 3 |
#ping 192.168.10.4
PING 192.168.10.4 (192.168.10.4) 56(84) bytes of data. From 192.168.10.2 icmp_seq=1 Destination Host Unreachable From 192.168.10.2 icmp_seq=2 Destination Host Unreachable From 192.168.10.2 icmp_seq=3 Destination Host Unreachable From 192.168.10.2 icmp_seq=4 Destination Host Unreachable From 192.168.10.2 icmp_seq=5 Destination Host Unreachable From 192.168.10.2 icmp_seq=6 Destination Host Unreachable ^C --- 192.168.10.4 ping statistics --- 9 packets transmitted, 0 received, +6 errors, 100% packet loss, time 8046ms pipe 3 |
#ping 192.168.10.4
PING 192.168.10.4 (192.168.10.4) 56(84) bytes of data. From 192.168.10.2 icmp_seq=1 Destination Host Unreachable From 192.168.10.2 icmp_seq=2 Destination Host Unreachable From 192.168.10.2 icmp_seq=3 Destination Host Unreachable From 192.168.10.2 icmp_seq=4 Destination Host Unreachable From 192.168.10.2 icmp_seq=5 Destination Host Unreachable From 192.168.10.2 icmp_seq=6 Destination Host Unreachable ^C --- 192.168.10.4 ping statistics --- 9 packets transmitted, 0 received, +6 errors, 100% packet loss, time 8046ms pipe 3 |
#ping 192.168.10.4
PING 192.168.10.4 (192.168.10.4) 56(84) bytes of data. From 192.168.10.2 icmp_seq=1 Destination Host Unreachable From 192.168.10.2 icmp_seq=2 Destination Host Unreachable From 192.168.10.2 icmp_seq=3 Destination Host Unreachable ^C --- 192.168.10.4 ping statistics --- 6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5030ms pipe 3 |
# 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 auto eth0.10 eth0.20 # The primary network interface allow-hotplug eth0 iface eth0 inet static address 10.0.35.42 netmask 255.255.255.0 network 10.0.35.0 broadcast 10.0.35.255 gateway 10.0.35.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 10.0.35.1 dns-search unix.nt iface eth0.10 inet static address 192.168.10.2 netmask 255.255.255.0 network 10.0.35.0 iface eth0.20 inet static address 192.168.20.2 netmask 255.255.255.0 network 10.0.35.0
0
Время первой команды журнала | 09:01:16 2012- 2-22 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 09:26:34 2012- 2-22 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 34.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.42 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 3.95 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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