/l3/users/29-05-2007/nt-lnet/linux2.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 :27 |
|
#ifconfig eth1 0.0.0.0
From 192.168.16.2 icmp_seq=15 Destination Host Unreachable From 192.168.16.2 icmp_seq=16 Destination Host Unreachable From 192.168.16.2 icmp_seq=19 Destination Host Unreachable From 192.168.16.2 icmp_seq=20 Destination Host Unreachable From 192.168.16.2 icmp_seq=22 Destination Host Unreachable From 192.168.16.2 icmp_seq=23 Destination Host Unreachable From 192.168.16.2 icmp_seq=24 Destination Host Unreachable From 192.168.16.2 icmp_seq=25 Destination Host Unreachable From 192.168.16.2 icmp_seq=26 Destination Host Unreachable From 192.168.16.2 icmp_seq=27 Destination Host Unreachable ... From 192.168.16.2 icmp_seq=207 Destination Host Unreachable From 192.168.16.2 icmp_seq=209 Destination Host Unreachable From 192.168.16.2 icmp_seq=210 Destination Host Unreachable From 192.168.16.2 icmp_seq=211 Destination Host Unreachable From 192.168.16.2 icmp_seq=213 Destination Host Unreachable From 192.168.16.2 icmp_seq=214 Destination Host Unreachable From 192.168.16.2 icmp_seq=215 Destination Host Unreachable From 192.168.16.2 icmp_seq=217 Destination Host Unreachable From 192.168.16.2 icmp_seq=218 Destination Host Unreachable From 192.168.16.2 icmp_seq=219 Destination Host Unreachable |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:02:B4:61:22 inet addr:192.168.19.94 Bcast:192.168.19.95 Mask:255.255.255.224 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:594 errors:0 dropped:0 overruns:0 frame:0 TX packets:435 errors:0 dropped:0 overruns:0 carrier:33 collisions:0 txqueuelen:1000 RX bytes:61622 (60.1 KiB) TX bytes:40844 (39.8 KiB) Interrupt:16 Base address:0x4c00 eth1 Link encap:Ethernet HWaddr 00:D0:B7:CD:1B:CF UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ... inet addr:192.168.16.2 Bcast:192.168.16.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 Base address:0xcc00 Memory:ff7e0000-ff800000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:13781 errors:0 dropped:0 overruns:0 frame:0 TX packets:13781 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2032004 (1.9 MiB) TX bytes:2032004 (1.9 MiB) |
#ifconfig eth1:1 down
From 192.168.16.2 icmp_seq=41 Destination Host Unreachable From 192.168.16.2 icmp_seq=42 Destination Host Unreachable From 192.168.16.2 icmp_seq=45 Destination Host Unreachable From 192.168.16.2 icmp_seq=46 Destination Host Unreachable From 192.168.16.2 icmp_seq=49 Destination Host Unreachable From 192.168.16.2 icmp_seq=50 Destination Host Unreachable From 192.168.16.2 icmp_seq=52 Destination Host Unreachable From 192.168.16.2 icmp_seq=53 Destination Host Unreachable From 192.168.16.2 icmp_seq=54 Destination Host Unreachable From 192.168.16.2 icmp_seq=55 Destination Host Unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:01:02:B4:61:22 inet addr:192.168.19.94 Bcast:192.168.19.95 Mask:255.255.255.224 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:594 errors:0 dropped:0 overruns:0 frame:0 TX packets:435 errors:0 dropped:0 overruns:0 carrier:33 collisions:0 txqueuelen:1000 RX bytes:61622 (60.1 KiB) TX bytes:40844 (39.8 KiB) Interrupt:16 Base address:0x4c00 eth1 Link encap:Ethernet HWaddr 00:D0:B7:CD:1B:CF UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ... collisions:0 txqueuelen:100 RX bytes:1664091 (1.5 MiB) TX bytes:1010867 (987.1 KiB) Base address:0xcc00 Memory:ff7e0000-ff800000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:13796 errors:0 dropped:0 overruns:0 frame:0 TX packets:13796 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2033627 (1.9 MiB) TX bytes:2033627 (1.9 MiB) |
#/etc/init.d/networking restart'
From 192.168.16.2 icmp_seq=71 Destination Host Unreachable From 192.168.16.2 icmp_seq=72 Destination Host Unreachable From 192.168.16.2 icmp_seq=75 Destination Host Unreachable From 192.168.16.2 icmp_seq=76 Destination Host Unreachable From 192.168.16.2 icmp_seq=79 Destination Host Unreachable From 192.168.16.2 icmp_seq=80 Destination Host Unreachable From 192.168.16.2 icmp_seq=82 Destination Host Unreachable From 192.168.16.2 icmp_seq=83 Destination Host Unreachable From 192.168.16.2 icmp_seq=84 Destination Host Unreachable From 192.168.16.2 icmp_seq=85 Destination Host Unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable > |
#/etc/init.d/networking restart
Reconfiguring network interfaces...ifup: interface lo already configured done. |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:01:02:B4:61:22 inet addr:192.168.19.94 Bcast:192.168.19.95 Mask:255.255.255.224 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:594 errors:0 dropped:0 overruns:0 frame:0 TX packets:435 errors:0 dropped:0 overruns:0 carrier:33 collisions:0 txqueuelen:1000 RX bytes:61622 (60.1 KiB) TX bytes:40844 (39.8 KiB) Interrupt:16 Base address:0x4c00 eth1 Link encap:Ethernet HWaddr 00:D0:B7:CD:1B:CF inet addr:192.168.19.33 Bcast:192.168.19.63 Mask:255.255.255.224 ... collisions:0 txqueuelen:100 RX bytes:1664091 (1.5 MiB) TX bytes:1010867 (987.1 KiB) Base address:0xcc00 Memory:ff7e0000-ff800000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:13796 errors:0 dropped:0 overruns:0 frame:0 TX packets:13796 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2033627 (1.9 MiB) TX bytes:2033627 (1.9 MiB) |
#ping 192.168.16.15
From 192.168.16.2 icmp_seq=86 Destination Host Unreachable From 192.168.16.2 icmp_seq=87 Destination Host Unreachable From 192.168.16.2 icmp_seq=89 Destination Host Unreachable From 192.168.16.2 icmp_seq=90 Destination Host Unreachable From 192.168.16.2 icmp_seq=91 Destination Host Unreachable From 192.168.16.2 icmp_seq=93 Destination Host Unreachable From 192.168.16.2 icmp_seq=94 Destination Host Unreachable From 192.168.16.2 icmp_seq=95 Destination Host Unreachable From 192.168.16.2 icmp_seq=97 Destination Host Unreachable From 192.168.16.2 icmp_seq=98 Destination Host Unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable connect: Network is unreachable |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.19.32 0.0.0.0 255.255.255.224 U 0 0 0 eth1 192.168.19.64 0.0.0.0 255.255.255.224 U 0 0 0 eth0 |
#route add default gw 192.168.19.62 netmask 255.255.255.224
From 192.168.16.2 icmp_seq=127 Destination Host Unreachable From 192.168.16.2 icmp_seq=128 Destination Host Unreachable From 192.168.16.2 icmp_seq=129 Destination Host Unreachable From 192.168.16.2 icmp_seq=130 Destination Host Unreachable From 192.168.16.2 icmp_seq=131 Destination Host Unreachable From 192.168.16.2 icmp_seq=132 Destination Host Unreachable From 192.168.16.2 icmp_seq=135 Destination Host Unreachable From 192.168.16.2 icmp_seq=136 Destination Host Unreachable From 192.168.16.2 icmp_seq=139 Destination Host Unreachable From 192.168.16.2 icmp_seq=140 Destination Host Unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable |
#ping 192.168.16.15
From 192.168.16.2 icmp_seq=143 Destination Host Unreachable From 192.168.16.2 icmp_seq=144 Destination Host Unreachable From 192.168.16.2 icmp_seq=145 Destination Host Unreachable From 192.168.16.2 icmp_seq=146 Destination Host Unreachable From 192.168.16.2 icmp_seq=147 Destination Host Unreachable From 192.168.16.2 icmp_seq=149 Destination Host Unreachable From 192.168.16.2 icmp_seq=150 Destination Host Unreachable From 192.168.16.2 icmp_seq=151 Destination Host Unreachable From 192.168.16.2 icmp_seq=153 Destination Host Unreachable From 192.168.16.2 icmp_seq=154 Destination Host Unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable connect: Network is unreachable |
#ping 192.168.16.15
From 192.168.16.2 icmp_seq=170 Destination Host Unreachable From 192.168.16.2 icmp_seq=172 Destination Host Unreachable From 192.168.16.2 icmp_seq=173 Destination Host Unreachable From 192.168.16.2 icmp_seq=174 Destination Host Unreachable From 192.168.16.2 icmp_seq=175 Destination Host Unreachable From 192.168.16.2 icmp_seq=176 Destination Host Unreachable From 192.168.16.2 icmp_seq=177 Destination Host Unreachable From 192.168.16.2 icmp_seq=179 Destination Host Unreachable From 192.168.16.2 icmp_seq=180 Destination Host Unreachable From 192.168.16.2 icmp_seq=181 Destination Host Unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable connect: Network is unreachable |
#ifconfig
From 192.168.16.2 icmp_seq=218 Destination Host Unreachable From 192.168.16.2 icmp_seq=219 Destination Host Unreachable From 192.168.16.2 icmp_seq=220 Destination Host Unreachable From 192.168.16.2 icmp_seq=221 Destination Host Unreachable From 192.168.16.2 icmp_seq=222 Destination Host Unreachable From 192.168.16.2 icmp_seq=225 Destination Host Unreachable From 192.168.16.2 icmp_seq=226 Destination Host Unreachable From 192.168.16.2 icmp_seq=229 Destination Host Unreachable From 192.168.16.2 icmp_seq=230 Destination Host Unreachable ping: sendmsg: Network is unreachable ... collisions:0 txqueuelen:100 RX bytes:1664091 (1.5 MiB) TX bytes:1010867 (987.1 KiB) Base address:0xcc00 Memory:ff7e0000-ff800000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:13796 errors:0 dropped:0 overruns:0 frame:0 TX packets:13796 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2033627 (1.9 MiB) TX bytes:2033627 (1.9 MiB) |
#ping 192.168.19.62
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable PING 192.168.19.62 (192.168.19.62) 56(84) bytes of data. 64 bytes from 192.168.19.62: icmp_seq=1 ttl=64 time=4.19 ms 64 bytes from 192.168.19.62: icmp_seq=2 ttl=64 time=0.131 ms --- 192.168.19.62 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1017ms rtt min/avg/max/mdev = 0.131/2.164/4.197/2.033 ms |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.19.62 255.255.255.224 UG 0 0 0 eth1 192.168.19.32 0.0.0.0 255.255.255.224 U 0 0 0 eth1 192.168.19.64 0.0.0.0 255.255.255.224 U 0 0 0 eth0 |
#ping 192.168.16.15
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable connect: Network is unreachable |
#ping 192.168.16.1
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable connect: Network is unreachable |
#ping 192.168.19.62
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable PING 192.168.19.62 (192.168.19.62) 56(84) bytes of data. 64 bytes from 192.168.19.62: icmp_seq=1 ttl=64 time=0.159 ms 64 bytes from 192.168.19.62: icmp_seq=2 ttl=64 time=0.156 ms 64 bytes from 192.168.19.62: icmp_seq=3 ttl=64 time=0.273 ms --- 192.168.19.62 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2020ms rtt min/avg/max/mdev = 0.156/0.196/0.273/0.054 ms |
#traceroute -n 192.168.16.15
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable traceroute: Warning: findsaddr: netlink error: Network is unreachable traceroute: Warning: ip checksums disabled traceroute to 192.168.16.15 (192.168.16.15), 30 hops max, 40 byte packets traceroute: sendto: Network is unreachable 1 traceroute: wrote 192.168.16.15 40 chars, ret=-1 |
#traceroute -n 10.0.1.14
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable traceroute: Warning: findsaddr: netlink error: Network is unreachable traceroute: Warning: ip checksums disabled traceroute to 10.0.1.14 (10.0.1.14), 30 hops max, 40 byte packets traceroute: sendto: Network is unreachable 1 traceroute: wrote 10.0.1.14 40 chars, ret=-1 |
#ifconfig
eth0 Link encap:Ethernet HWaddr 00:01:02:B4:61:22 inet addr:192.168.19.94 Bcast:192.168.19.95 Mask:255.255.255.224 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:625 errors:0 dropped:0 overruns:0 frame:0 TX packets:439 errors:0 dropped:0 overruns:0 carrier:33 collisions:0 txqueuelen:1000 RX bytes:63874 (62.3 KiB) TX bytes:41084 (40.1 KiB) Interrupt:16 Base address:0x4c00 eth1 Link encap:Ethernet HWaddr 00:D0:B7:CD:1B:CF inet addr:192.168.19.33 Bcast:192.168.19.63 Mask:255.255.255.224 ... collisions:0 txqueuelen:100 RX bytes:1664793 (1.5 MiB) TX bytes:1011569 (987.8 KiB) Base address:0xcc00 Memory:ff7e0000-ff800000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:13796 errors:0 dropped:0 overruns:0 frame:0 TX packets:13796 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2033627 (1.9 MiB) TX bytes:2033627 (1.9 MiB) |
#route -n
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.19.62 255.255.255.224 UG 0 0 0 eth1 192.168.19.32 0.0.0.0 255.255.255.224 U 0 0 0 eth1 192.168.19.64 0.0.0.0 255.255.255.224 U 0 0 0 eth0 |
#ping 192.168.1
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable PING 192.168.19.62 (192.168.19.62) 56(84) bytes of data. 64 bytes from 192.168.19.62: icmp_seq=1 ttl=64 time=0.189 ms 64 bytes from 192.168.19.62: icmp_seq=2 ttl=64 time=0.333 ms --- 192.168.19.62 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1023ms rtt min/avg/max/mdev = 0.189/0.261/0.333/0.072 ms |
#ping 192.168.16.1
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable connect: Network is unreachable |
#ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:01:02:B4:61:22 inet addr:192.168.19.94 Bcast:192.168.19.95 Mask:255.255.255.224 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:633 errors:0 dropped:0 overruns:0 frame:0 TX packets:440 errors:0 dropped:0 overruns:0 carrier:33 collisions:0 txqueuelen:1000 RX bytes:64424 (62.9 KiB) TX bytes:41144 (40.1 KiB) Interrupt:16 Base address:0x4c00 eth1 Link encap:Ethernet HWaddr 00:D0:B7:CD:1B:CF inet addr:192.168.19.33 Bcast:192.168.19.63 Mask:255.255.255.224 ... collisions:0 txqueuelen:100 RX bytes:1665061 (1.5 MiB) TX bytes:1011837 (988.1 KiB) Base address:0xcc00 Memory:ff7e0000-ff800000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:13796 errors:0 dropped:0 overruns:0 frame:0 TX packets:13796 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2033627 (1.9 MiB) TX bytes:2033627 (1.9 MiB) |
#arp -an
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ? (192.168.19.62) at 00:04:76:A1:F0:A5 [ether] on eth1 ? (192.168.19.65) at 00:04:75:75:46:C1 [ether] on eth0 |
#vim /etc/network/interfaces
|
#route -n
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.19.62 255.255.255.224 UG 0 0 0 eth1 192.168.19.32 0.0.0.0 255.255.255.224 U 0 0 0 eth1 192.168.19.64 0.0.0.0 255.255.255.224 U 0 0 0 eth0 |
#route del default
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable SIOCDELRT: No such process |
#route del default gw
Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If] inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M] [netmask N] [mss Mss] [window W] [irtt I] [mod] [dyn] [reinstate] [[dev] If] inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject inet_route [-FC] flush NOT supported |
#route del default gw 192.168.16.62 netmask 255.255.255.224
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable SIOCDELRT: No such process |
#route del default gw 192.168.16.62 netmask 255.255.255.224
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable SIOCDELRT: No such process |
#route -n
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.19.62 255.255.255.224 UG 0 0 0 eth1 192.168.19.32 0.0.0.0 255.255.255.224 U 0 0 0 eth1 192.168.19.64 0.0.0.0 255.255.255.224 U 0 0 0 eth0 |
#route del default gw 192.168.19.62 netmask 255.255.255.224
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.19.32 0.0.0.0 255.255.255.224 U 0 0 0 eth1 192.168.19.64 0.0.0.0 255.255.255.224 U 0 0 0 eth0 |
#route add default gw 192.168.19.62 netmask 255.255.255.224
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable |
#ping 192.168.16.1
ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ... ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable Broadcast message from root@linux2 (pts/3) (Tue May 29 16:47:48 2007): The system is going down for reboot NOW! connect: Network is unreachable |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.19.62 255.255.255.224 UG 0 0 0 eth1 192.168.19.32 0.0.0.0 255.255.255.224 U 0 0 0 eth1 192.168.19.64 0.0.0.0 255.255.255.224 U 0 0 0 eth0 |
#reboot
|
Время первой команды журнала | 16:37:53 2007- 5-29 | ||||||||||||||||||||||||
Время последней команды журнала | 16:47:42 2007- 5-29 | ||||||||||||||||||||||||
Количество командных строк в журнале | 39 | ||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 30.77 | ||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | ||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.16 | ||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 3.97 | ||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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