/l3/users/max-public/nt-scale/debian3.unix.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 |
|
#traceroute 192.168.20.1
![]() traceroute to 192.168.20.1 (192.168.20.1), 30 hops max, 60 byte packets 1 linux2.unix.nt (192.168.20.1) 3.544 ms 3.547 ms 3.542 ms |
#traceroute 192.168.20.1
traceroute to 192.168.20.1 (192.168.20.1), 30 hops max, 60 byte packets 1 linux2.unix.nt (192.168.20.1) 3.544 ms 3.547 ms 3.542 ms |
#traceroute 192.168.20.2
![]() traceroute to 192.168.20.2 (192.168.20.2), 30 hops max, 60 byte packets 1 192.168.20.2 (192.168.20.2) 0.405 ms 0.390 ms 0.382 ms |
#traceroute 192.168.20.2
traceroute to 192.168.20.2 (192.168.20.2), 30 hops max, 60 byte packets 1 192.168.20.2 (192.168.20.2) 0.405 ms 0.390 ms 0.382 ms |
#traceroute 192.168.30.2
![]() traceroute to 192.168.30.2 (192.168.30.2), 30 hops max, 60 byte packets 1 debian2.local (192.168.30.2) 0.413 ms 0.405 ms 0.397 ms |
#traceroute 192.168.30.2
traceroute to 192.168.30.2 (192.168.30.2), 30 hops max, 60 byte packets 1 debian2.local (192.168.30.2) 0.413 ms 0.405 ms 0.397 ms |
#traceroute 192.168.40.4
![]() traceroute to 192.168.40.4 (192.168.40.4), 30 hops max, 60 byte packets 1 debian4.local (192.168.40.4) 0.510 ms 0.500 ms 0.493 ms |
#traceroute 192.168.40.4
traceroute to 192.168.40.4 (192.168.40.4), 30 hops max, 60 byte packets 1 debian4.local (192.168.40.4) 0.510 ms 0.500 ms 0.493 ms |
#traceroute 192.168.10.4
![]() traceroute to 192.168.10.4 (192.168.10.4), 30 hops max, 60 byte packets 1 debian1.local (10.0.35.41) 0.311 ms 0.299 ms 0.291 ms 2 10.0.35.1 (10.0.35.1) 0.763 ms 0.747 ms 0.739 ms 3 astercom.local (10.0.64.155) 0.732 ms 0.729 ms 0.955 ms 4 10.0.35.205 (10.0.35.205) 2.194 ms 2.436 ms 2.429 ms 5 * * * 6 * * * 7 * * * 8 * * * 9 * * * ... 12 * * * 13 * * * 14 * * * 15 * * * 16 * * * 17 * * * 18 * * * 19 * * * 20 * * * ^C |
#traceroute 192.168.10.4
![]() traceroute to 192.168.10.4 (192.168.10.4), 30 hops max, 60 byte packets 1 debian1.local (10.0.35.41) 0.311 ms 0.299 ms 0.291 ms 2 10.0.35.1 (10.0.35.1) 0.763 ms 0.747 ms 0.739 ms 3 astercom.local (10.0.64.155) 0.732 ms 0.729 ms 0.955 ms 4 10.0.35.205 (10.0.35.205) 2.194 ms 2.436 ms 2.429 ms 5 * * * 6 * * * 7 * * * 8 * * * 9 * * * ... 12 * * * 13 * * * 14 * * * 15 * * * 16 * * * 17 * * * 18 * * * 19 * * * 20 * * * ^C |
#traceroute 192.168.10.4
![]() traceroute to 192.168.10.4 (192.168.10.4), 30 hops max, 60 byte packets 1 debian1.local (10.0.35.41) 0.372 ms 0.362 ms 0.354 ms 2 192.168.10.4 (192.168.10.4) 0.828 ms 0.830 ms 0.823 ms |
#traceroute 192.168.10.4
traceroute to 192.168.10.4 (192.168.10.4), 30 hops max, 60 byte packets 1 debian1.local (10.0.35.41) 0.372 ms 0.362 ms 0.354 ms 2 192.168.10.4 (192.168.10.4) 0.828 ms 0.830 ms 0.823 ms |
#route -n
![]() Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.30.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.30 192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.40 |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.30.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.30 192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.40 |
#route -n
![]() Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 192.168.40.4 255.255.255.0 UG 0 0 0 eth0.40 192.168.20.0 192.168.30.2 255.255.255.0 UG 0 0 0 eth0.30 192.168.30.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.30 192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.40 |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 192.168.40.4 255.255.255.0 UG 0 0 0 eth0.40 192.168.20.0 192.168.30.2 255.255.255.0 UG 0 0 0 eth0.30 192.168.30.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.30 192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.40 |
#traceroute 192.168.10.1
![]() traceroute to 192.168.10.1 (192.168.10.1), 30 hops max, 60 byte packets 1 debian4.local (192.168.40.4) 0.412 ms 0.379 ms 0.369 ms 2 linux1.unix.nt (192.168.10.1) 0.844 ms 0.845 ms 0.838 ms |
#traceroute 192.168.10.1
traceroute to 192.168.10.1 (192.168.10.1), 30 hops max, 60 byte packets 1 debian4.local (192.168.40.4) 0.412 ms 0.379 ms 0.369 ms 2 linux1.unix.nt (192.168.10.1) 0.844 ms 0.845 ms 0.838 ms |
#traceroute 192.168.20.1
![]() traceroute to 192.168.20.1 (192.168.20.1), 30 hops max, 60 byte packets 1 debian2.local (192.168.30.2) 0.497 ms 0.463 ms 0.454 ms 2 linux2.unix.nt (192.168.20.1) 0.931 ms 0.927 ms 0.919 ms |
#traceroute 192.168.20.1
traceroute to 192.168.20.1 (192.168.20.1), 30 hops max, 60 byte packets 1 debian2.local (192.168.30.2) 0.497 ms 0.463 ms 0.454 ms 2 linux2.unix.nt (192.168.20.1) 0.931 ms 0.927 ms 0.919 ms |
#vim /etc/sysctl.conf
![]() --- /tmp/l3-saved-3925.31393.30570 2012-02-22 10:47:33.000000000 +0200 +++ /etc/sysctl.conf 2012-02-22 10:48:56.000000000 +0200 @@ -25,7 +25,7 @@ #net.ipv4.tcp_syncookies=1 # Uncomment the next line to enable packet forwarding for IPv4 -#net.ipv4.ip_forward=1 +net.ipv4.ip_forward=1 # Uncomment the next line to enable packet forwarding for IPv6 # Enabling this option disables Stateless Address Autoconfiguration |
#dpkg -S ls
![]() libsane-extras: /usr/lib/sane/libsane-ls5000.so.1 evolution-exchange: /usr/share/gtk-doc/html/evolution-exchange/evolution-exchange-e2k-http-utils.html inkscape: /usr/share/inkscape/tutorials/tutorial-tracing.svg gnome-utils-common: /usr/share/locale/en_CA/LC_MESSAGES/gnome-utils-2.0.mo grub-pc: /usr/lib/grub/i386-pc/fs.lst system-tools-backends: /usr/share/system-tools-backends-2.0 libgnutls26: /usr/share/locale/fr/LC_MESSAGES/libgnutls26.mo initramfs-tools: /usr/share/initramfs-tools/conf-hooks.d coreutils: /usr/share/locale/sl/LC_TIME/coreutils.mo apt-utils: /usr/share/doc/apt-utils/copyright ... xkb-data: /usr/share/X11/xkb/symbols/kz gnome-doc-utils: /usr/share/locale/nl/LC_MESSAGES/gnome-doc-utils.mo perl-modules: /usr/share/perl/5.10.1/CPANPLUS/Internals/Fetch.pm python-numpy: /usr/share/pyshared/numpy/distutils/tests/gen_ext gnome-doc-utils: /usr/share/xml/gnome/xslt/docbook/utils/graphics.xsl gok: /usr/share/gok/ku/gok-controls.kbd manpages-dev: /usr/share/man/man2/lstat.2.gz pciutils: /usr/share/doc/pciutils/copyright system-tools-backends: /usr/share/locale/es/LC_MESSAGES/system-tools-backends.mo lsof: /usr/share/doc/lsof/examples |
#dpkg -S ls
libsane-extras: /usr/lib/sane/libsane-ls5000.so.1 evolution-exchange: /usr/share/gtk-doc/html/evolution-exchange/evolution-exchange-e2k-http-utils.html inkscape: /usr/share/inkscape/tutorials/tutorial-tracing.svg gnome-utils-common: /usr/share/locale/en_CA/LC_MESSAGES/gnome-utils-2.0.mo grub-pc: /usr/lib/grub/i386-pc/fs.lst system-tools-backends: /usr/share/system-tools-backends-2.0 libgnutls26: /usr/share/locale/fr/LC_MESSAGES/libgnutls26.mo initramfs-tools: /usr/share/initramfs-tools/conf-hooks.d coreutils: /usr/share/locale/sl/LC_TIME/coreutils.mo apt-utils: /usr/share/doc/apt-utils/copyright ... xkb-data: /usr/share/X11/xkb/symbols/kz gnome-doc-utils: /usr/share/locale/nl/LC_MESSAGES/gnome-doc-utils.mo perl-modules: /usr/share/perl/5.10.1/CPANPLUS/Internals/Fetch.pm python-numpy: /usr/share/pyshared/numpy/distutils/tests/gen_ext gnome-doc-utils: /usr/share/xml/gnome/xslt/docbook/utils/graphics.xsl gok: /usr/share/gok/ku/gok-controls.kbd manpages-dev: /usr/share/man/man2/lstat.2.gz pciutils: /usr/share/doc/pciutils/copyright system-tools-backends: /usr/share/locale/es/LC_MESSAGES/system-tools-backends.mo lsof: /usr/share/doc/lsof/examples |
#with ls
![]() bash: with: command not found |
#which ls
![]() /bin/ls |
#apt-get install bridge-utils
![]() Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: bridge-utils 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 31.2 kB of archives. After this operation, 111 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! bridge-utils Install these packages without verification [y/N]? y Get:1 http://10.0.35.1/debian/ squeeze/main bridge-utils i386 1.4-5 [31.2 kB] Fetched 31.2 kB in 0s (0 B/s) Selecting previously deselected package bridge-utils. (Reading database ... 112500 files and directories currently installed.) Unpacking bridge-utils (from .../bridge-utils_1.4-5_i386.deb) ... Processing triggers for man-db ... Setting up bridge-utils (1.4-5) ... |
#apt-get install bridge-utils
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: bridge-utils 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 31.2 kB of archives. After this operation, 111 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! bridge-utils Install these packages without verification [y/N]? y Get:1 http://10.0.35.1/debian/ squeeze/main bridge-utils i386 1.4-5 [31.2 kB] Fetched 31.2 kB in 0s (0 B/s) Selecting previously deselected package bridge-utils. (Reading database ... 112500 files and directories currently installed.) Unpacking bridge-utils (from .../bridge-utils_1.4-5_i386.deb) ... Processing triggers for man-db ... Setting up bridge-utils (1.4-5) ... |
#brctl show
![]() bridge name bridge id STP enabled interfaces pan0 8000.000000000000 no |
#brctl show
bridge name bridge id STP enabled interfaces pan0 8000.000000000000 no |
#apt-get install tcpdump
![]() Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: tcpdump 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 376 kB of archives. After this operation, 901 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! tcpdump Install these packages without verification [y/N]? y Get:1 http://10.0.35.1/debian/ squeeze/main tcpdump i386 4.1.1-1 [376 kB] Fetched 376 kB in 0s (9,703 kB/s) Selecting previously deselected package tcpdump. (Reading database ... 112524 files and directories currently installed.) Unpacking tcpdump (from .../tcpdump_4.1.1-1_i386.deb) ... Processing triggers for man-db ... Setting up tcpdump (4.1.1-1) ... |
#apt-get install tcpdump
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: tcpdump 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 376 kB of archives. After this operation, 901 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! tcpdump Install these packages without verification [y/N]? y Get:1 http://10.0.35.1/debian/ squeeze/main tcpdump i386 4.1.1-1 [376 kB] Fetched 376 kB in 0s (9,703 kB/s) Selecting previously deselected package tcpdump. (Reading database ... 112524 files and directories currently installed.) Unpacking tcpdump (from .../tcpdump_4.1.1-1_i386.deb) ... Processing triggers for man-db ... Setting up tcpdump (4.1.1-1) ... |
#apt-get install ebtables
![]() Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: ebtables 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 83.8 kB of archives. After this operation, 332 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! ebtables Install these packages without verification [y/N]? y Get:1 http://10.0.35.1/debian/ squeeze/main ebtables i386 2.0.9.2-2 [83.8 kB] Fetched 83.8 kB in 0s (5,992 kB/s) Selecting previously deselected package ebtables. (Reading database ... 112536 files and directories currently installed.) Unpacking ebtables (from .../ebtables_2.0.9.2-2_i386.deb) ... Processing triggers for man-db ... Setting up ebtables (2.0.9.2-2) ... |
#apt-get install ebtables
Reading package lists... Done Building dependency tree Reading state information... Done The following NEW packages will be installed: ebtables 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded. Need to get 83.8 kB of archives. After this operation, 332 kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! ebtables Install these packages without verification [y/N]? y Get:1 http://10.0.35.1/debian/ squeeze/main ebtables i386 2.0.9.2-2 [83.8 kB] Fetched 83.8 kB in 0s (5,992 kB/s) Selecting previously deselected package ebtables. (Reading database ... 112536 files and directories currently installed.) Unpacking ebtables (from .../ebtables_2.0.9.2-2_i386.deb) ... Processing triggers for man-db ... Setting up ebtables (2.0.9.2-2) ... |
#ifconfig
![]() eth0 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:10.0.35.43 Bcast:10.0.35.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:169014 errors:0 dropped:110 overruns:0 frame:0 TX packets:9303 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14133869 (13.4 MiB) TX bytes:1704631 (1.6 MiB) eth0.30 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:192.168.30.3 Bcast:192.168.30.255 Mask:255.255.255.0 ... collisions:0 txqueuelen:0 RX bytes:22336 (21.8 KiB) TX bytes:27587 (26.9 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:430 errors:0 dropped:0 overruns:0 frame:0 TX packets:430 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:43701 (42.6 KiB) TX bytes:43701 (42.6 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:10.0.35.43 Bcast:10.0.35.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:169014 errors:0 dropped:110 overruns:0 frame:0 TX packets:9303 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14133869 (13.4 MiB) TX bytes:1704631 (1.6 MiB) eth0.30 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:192.168.30.3 Bcast:192.168.30.255 Mask:255.255.255.0 ... collisions:0 txqueuelen:0 RX bytes:22336 (21.8 KiB) TX bytes:27587 (26.9 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:430 errors:0 dropped:0 overruns:0 frame:0 TX packets:430 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:43701 (42.6 KiB) TX bytes:43701 (42.6 KiB) |
#brctl show
![]() bridge name bridge id STP enabled interfaces br30 8000.000000000000 no pan0 8000.000000000000 no |
#brctl show
bridge name bridge id STP enabled interfaces br30 8000.000000000000 no pan0 8000.000000000000 no |
#brctl show
![]() bridge name bridge id STP enabled interfaces br30 8000.0007e90c4511 no eth0.30 pan0 8000.000000000000 no |
#brctl show
bridge name bridge id STP enabled interfaces br30 8000.0007e90c4511 no eth0.30 pan0 8000.000000000000 no |
#ifconfig
![]() eth0 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:10.0.35.43 Bcast:10.0.35.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:173110 errors:0 dropped:113 overruns:0 frame:0 TX packets:9374 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14459368 (13.7 MiB) TX bytes:1721718 (1.6 MiB) eth0.30 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link ... collisions:0 txqueuelen:0 RX bytes:22336 (21.8 KiB) TX bytes:27587 (26.9 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:430 errors:0 dropped:0 overruns:0 frame:0 TX packets:430 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:43701 (42.6 KiB) TX bytes:43701 (42.6 KiB) |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:10.0.35.43 Bcast:10.0.35.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:173110 errors:0 dropped:113 overruns:0 frame:0 TX packets:9374 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:14459368 (13.7 MiB) TX bytes:1721718 (1.6 MiB) eth0.30 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link ... collisions:0 txqueuelen:0 RX bytes:22336 (21.8 KiB) TX bytes:27587 (26.9 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:430 errors:0 dropped:0 overruns:0 frame:0 TX packets:430 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:43701 (42.6 KiB) TX bytes:43701 (42.6 KiB) |
#brctl br30 up
![]() never heard of command [br30] Usage: brctl [commands] commands: addbr <bridge> add bridge delbr <bridge> delete bridge addif <bridge> <device> add interface to bridge delif <bridge> <device> delete interface from bridge setageing <bridge> <time> set ageing time setbridgeprio <bridge> <prio> set bridge priority setfd <bridge> <time> set bridge forward delay sethello <bridge> <time> set hello time setmaxage <bridge> <time> set max message age setpathcost <bridge> <port> <cost> set path cost setportprio <bridge> <port> <prio> set port priority show show a list of bridges showmacs <bridge> show a list of mac addrs showstp <bridge> show bridge stp info stp <bridge> {on|off} turn stp on/off |
#brctl br30 up
![]() never heard of command [br30] Usage: brctl [commands] commands: addbr <bridge> add bridge delbr <bridge> delete bridge addif <bridge> <device> add interface to bridge delif <bridge> <device> delete interface from bridge setageing <bridge> <time> set ageing time setbridgeprio <bridge> <prio> set bridge priority setfd <bridge> <time> set bridge forward delay sethello <bridge> <time> set hello time setmaxage <bridge> <time> set max message age setpathcost <bridge> <port> <cost> set path cost setportprio <bridge> <port> <prio> set port priority show show a list of bridges showmacs <bridge> show a list of mac addrs showstp <bridge> show bridge stp info stp <bridge> {on|off} turn stp on/off |
#ifconfig
![]() br30 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:2428 (2.3 KiB) eth0 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:10.0.35.43 Bcast:10.0.35.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link ... collisions:0 txqueuelen:0 RX bytes:22420 (21.8 KiB) TX bytes:27587 (26.9 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:430 errors:0 dropped:0 overruns:0 frame:0 TX packets:430 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:43701 (42.6 KiB) TX bytes:43701 (42.6 KiB) |
#ifconfig
br30 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:12 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:2428 (2.3 KiB) eth0 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:10.0.35.43 Bcast:10.0.35.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link ... collisions:0 txqueuelen:0 RX bytes:22420 (21.8 KiB) TX bytes:27587 (26.9 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:430 errors:0 dropped:0 overruns:0 frame:0 TX packets:430 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:43701 (42.6 KiB) TX bytes:43701 (42.6 KiB) |
#ifconfig br30
![]() br30 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:192.168.30.3 Bcast:192.168.30.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:29 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:188 (188.0 B) TX bytes:6009 (5.8 KiB) |
#ifconfig br30
br30 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:192.168.30.3 Bcast:192.168.30.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2 errors:0 dropped:0 overruns:0 frame:0 TX packets:29 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:188 (188.0 B) TX bytes:6009 (5.8 KiB) |
#ifconfig --help
![]() Usage: ifconfig [-a] [-v] [-s] <interface> [[<AF>] <address>] [add <address>[/<prefixlen>]] [del <address>[/<prefixlen>]] [[-]broadcast [<address>]] [[-]pointopoint [<address>]] [netmask <address>] [dstaddr <address>] [tunnel <address>] [outfill <NN>] [keepalive <NN>] [hw <HW> <address>] [metric <NN>] [mtu <NN>] [[-]trailers] [[-]arp] [[-]allmulti] [multicast] [[-]promisc] ... arcnet (ARCnet) dlci (Frame Relay DLCI) frad (Frame Relay Access Device) sit (IPv6-in-IPv4) fddi (Fiber Distributed Data Interface) hippi (HIPPI) irda (IrLAP) ec (Econet) x25 (generic X.25) eui64 (Generic EUI-64) <AF>=Address family. Default: inet List of possible address families: unix (UNIX Domain) inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25) netrom (AMPR NET/ROM) rose (AMPR ROSE) ipx (Novell IPX) ddp (Appletalk DDP) ec (Econet) ash (Ash) x25 (CCITT X.25) |
#ifconfig --help
![]() Usage: ifconfig [-a] [-v] [-s] <interface> [[<AF>] <address>] [add <address>[/<prefixlen>]] [del <address>[/<prefixlen>]] [[-]broadcast [<address>]] [[-]pointopoint [<address>]] [netmask <address>] [dstaddr <address>] [tunnel <address>] [outfill <NN>] [keepalive <NN>] [hw <HW> <address>] [metric <NN>] [mtu <NN>] [[-]trailers] [[-]arp] [[-]allmulti] [multicast] [[-]promisc] ... arcnet (ARCnet) dlci (Frame Relay DLCI) frad (Frame Relay Access Device) sit (IPv6-in-IPv4) fddi (Fiber Distributed Data Interface) hippi (HIPPI) irda (IrLAP) ec (Econet) x25 (generic X.25) eui64 (Generic EUI-64) <AF>=Address family. Default: inet List of possible address families: unix (UNIX Domain) inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25) netrom (AMPR NET/ROM) rose (AMPR ROSE) ipx (Novell IPX) ddp (Appletalk DDP) ec (Econet) ash (Ash) x25 (CCITT X.25) |
#ifconfig
![]() br30 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:192.168.30.3 Bcast:192.168.30.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:18 errors:0 dropped:0 overruns:0 frame:0 TX packets:36 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1322 (1.2 KiB) TX bytes:6531 (6.3 KiB) eth0 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:10.0.35.43 Bcast:10.0.35.255 Mask:255.255.255.0 ... collisions:0 txqueuelen:0 RX bytes:22596 (22.0 KiB) TX bytes:27587 (26.9 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:430 errors:0 dropped:0 overruns:0 frame:0 TX packets:430 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:43701 (42.6 KiB) TX bytes:43701 (42.6 KiB) |
#ifconfig
br30 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:192.168.30.3 Bcast:192.168.30.255 Mask:255.255.255.0 inet6 addr: fe80::207:e9ff:fe0c:4511/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:18 errors:0 dropped:0 overruns:0 frame:0 TX packets:36 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1322 (1.2 KiB) TX bytes:6531 (6.3 KiB) eth0 Link encap:Ethernet HWaddr 00:07:e9:0c:45:11 inet addr:10.0.35.43 Bcast:10.0.35.255 Mask:255.255.255.0 ... collisions:0 txqueuelen:0 RX bytes:22596 (22.0 KiB) TX bytes:27587 (26.9 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:430 errors:0 dropped:0 overruns:0 frame:0 TX packets:430 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:43701 (42.6 KiB) TX bytes:43701 (42.6 KiB) |
#route -n
![]() Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 192.168.40.4 255.255.255.0 UG 0 0 0 eth0.40 192.168.30.0 0.0.0.0 255.255.255.0 U 0 0 0 br30 192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.40 |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 192.168.40.4 255.255.255.0 UG 0 0 0 eth0.40 192.168.30.0 0.0.0.0 255.255.255.0 U 0 0 0 br30 192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.40 |
#route -n
![]() Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 192.168.40.4 255.255.255.0 UG 0 0 0 eth0.40 192.168.20.0 192.168.30.2 255.255.255.0 UG 0 0 0 br30 192.168.30.0 0.0.0.0 255.255.255.0 U 0 0 0 br30 192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.40 |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.35.1 0.0.0.0 UG 0 0 0 eth0 10.0.35.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.10.0 192.168.40.4 255.255.255.0 UG 0 0 0 eth0.40 192.168.20.0 192.168.30.2 255.255.255.0 UG 0 0 0 br30 192.168.30.0 0.0.0.0 255.255.255.0 U 0 0 0 br30 192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.40 |
0
Время первой команды журнала | 09:36:08 2012- 2-22 | ||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 11:10:10 2012- 2-22 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 9.90 | ||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 3.96 | ||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.50 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 3.37 | ||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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