/l3/users/29-05-2007/nt-lnet/linux1.net.nt/user :1 :2 :3 :4 :5 :6 :7 :8 |
|
#ping 192.168.16.3
PING 192.168.16.3 (192.168.16.3) 56(84) bytes of data. --- 192.168.16.3 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 1010ms |
#ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. 64 bytes from 192.168.16.4: icmp_seq=1 ttl=64 time=0.227 ms 64 bytes from 192.168.16.4: icmp_seq=2 ttl=64 time=0.152 ms --- 192.168.16.4 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1002ms rtt min/avg/max/mdev = 0.152/0.189/0.227/0.039 ms |
#ping 192.168.16.3
PING 192.168.16.3 (192.168.16.3) 56(84) bytes of data. --- 192.168.16.3 ping statistics --- 2 packets transmitted, 0 received, 100% packet loss, time 999ms |
#mii-tool
eth2: no link eth3: negotiated 100baseTx-FD flow-control, link ok |
#ping 192.168.16.3
PING 192.168.16.3 (192.168.16.3) 56(84) bytes of data. 64 bytes from 192.168.16.3: icmp_seq=1 ttl=64 time=0.218 ms 64 bytes from 192.168.16.3: icmp_seq=2 ttl=64 time=0.148 ms --- 192.168.16.3 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.148/0.183/0.218/0.035 ms |
#ping 192.168.16.2
PING 192.168.16.2 (192.168.16.2) 56(84) bytes of data. 64 bytes from 192.168.16.2: icmp_seq=1 ttl=64 time=0.212 ms 64 bytes from 192.168.16.2: icmp_seq=2 ttl=64 time=0.191 ms --- 192.168.16.2 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1003ms rtt min/avg/max/mdev = 0.191/0.201/0.212/0.017 ms |
#ping 192.168.16.4
PING 192.168.16.4 (192.168.16.4) 56(84) bytes of data. 64 bytes from 192.168.16.4: icmp_seq=1 ttl=64 time=0.224 ms --- 192.168.16.4 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.224/0.224/0.224/0.000 ms |
#ping 192.168.16.15
PING 192.168.16.15 (192.168.16.15) 56(84) bytes of data. 64 bytes from 192.168.16.15: icmp_seq=1 ttl=64 time=0.267 ms 64 bytes from 192.168.16.15: icmp_seq=2 ttl=64 time=0.214 ms --- 192.168.16.15 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.214/0.240/0.267/0.030 ms |
#mii-tool
eth2: no link eth3: negotiated 100baseTx-FD flow-control, link ok |
#pkill -9 screen
|
#dmesg
hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected Floppy drive(s): fd0 is 1.44M ACPI: PCI Interrupt 0000:00:1d.2[C] -> GSI 18 (level, low) -> IRQ 185 PCI: Setting latency timer of device 0000:00:1d.2 to 64 uhci_hcd 0000:00:1d.2: UHCI Host Controller uhci_hcd 0000:00:1d.2: new USB bus registered, assigned bus number 3 uhci_hcd 0000:00:1d.2: irq 185, io base 0x0000d400 usb usb3: configuration #1 chosen from 1 choice hub 3-0:1.0: USB hub found ... audit(1180451286.463:20): dev=eth3 prom=256 old_prom=0 auid=4294967295 device eth3 left promiscuous mode audit(1180451297.916:21): dev=eth3 prom=0 old_prom=256 auid=4294967295 device eth3 entered promiscuous mode audit(1180451310.084:22): dev=eth3 prom=256 old_prom=0 auid=4294967295 device eth3 left promiscuous mode audit(1180451321.797:23): dev=eth3 prom=0 old_prom=256 auid=4294967295 e100: eth3: e100_watchdog: link down e100: eth3: e100_watchdog: link up, 100Mbps, full-duplex wireshark uses obsolete (PF_INET,SOCK_PACKET) |
#ps -alx
Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND 4 0 1 0 15 0 1944 652 - Ss ? 0:01 init [2] 1 0 2 1 -100 - 0 0 migrat S ? 0:00 [migration/0] 1 0 3 1 37 19 0 0 ksofti SN ? 0:00 [ksoftirqd/0] 1 0 4 1 10 -5 0 0 worker S< ? 0:01 [events/0] 1 0 5 1 10 -5 0 0 worker S< ? 0:00 [khelper] 1 0 6 1 10 -5 0 0 worker S< ? 0:00 [kthread] 1 0 9 6 10 -5 0 0 worker S< ? 0:00 [kblockd/0] 1 0 10 6 20 -5 0 0 worker S< ? 0:00 [kacpid] ... 0 1000 8413 8412 16 0 6272 2916 wait Ss pts/8 0:00 bash -i 4 0 8450 8413 15 0 4576 1092 wait S+ pts/8 0:00 su - 0 0 8453 8450 15 0 3628 524 - S+ pts/8 0:00 script -f -q /root/.lilalo//186452 1 0 8490 8453 15 0 3632 416 - S+ pts/8 0:00 script -f -q /root/.lilalo//186452 0 0 8491 8490 18 0 4932 1864 - Ss+ pts/11 0:00 bash -i 4 0 8893 2719 15 0 7884 2404 429496 Ss ? 0:00 sshd: root@pts/12 4 0 8910 8893 15 0 3624 516 - Ss+ pts/12 0:00 script -f -q /root/.lilalo//193421 1 0 8947 8910 15 0 3628 412 - S+ pts/12 0:00 script -f -q /root/.lilalo//193421 0 0 8948 8947 18 0 4960 1888 - Ss+ pts/13 0:00 bash -i 4 0 11475 8258 17 0 4084 832 - R+ pts/2 0:00 ps -alx |
#man ps
|
#top
top - 19:05:05 up 3:03, 5 users, load average: 0.13, 0.13, 0.17 Tasks: 111 total, 1 running, 110 sleeping, 0 stopped, 0 zombie Cpu(s): 74.1%us, 0.3%sy, 0.0%ni, 25.6%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 1028536k total, 489044k used, 539492k free, 34388k buffers PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND Swap: 1951888k total, 0k used, 1951888k free, 273416k cached 4619 root 22 0 10452 6612 1416 S 73.9 0.6 17:39.29 l3-agent 3053 user 15 0 9620 4432 2388 S 0.3 0.4 0:05.34 xterm 11519 root 15 0 2232 1160 860 R 0.3 0.1 0:00.10 top 1 root 15 0 1944 652 556 S 0.0 0.1 0:01.54 init ... 1823 root 10 -5 0 0 0 S 0.0 0.0 0:00.04 kjournald 2112 daemon 15 0 1684 372 280 S 0.0 0.0 0:00.00 portmap 2383 root 18 0 1624 612 508 S 0.0 0.1 0:00.06 syslogd 2393 root 18 0 1576 388 316 S 0.0 0.0 0:00.02 klogd 2415 root 23 0 4888 912 672 S 0.0 0.1 0:00.00 hpiod 2418 hplip 15 0 9688 4884 1112 S 0.0 0.5 0:00.07 python 2508 root 18 0 1572 488 420 S 0.0 0.0 0:00.00 acpid 2531 root 18 0 4512 1856 1368 S 0.0 0.2 0:00.19 cupsd 2539 messageb 15 0 2384 960 684 S 0.0 0.1 0:00.15 dbus-daemon 2547 haldaemo 18 0 5852 4300 1692 S 0.0 0.4 0:02.96 hald |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet addr:169.254.179.216 Bcast:169.254.255.255 Mask:255.255.0.0 inet6 addr: fe80::204:76ff:fea1:f0a5/64 Scope:Link 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) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 ... inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 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:14045 errors:0 dropped:0 overruns:0 frame:0 TX packets:14045 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:595656 (581.6 KiB) TX bytes:595656 (581.6 KiB) |
#apt-get install
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. |
#mii-tool
eth2: no link eth3: negotiated 100baseTx-FD flow-control, link ok |
#vim /etc/network/inter
|
#vim /etc/network/interfaces
|
#ipcalca
bash: ipcalca: command not found |
#ipcalc
Usage: ipcalc [options] <ADDRESS>[[/]<NETMASK>] [NETMASK] ipcalc takes an IP address and netmask and calculates the resulting broadcast, network, Cisco wildcard mask, and host range. By giving a second netmask, you can design sub- and supernetworks. It is also intended to be a teaching tool and presents the results as easy-to-understand binary values. -n --nocolor Don't display ANSI color codes. -b --nobinary Suppress the bitwise output. -c --class Just print bit-count-mask of given address. -h --html Display results as HTML (not finished in this version). -v --version Print Version. ... ipcalc 192.168.0.1/24 ipcalc 192.168.0.1/255.255.128.0 ipcalc 192.168.0.1 255.255.128.0 255.255.192.0 ipcalc 192.168.0.1 0.0.63.255 ipcalc <ADDRESS1> - <ADDRESS2> deaggregate address range ipcalc <ADDRESS>/<NETMASK> --s a b c split network to subnets where a b c fits in. ! New HTML support not yet finished. ipcalc 0.41 |
#ifconfig eth2 down
|
#ifconfig eth2 192.168.19.62 netmask 255.255.255.224
|
#ifconfig eth2 up
|
#mii-tool
eth2: no link eth3: negotiated 100baseTx-FD flow-control, link ok |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet addr:192.168.19.62 Bcast:192.168.19.63 Mask:255.255.255.224 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) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 inet addr:192.168.16.1 Bcast:192.168.16.255 Mask:255.255.255.0 ... inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 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:14045 errors:0 dropped:0 overruns:0 frame:0 TX packets:14045 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:595656 (581.6 KiB) TX bytes:595656 (581.6 KiB) |
#mii-tool
eth2: no link eth3: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth2: no link eth3: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth2: no link eth3: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth2: no link eth3: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth2: negotiated 100baseTx-FD flow-control, link ok eth3: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth2: negotiated 100baseTx-FD flow-control, link ok eth3: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth2: negotiated 100baseTx-FD flow-control, link ok eth3: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth2: negotiated 100baseTx-FD flow-control, link ok eth3: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth2: negotiated 100baseTx-FD flow-control, link ok eth3: negotiated 100baseTx-FD flow-control, link ok |
#ping 192.168.19.33
PING 192.168.19.33 (192.168.19.33) 56(84) bytes of data. From 192.168.19.62 icmp_seq=1 Destination Host Unreachable From 192.168.19.62 icmp_seq=2 Destination Host Unreachable From 192.168.19.62 icmp_seq=3 Destination Host Unreachable From 192.168.19.62 icmp_seq=5 Destination Host Unreachable From 192.168.19.62 icmp_seq=6 Destination Host Unreachable From 192.168.19.62 icmp_seq=7 Destination Host Unreachable From 192.168.19.62 icmp_seq=9 Destination Host Unreachable From 192.168.19.62 icmp_seq=10 Destination Host Unreachable From 192.168.19.62 icmp_seq=11 Destination Host Unreachable From 192.168.19.62 icmp_seq=13 Destination Host Unreachable From 192.168.19.62 icmp_seq=14 Destination Host Unreachable From 192.168.19.62 icmp_seq=15 Destination Host Unreachable --- 192.168.19.33 ping statistics --- 15 packets transmitted, 0 received, +12 errors, 100% packet loss, time 14010ms , pipe 3 |
#ping 192.168.19.33
PING 192.168.19.33 (192.168.19.33) 56(84) bytes of data. From 192.168.19.62 icmp_seq=2 Destination Host Unreachable From 192.168.19.62 icmp_seq=3 Destination Host Unreachable From 192.168.19.62 icmp_seq=4 Destination Host Unreachable From 192.168.19.62 icmp_seq=6 Destination Host Unreachable From 192.168.19.62 icmp_seq=7 Destination Host Unreachable From 192.168.19.62 icmp_seq=8 Destination Host Unreachable --- 192.168.19.33 ping statistics --- 38 packets transmitted, 0 received, +6 errors, 100% packet loss, time 37000ms , pipe 3 |
#vim /etc/network/interfaces
|
#/etc/init.d/networking restart
Reconfiguring network interfaces...done. |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet addr:192.168.19.62 Bcast:192.168.19.63 Mask:255.255.255.224 inet6 addr: fe80::204:76ff:fea1:f0a5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:1188 (1.1 KiB) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 ... inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 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:14057 errors:0 dropped:0 overruns:0 frame:0 TX packets:14057 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:597000 (583.0 KiB) TX bytes:597000 (583.0 KiB) |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.19.32 0.0.0.0 255.255.255.224 U 0 0 0 eth2 192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 192.168.19.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 0.0.0.0 192.168.16.15 0.0.0.0 UG 0 0 0 eth3 |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.19.32 0.0.0.0 255.255.255.224 U 0 0 0 eth2 192.168.20.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 192.168.19.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 0.0.0.0 192.168.16.15 0.0.0.0 UG 0 0 0 eth3 |
#ping 192.168.19.33
PING 192.168.19.33 (192.168.19.33) 56(84) bytes of data. --- 192.168.19.33 ping statistics --- 25 packets transmitted, 0 received, 100% packet loss, time 24013ms |
#ping 192.168.19.33
PING 192.168.19.33 (192.168.19.33) 56(84) bytes of data. --- 192.168.19.33 ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2010ms |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet addr:192.168.19.62 Bcast:192.168.19.63 Mask:255.255.255.224 inet6 addr: fe80::204:76ff:fea1:f0a5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3 errors:0 dropped:0 overruns:0 frame:0 TX packets:85 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:180 (180.0 b) TX bytes:7412 (7.2 KiB) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 ... inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 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:14063 errors:0 dropped:0 overruns:0 frame:0 TX packets:14063 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:597672 (583.6 KiB) TX bytes:597672 (583.6 KiB) |
#ping 192.168.16.15
PING 192.168.16.15 (192.168.16.15) 56(84) bytes of data. 64 bytes from 192.168.16.15: icmp_seq=1 ttl=64 time=0.249 ms 64 bytes from 192.168.16.15: icmp_seq=2 ttl=64 time=0.223 ms --- 192.168.16.15 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 0.223/0.236/0.249/0.013 ms |
#ping 192.168.16.15
PING 192.168.16.15 (192.168.16.15) 56(84) bytes of data. 64 bytes from 192.168.16.15: icmp_seq=1 ttl=64 time=0.252 ms 64 bytes from 192.168.16.15: icmp_seq=2 ttl=64 time=0.229 ms 64 bytes from 192.168.16.15: icmp_seq=3 ttl=64 time=0.226 ms 64 bytes from 192.168.16.15: icmp_seq=4 ttl=64 time=0.223 ms --- 192.168.16.15 ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3000ms rtt min/avg/max/mdev = 0.223/0.232/0.252/0.019 ms |
#ping 192.168.19.33
PING 192.168.19.33 (192.168.19.33) 56(84) bytes of data. --- 192.168.19.33 ping statistics --- 36 packets transmitted, 0 received, 100% packet loss, time 35002ms |
#mii-tool
eth2: negotiated 100baseTx-FD flow-control, link ok eth3: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth2: negotiated 100baseTx-FD flow-control, link ok eth3: negotiated 100baseTx-FD flow-control, link ok |
#mii-tool
eth2: negotiated 100baseTx-FD flow-control, link ok eth3: negotiated 100baseTx-FD flow-control, link ok |
#ping 192.168.19.33
PING 192.168.19.33 (192.168.19.33) 56(84) bytes of data. 64 bytes from 192.168.19.33: icmp_seq=9 ttl=64 time=4.36 ms 64 bytes from 192.168.19.33: icmp_seq=10 ttl=64 time=0.266 ms 64 bytes from 192.168.19.33: icmp_seq=11 ttl=64 time=0.317 ms 64 bytes from 192.168.19.33: icmp_seq=12 ttl=64 time=0.126 ms 64 bytes from 192.168.19.33: icmp_seq=13 ttl=64 time=0.175 ms 64 bytes from 192.168.19.33: icmp_seq=14 ttl=64 time=0.262 ms 64 bytes from 192.168.19.33: icmp_seq=15 ttl=64 time=0.293 ms 64 bytes from 192.168.19.33: icmp_seq=16 ttl=64 time=0.120 ms 64 bytes from 192.168.19.33: icmp_seq=17 ttl=64 time=0.170 ms 64 bytes from 192.168.19.33: icmp_seq=18 ttl=64 time=0.232 ms 64 bytes from 192.168.19.33: icmp_seq=19 ttl=64 time=0.290 ms 64 bytes from 192.168.19.33: icmp_seq=20 ttl=64 time=0.212 ms 64 bytes from 192.168.19.33: icmp_seq=21 ttl=64 time=0.157 ms 64 bytes from 192.168.19.33: icmp_seq=22 ttl=64 time=0.228 ms 64 bytes from 192.168.19.33: icmp_seq=23 ttl=64 time=0.283 ms 64 bytes from 192.168.19.33: icmp_seq=24 ttl=64 time=0.352 ms 64 bytes from 192.168.19.33: icmp_seq=25 ttl=64 time=0.282 ms --- 192.168.19.33 ping statistics --- 25 packets transmitted, 17 received, 32% packet loss, time 24002ms rtt min/avg/max/mdev = 0.120/0.478/4.364/0.973 ms |
#ping 192.168.19.33
64 bytes from 192.168.19.33: icmp_seq=325 ttl=64 time=0.292 ms 64 bytes from 192.168.19.33: icmp_seq=326 ttl=64 time=0.230 ms 64 bytes from 192.168.19.33: icmp_seq=327 ttl=64 time=0.286 ms 64 bytes from 192.168.19.33: icmp_seq=328 ttl=64 time=0.101 ms 64 bytes from 192.168.19.33: icmp_seq=329 ttl=64 time=0.182 ms 64 bytes from 192.168.19.33: icmp_seq=330 ttl=64 time=0.100 ms 64 bytes from 192.168.19.33: icmp_seq=331 ttl=64 time=0.280 ms 64 bytes from 192.168.19.33: icmp_seq=332 ttl=64 time=0.088 ms 64 bytes from 192.168.19.33: icmp_seq=333 ttl=64 time=0.155 ms 64 bytes from 192.168.19.33: icmp_seq=334 ttl=64 time=0.218 ms ... 64 bytes from 192.168.19.33: icmp_seq=463 ttl=64 time=0.272 ms 64 bytes from 192.168.19.33: icmp_seq=464 ttl=64 time=0.163 ms 64 bytes from 192.168.19.33: icmp_seq=465 ttl=64 time=0.231 ms 64 bytes from 192.168.19.33: icmp_seq=466 ttl=64 time=0.322 ms 64 bytes from 192.168.19.33: icmp_seq=467 ttl=64 time=0.133 ms 64 bytes from 192.168.19.33: icmp_seq=468 ttl=64 time=0.325 ms 64 bytes from 192.168.19.33: icmp_seq=469 ttl=64 time=0.262 ms --- 192.168.19.33 ping statistics --- 469 packets transmitted, 469 received, 0% packet loss, time 468309ms rtt min/avg/max/mdev = 0.088/0.228/2.109/0.115 ms |
#ping 192.168.19.33
PING 192.168.19.33 (192.168.19.33) 56(84) bytes of data. 64 bytes from 192.168.19.33: icmp_seq=1 ttl=64 time=0.366 ms 64 bytes from 192.168.19.33: icmp_seq=2 ttl=64 time=0.132 ms 64 bytes from 192.168.19.33: icmp_seq=3 ttl=64 time=0.230 ms 64 bytes from 192.168.19.33: icmp_seq=4 ttl=64 time=0.301 ms 64 bytes from 192.168.19.33: icmp_seq=5 ttl=64 time=0.352 ms 64 bytes from 192.168.19.33: icmp_seq=6 ttl=64 time=0.158 ms 64 bytes from 192.168.19.33: icmp_seq=7 ttl=64 time=0.223 ms 64 bytes from 192.168.19.33: icmp_seq=8 ttl=64 time=0.279 ms 64 bytes from 192.168.19.33: icmp_seq=9 ttl=64 time=0.342 ms ... 64 bytes from 192.168.19.33: icmp_seq=138 ttl=64 time=0.111 ms 64 bytes from 192.168.19.33: icmp_seq=139 ttl=64 time=0.172 ms 64 bytes from 192.168.19.33: icmp_seq=140 ttl=64 time=0.229 ms 64 bytes from 192.168.19.33: icmp_seq=141 ttl=64 time=0.153 ms 64 bytes from 192.168.19.33: icmp_seq=142 ttl=64 time=0.101 ms 64 bytes from 192.168.19.33: icmp_seq=143 ttl=64 time=0.169 ms 64 bytes from 192.168.19.33: icmp_seq=144 ttl=64 time=0.217 ms --- 192.168.19.33 ping statistics --- 144 packets transmitted, 144 received, 0% packet loss, time 143006ms rtt min/avg/max/mdev = 0.088/0.225/0.366/0.075 ms |
#w
19:39:55 up 3:38, 4 users, load average: 0,01, 0,13, 0,14 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT user :0 - 16:02 ?xdm? 20:25m 1.03s x-session-manager user pts/0 :0.0 16:03 0.00s 0.86s 0.27s script -f -q /home/user/.lilalo//42733 root pts/5 net.nt 16:22 9:30m 0.58s 0.10s script -f -q /root/.lilalo//1987611095 user pts/6 :0.0 17:55 18:46m 0.33s 0.27s script -f -q /home/user/.lilalo//59832 |
#tcpdump icmp
19:41:41.585411 IP linux1.local > 192.168.19.33: ICMP echo reply, id 62738, seq 4, length 64 19:41:42.585347 IP 192.168.19.33 > linux1.local: ICMP echo request, id 62738, seq 5, length 64 19:41:42.585393 IP linux1.local > 192.168.19.33: ICMP echo reply, id 62738, seq 5, length 64 19:41:43.585313 IP 192.168.19.33 > linux1.local: ICMP echo request, id 62738, seq 6, length 64 19:41:43.585345 IP linux1.local > 192.168.19.33: ICMP echo reply, id 62738, seq 6, length 64 19:41:44.585300 IP 192.168.19.33 > linux1.local: ICMP echo request, id 62738, seq 7, length 64 19:41:44.585349 IP linux1.local > 192.168.19.33: ICMP echo reply, id 62738, seq 7, length 64 19:41:45.585275 IP 192.168.19.33 > linux1.local: ICMP echo request, id 62738, seq 8, length 64 19:41:45.585319 IP linux1.local > 192.168.19.33: ICMP echo reply, id 62738, seq 8, length 64 19:41:46.585253 IP 192.168.19.33 > linux1.local: ICMP echo request, id 62738, seq 9, length 64 ... 19:47:33.105521 IP linux1.local > 192.168.19.33: ICMP echo reply, id 34579, seq 2, length 64 19:47:34.105442 IP 192.168.19.33 > linux1.local: ICMP echo request, id 34579, seq 3, length 64 19:47:34.105490 IP linux1.local > 192.168.19.33: ICMP echo reply, id 34579, seq 3, length 64 19:49:06.150439 IP 192.168.19.33 > linux1.local: ICMP echo request, id 48659, seq 1, length 64 19:49:06.150487 IP linux1.local > 192.168.19.33: ICMP echo reply, id 48659, seq 1, length 64 19:49:07.149355 IP 192.168.19.33 > linux1.local: ICMP echo request, id 48659, seq 2, length 64 19:49:07.149403 IP linux1.local > 192.168.19.33: ICMP echo reply, id 48659, seq 2, length 64 152 packets captured 152 packets received by filter 0 packets dropped by kernel |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet addr:192.168.19.62 Bcast:192.168.19.63 Mask:255.255.255.224 inet6 addr: fe80::204:76ff:fea1:f0a5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1162 errors:0 dropped:0 overruns:0 frame:0 TX packets:953 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:99322 (96.9 KiB) TX bytes:91122 (88.9 KiB) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 ... inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 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:14063 errors:0 dropped:0 overruns:0 frame:0 TX packets:14063 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:597672 (583.6 KiB) TX bytes:597672 (583.6 KiB) |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet6 addr: fe80::204:76ff:fea1:f0a5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1263 errors:0 dropped:0 overruns:0 frame:0 TX packets:980 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:105838 (103.3 KiB) TX bytes:94434 (92.2 KiB) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 inet addr:192.168.16.1 Bcast:192.168.16.255 Mask:255.255.255.0 ... inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 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:14063 errors:0 dropped:0 overruns:0 frame:0 TX packets:14063 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:597672 (583.6 KiB) TX bytes:597672 (583.6 KiB) |
#man route
|
#tcpdump icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth2, link-type EN10MB (Ethernet), capture size 96 bytes 0 packets captured 0 packets received by filter 0 packets dropped by kernel |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet addr:169.254.179.216 Bcast:169.254.255.255 Mask:255.255.0.0 inet6 addr: fe80::204:76ff:fea1:f0a5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1263 errors:0 dropped:0 overruns:0 frame:0 TX packets:1004 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:105838 (103.3 KiB) TX bytes:97922 (95.6 KiB) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 ... inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 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:14063 errors:0 dropped:0 overruns:0 frame:0 TX packets:14063 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:597672 (583.6 KiB) TX bytes:597672 (583.6 KiB) |
#/etc/init.d/networking restart
Reconfiguring network interfaces...SIOCDELRT: No such process done. |
#/etc/init.d/networking restart
Reconfiguring network interfaces...done. |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet addr:169.254.179.216 Bcast:169.254.255.255 Mask:255.255.0.0 inet6 addr: fe80::204:76ff:fea1:f0a5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1273 errors:0 dropped:0 overruns:0 frame:0 TX packets:1004 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:106438 (103.9 KiB) TX bytes:97922 (95.6 KiB) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 ... inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 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:14063 errors:0 dropped:0 overruns:0 frame:0 TX packets:14063 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:597672 (583.6 KiB) TX bytes:597672 (583.6 KiB) |
#vi /etc/network/interfaces
|
#/etc/init.d/networking restart
Reconfiguring network interfaces...done. |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet addr:192.168.19.62 Bcast:192.168.19.63 Mask:255.255.255.224 inet6 addr: fe80::204:76ff:fea1:f0a5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1305 errors:0 dropped:0 overruns:0 frame:0 TX packets:1016 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:108472 (105.9 KiB) TX bytes:99903 (97.5 KiB) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 ... inet addr:192.168.20.1 Bcast:192.168.20.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 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:14063 errors:0 dropped:0 overruns:0 frame:0 TX packets:14063 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:597672 (583.6 KiB) TX bytes:597672 (583.6 KiB) |
#cat /proc/sys/net/ipv4/ip_forward
1 |
#ifconfig eth3:0 down
|
#ifconfig eth3:1 down
SIOCSIFFLAGS: Cannot assign requested address SIOCSIFFLAGS: Cannot assign requested address |
#ifconfig
eth2 Link encap:Ethernet HWaddr 00:04:76:A1:F0:A5 inet addr:192.168.19.62 Bcast:192.168.19.63 Mask:255.255.255.224 inet6 addr: fe80::204:76ff:fea1:f0a5/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1312 errors:0 dropped:0 overruns:0 frame:0 TX packets:1027 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:109082 (106.5 KiB) TX bytes:101347 (98.9 KiB) Interrupt:185 Base address:0x2000 eth3 Link encap:Ethernet HWaddr 00:90:27:35:58:F2 ... collisions:0 txqueuelen:1000 RX bytes:14114048 (13.4 MiB) TX bytes:9162540 (8.7 MiB) 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:14063 errors:0 dropped:0 overruns:0 frame:0 TX packets:14063 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:597672 (583.6 KiB) TX bytes:597672 (583.6 KiB) |
#tcpdump icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth2, link-type EN10MB (Ethernet), capture size 96 bytes 20:00:50.262947 IP 192.168.19.33 > linux1.local: ICMP echo request, id 41995, seq 1, length 64 20:00:55.373740 IP linux1.local > 192.168.19.33: ICMP echo reply, id 41995, seq 1, length 64 20:00:51.258748 IP 192.168.19.33 > linux1.local: ICMP echo request, id 41995, seq 2, length 64 20:00:51.258791 IP linux1.local > 192.168.19.33: ICMP echo reply, id 41995, seq 2, length 64 4 packets captured 4 packets received by filter 0 packets dropped by kernel |
#tcpdump -n icmp
tcpdump: syntax error |
#tcpdump -n icmp
20:10:25.567117 IP 192.168.19.33 > 192.168.16.15: ICMP echo request, id 22285, seq 65, length 64 20:10:26.567123 IP 192.168.19.33 > 192.168.16.15: ICMP echo request, id 22285, seq 66, length 64 20:10:27.567130 IP 192.168.19.33 > 192.168.16.15: ICMP echo request, id 22285, seq 67, length 64 20:10:28.567140 IP 192.168.19.33 > 192.168.16.15: ICMP echo request, id 22285, seq 68, length 64 20:10:29.567149 IP 192.168.19.33 > 192.168.16.15: ICMP echo request, id 22285, seq 69, length 64 20:10:30.567154 IP 192.168.19.33 > 192.168.16.15: ICMP echo request, id 22285, seq 70, length 64 20:10:31.567162 IP 192.168.19.33 > 192.168.16.15: ICMP echo request, id 22285, seq 71, length 64 20:10:32.567168 IP 192.168.19.33 > 192.168.16.15: ICMP echo request, id 22285, seq 72, length 64 20:10:33.567178 IP 192.168.19.33 > 192.168.16.15: ICMP echo request, id 22285, seq 73, length 64 20:10:34.567187 IP 192.168.19.33 > 192.168.16.15: ICMP echo request, id 22285, seq 74, length 64 ... 20:11:38.567908 IP 192.168.16.15 > 192.168.19.33: ICMP echo reply, id 22285, seq 138, length 64 20:11:39.567686 IP 192.168.19.33 > 192.168.16.15: ICMP echo request, id 22285, seq 139, length 64 20:11:39.567915 IP 192.168.16.15 > 192.168.19.33: ICMP echo reply, id 22285, seq 139, length 64 20:11:40.567685 IP 192.168.19.33 > 192.168.16.15: ICMP echo request, id 22285, seq 140, length 64 20:11:40.567908 IP 192.168.16.15 > 192.168.19.33: ICMP echo reply, id 22285, seq 140, length 64 20:11:41.567698 IP 192.168.19.33 > 192.168.16.15: ICMP echo request, id 22285, seq 141, length 64 20:11:41.567916 IP 192.168.16.15 > 192.168.19.33: ICMP echo reply, id 22285, seq 141, length 64 223 packets captured 223 packets received by filter 0 packets dropped by kernel |
#tcpdump -n icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth2, link-type EN10MB (Ethernet), capture size 96 bytes 20:14:41.425314 IP 192.168.19.65 > 192.168.16.1: ICMP echo request, id 22286, seq 1, length 64 20:14:42.427327 IP 192.168.19.65 > 192.168.16.1: ICMP echo request, id 22286, seq 2, length 64 20:14:43.427324 IP 192.168.19.65 > 192.168.16.1: ICMP echo request, id 22286, seq 3, length 64 20:14:44.427317 IP 192.168.19.65 > 192.168.16.1: ICMP echo request, id 22286, seq 4, length 64 20:14:45.427311 IP 192.168.19.65 > 192.168.16.1: ICMP echo request, id 22286, seq 5, length 64 20:14:46.427310 IP 192.168.19.65 > 192.168.16.1: ICMP echo request, id 22286, seq 6, length 64 20:14:47.427306 IP 192.168.19.65 > 192.168.16.1: ICMP echo request, id 22286, seq 7, length 64 20:14:48.427308 IP 192.168.19.65 > 192.168.16.1: ICMP echo request, id 22286, seq 8, length 64 20:14:49.427301 IP 192.168.19.65 > 192.168.16.1: ICMP echo request, id 22286, seq 9, length 64 20:14:50.427300 IP 192.168.19.65 > 192.168.16.1: ICMP echo request, id 22286, seq 10, length 64 20:14:51.427296 IP 192.168.19.65 > 192.168.16.1: ICMP echo request, id 22286, seq 11, length 64 20:14:52.427292 IP 192.168.19.65 > 192.168.16.1: ICMP echo request, id 22286, seq 12, length 64 20:14:53.427290 IP 192.168.19.65 > 192.168.16.1: ICMP echo request, id 22286, seq 13, length 64 20:14:54.427285 IP 192.168.19.65 > 192.168.16.1: ICMP echo request, id 22286, seq 14, length 64 20:14:55.427282 IP 192.168.19.65 > 192.168.16.1: ICMP echo request, id 22286, seq 15, length 64 15 packets captured 15 packets received by filter 0 packets dropped by kernel |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.19.32 0.0.0.0 255.255.255.224 U 0 0 0 eth2 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 0.0.0.0 192.168.16.15 0.0.0.0 UG 0 0 0 eth3 |
#route add -net 192.168.19.64 netmask 255.255.255.224 gw 192.168.19.33
|
#tcpdump -n icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on eth2, link-type EN10MB (Ethernet), capture size 96 bytes 20:16:50.470989 IP 192.168.19.65 > 192.168.16.15: ICMP echo request, id 23822, seq 47, length 64 20:16:50.471166 IP 192.168.16.15 > 192.168.19.65: ICMP echo reply, id 23822, seq 47, length 64 20:16:51.474924 IP 192.168.19.65 > 192.168.16.15: ICMP echo request, id 23822, seq 48, length 64 20:16:51.475152 IP 192.168.16.15 > 192.168.19.65: ICMP echo reply, id 23822, seq 48, length 64 20:16:52.478931 IP 192.168.19.65 > 192.168.16.15: ICMP echo request, id 23822, seq 49, length 64 20:16:52.479149 IP 192.168.16.15 > 192.168.19.65: ICMP echo reply, id 23822, seq 49, length 64 20:16:53.482926 IP 192.168.19.65 > 192.168.16.15: ICMP echo request, id 23822, seq 50, length 64 20:16:53.483144 IP 192.168.16.15 > 192.168.19.65: ICMP echo reply, id 23822, seq 50, length 64 ... 20:18:09.510625 IP 192.168.19.97 > 192.168.16.1: ICMP echo request, id 21770, seq 59, length 64 20:18:10.510633 IP 192.168.19.97 > 192.168.16.1: ICMP echo request, id 21770, seq 60, length 64 20:18:11.510664 IP 192.168.19.97 > 192.168.16.1: ICMP echo request, id 21770, seq 61, length 64 20:18:12.510702 IP 192.168.19.97 > 192.168.16.1: ICMP echo request, id 21770, seq 62, length 64 20:18:13.510737 IP 192.168.19.97 > 192.168.16.1: ICMP echo request, id 21770, seq 63, length 64 20:18:14.510747 IP 192.168.19.97 > 192.168.16.1: ICMP echo request, id 21770, seq 64, length 64 20:18:15.510783 IP 192.168.19.97 > 192.168.16.1: ICMP echo request, id 21770, seq 65, length 64 95 packets captured 95 packets received by filter 0 packets dropped by kernel |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.19.32 0.0.0.0 255.255.255.224 U 0 0 0 eth2 192.168.19.64 192.168.19.33 255.255.255.224 UG 0 0 0 eth2 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3 0.0.0.0 192.168.16.15 0.0.0.0 UG 0 0 0 eth3 |
#route add -net 192.168.19.96 netmask 255.255.255.224 gw 192.168.19.33
|
#tcpdump -n icmp
20:22:37.351863 IP 192.168.19.65 > 192.168.16.15: ICMP echo request, id 27662, seq 1, length 64 20:22:37.352164 IP 192.168.16.15 > 192.168.19.65: ICMP echo reply, id 27662, seq 1, length 64 20:22:38.254229 IP 192.168.19.97 > 194.67.57.126: ICMP echo request, id 46090, seq 6, length 64 20:22:38.353860 IP 192.168.19.65 > 192.168.16.15: ICMP echo request, id 27662, seq 2, length 64 20:22:38.354076 IP 192.168.16.15 > 192.168.19.65: ICMP echo reply, id 27662, seq 2, length 64 20:22:39.254274 IP 192.168.19.97 > 194.67.57.126: ICMP echo request, id 46090, seq 7, length 64 20:22:39.353859 IP 192.168.19.65 > 192.168.16.15: ICMP echo request, id 27662, seq 3, length 64 20:22:39.354080 IP 192.168.16.15 > 192.168.19.65: ICMP echo reply, id 27662, seq 3, length 64 20:22:40.254292 IP 192.168.19.97 > 194.67.57.126: ICMP echo request, id 46090, seq 8, length 64 20:22:41.254334 IP 192.168.19.97 > 194.67.57.126: ICMP echo request, id 46090, seq 9, length 64 ... 20:23:47.901993 IP 87.250.251.8 > 192.168.19.33: ICMP echo reply, id 47885, seq 13, length 64 20:23:48.765253 IP 192.168.19.33 > 87.250.251.8: ICMP echo request, id 47885, seq 14, length 64 20:23:48.930199 IP 87.250.251.8 > 192.168.19.33: ICMP echo reply, id 47885, seq 14, length 64 20:23:49.765243 IP 192.168.19.33 > 87.250.251.8: ICMP echo request, id 47885, seq 15, length 64 20:23:49.903647 IP 87.250.251.8 > 192.168.19.33: ICMP echo reply, id 47885, seq 15, length 64 20:23:50.765248 IP 192.168.19.33 > 87.250.251.8: ICMP echo request, id 47885, seq 16, length 64 20:23:50.907423 IP 87.250.251.8 > 192.168.19.33: ICMP echo reply, id 47885, seq 16, length 64 482 packets captured 482 packets received by filter 0 packets dropped by kernel |
#screen
|
#cd /etc/
Display all 204 possibilities? (y or n) |
#cd /etc/i
iceweasel/ identd.conf identd.key idmapd.conf inetd.conf init.d/ initramfs-tools/ inittab inputrc iproute2/ issue issue.net |
#apt-get xinetd
E: Неверная операция xinetd |
#apt-get install xinted
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово E: Не могу найти пакет xintedxinetd |
#apt-get search xin
E: Неверная операция search |
#apt-cache search xinet
rlinetd - gruesomely over-featured inetd replacement xinetd - replacement for inetd with many enhancements |
#apt-get install xinetd
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово НОВЫЕ пакеты, которые будут установлены: xinetd обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено. Необходимо скачать 137kБ архивов. После распаковки объем занятого дискового пространства возрастёт на 369kB. Получено:1 http://debian.org.ua etch/main xinetd 1:2.3.14-1 [137kB] Получено 137kB за 0s (759kB/c) Выбор ранее не выбранного пакета xinetd. (Чтение базы данных... на данный момент установлено 83656 файлов и каталогов.) Распаковывается пакет xinetd (из файла .../xinetd_1%3a2.3.14-1_i386.deb)... Настраивается пакет xinetd (2.3.14-1) ... Stopping internet superserver: xinetd. Добавляется `diversion of /etc/init.d/inetd to /etc/init.d/inetd.real by xinetd' Starting internet superserver: xinetd. |
#ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 1944 648 ? Ss 09:20 0:01 init [2] root 2 0.0 0.0 0 0 ? S 09:20 0:00 [migration/0] root 3 0.0 0.0 0 0 ? SN 09:20 0:00 [ksoftirqd/0] root 4 0.0 0.0 0 0 ? S< 09:20 0:01 [events/0] root 5 0.0 0.0 0 0 ? S< 09:20 0:00 [khelper] root 6 0.0 0.0 0 0 ? S< 09:20 0:00 [kthread] root 9 0.0 0.0 0 0 ? S< 09:20 0:00 [kblockd/0] root 10 0.0 0.0 0 0 ? S< 09:20 0:00 [kacpid] root 93 0.0 0.0 0 0 ? S< 09:20 0:00 [kseriod] ... user 6272 0.0 0.5 12432 5624 ? S 10:15 0:00 xterm -class UXTerm -title uxterm -u8 user 6276 0.0 0.0 3628 520 pts/7 Ss+ 10:15 0:00 script -f -q /home/user/.lilalo//32499259672080125010-1180520337.script user 6323 0.0 0.0 3632 412 pts/7 S+ 10:15 0:00 script -f -q /home/user/.lilalo//32499259672080125010-1180520337.script user 6324 0.0 0.2 6268 2920 pts/8 Ss 10:15 0:00 bash -i root 8342 0.0 0.1 4576 1092 pts/8 S+ 11:26 0:00 su - root 8345 0.0 0.0 3624 516 pts/8 S+ 11:26 0:00 script -f -q /root/.lilalo//19223282702877617926-1180524585.script root 8382 0.0 0.0 3628 408 pts/8 S+ 11:26 0:00 script -f -q /root/.lilalo//19223282702877617926-1180524585.script root 8383 0.0 0.1 4936 1860 pts/9 Ss 11:26 0:00 bash -i root 8704 0.0 0.0 2268 808 ? Ss 11:33 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive root 8716 0.0 0.0 4296 1004 pts/9 R+ 11:33 0:00 ps aux |
#ps aux | grep xinetd
root 8704 0.0 0.0 2268 808 ? Ss 11:33 0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive root 8726 0.0 0.0 3740 764 pts/9 R+ 11:34 0:00 grep xinetd |
#vim /etc/xinetd.conf
|
#cd /etc/xinetd.d/
|
#ls
chargen daytime discard echo time |
#ipcalc
Usage: ipcalc [options] <ADDRESS>[[/]<NETMASK>] [NETMASK] ipcalc takes an IP address and netmask and calculates the resulting broadcast, network, Cisco wildcard mask, and host range. By giving a second netmask, you can design sub- and supernetworks. It is also intended to be a teaching tool and presents the results as easy-to-understand binary values. -n --nocolor Don't display ANSI color codes. -b --nobinary Suppress the bitwise output. -c --class Just print bit-count-mask of given address. -h --html Display results as HTML (not finished in this version). -v --version Print Version. ... ipcalc 192.168.0.1/24 ipcalc 192.168.0.1/255.255.128.0 ipcalc 192.168.0.1 255.255.128.0 255.255.192.0 ipcalc 192.168.0.1 0.0.63.255 ipcalc <ADDRESS1> - <ADDRESS2> deaggregate address range ipcalc <ADDRESS>/<NETMASK> --s a b c split network to subnets where a b c fits in. ! New HTML support not yet finished. ipcalc 0.41 |
1
Время первой команды журнала | 18:12:22 2007- 5-29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:34:48 2007- 5-30 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 18.81 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.99 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.79 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 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