/l3/users/18-01-2010/nt-fbsdnet/fbsd7.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 |
|
#ps aux | grep l3
root 6192 11,8 1,6 9404 8128 ?? Ss 16:07 0:06,11 l3-agent (perl5.8.8) root 6287 0,0 0,2 1608 1064 p6 S+ 16:07 0:00,00 grep l3 |
#ps aux | head
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 10 84,5 0,0 0 8 ?? RL 14:12 90:22,39 [idle: cpu0] root 6192 7,9 1,6 9404 8128 ?? Ss 16:07 0:06,11 l3-agent (perl5.8.8) root 16 0,0 0,0 0 8 ?? WL 14:12 0:03,96 [swi5: +] root 0 0,0 0,0 0 0 ?? WLs 14:12 0:00,00 [swapper] root 1 0,0 0,1 768 388 ?? ILs 14:12 0:00,01 /sbin/init -- root 2 0,0 0,0 0 8 ?? DL 14:12 0:00,51 [g_event] root 3 0,0 0,0 0 8 ?? DL 14:12 0:01,63 [g_up] root 4 0,0 0,0 0 8 ?? DL 14:12 0:01,81 [g_down] root 5 0,0 0,0 0 8 ?? DL 14:12 0:00,00 [thread taskq] |
#make search name=ipcalc
Port: ipcalc-0.41 Path: /usr/ports/net-mgmt/ipcalc Info: IP Calculator Maint: ceri@FreeBSD.org B-deps: perl-5.8.8_1 R-deps: perl-5.8.8_1 WWW: http://jodies.de/ipcalc Port: sipcalc-1.1.4 Path: /usr/ports/net-mgmt/sipcalc Info: Sipcalc is an IP subnet calculator with IPv6 support ... R-deps: WWW: http://www.routemeister.net/projects/sipcalc/ Port: net/ipcalc Moved: net-mgmt/ipcalc Date: 2004-02-22 Reason: new category Port: net/sipcalc Moved: net-mgmt/sipcalc Date: 2004-02-22 Reason: new category |
#cd net-mgmt/ipca
![]() ipcad/ ipcalc/ |
#cd net-mgmt/ipcalc/
|
#make install
===> Vulnerability check disabled, database not found => ipcalc-0.41.tar.gz doesn't seem to exist in /usr/ports/distfiles/. => Attempting to fetch from http://jodies.de/ipcalc-archive/. ipcalc-0.41.tar.gz 100% of 21 kB 106 kBps ===> Extracting for ipcalc-0.41 => MD5 Checksum OK for ipcalc-0.41.tar.gz. => SHA256 Checksum OK for ipcalc-0.41.tar.gz. ===> ipcalc-0.41 depends on file: /usr/local/bin/perl5.8.8 - found ===> Patching for ipcalc-0.41 ===> ipcalc-0.41 depends on file: /usr/local/bin/perl5.8.8 - found ===> ipcalc-0.41 depends on file: /usr/local/bin/perl5.8.8 - found ===> Configuring for ipcalc-0.41 ===> Installing for ipcalc-0.41 ===> ipcalc-0.41 depends on file: /usr/local/bin/perl5.8.8 - found ===> Generating temporary packing list ===> Checking if net-mgmt/ipcalc already installed install -o root -g wheel -m 555 /usr/ports/net-mgmt/ipcalc/work/ipcalc-0.41/ipcalc /usr/local/bin/ipcalc ===> Registering installation for ipcalc-0.41 |
#ipcalc 192.168.65.0/24 /27
Address: 192.168.65.0 11000000.10101000.01000001. 00000000 Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000 Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111 => Network: 192.168.65.0/24 11000000.10101000.01000001. 00000000 HostMin: 192.168.65.1 11000000.10101000.01000001. 00000001 HostMax: 192.168.65.254 11000000.10101000.01000001. 11111110 Broadcast: 192.168.65.255 11000000.10101000.01000001. 11111111 Hosts/Net: 254 Class C, Private Internet Subnets after transition from /24 to /27 ... Broadcast: 192.168.65.223 11000000.10101000.01000001.110 11111 Hosts/Net: 30 Class C, Private Internet 8. Network: 192.168.65.224/27 11000000.10101000.01000001.111 00000 HostMin: 192.168.65.225 11000000.10101000.01000001.111 00001 HostMax: 192.168.65.254 11000000.10101000.01000001.111 11110 Broadcast: 192.168.65.255 11000000.10101000.01000001.111 11111 Hosts/Net: 30 Class C, Private Internet Subnets: 8 Hosts: 240 |
#ipcalc 192.168.65.0/24 /27 | less
|
#ipcalc 192.168.65.0/24 8
Address: 192.168.65.0 11000000.10101000.01000001. 00000000 Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000 Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111 => Network: 192.168.65.0/24 11000000.10101000.01000001. 00000000 HostMin: 192.168.65.1 11000000.10101000.01000001. 00000001 HostMax: 192.168.65.254 11000000.10101000.01000001. 11111110 Broadcast: 192.168.65.255 11000000.10101000.01000001. 11111111 Hosts/Net: 254 Class C, Private Internet Supernet Netmask: 255.0.0.0 = 8 11111111. 00000000.00000000.00000000 Wildcard: 0.255.255.255 00000000. 11111111.11111111.11111111 Network: 192.0.0.0/8 11000000. 00000000.00000000.00000000 HostMin: 192.0.0.1 11000000. 00000000.00000000.00000001 HostMax: 192.255.255.254 11000000. 11111111.11111111.11111110 Broadcast: 192.255.255.255 11000000. 11111111.11111111.11111111 Hosts/Net: 16777214 Class C, In Part Private Internet |
#ipcalc 192.168.65.0/24 27
Address: 192.168.65.0 11000000.10101000.01000001. 00000000 Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000 Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111 => Network: 192.168.65.0/24 11000000.10101000.01000001. 00000000 HostMin: 192.168.65.1 11000000.10101000.01000001. 00000001 HostMax: 192.168.65.254 11000000.10101000.01000001. 11111110 Broadcast: 192.168.65.255 11000000.10101000.01000001. 11111111 Hosts/Net: 254 Class C, Private Internet Subnets after transition from /24 to /27 ... Broadcast: 192.168.65.223 11000000.10101000.01000001.110 11111 Hosts/Net: 30 Class C, Private Internet 8. Network: 192.168.65.224/27 11000000.10101000.01000001.111 00000 HostMin: 192.168.65.225 11000000.10101000.01000001.111 00001 HostMax: 192.168.65.254 11000000.10101000.01000001.111 11110 Broadcast: 192.168.65.255 11000000.10101000.01000001.111 11111 Hosts/Net: 30 Class C, Private Internet Subnets: 8 Hosts: 240 |
#ipcalc 192.168.65.0/24 27 | less
|
#ipcalc 192.168.65.0/24 27
![]() |
#man ipcalc
![]() |
#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 |
#ipcalc -s 8 192.168.65.0/24
Address: 192.168.65.0 11000000.10101000.01000001. 00000000 Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000 Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111 => Network: 192.168.65.0/24 11000000.10101000.01000001. 00000000 HostMin: 192.168.65.1 11000000.10101000.01000001. 00000001 HostMax: 192.168.65.254 11000000.10101000.01000001. 11111110 Broadcast: 192.168.65.255 11000000.10101000.01000001. 11111111 Hosts/Net: 254 Class C, Private Internet 1. Requested size: 8 hosts ... HostMax: 192.168.65.14 11000000.10101000.01000001.0000 1110 Broadcast: 192.168.65.15 11000000.10101000.01000001.0000 1111 Hosts/Net: 14 Class C, Private Internet Needed size: 16 addresses. Used network: 192.168.65.0/28 Unused: 192.168.65.16/28 192.168.65.32/27 192.168.65.64/26 192.168.65.128/25 |
#ipcalc -s 8 192.168.65.0/24
Address: 192.168.65.0 11000000.10101000.01000001. 00000000 Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000 Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111 => Network: 192.168.65.0/24 11000000.10101000.01000001. 00000000 HostMin: 192.168.65.1 11000000.10101000.01000001. 00000001 HostMax: 192.168.65.254 11000000.10101000.01000001. 11111110 Broadcast: 192.168.65.255 11000000.10101000.01000001. 11111111 Hosts/Net: 254 Class C, Private Internet 1. Requested size: 8 hosts ... HostMax: 192.168.65.14 11000000.10101000.01000001.0000 1110 Broadcast: 192.168.65.15 11000000.10101000.01000001.0000 1111 Hosts/Net: 14 Class C, Private Internet Needed size: 16 addresses. Used network: 192.168.65.0/28 Unused: 192.168.65.16/28 192.168.65.32/27 192.168.65.64/26 192.168.65.128/25 |
#ipcalc -s 8 192.168.65.0/24 -c
|
#ipcalc -s 8 192.168.65.0/24
Address: 192.168.65.0 11000000.10101000.01000001. 00000000 Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000 Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111 => Network: 192.168.65.0/24 11000000.10101000.01000001. 00000000 HostMin: 192.168.65.1 11000000.10101000.01000001. 00000001 HostMax: 192.168.65.254 11000000.10101000.01000001. 11111110 Broadcast: 192.168.65.255 11000000.10101000.01000001. 11111111 Hosts/Net: 254 Class C, Private Internet 1. Requested size: 8 hosts ... HostMax: 192.168.65.14 11000000.10101000.01000001.0000 1110 Broadcast: 192.168.65.15 11000000.10101000.01000001.0000 1111 Hosts/Net: 14 Class C, Private Internet Needed size: 16 addresses. Used network: 192.168.65.0/28 Unused: 192.168.65.16/28 192.168.65.32/27 192.168.65.64/26 192.168.65.128/25 |
#ipcalc 192.168.65.0/24 27
Address: 192.168.65.0 11000000.10101000.01000001. 00000000 Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000 Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111 => Network: 192.168.65.0/24 11000000.10101000.01000001. 00000000 HostMin: 192.168.65.1 11000000.10101000.01000001. 00000001 HostMax: 192.168.65.254 11000000.10101000.01000001. 11111110 Broadcast: 192.168.65.255 11000000.10101000.01000001. 11111111 Hosts/Net: 254 Class C, Private Internet Subnets after transition from /24 to /27 ... Broadcast: 192.168.65.223 11000000.10101000.01000001.110 11111 Hosts/Net: 30 Class C, Private Internet 8. Network: 192.168.65.224/27 11000000.10101000.01000001.111 00000 HostMin: 192.168.65.225 11000000.10101000.01000001.111 00001 HostMax: 192.168.65.254 11000000.10101000.01000001.111 11110 Broadcast: 192.168.65.255 11000000.10101000.01000001.111 11111 Hosts/Net: 30 Class C, Private Internet Subnets: 8 Hosts: 240 |
#ipcalc 192.168.65.0/24 27 | less
|
#man ifconfig
|
#PAGER=less man ifconfig
If the network interface driver is not present in the kernel then ifconfig will attempt to load it. The -n flag disables this behavior. Only the super-user may modify the configuration of a network interface. NOTES The media selection system is relatively new and only some drivers sup- port it (or have need for it). EXAMPLES Assign the IPv4 address 192.0.2.10, with a network mask of 255.255.255.0, to the interface fxp0: # ifconfig fxp0 inet 192.0.2.10 netmask 255.255.255.0 ... The ifconfig utility appeared in 4.2BSD. BUGS Basic IPv6 node operation requires a link-local address on each interface configured for IPv6. Normally, such an address is automatically config- ured by the kernel on each interface added to the system; this behaviour may be disabled by setting the sysctl MIB variable net.inet6.ip6.auto_linklocal to 0. If you delete such an address using ifconfig, the kernel may act very oddly. Do this at your own risk. FreeBSD 6.2 May 16, 2007 FreeBSD 6.2 |
#cd
|
#ssh 192.168.16.254
Connection to 192.168.16.254 closed. |
#ssh 192.168.16.254
Connection to 192.168.16.254 closed. õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ssh 192.168.16.24
The authenticity of host '192.168.16.24 (192.168.16.24)' can't be established. DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.24' (DSA) to the list of known hosts. Password: Last login: Mon Jan 18 16:54:28 2010 from fbsd23.net.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ping xgu.ru
![]() PING xgu.ru (212.26.146.51): 56 data bytes ^C --- xgu.ru ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss |
#traceroute -n xgu.ru
![]() traceroute to xgu.ru (212.26.146.51), 64 hops max, 40 byte packets 1 192.168.65.30 1.026 ms 1.596 ms 1.091 ms 2 * *^C |
#ping xgu.ru
![]() ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ... ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ^C --- xgu.ru ping statistics --- 720 packets transmitted, 0 packets received, 100% packet loss õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ssh 192.168.16.23
The authenticity of host '192.168.16.23 (192.168.16.23)' can't be established. DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.23' (DSA) to the list of known hosts. Password: Last login: Mon Jan 18 17:17:25 2010 from 192.168.65.1 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#tcpdump -i re1 -n icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on re1, link-type EN10MB (Ethernet), capture size 96 bytes 17:38:45.894660 IP 192.168.65.1 > 192.168.65.65: ICMP echo request, id 6666, seq 563, length 64 17:38:47.519594 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 39, length 64 17:38:47.695941 IP 192.168.65.1 > 192.168.65.65: ICMP echo request, id 6666, seq 564, length 64 17:38:49.320903 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 40, length 64 17:38:49.497068 IP 192.168.65.1 > 192.168.65.65: ICMP echo request, id 6666, seq 565, length 64 17:38:51.122237 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 41, length 64 17:38:51.298390 IP 192.168.65.1 > 192.168.65.65: ICMP echo request, id 6666, seq 566, length 64 17:38:52.923521 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 42, length 64 ... 17:39:21.744851 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 58, length 64 17:39:21.921161 IP 192.168.65.1 > 192.168.65.65: ICMP echo request, id 6666, seq 583, length 64 17:39:23.546356 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 59, length 64 17:39:23.722698 IP 192.168.65.1 > 192.168.65.65: ICMP echo request, id 6666, seq 584, length 64 17:39:25.347591 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 60, length 64 17:39:25.523910 IP 192.168.65.1 > 192.168.65.65: ICMP echo request, id 6666, seq 585, length 64 ^C 45 packets captured 54 packets received by filter 0 packets dropped by kernel |
#tcpdump -i re2 -n icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on re2, link-type EN10MB (Ethernet), capture size 96 bytes 17:39:39.758780 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 68, length 64 17:39:39.935148 IP 192.168.65.1 > 192.168.65.65: ICMP echo request, id 6666, seq 593, length 64 17:39:41.560147 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 69, length 64 17:39:41.736380 IP 192.168.65.1 > 192.168.65.65: ICMP echo request, id 6666, seq 594, length 64 17:39:43.361484 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 70, length 64 17:39:43.537700 IP 192.168.65.1 > 192.168.65.65: ICMP echo request, id 6666, seq 595, length 64 17:39:45.162652 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 71, length 64 17:39:45.338988 IP 192.168.65.1 > 192.168.65.65: ICMP echo request, id 6666, seq 596, length 64 17:39:46.964179 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 72, length 64 17:39:47.140404 IP 192.168.65.1 > 192.168.65.65: ICMP echo request, id 6666, seq 597, length 64 ^C 10 packets captured 13 packets received by filter 0 packets dropped by kernel |
#exit
exit Connection to 192.168.16.23 closed. |
#ssh 192.168.16.22
The authenticity of host '192.168.16.22 (192.168.16.22)' can't be established. DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.22' (DSA) to the list of known hosts. Password: Last login: Mon Jan 18 17:19:51 2010 from 192.168.16.24 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#tcpdump -i re1 -n icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on re1, link-type EN10MB (Ethernet), capture size 96 bytes 17:40:04.998899 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 82, length 64 17:40:05.175253 IP 192.168.65.1 > 192.168.65.65: ICMP echo request, id 6666, seq 607, length 64 17:40:06.800115 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 83, length 64 17:40:06.976280 IP 192.168.65.1 > 192.168.65.65: ICMP echo request, id 6666, seq 608, length 64 ^C 4 packets captured 9 packets received by filter 0 packets dropped by kernel |
#tcpdump -i re2 -n icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on re2, link-type EN10MB (Ethernet), capture size 96 bytes 17:40:23.011113 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 92, length 64 17:40:23.187456 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 617, length 64 17:40:24.812436 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 93, length 64 17:40:24.988781 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 618, length 64 17:40:26.614012 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 94, length 64 17:40:26.790146 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 619, length 64 17:40:28.415312 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 95, length 64 17:40:28.591675 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 620, length 64 ... 17:42:07.337884 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 675, length 64 17:42:08.822627 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 151, length 64 17:42:09.139496 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 676, length 64 17:42:10.624208 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 152, length 64 17:42:10.940909 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 677, length 64 ^C 122 packets captured 226 packets received by filter 0 packets dropped by kernel õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#exit
exit Connection to 192.168.16.22 closed. õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ssh 192.168.16.21
The authenticity of host '192.168.16.21 (192.168.16.21)' can't be established. DSA key fingerprint is 13:3f:fb:2a:53:62:8e:f8:0e:c7:3a:c9:10:99:b6:25. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.16.21' (DSA) to the list of known hosts. Password: Last login: Mon Jan 18 16:34:27 2010 Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#tcpdump -i re1 -n icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on re1, link-type EN10MB (Ethernet), capture size 96 bytes 17:42:30.961997 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 163, length 64 17:42:31.278677 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 688, length 64 17:42:32.763690 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 164, length 64 17:42:33.080673 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 689, length 64 17:42:34.566054 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 165, length 64 17:42:34.882929 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 690, length 64 17:42:36.368367 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 166, length 64 17:42:36.685362 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 691, length 64 ... 17:43:19.622393 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 190, length 64 17:43:19.938879 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 715, length 64 17:43:21.424072 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 191, length 64 17:43:21.748748 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 716, length 64 17:43:23.226375 IP 192.168.65.1 > 212.26.146.51: ICMP echo request, id 50186, seq 192, length 64 17:43:23.543180 IP 192.168.65.65 > 192.168.65.1: ICMP echo reply, id 6666, seq 717, length 64 ^C 60 packets captured 108 packets received by filter 0 packets dropped by kernel |
#exit
exit Connection to 192.168.16.21 closed. |
#ssh 192.168.16.254
Connection to 192.168.16.254 closed. |
#ssh 192.168.16.24
Password: Last login: Mon Jan 18 17:36:25 2010 from fbsd27.net.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ifconfig re1
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 0.0.0.0 netmask 0xff000000 broadcast 0.255.255.255 ether 00:16:4e:00:01:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig re2
re2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.65.1 netmask 0xffffffe0 broadcast 192.168.65.31 ether 00:16:4e:00:02:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig re2 192.168.65.1 mask 255.255.255.224
![]() ifconfig: mask: bad value |
#ifconfig re2 192.168.65.1 netmask 255.255.255.224
|
#ifconfig re2
re2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.65.1 netmask 0xffffffe0 broadcast 192.168.65.31 ether 00:16:4e:00:02:04 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#exit
exit Connection to 192.168.16.24 closed. |
#ssh 192.168.16.22
Password: Last login: Mon Jan 18 17:39:57 2010 from fbsd27.net.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ifconfig re2
re2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.65.65 netmask 0xffffffe0 broadcast 192.168.65.95 ether 00:16:4e:00:02:02 media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#route add -net 192.168.65.0 netmask 255.255.255.224 192.168.65.33
![]() route: bad address: netmask |
#route add -net 192.168.65.0 nmask 255.255.255.224 192.168.65.33
![]() route: bad address: nmask |
#route add -net 192.168.65.0 mask 255.255.255.224 192.168.65.33
![]() route: bad address: mask |
#ping 192.168.65.33
PING 192.168.65.33 (192.168.65.33): 56 data bytes 64 bytes from 192.168.65.33: icmp_seq=0 ttl=64 time=1.033 ms ^C --- 192.168.65.33 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.033/1.033/1.033/0.000 ms |
#ping 192.168.65.30
![]() PING 192.168.65.30 (192.168.65.30): 56 data bytes ^C --- 192.168.65.30 ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.65.33
PING 192.168.65.33 (192.168.65.33): 56 data bytes 64 bytes from 192.168.65.33: icmp_seq=0 ttl=64 time=0.786 ms 64 bytes from 192.168.65.33: icmp_seq=1 ttl=64 time=0.825 ms ^C --- 192.168.65.33 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.786/0.805/0.825/0.019 ms |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.65.94 UGS 0 2061 re2 127.0.0.1 127.0.0.1 UH 0 1272 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.21 00:16:4e:00:00:01 UHLW 1 164 re0 906 192.168.16.23 00:16:4e:00:00:03 UHLW 1 164 re0 906 192.168.16.27 00:16:4e:00:00:07 UHLW 1 458 re0 749 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 821 re0 1107 192.168.65.32/27 link#2 UC 0 0 re1 192.168.65.33 00:16:4e:00:02:03 UHLW 1 131 re1 261 192.168.65.64/27 link#3 UC 0 0 re2 192.168.65.94 00:16:4e:00:01:01 UHLW 2 0 re2 153 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#5 UHL lo0 ff01:5::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#route add -net 192.168.65.0 255.255.255.224 192.168.65.33
add net 192.168.65.0: gateway 255.255.255.224 õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ping 192.168.65.30
![]() PING 192.168.65.30 (192.168.65.30): 56 data bytes ping: sendto: Invalid argument ping: sendto: Invalid argument ping: sendto: Invalid argument ^C --- 192.168.65.30 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.65.94 UGS 1 2173 re2 127.0.0.1 127.0.0.1 UH 0 1296 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.21 00:16:4e:00:00:01 UHLW 1 232 re0 785 192.168.16.23 00:16:4e:00:00:03 UHLW 1 231 re0 785 192.168.16.27 00:16:4e:00:00:07 UHLW 1 484 re0 628 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 837 re0 1140 ... 192.168.65.33 00:16:4e:00:02:03 UHLW 1 131 re1 140 192.168.65.64/27 link#3 UC 0 0 re2 192.168.65.94 00:16:4e:00:01:01 UHLW 2 0 re2 32 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#5 UHL lo0 ff01:5::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#route add -net 192.168.65.0/27 192.168.65.33
add net 192.168.65.0: gateway 192.168.65.33 |
#ping 192.168.65.30
PING 192.168.65.30 (192.168.65.30): 56 data bytes 64 bytes from 192.168.65.30: icmp_seq=0 ttl=64 time=0.513 ms 64 bytes from 192.168.65.30: icmp_seq=1 ttl=64 time=0.510 ms ^C --- 192.168.65.30 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.510/0.512/0.513/0.001 ms |
#ping 192.168.65.1
![]() PING 192.168.65.1 (192.168.65.1): 56 data bytes ^C --- 192.168.65.1 ping statistics --- 8 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.65.1
![]() PING 192.168.65.1 (192.168.65.1): 56 data bytes ^C --- 192.168.65.1 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#exit
![]() exit Connection to 192.168.16.22 closed. õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ssh 192.168.16.21
![]() Password: |
#ssh 192.168.16.4
![]() ^C |
#ssh 192.168.16.24
Password: Last login: Mon Jan 18 17:44:36 2010 from fbsd27.net.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ping 192.168.65.30
PING 192.168.65.30 (192.168.65.30): 56 data bytes 64 bytes from 192.168.65.30: icmp_seq=0 ttl=64 time=1.261 ms ^C --- 192.168.65.30 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.261/1.261/1.261/0.000 ms |
#ping 192.168.65.33
![]() PING 192.168.65.33 (192.168.65.33): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host ^C --- 192.168.65.33 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 0 link#2 UC 0 0 re1 127.0.0.1 127.0.0.1 UH 0 1272 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.23 00:16:4e:00:00:03 UHLW 1 289 re0 682 192.168.16.27 00:16:4e:00:00:07 UHLW 2 587 re0 1170 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 662 re0 1189 192.168.65/27 link#3 UC 0 0 re2 192.168.65.30 00:16:4e:00:01:03 UHLW 1 1 re2 1188 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#5 UHL lo0 ff01:5::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#route add default 192.168.65.30
add net default: gateway 192.168.65.30 |
#ping 192.168.65.33
PING 192.168.65.33 (192.168.65.33): 56 data bytes 64 bytes from 192.168.65.33: icmp_seq=0 ttl=64 time=0.776 ms ^C --- 192.168.65.33 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.776/0.776/0.776/0.000 ms |
#exit
exit Connection to 192.168.16.24 closed. |
#ssh 192.168.16.22
Password: Last login: Mon Jan 18 17:45:31 2010 from fbsd27.net.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#ping 192.168.65.30
PING 192.168.65.30 (192.168.65.30): 56 data bytes 64 bytes from 192.168.65.30: icmp_seq=0 ttl=64 time=0.611 ms ^C --- 192.168.65.30 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.611/0.611/0.611/0.000 ms |
#ping 192.168.65.33
PING 192.168.65.33 (192.168.65.33): 56 data bytes 64 bytes from 192.168.65.33: icmp_seq=0 ttl=64 time=0.559 ms ^C --- 192.168.65.33 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.559/0.559/0.559/0.000 ms |
#ping 192.168.65.30
PING 192.168.65.30 (192.168.65.30): 56 data bytes 64 bytes from 192.168.65.30: icmp_seq=0 ttl=64 time=1.025 ms ^C --- 192.168.65.30 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.025/1.025/1.025/0.000 ms |
#ping 192.168.65.1
PING 192.168.65.1 (192.168.65.1): 56 data bytes 64 bytes from 192.168.65.1: icmp_seq=0 ttl=63 time=1.213 ms 64 bytes from 192.168.65.1: icmp_seq=1 ttl=63 time=1.156 ms 64 bytes from 192.168.65.1: icmp_seq=2 ttl=63 time=1.279 ms ^C --- 192.168.65.1 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 1.156/1.216/1.279/0.050 ms |
#exit
exit Connection to 192.168.16.22 closed. |
#ssh 192.168.16.24
Password: Last login: Mon Jan 18 17:53:22 2010 from fbsd27.net.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#traceroute -n xgu.ru
![]() traceroute to xgu.ru (212.26.146.51), 64 hops max, 40 byte packets 1 192.168.65.30 1.560 ms 0.880 ms 0.993 ms 2 192.168.65.62 1.649 ms 1.841 ms 1.577 ms 3 * * * 4 *^C |
#exit
![]() exit Connection to 192.168.16.24 closed. |
#ssh 192.168.16.1
![]() ^C |
#ssh 192.168.16.21
Password: Last login: Mon Jan 18 17:42:22 2010 from fbsd27.net.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#route add 192.168.65.0/27 192.168.65.65
add net 192.168.65.0: gateway 192.168.65.65 |
#route add 192.168.65.32/27 192.168.65.65
add net 192.168.65.32: gateway 192.168.65.65 |
#exit
exit Connection to 192.168.16.21 closed. |
#ssh 192.168.16.24
Password: Last login: Mon Jan 18 17:54:58 2010 from fbsd27.net.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#traceroute -n xgu.ru
![]() traceroute to xgu.ru (212.26.146.51), 64 hops max, 40 byte packets 1 192.168.65.30 1.547 ms 0.977 ms 1.088 ms 2 192.168.65.62 1.419 ms 1.711 ms 1.593 ms 3 192.168.65.94 2.430 ms 2.018 ms 2.475 ms 4 *^C |
#exit
![]() exit Connection to 192.168.16.24 closed. |
#ssh 192.168.16.254
Connection to 192.168.16.254 closed. õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ping xgu.ru
![]() PING xgu.ru (212.26.146.51): 56 data bytes ^C --- xgu.ru ping statistics --- 26 packets transmitted, 0 packets received, 100% packet loss |
#ping xgu.ru
![]() PING xgu.ru (212.26.146.51): 56 data bytes ^C --- xgu.ru ping statistics --- 40 packets transmitted, 0 packets received, 100% packet loss õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ping xgu.ru
![]() PING xgu.ru (212.26.146.51): 56 data bytes ^C --- xgu.ru ping statistics --- 11 packets transmitted, 0 packets received, 100% packet loss |
#ping xgu.ru
![]() PING xgu.ru (212.26.146.51): 56 data bytes ^C --- xgu.ru ping statistics --- 10 packets transmitted, 0 packets received, 100% packet loss |
#ping xgu.ru
![]() PING xgu.ru (212.26.146.51): 56 data bytes ^C --- xgu.ru ping statistics --- 336 packets transmitted, 0 packets received, 100% packet loss õ ×ÁÓ ÅÓÔØ ÎÏ×ÁÑ ÐÏÞÔÁ × /var/mail/root |
#ssh 192.168.16.21
Password: Last login: Mon Jan 18 17:55:51 2010 from fbsd27.net.nt Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.3-RELEASE (SMP) #0: Wed Jan 16 04:45:45 UTC 2008 Welcome to FreeBSD! Before seeking technical support, please use the following resources: o Security advisories and updated errata information for all releases are at http://www.FreeBSD.org/releases/ - always consult the ERRATA section for your release first as it's updated frequently. ... http://www.FreeBSD.org/search/. If the doc distribution has been installed, they're also available formatted in /usr/share/doc. If you still have a question or problem, please take the output of `uname -a', along with any relevant error messages, and email it as a question to the questions@FreeBSD.org mailing list. If you are unfamiliar with FreeBSD's directory layout, please refer to the hier(7) manual page. If you are not familiar with manual pages, type `man man'. You may also use sysinstall(8) to re-enter the installation and configuration utility. Edit /etc/motd to change this login announcement. Removing stale pidfile |
#grep firewall /etc/rc.conf
![]() |
#grep firewall /etc/defaults/rc.conf
### Basic network and firewall/security options: ### firewall_enable="NO" # Set to YES to enable firewall functionality firewall_script="/etc/rc.firewall" # Which script to run to set up the firewall firewall_type="UNKNOWN" # Firewall type (see /etc/rc.firewall) firewall_quiet="NO" # Set to YES to suppress rule display firewall_logging="NO" # Set to YES to enable events logging firewall_flags="" # Flags passed to ipfw when type is a file natd_enable="NO" # Enable natd (if firewall_enable == YES). ipv6_firewall_enable="NO" # Set to YES to enable IPv6 firewall ipv6_firewall_script="/etc/rc.firewall6" # Which script to run to set up the IPv6 firewall ipv6_firewall_type="UNKNOWN" # IPv6 Firewall type (see /etc/rc.firewall6) ipv6_firewall_quiet="NO" # Set to YES to suppress rule display ipv6_firewall_logging="NO" # Set to YES to enable events logging ipv6_firewall_flags="" # Flags passed to ip6fw when type is a file |
Время первой команды журнала | 15:07:54 2010- 1-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 17:04:01 2010- 1-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 19.80 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.87 | |||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.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