/l3/users/27-07-2009/nt-fbsdnet/fbsd6.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 :25 :26 |
|
#vim .bash_profile
--- /tmp/l3-saved-1722.24127.15676 2008-03-28 16:50:25.000000000 +0000 +++ .bash_profile 2008-03-28 16:50:36.000000000 +0000 @@ -1,2 +1,2 @@ l3-agent - +. .bashrc |
#vim .bash_profile
--- /tmp/l3-saved-1722.24127.15676 2008-03-28 16:50:25.000000000 +0000 +++ .bash_profile 2008-03-28 16:50:36.000000000 +0000 @@ -1,2 +1,2 @@ l3-agent - +. .bashrc |
#l3-a
bash: l3-a: command not found |
#l3-a
bash: l3-a: command not found |
#sh install
| x Term-VT102-0.82/ | x Term-VT102-0.82/t/ | x Term-VT102-0.82/t/04-cursor.t | x Term-VT102-0.82/t/08-options.t | x Term-VT102-0.82/t/05-scrolling.t | x Term-VT102-0.82/t/11-decscrc.t | x Term-VT102-0.82/t/10-decaln.t | x Term-VT102-0.82/t/03-text.t | x Term-VT102-0.82/t/02-setsize.t | x Term-VT102-0.82/t/01-load.t ... If you use xgu.ru backend, your labs will be available at http://xgu.ru/l3//users/Virtual/fbsd-net/fbsdvm.unix.nt Use commands $ l3cd /users/Virtual/MY-NEW-CONTEXT/fbsdvm.unix.nt/USER $ l3pwd to change and to know your current context. For further information see http://xgu.ru/lilalo/ (in Russian). Thank you gor using LiLaLo. Happy Labbing! (don't forget to restart bash or relogin) |
#sh install
| x Term-VT102-0.82/ | x Term-VT102-0.82/t/ | x Term-VT102-0.82/t/04-cursor.t | x Term-VT102-0.82/t/08-options.t | x Term-VT102-0.82/t/05-scrolling.t | x Term-VT102-0.82/t/11-decscrc.t | x Term-VT102-0.82/t/10-decaln.t | x Term-VT102-0.82/t/03-text.t | x Term-VT102-0.82/t/02-setsize.t | x Term-VT102-0.82/t/01-load.t ... If you use xgu.ru backend, your labs will be available at http://xgu.ru/l3//users/Virtual/fbsd-net/fbsdvm.unix.nt Use commands $ l3cd /users/Virtual/MY-NEW-CONTEXT/fbsdvm.unix.nt/USER $ l3pwd to change and to know your current context. For further information see http://xgu.ru/lilalo/ (in Russian). Thank you gor using LiLaLo. Happy Labbing! (don't forget to restart bash or relogin) |
#sudo chmod a+x /usr/local/bin/l3-agent
bash: sudo: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ |
#chmod a+x /usr/local/bin/l3-agent
|
#chmod a+x /usr/local/bin/l3-agent
|
#su - user
Removing stale pidfile |
#su - user
Removing stale pidfile |
$ps aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 10 94.2 0.0 0 8 ?? RL 4:37PM 15:05.89 [idle: cpu0] root 2263 0.8 1.5 8860 7644 ?? Ss 4:52PM 0:00.56 l3-agent (perl5.8 user 2334 0.5 0.2 1348 948 p0 S+ 4:53PM 0:00.03 script -t 0 -q /h root 21 0.1 0.0 0 8 ?? WL 4:37PM 0:05.01 [irq14: ata0] root 0 0.0 0.0 0 0 ?? WLs 4:37PM 0:00.00 [swapper] root 1 0.0 0.1 768 368 ?? SLs 4:37PM 0:00.02 /sbin/init -- root 2 0.0 0.0 0 8 ?? DL 4:37PM 0:00.06 [g_event] root 3 0.0 0.0 0 8 ?? DL 4:37PM 0:04.48 [g_up] root 4 0.0 0.0 0 8 ?? DL 4:37PM 0:06.13 [g_down] ... root 1039 0.0 0.2 1352 948 v3 Is+ 4:37PM 0:00.00 /usr/libexec/gett root 1040 0.0 0.2 1352 948 v4 Is+ 4:37PM 0:00.00 /usr/libexec/gett root 1041 0.0 0.2 1352 948 v5 Is+ 4:37PM 0:00.00 /usr/libexec/gett root 1042 0.0 0.2 1352 948 v6 Is+ 4:37PM 0:00.00 /usr/libexec/gett root 1043 0.0 0.2 1352 948 v7 Is+ 4:37PM 0:00.00 /usr/libexec/gett root 294 0.0 0.2 1472 1072 con- I+ 4:37PM 0:00.01 dhclient: re0 [pr root 2300 0.0 0.4 3288 2104 p0 Ss 4:52PM 0:00.02 /usr/local/bin/ba root 2333 0.0 0.3 1804 1420 p0 S 4:53PM 0:00.01 su - user user 2377 0.0 0.4 3280 2100 p1 Ss 4:53PM 0:00.02 /usr/local/bin/ba user 2419 0.0 0.2 1480 968 p1 R+ 4:53PM 0:00.00 ps aux |
$ps aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 10 94.2 0.0 0 8 ?? RL 4:37PM 15:05.89 [idle: cpu0] root 2263 0.8 1.5 8860 7644 ?? Ss 4:52PM 0:00.56 l3-agent (perl5.8 user 2334 0.5 0.2 1348 948 p0 S+ 4:53PM 0:00.03 script -t 0 -q /h root 21 0.1 0.0 0 8 ?? WL 4:37PM 0:05.01 [irq14: ata0] root 0 0.0 0.0 0 0 ?? WLs 4:37PM 0:00.00 [swapper] root 1 0.0 0.1 768 368 ?? SLs 4:37PM 0:00.02 /sbin/init -- root 2 0.0 0.0 0 8 ?? DL 4:37PM 0:00.06 [g_event] root 3 0.0 0.0 0 8 ?? DL 4:37PM 0:04.48 [g_up] root 4 0.0 0.0 0 8 ?? DL 4:37PM 0:06.13 [g_down] ... root 1039 0.0 0.2 1352 948 v3 Is+ 4:37PM 0:00.00 /usr/libexec/gett root 1040 0.0 0.2 1352 948 v4 Is+ 4:37PM 0:00.00 /usr/libexec/gett root 1041 0.0 0.2 1352 948 v5 Is+ 4:37PM 0:00.00 /usr/libexec/gett root 1042 0.0 0.2 1352 948 v6 Is+ 4:37PM 0:00.00 /usr/libexec/gett root 1043 0.0 0.2 1352 948 v7 Is+ 4:37PM 0:00.00 /usr/libexec/gett root 294 0.0 0.2 1472 1072 con- I+ 4:37PM 0:00.01 dhclient: re0 [pr root 2300 0.0 0.4 3288 2104 p0 Ss 4:52PM 0:00.02 /usr/local/bin/ba root 2333 0.0 0.3 1804 1420 p0 S 4:53PM 0:00.01 su - user user 2377 0.0 0.4 3280 2100 p1 Ss 4:53PM 0:00.02 /usr/local/bin/ba user 2419 0.0 0.2 1480 968 p1 R+ 4:53PM 0:00.00 ps aux |
$vim .bash_profile
--- /tmp/l3-saved-2300.774.24712 2008-03-28 16:54:09.000000000 +0000 +++ .bash_profile 2008-03-28 16:54:14.000000000 +0000 @@ -1,2 +1,2 @@ -l3-agent -. .bashrc +#l3-agent +#. .bashrc |
$vim .bash_profile
--- /tmp/l3-saved-2300.774.24712 2008-03-28 16:54:09.000000000 +0000 +++ .bash_profile 2008-03-28 16:54:14.000000000 +0000 @@ -1,2 +1,2 @@ -l3-agent -. .bashrc +#l3-agent +#. .bashrc |
$exit
exit |
$exit
exit |
#vim .bash_profile
--- /tmp/l3-saved-2300.22526.1980 2008-03-28 16:54:18.000000000 +0000 +++ .bashrc 2008-03-28 16:54:21.000000000 +0000 @@ -1 +1 @@ -. /root/.lilalo/l3bashrc && _l3_start +#. /root/.lilalo/l3bashrc && _l3_start |
#vim .bash_profile
--- /tmp/l3-saved-2300.22526.1980 2008-03-28 16:54:18.000000000 +0000 +++ .bashrc 2008-03-28 16:54:21.000000000 +0000 @@ -1 +1 @@ -. /root/.lilalo/l3bashrc && _l3_start +#. /root/.lilalo/l3bashrc && _l3_start |
#vim .bashrc
|
#vim .bashrc
|
#ssh-keygen
Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: 9c:77:50:23:95:07:71:50:6e:69:dc:f8:d6:50:f0:64 root@fbsdvm.unix.nt |
#ssh-keygen
Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. Your public key has been saved in /root/.ssh/id_rsa.pub. The key fingerprint is: 9c:77:50:23:95:07:71:50:6e:69:dc:f8:d6:50:f0:64 root@fbsdvm.unix.nt |
#vim .ssh/known_hosts
--- /tmp/l3-saved-861.22191.25972 2009-07-24 16:48:00.000000000 +0300 +++ .ssh/known_hosts 2009-07-24 16:48:10.000000000 +0300 @@ -1,2 +0,0 @@ -192.168.16.25 ssh-dss AAAAB3NzaC1kc3MAAACBAMvluGislt9X86siUhBLHsthHHucTGh67sbo8z92cxH+SuL/yYGnueRIXVuNq0qLOgy6eDk470OMb8Lyt2EdgEXQbRZTpAxMoYktnbC2mNL0jcR3Koq8sT7CH2HdFaqZm+1FS69UAkWDve0YtDg3DFO0Aag7YELZ4SQc4jcG1mThAAAAFQCoYSacR13zYzDRREU5pcD+aswCdQAAAIBEl6voVGHHAyf+bXzvw8ASHKyR7DaIl1qtDRylN7mkG8r01wLycJ/1BJriHGrbkz6Lu7HFSGnypIWbxMCuNRRjhcK/U3V1Bkry72Gh7kFjtpmx5P3tr/Ycc7FVDb7ky6XXGFagyGHSpCDx1qmcQ31yCqq/TcwxHj0fPUd3Q6nj2AAAAIA1JxCelBJtJDW882oQtwjeH6PMqGjLcr6bBMKJaH4mzQ6o9NtamwkEW29NckqaltB/RIHpd1ZmKDpI8WPMXUwerDv6e8FyBWkBv2L2Gz27tCehSWPmJO8uQUVake0SVgd1yMG067M7XhOuSHWDjwXzrvHxg80HC9EzJkXncFfr4A== -77.121.198.169 ssh-dss AAAAB3NzaC1kc3MAAACBAN6EKhjW0xHZY9g5SZWd6z8gLWZ6uB2P0cwAd0viifk5E70hgsW+6vFVXKnXGpsvv2SX5E23FgMXFCYIeTHxBUBmokKQzzy/egqQlqDGu9Y/Ik4Z929yiZu6cSPZOf3DTox+CyJDMJ4wwmdBNZl6lP9eFjvVzjaB8GRRXD2Ka+C9AAAAFQDM84s8+sRPwhOo+4/EBB7bh9JMpQAAAIBvWanaa+1GjQFAQIYcLyZz0e1arwylgQ7eEketNjUZxvQrcQjHvY+vmV1LHke/nXUGFz3sWy9dmgqUr+oocMbBaUGF4zo6gOfKzwnUyArYUCjBlrLXrJ1oJ6jbNsE7dr2vRSOLzGSA2uKSRXGvPSfbw14pRnHWCA9UbrX+oFyRNQAAAIEAw2xHrDyzh4MzCGXnanyStMHmITNH1S8Wz+q4gSrWyDVMocZOH5tbOdhuBJRVj1rsP6HuSsguGDpEqxcqLyLdZiGfofDVxM+9IGFIba23glHPh3Gih0aVo7t6JnDymgJ7pIGu4BeM8ZiKHOayjGcGqgZmHce6iB+jXbctPqa40Fk= |
#vim .ssh/known_hosts
--- /tmp/l3-saved-861.22191.25972 2009-07-24 16:48:00.000000000 +0300 +++ .ssh/known_hosts 2009-07-24 16:48:10.000000000 +0300 @@ -1,2 +0,0 @@ -192.168.16.25 ssh-dss AAAAB3NzaC1kc3MAAACBAMvluGislt9X86siUhBLHsthHHucTGh67sbo8z92cxH+SuL/yYGnueRIXVuNq0qLOgy6eDk470OMb8Lyt2EdgEXQbRZTpAxMoYktnbC2mNL0jcR3Koq8sT7CH2HdFaqZm+1FS69UAkWDve0YtDg3DFO0Aag7YELZ4SQc4jcG1mThAAAAFQCoYSacR13zYzDRREU5pcD+aswCdQAAAIBEl6voVGHHAyf+bXzvw8ASHKyR7DaIl1qtDRylN7mkG8r01wLycJ/1BJriHGrbkz6Lu7HFSGnypIWbxMCuNRRjhcK/U3V1Bkry72Gh7kFjtpmx5P3tr/Ycc7FVDb7ky6XXGFagyGHSpCDx1qmcQ31yCqq/TcwxHj0fPUd3Q6nj2AAAAIA1JxCelBJtJDW882oQtwjeH6PMqGjLcr6bBMKJaH4mzQ6o9NtamwkEW29NckqaltB/RIHpd1ZmKDpI8WPMXUwerDv6e8FyBWkBv2L2Gz27tCehSWPmJO8uQUVake0SVgd1yMG067M7XhOuSHWDjwXzrvHxg80HC9EzJkXncFfr4A== -77.121.198.169 ssh-dss AAAAB3NzaC1kc3MAAACBAN6EKhjW0xHZY9g5SZWd6z8gLWZ6uB2P0cwAd0viifk5E70hgsW+6vFVXKnXGpsvv2SX5E23FgMXFCYIeTHxBUBmokKQzzy/egqQlqDGu9Y/Ik4Z929yiZu6cSPZOf3DTox+CyJDMJ4wwmdBNZl6lP9eFjvVzjaB8GRRXD2Ka+C9AAAAFQDM84s8+sRPwhOo+4/EBB7bh9JMpQAAAIBvWanaa+1GjQFAQIYcLyZz0e1arwylgQ7eEketNjUZxvQrcQjHvY+vmV1LHke/nXUGFz3sWy9dmgqUr+oocMbBaUGF4zo6gOfKzwnUyArYUCjBlrLXrJ1oJ6jbNsE7dr2vRSOLzGSA2uKSRXGvPSfbw14pRnHWCA9UbrX+oFyRNQAAAIEAw2xHrDyzh4MzCGXnanyStMHmITNH1S8Wz+q4gSrWyDVMocZOH5tbOdhuBJRVj1rsP6HuSsguGDpEqxcqLyLdZiGfofDVxM+9IGFIba23glHPh3Gih0aVo7t6JnDymgJ7pIGu4BeM8ZiKHOayjGcGqgZmHce6iB+jXbctPqa40Fk= |
#ssh 192.168.16.254
Connection to 192.168.16.254 closed. |
#ssh 192.168.16.254
Connection to 192.168.16.254 closed. |
#scp .ssh/id_rsa.pub 192.168.16.254:/tmp
root@192.168.16.254's password: id_rsa.pub 100% 401 0.4KB/s 00:00 |
#scp .ssh/id_rsa.pub 192.168.16.254:/tmp
root@192.168.16.254's password: id_rsa.pub 100% 401 0.4KB/s 00:00 |
#shutdown -p now
Shutdown NOW! shutdown: [pid 945] |
#shutdown -p now
Shutdown NOW! shutdown: [pid 945] |
#shutdown -p now
Shutdown NOW! shutdown: [pid 945] |
#shutdown -p now
Shutdown NOW! shutdown: [pid 945] |
#ping ya.ru
PING ya.ru (77.88.21.8): 56 data bytes 64 bytes from 77.88.21.8: icmp_seq=0 ttl=52 time=58.188 ms ^C --- ya.ru ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 58.188/58.188/58.188/0.000 ms |
#ping ya.ru
PING ya.ru (77.88.21.8): 56 data bytes 64 bytes from 77.88.21.8: icmp_seq=0 ttl=52 time=58.188 ms ^C --- ya.ru ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 58.188/58.188/58.188/0.000 ms |
#ping ya.ru
PING ya.ru (77.88.21.8): 56 data bytes 64 bytes from 77.88.21.8: icmp_seq=0 ttl=52 time=58.188 ms ^C --- ya.ru ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 58.188/58.188/58.188/0.000 ms |
#ls
X11 dumpdates lilalo mtree periodic rc.firewall shells aliases fbtab localtime namedb periodic.conf rc.firewall6 skel amd.map freebsd-update.conf locate.rc netconfig pf.conf rc.initdiskless snmpd.config apmd.conf fstab login.access netstart pf.os rc.resume spwd.db auth.conf ftpusers login.conf network.subr phones rc.sendmail ssh bluetooth gettytab login.conf.db networks portsnap.conf rc.shutdown ssl crontab gnats mac.conf newsyslog.conf ppp rc.subr sysctl.conf csh.cshrc group mail nsmb.conf printcap rc.suspend syslog.conf csh.login host.conf mail.rc nsswitch.conf profile remote termcap csh.logout hosts make.conf ntp protocols resolv.conf ttys defaults hosts.allow manpath.config opieaccess pwd.db resolv.conf.save usbd.conf devd.conf hosts.equiv manpath.config.bak opiekeys rc rmt wall_cmos_clock devfs.conf hosts.lpd manpath.config.bak.xorg pam.d rc.bsdextended rpc dhclient.conf inetd.conf master.passwd passwd rc.conf security disktab isdn motd pccard_ether rc.d services |
#ls
X11 dumpdates lilalo mtree periodic rc.firewall shells aliases fbtab localtime namedb periodic.conf rc.firewall6 skel amd.map freebsd-update.conf locate.rc netconfig pf.conf rc.initdiskless snmpd.config apmd.conf fstab login.access netstart pf.os rc.resume spwd.db auth.conf ftpusers login.conf network.subr phones rc.sendmail ssh bluetooth gettytab login.conf.db networks portsnap.conf rc.shutdown ssl crontab gnats mac.conf newsyslog.conf ppp rc.subr sysctl.conf csh.cshrc group mail nsmb.conf printcap rc.suspend syslog.conf csh.login host.conf mail.rc nsswitch.conf profile remote termcap csh.logout hosts make.conf ntp protocols resolv.conf ttys defaults hosts.allow manpath.config opieaccess pwd.db resolv.conf.save usbd.conf devd.conf hosts.equiv manpath.config.bak opiekeys rc rmt wall_cmos_clock devfs.conf hosts.lpd manpath.config.bak.xorg pam.d rc.bsdextended rpc dhclient.conf inetd.conf master.passwd passwd rc.conf security disktab isdn motd pccard_ether rc.d services |
#ls
X11 dumpdates lilalo mtree periodic rc.firewall shells aliases fbtab localtime namedb periodic.conf rc.firewall6 skel amd.map freebsd-update.conf locate.rc netconfig pf.conf rc.initdiskless snmpd.config apmd.conf fstab login.access netstart pf.os rc.resume spwd.db auth.conf ftpusers login.conf network.subr phones rc.sendmail ssh bluetooth gettytab login.conf.db networks portsnap.conf rc.shutdown ssl crontab gnats mac.conf newsyslog.conf ppp rc.subr sysctl.conf csh.cshrc group mail nsmb.conf printcap rc.suspend syslog.conf csh.login host.conf mail.rc nsswitch.conf profile remote termcap csh.logout hosts make.conf ntp protocols resolv.conf ttys defaults hosts.allow manpath.config opieaccess pwd.db resolv.conf.save usbd.conf devd.conf hosts.equiv manpath.config.bak opiekeys rc rmt wall_cmos_clock devfs.conf hosts.lpd manpath.config.bak.xorg pam.d rc.bsdextended rpc dhclient.conf inetd.conf master.passwd passwd rc.conf security disktab isdn motd pccard_ether rc.d services |
#vi inetd.conf
--- /tmp/l3-saved-2969.15557.11823 2009-07-27 22:22:42.000000000 +0300 +++ inetd.conf 2009-07-27 22:23:13.000000000 +0300 @@ -124,4 +124,4 @@ # an appropriate block rule to your pf.conf # #ftp-proxy stream tcp nowait root /usr/libexec/ftp-proxy ftp-proxy -vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd -query localhost -depth 24 -geometry 1000x700 SecurityTypes=none +vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd -query localhost -depth 24 -geometry 1200x900 SecurityTypes=none |
#vi inetd.conf
--- /tmp/l3-saved-2969.15557.11823 2009-07-27 22:22:42.000000000 +0300 +++ inetd.conf 2009-07-27 22:23:13.000000000 +0300 @@ -124,4 +124,4 @@ # an appropriate block rule to your pf.conf # #ftp-proxy stream tcp nowait root /usr/libexec/ftp-proxy ftp-proxy -vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd -query localhost -depth 24 -geometry 1000x700 SecurityTypes=none +vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd -query localhost -depth 24 -geometry 1200x900 SecurityTypes=none |
#vi inetd.conf
--- /tmp/l3-saved-2969.15557.11823 2009-07-27 22:22:42.000000000 +0300 +++ inetd.conf 2009-07-27 22:23:13.000000000 +0300 @@ -124,4 +124,4 @@ # an appropriate block rule to your pf.conf # #ftp-proxy stream tcp nowait root /usr/libexec/ftp-proxy ftp-proxy -vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd -query localhost -depth 24 -geometry 1000x700 SecurityTypes=none +vnc1 stream tcp nowait nobody /usr/X11R6/bin/Xvnc Xvnc -inetd -query localhost -depth 24 -geometry 1200x900 SecurityTypes=none |
#/tc/rc.d/inetd restart
Stopping inetd. Starting inetd. |
#/tc/rc.d/inetd restart
Stopping inetd. Starting inetd. |
#/tc/rc.d/inetd restart
Stopping inetd. Starting inetd. |
#cd /usr/ports/
|
#cd /usr/ports/
|
#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 |
#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 |
#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 /usr/ports/net-mgmt/ipcalc/
|
#cd /usr/ports/net-mgmt/ipcalc/
|
#cd /usr/ports/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 1253 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 |
#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 1253 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 |
#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 1253 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 |
#cd
|
#cd
|
#cd
|
#ipcalc 192.168.63.0/24 /28
Address: 192.168.63.0 11000000.10101000.00111111. 00000000 Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000 Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111 => Network: 192.168.63.0/24 11000000.10101000.00111111. 00000000 HostMin: 192.168.63.1 11000000.10101000.00111111. 00000001 HostMax: 192.168.63.254 11000000.10101000.00111111. 11111110 Broadcast: 192.168.63.255 11000000.10101000.00111111. 11111111 Hosts/Net: 254 Class C, Private Internet Subnets after transition from /24 to /28 ... Broadcast: 192.168.63.239 11000000.10101000.00111111.1110 1111 Hosts/Net: 14 Class C, Private Internet 16. Network: 192.168.63.240/28 11000000.10101000.00111111.1111 0000 HostMin: 192.168.63.241 11000000.10101000.00111111.1111 0001 HostMax: 192.168.63.254 11000000.10101000.00111111.1111 1110 Broadcast: 192.168.63.255 11000000.10101000.00111111.1111 1111 Hosts/Net: 14 Class C, Private Internet Subnets: 16 Hosts: 224 |
#ipcalc 192.168.63.0/24 /28
Address: 192.168.63.0 11000000.10101000.00111111. 00000000 Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000 Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111 => Network: 192.168.63.0/24 11000000.10101000.00111111. 00000000 HostMin: 192.168.63.1 11000000.10101000.00111111. 00000001 HostMax: 192.168.63.254 11000000.10101000.00111111. 11111110 Broadcast: 192.168.63.255 11000000.10101000.00111111. 11111111 Hosts/Net: 254 Class C, Private Internet Subnets after transition from /24 to /28 ... Broadcast: 192.168.63.239 11000000.10101000.00111111.1110 1111 Hosts/Net: 14 Class C, Private Internet 16. Network: 192.168.63.240/28 11000000.10101000.00111111.1111 0000 HostMin: 192.168.63.241 11000000.10101000.00111111.1111 0001 HostMax: 192.168.63.254 11000000.10101000.00111111.1111 1110 Broadcast: 192.168.63.255 11000000.10101000.00111111.1111 1111 Hosts/Net: 14 Class C, Private Internet Subnets: 16 Hosts: 224 |
#ipcalc 192.168.63.0/24 /28
Address: 192.168.63.0 11000000.10101000.00111111. 00000000 Netmask: 255.255.255.0 = 24 11111111.11111111.11111111. 00000000 Wildcard: 0.0.0.255 00000000.00000000.00000000. 11111111 => Network: 192.168.63.0/24 11000000.10101000.00111111. 00000000 HostMin: 192.168.63.1 11000000.10101000.00111111. 00000001 HostMax: 192.168.63.254 11000000.10101000.00111111. 11111110 Broadcast: 192.168.63.255 11000000.10101000.00111111. 11111111 Hosts/Net: 254 Class C, Private Internet Subnets after transition from /24 to /28 ... Broadcast: 192.168.63.239 11000000.10101000.00111111.1110 1111 Hosts/Net: 14 Class C, Private Internet 16. Network: 192.168.63.240/28 11000000.10101000.00111111.1111 0000 HostMin: 192.168.63.241 11000000.10101000.00111111.1111 0001 HostMax: 192.168.63.254 11000000.10101000.00111111.1111 1110 Broadcast: 192.168.63.255 11000000.10101000.00111111.1111 1111 Hosts/Net: 14 Class C, Private Internet Subnets: 16 Hosts: 224 |
#ipcalc 192.168.63.0/24 /28 | less
|
#ipcalc 192.168.63.0/24 /28 | less
|
#ipcalc 192.168.63.0/24 /28 | less
|
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.26 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:06 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:4e:00:01:06 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:4e:00:02:06 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.26 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:06 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:4e:00:01:06 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:4e:00:02:06 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.26 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:06 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:4e:00:01:06 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:4e:00:02:06 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig re1 192.168.54.158 netmask 255.255.255.224
|
#ifconfig re1 192.168.54.158 netmask 255.255.255.224
|
#ifconfig re1 192.168.54.158 netmask 255.255.255.224
|
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.26 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:06 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.54.158 netmask 0xffffffe0 broadcast 192.168.54.159 ether 00:16:4e:00:01:06 ... re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:4e:00:02:06 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.26 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:06 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.54.158 netmask 0xffffffe0 broadcast 192.168.54.159 ether 00:16:4e:00:01:06 ... re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:4e:00:02:06 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.26 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:06 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.54.158 netmask 0xffffffe0 broadcast 192.168.54.159 ether 00:16:4e:00:01:06 ... re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> ether 00:16:4e:00:02:06 media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 634 re0 127.0.0.1 127.0.0.1 UH 0 317 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.7 00:16:3e:00:00:07 UHLW 1 258 re0 461 192.168.16.26 00:16:4e:00:00:06 UHLW 1 259 lo0 192.168.16.202 00:14:c2:05:40:a4 UHLW 1 20630 re0 458 192.168.16.254 00:04:75:75:46:b1 UHLW 2 232 re0 1129 192.168.54.128/27 link#2 UC 0 0 re1 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 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 634 re0 127.0.0.1 127.0.0.1 UH 0 317 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.7 00:16:3e:00:00:07 UHLW 1 258 re0 461 192.168.16.26 00:16:4e:00:00:06 UHLW 1 259 lo0 192.168.16.202 00:14:c2:05:40:a4 UHLW 1 20630 re0 458 192.168.16.254 00:04:75:75:46:b1 UHLW 2 232 re0 1129 192.168.54.128/27 link#2 UC 0 0 re1 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 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 634 re0 127.0.0.1 127.0.0.1 UH 0 317 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.7 00:16:3e:00:00:07 UHLW 1 258 re0 461 192.168.16.26 00:16:4e:00:00:06 UHLW 1 259 lo0 192.168.16.202 00:14:c2:05:40:a4 UHLW 1 20630 re0 458 192.168.16.254 00:04:75:75:46:b1 UHLW 2 232 re0 1129 192.168.54.128/27 link#2 UC 0 0 re1 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 |
#ping 192.168.54.129
PING 192.168.54.129 (192.168.54.129): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ... ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.54.129 ping statistics --- 41 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.54.129
PING 192.168.54.129 (192.168.54.129): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ... ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.54.129 ping statistics --- 41 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.54.129
PING 192.168.54.129 (192.168.54.129): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ... ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.54.129 ping statistics --- 41 packets transmitted, 0 packets received, 100% packet loss |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 661 re0 127.0.0.1 127.0.0.1 UH 0 317 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.7 00:16:3e:00:00:07 UHLW 1 258 re0 340 192.168.16.26 00:16:4e:00:00:06 UHLW 1 259 lo0 192.168.16.202 00:14:c2:05:40:a4 UHLW 1 20695 re0 1172 192.168.16.254 00:04:75:75:46:b1 UHLW 2 236 re0 1088 192.168.54.128/27 link#2 UC 0 0 re1 192.168.54.129 link#2 UHLW 1 41 re1 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 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 661 re0 127.0.0.1 127.0.0.1 UH 0 317 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.7 00:16:3e:00:00:07 UHLW 1 258 re0 340 192.168.16.26 00:16:4e:00:00:06 UHLW 1 259 lo0 192.168.16.202 00:14:c2:05:40:a4 UHLW 1 20695 re0 1172 192.168.16.254 00:04:75:75:46:b1 UHLW 2 236 re0 1088 192.168.54.128/27 link#2 UC 0 0 re1 192.168.54.129 link#2 UHLW 1 41 re1 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 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 661 re0 127.0.0.1 127.0.0.1 UH 0 317 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.7 00:16:3e:00:00:07 UHLW 1 258 re0 340 192.168.16.26 00:16:4e:00:00:06 UHLW 1 259 lo0 192.168.16.202 00:14:c2:05:40:a4 UHLW 1 20695 re0 1172 192.168.16.254 00:04:75:75:46:b1 UHLW 2 236 re0 1088 192.168.54.128/27 link#2 UC 0 0 re1 192.168.54.129 link#2 UHLW 1 41 re1 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 |
#ping 192.168.54.129
PING 192.168.54.129 (192.168.54.129): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.54.129 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.54.129
PING 192.168.54.129 (192.168.54.129): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.54.129 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.54.129
PING 192.168.54.129 (192.168.54.129): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.54.129 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 694 re0 127.0.0.1 127.0.0.1 UH 0 317 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.7 00:16:3e:00:00:07 UHLW 1 258 re0 324 192.168.16.26 00:16:4e:00:00:06 UHLW 1 259 lo0 192.168.16.202 00:14:c2:05:40:a4 UHLW 1 20712 re0 1156 192.168.16.254 00:04:75:75:46:b1 UHLW 2 240 re0 1190 192.168.54.128/27 link#2 UC 0 0 re1 192.168.54.129 link#2 UHLW 1 43 re1 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 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 694 re0 127.0.0.1 127.0.0.1 UH 0 317 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.7 00:16:3e:00:00:07 UHLW 1 258 re0 324 192.168.16.26 00:16:4e:00:00:06 UHLW 1 259 lo0 192.168.16.202 00:14:c2:05:40:a4 UHLW 1 20712 re0 1156 192.168.16.254 00:04:75:75:46:b1 UHLW 2 240 re0 1190 192.168.54.128/27 link#2 UC 0 0 re1 192.168.54.129 link#2 UHLW 1 43 re1 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 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 694 re0 127.0.0.1 127.0.0.1 UH 0 317 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.7 00:16:3e:00:00:07 UHLW 1 258 re0 324 192.168.16.26 00:16:4e:00:00:06 UHLW 1 259 lo0 192.168.16.202 00:14:c2:05:40:a4 UHLW 1 20712 re0 1156 192.168.16.254 00:04:75:75:46:b1 UHLW 2 240 re0 1190 192.168.54.128/27 link#2 UC 0 0 re1 192.168.54.129 link#2 UHLW 1 43 re1 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 |
#ping 192.168.54.129
PING 192.168.54.129 (192.168.54.129): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.54.129 ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.54.129
PING 192.168.54.129 (192.168.54.129): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.54.129 ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.54.129
PING 192.168.54.129 (192.168.54.129): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.54.129 ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.54.129
PING 192.168.54.129 (192.168.54.129): 56 data bytes 64 bytes from 192.168.54.129: icmp_seq=0 ttl=64 time=1.420 ms 64 bytes from 192.168.54.129: icmp_seq=1 ttl=64 time=0.471 ms 64 bytes from 192.168.54.129: icmp_seq=2 ttl=64 time=0.414 ms 64 bytes from 192.168.54.129: icmp_seq=3 ttl=64 time=0.378 ms 64 bytes from 192.168.54.129: icmp_seq=4 ttl=64 time=0.406 ms 64 bytes from 192.168.54.129: icmp_seq=5 ttl=64 time=0.367 ms 64 bytes from 192.168.54.129: icmp_seq=6 ttl=64 time=0.395 ms 64 bytes from 192.168.54.129: icmp_seq=7 ttl=64 time=0.396 ms 64 bytes from 192.168.54.129: icmp_seq=8 ttl=64 time=0.356 ms ... 64 bytes from 192.168.54.129: icmp_seq=26 ttl=64 time=0.433 ms 64 bytes from 192.168.54.129: icmp_seq=27 ttl=64 time=0.333 ms 64 bytes from 192.168.54.129: icmp_seq=28 ttl=64 time=0.353 ms 64 bytes from 192.168.54.129: icmp_seq=29 ttl=64 time=0.287 ms 64 bytes from 192.168.54.129: icmp_seq=30 ttl=64 time=0.421 ms 64 bytes from 192.168.54.129: icmp_seq=31 ttl=64 time=0.293 ms ^C --- 192.168.54.129 ping statistics --- 32 packets transmitted, 32 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.287/0.434/1.420/0.184 ms |
#ping 192.168.54.129
PING 192.168.54.129 (192.168.54.129): 56 data bytes 64 bytes from 192.168.54.129: icmp_seq=0 ttl=64 time=1.420 ms 64 bytes from 192.168.54.129: icmp_seq=1 ttl=64 time=0.471 ms 64 bytes from 192.168.54.129: icmp_seq=2 ttl=64 time=0.414 ms 64 bytes from 192.168.54.129: icmp_seq=3 ttl=64 time=0.378 ms 64 bytes from 192.168.54.129: icmp_seq=4 ttl=64 time=0.406 ms 64 bytes from 192.168.54.129: icmp_seq=5 ttl=64 time=0.367 ms 64 bytes from 192.168.54.129: icmp_seq=6 ttl=64 time=0.395 ms 64 bytes from 192.168.54.129: icmp_seq=7 ttl=64 time=0.396 ms 64 bytes from 192.168.54.129: icmp_seq=8 ttl=64 time=0.356 ms ... 64 bytes from 192.168.54.129: icmp_seq=26 ttl=64 time=0.433 ms 64 bytes from 192.168.54.129: icmp_seq=27 ttl=64 time=0.333 ms 64 bytes from 192.168.54.129: icmp_seq=28 ttl=64 time=0.353 ms 64 bytes from 192.168.54.129: icmp_seq=29 ttl=64 time=0.287 ms 64 bytes from 192.168.54.129: icmp_seq=30 ttl=64 time=0.421 ms 64 bytes from 192.168.54.129: icmp_seq=31 ttl=64 time=0.293 ms ^C --- 192.168.54.129 ping statistics --- 32 packets transmitted, 32 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.287/0.434/1.420/0.184 ms |
Время первой команды журнала | 17:50:01 2008- 3-28 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 19:55:13 2009- 7-29 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 100 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 9.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 4.00 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.64 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 2.61 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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