/l3/trainings/nt-lnet/2006-02-18/fbsd2/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 |
|
#/etc/rc.d/routing restart
default 192.168.16.1 done 192.168.16 192.168.16.66 done 192.168.17 192.168.16.66 done add net default: gateway 192.168.16.66 add net 192.168.16.0: gateway 192.168.16.1 add net 192.168.17.0: gateway 192.168.16.1 Additional routing options: IP gateway=YES. |
#ping 192.168.16.65
PING 192.168.16.65 (192.168.16.65): 56 data bytes 64 bytes from 192.168.16.65: icmp_seq=0 ttl=64 time=0.072 ms 64 bytes from 192.168.16.65: icmp_seq=1 ttl=64 time=0.065 ms 64 bytes from 192.168.16.65: icmp_seq=2 ttl=64 time=0.063 ms 64 bytes from 192.168.16.65: icmp_seq=3 ttl=64 time=0.064 ms ^C --- 192.168.16.65 ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.063/0.066/0.072/0.004 ms |
#ping 192.168.16.66
PING 192.168.16.66 (192.168.16.66): 56 data bytes 64 bytes from 192.168.16.66: icmp_seq=0 ttl=64 time=0.223 ms 64 bytes from 192.168.16.66: icmp_seq=1 ttl=64 time=0.174 ms ^C --- 192.168.16.66 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.174/0.199/0.223/0.024 ms |
#ping 192.168.16.129
PING 192.168.16.129 (192.168.16.129): 56 data bytes ^C --- 192.168.16.129 ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss |
#ifconf
bash: ifconf: command not found |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ping 192.168.16.129
PING 192.168.16.129 (192.168.16.129): 56 data bytes ^C --- 192.168.16.129 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.16.66
PING 192.168.16.66 (192.168.16.66): 56 data bytes 64 bytes from 192.168.16.66: icmp_seq=0 ttl=64 time=0.180 ms 64 bytes from 192.168.16.66: icmp_seq=1 ttl=64 time=0.166 ms 64 bytes from 192.168.16.66: icmp_seq=2 ttl=64 time=0.154 ms 64 bytes from 192.168.16.66: icmp_seq=3 ttl=64 time=0.145 ms 64 bytes from 192.168.16.66: icmp_seq=4 ttl=64 time=0.166 ms ^C --- 192.168.16.66 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.145/0.162/0.180/0.012 ms |
#ping 192.168.17.21
PING 192.168.17.21 (192.168.17.21): 56 data bytes ^C --- 192.168.17.21 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.66 UGS 0 99 fxp0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.16/26 link#1 UC 0 0 xl0 => 192.168.16 192.168.16.1 UGS 0 8 xl0 192.168.16.1 00:0a:01:d4:d1:e3 UHLW 3 6064 xl0 780 192.168.16.2 00:04:79:67:96:71 UHLW 1 3636 lo0 192.168.16.64/26 link#2 UC 0 0 fxp0 ... fe80::%xl0/64 link#1 UC xl0 fe80::204:79ff:fe67:9671%xl0 00:04:79:67:96:71 UHL lo0 fe80::%fxp0/64 link#2 UC fxp0 fe80::207:e9ff:fe45:d2c%fxp0 00:07:e9:45:0d:2c UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#3 UHL lo0 ff01::/32 ::1 U lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%fxp0/32 link#2 UC fxp0 ff02::%lo0/32 ::1 UC lo0 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ping 192.168.17.21
PING 192.168.17.21 (192.168.17.21): 56 data bytes ^C --- 192.168.17.21 ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ping 192.168.16.130
PING 192.168.16.130 (192.168.16.130): 56 data bytes ^C --- 192.168.16.130 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.16.66
PING 192.168.16.66 (192.168.16.66): 56 data bytes 64 bytes from 192.168.16.66: icmp_seq=0 ttl=64 time=0.217 ms 64 bytes from 192.168.16.66: icmp_seq=1 ttl=64 time=0.160 ms 64 bytes from 192.168.16.66: icmp_seq=2 ttl=64 time=0.158 ms ^C --- 192.168.16.66 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.158/0.178/0.217/0.027 ms |
#ping 192.168.16.129
PING 192.168.16.129 (192.168.16.129): 56 data bytes ^C --- 192.168.16.129 ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.66 UGS 0 151 fxp0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.16/26 link#1 UC 0 0 xl0 => 192.168.16 192.168.16.1 UGS 0 15 xl0 192.168.16.1 00:0a:01:d4:d1:e3 UHLW 3 6064 xl0 656 192.168.16.2 00:04:79:67:96:71 UHLW 1 3636 lo0 192.168.16.64/26 link#2 UC 0 0 fxp0 ... fe80::%xl0/64 link#1 UC xl0 fe80::204:79ff:fe67:9671%xl0 00:04:79:67:96:71 UHL lo0 fe80::%fxp0/64 link#2 UC fxp0 fe80::207:e9ff:fe45:d2c%fxp0 00:07:e9:45:0d:2c UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#3 UHL lo0 ff01::/32 ::1 U lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%fxp0/32 link#2 UC fxp0 ff02::%lo0/32 ::1 UC lo0 |
#ping 192.168.16.129
PING 192.168.16.129 (192.168.16.129): 56 data bytes ^C --- 192.168.16.129 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss |
#ipconfig
bash: ipconfig: command not found |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#vi /etc/rc.conf
|
# /etc/rc.d/routing restart
default 192.168.16.66 done 192.168.16 192.168.16.1 done 192.168.17 192.168.16.1 done add net default: gateway 192.168.16.66 route: writing to routing socket: Invalid argument add net : Invalid argument add net 192.168.17.0: gateway 192.168.16.1 Additional routing options: IP gateway=YES. |
#ping 192.168.1.17
PING 192.168.1.17 (192.168.1.17): 56 data bytes 92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 2af5 0 0000 3f 01 be11 192.168.16.65 192.168.1.17 36 bytes from 192.168.16.65: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 5400 2af5 0 0000 01 01 fc11 192.168.16.65 192.168.1.17 92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 2b07 0 0000 3f 01 bdff 192.168.16.65 192.168.1.17 ... 4 5 00 5400 2b19 0 0000 01 01 fbed 192.168.16.65 192.168.1.17 92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 2b2b 0 0000 3f 01 bddb 192.168.16.65 192.168.1.17 36 bytes from 192.168.16.65: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 5400 2b2b 0 0000 01 01 fbdb 192.168.16.65 192.168.1.17 ^C --- 192.168.1.17 ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss |
#vi /etc/rc.conf
|
# /etc/rc.d/routing restart
default 192.168.16.66 done 192.168.17 192.168.16.1 done add net default: gateway 192.168.16.66 add net 192.168.16.0: gateway 192.168.16.1 route: writing to routing socket: Invalid argument add net : Invalid argument Additional routing options: IP gateway=YES. |
#ping 192.168.1.17
PING 192.168.1.17 (192.168.1.17): 56 data bytes 92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 2b3d 0 0000 3f 01 bdc9 192.168.16.65 192.168.1.17 36 bytes from 192.168.16.65: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 5400 2b3d 0 0000 01 01 fbc9 192.168.16.65 192.168.1.17 92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 2b4f 0 0000 3f 01 bdb7 192.168.16.65 192.168.1.17 ... 4 5 00 5400 2b4f 0 0000 01 01 fbb7 192.168.16.65 192.168.1.17 92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 2b61 0 0000 3f 01 bda5 192.168.16.65 192.168.1.17 36 bytes from 192.168.16.65: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 5400 2b61 0 0000 01 01 fba5 192.168.16.65 192.168.1.17 ^C --- 192.168.1.17 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.16.129
4 5 00 0054 2d96 0 0000 25 01 c63f 192.168.16.2 192.168.16.129 36 bytes from 192.168.16.1: Redirect Host(New addr: 192.168.16.2) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 2d96 0 0000 24 01 c73f 192.168.16.2 192.168.16.129 36 bytes from 192.168.16.2: Redirect Host(New addr: 192.168.16.1) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 2d96 0 0000 23 01 c83f 192.168.16.2 192.168.16.129 36 bytes from 192.168.16.1: Redirect Host(New addr: 192.168.16.2) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 2d96 0 0000 22 01 c93f 192.168.16.2 192.168.16.129 ... 4 5 00 0054 2d96 0 0000 03 01 e83f 192.168.16.2 192.168.16.129 36 bytes from 192.168.16.1: Redirect Host(New addr: 192.168.16.2) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 2d96 0 0000 02 01 e93f 192.168.16.2 192.168.16.129 36 bytes from 192.168.16.2: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 5400 2d96 0 0000 01 01 ea3f 192.168.16.2 192.168.16.129 ^C --- 192.168.16.129 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#vi /etc/rc.conf
|
# /etc/rc.d/routing restart
default 192.168.16.66 done 192.168.16 192.168.16.1 done add net default: gateway 192.168.16.66 route: writing to routing socket: Invalid argument add net : Invalid argument add net 192.168.17.0: gateway 192.168.16.1 Additional routing options: IP gateway=YES. |
#ping 192.168.16.129
PING 192.168.16.129 (192.168.16.129): 56 data bytes 64 bytes from 192.168.16.129: icmp_seq=0 ttl=64 time=0.217 ms 64 bytes from 192.168.16.129: icmp_seq=1 ttl=64 time=0.175 ms 64 bytes from 192.168.16.129: icmp_seq=2 ttl=64 time=0.147 ms ^C --- 192.168.16.129 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.147/0.180/0.217/0.029 ms |
#5
bash: 5: command not found |
#ping 192.168.15.5
PING 192.168.15.5 (192.168.15.5): 56 data bytes 92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 2fd3 0 0000 3f 01 ab3f 192.168.16.65 192.168.15.5 36 bytes from 192.168.16.65: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 5400 2fd3 0 0000 01 01 e93f 192.168.16.65 192.168.15.5 92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 2fe5 0 0000 3f 01 ab2d 192.168.16.65 192.168.15.5 ... 4 5 00 5400 2fe5 0 0000 01 01 e92d 192.168.16.65 192.168.15.5 92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 2ff7 0 0000 3f 01 ab1b 192.168.16.65 192.168.15.5 36 bytes from 192.168.16.65: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 5400 2ff7 0 0000 01 01 e91b 192.168.16.65 192.168.15.5 ^C --- 192.168.15.5 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.16.66
PING 192.168.16.66 (192.168.16.66): 56 data bytes 64 bytes from 192.168.16.66: icmp_seq=0 ttl=64 time=0.230 ms 64 bytes from 192.168.16.66: icmp_seq=1 ttl=64 time=0.146 ms ^C --- 192.168.16.66 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.146/0.188/0.230/0.042 ms |
#ping 192.168.16.129
PING 192.168.16.129 (192.168.16.129): 56 data bytes 64 bytes from 192.168.16.129: icmp_seq=0 ttl=64 time=0.219 ms 64 bytes from 192.168.16.129: icmp_seq=1 ttl=64 time=0.182 ms 64 bytes from 192.168.16.129: icmp_seq=2 ttl=64 time=0.177 ms ^C --- 192.168.16.129 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.177/0.193/0.219/0.019 ms |
#ping 192.168.16.193
PING 192.168.16.193 (192.168.16.193): 56 data bytes 92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 3011 0 0000 3f 01 a945 192.168.16.65 192.168.16.193 36 bytes from 192.168.16.65: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 5400 3011 0 0000 01 01 e745 192.168.16.65 192.168.16.193 92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 3023 0 0000 3f 01 a933 192.168.16.65 192.168.16.193 ... 4 5 00 5400 3023 0 0000 01 01 e733 192.168.16.65 192.168.16.193 92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 3035 0 0000 3f 01 a921 192.168.16.65 192.168.16.193 36 bytes from 192.168.16.65: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 5400 3035 0 0000 01 01 e721 192.168.16.65 192.168.16.193 ^C --- 192.168.16.193 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.16.130
PING 192.168.16.130 (192.168.16.130): 56 data bytes ^C --- 192.168.16.130 ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.17.21
PING 192.168.17.21 (192.168.17.21): 56 data bytes 64 bytes from 192.168.17.21: icmp_seq=0 ttl=64 time=0.211 ms 64 bytes from 192.168.17.21: icmp_seq=1 ttl=64 time=0.187 ms 64 bytes from 192.168.17.21: icmp_seq=2 ttl=64 time=0.199 ms ^C --- 192.168.17.21 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.187/0.199/0.211/0.010 ms |
#ping 192.168.16.129
PING 192.168.16.129 (192.168.16.129): 56 data bytes 64 bytes from 192.168.16.129: icmp_seq=0 ttl=64 time=0.215 ms 64 bytes from 192.168.16.129: icmp_seq=1 ttl=64 time=0.179 ms ^C --- 192.168.16.129 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.179/0.197/0.215/0.018 ms |
#ping 192.168.16.130
PING 192.168.16.130 (192.168.16.130): 56 data bytes ^C --- 192.168.16.130 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss |
#traceroute 192.168.16.130
traceroute to 192.168.16.130 (192.168.16.130), 64 hops max, 40 byte packets 1 192.168.16.66 (192.168.16.66) 0.285 ms 0.345 ms 0.238 ms 2 * * * 3 *^C |
#ping 192.168.16.130
PING 192.168.16.130 (192.168.16.130): 56 data bytes ^C --- 192.168.16.130 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.17.21
PING 192.168.17.21 (192.168.17.21): 56 data bytes 64 bytes from 192.168.17.21: icmp_seq=0 ttl=64 time=0.207 ms 64 bytes from 192.168.17.21: icmp_seq=1 ttl=64 time=0.186 ms 64 bytes from 192.168.17.21: icmp_seq=2 ttl=64 time=0.173 ms 64 bytes from 192.168.17.21: icmp_seq=3 ttl=64 time=0.192 ms 64 bytes from 192.168.17.21: icmp_seq=4 ttl=64 time=0.186 ms ^C --- 192.168.17.21 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.173/0.189/0.207/0.011 ms |
#ping
usage: ping [-AaDdfnoQqRrv] [-c count] [-i wait] [-l preload] [-M mask | time] [-m ttl] [-P policy] [-p pattern] [-S src_addr] [-s packetsize] [-t timeout] [-z tos] [-G sweepmaxsize ] [-g sweepminsize ] [-h sweepincrsize ] host ping [-AaDdfLnoQqRrv] [-c count] [-I iface] [-i wait] [-l preload] [-M mask | time] [-m ttl] [-P policy] [-p pattern] [-S src_addr] [-s packetsize] [-T ttl] [-t timeout] [-z tos] mcast-group |
#ping -S 192.168.16.65 192.168.17.21
PING 192.168.17.21 (192.168.17.21) from 192.168.16.65: 56 data bytes 64 bytes from 192.168.17.21: icmp_seq=1 ttl=64 time=0.326 ms 64 bytes from 192.168.17.21: icmp_seq=2 ttl=64 time=0.197 ms 64 bytes from 192.168.17.21: icmp_seq=3 ttl=64 time=0.198 ms 64 bytes from 192.168.17.21: icmp_seq=4 ttl=64 time=0.203 ms ^C --- 192.168.17.21 ping statistics --- 5 packets transmitted, 4 packets received, 20% packet loss round-trip min/avg/max/stddev = 0.197/0.231/0.326/0.055 ms |
#ping 192.168.16.130
PING 192.168.16.130 (192.168.16.130): 56 data bytes 64 bytes from 192.168.16.130: icmp_seq=0 ttl=63 time=0.330 ms 64 bytes from 192.168.16.130: icmp_seq=1 ttl=63 time=0.277 ms ^C --- 192.168.16.130 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.277/0.303/0.330/0.027 ms |
#ping 192.168.16.193
PING 192.168.16.193 (192.168.16.193): 56 data bytes 92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 3086 0 0000 3f 01 a8d0 192.168.16.65 192.168.16.193 36 bytes from 192.168.16.65: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 5400 3086 0 0000 01 01 e6d0 192.168.16.65 192.168.16.193 92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 3098 0 0000 3f 01 a8be 192.168.16.65 192.168.16.193 ... 4 5 00 5400 3098 0 0000 01 01 e6be 192.168.16.65 192.168.16.193 92 bytes from 192.168.16.66: Redirect Host(New addr: 192.168.16.65) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 30aa 0 0000 3f 01 a8ac 192.168.16.65 192.168.16.193 36 bytes from 192.168.16.65: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 5400 30aa 0 0000 01 01 e6ac 192.168.16.65 192.168.16.193 ^C --- 192.168.16.193 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss |
#traceroute -n 192.168.16.130
traceroute to 192.168.16.130 (192.168.16.130), 64 hops max, 40 byte packets 1 192.168.16.66 0.326 ms 0.251 ms 0.235 ms 2 192.168.16.130 0.298 ms 0.250 ms 0.241 ms |
#traceroute -n 192.168.16.193
traceroute to 192.168.16.193 (192.168.16.193), 64 hops max, 40 byte packets 1 192.168.16.66 0.317 ms 0.254 ms 0.238 ms 2 192.168.16.65 0.295 ms 0.291 ms 0.247 ms 3 192.168.16.66 0.313 ms 0.295 ms 0.280 ms 4 192.168.16.65 0.306 ms 0.308 ms 0.289 ms 5 * 192.168.16.66 0.436 ms 0.389 ms 6 192.168.16.65 0.396 ms 0.382 ms 0.374 ms 7 192.168.16.66 0.467 ms 0.475 ms 0.459 ms 8 192.168.16.65 0.471 ms 0.467 ms 0.477 ms 9 * 192.168.16.66 0.614 ms 0.559 ms 10 192.168.16.65 0.574 ms 0.557 ms 0.558 ms 11 192.168.16.66 0.638 ms 0.629 ms 0.639 ms 12 192.168.16.65 0.647 ms 0.636 ms 0.645 ms ^C |
#pstree
-+= 00000 root [swapper] |-+= 00001 root /sbin/init -- | |--= 00169 root adjkerntz -i | |--= 00268 root /sbin/devd | |--= 00297 root /usr/sbin/syslogd -s | |--= 00370 root /usr/sbin/usbd | |--= 00423 root /usr/sbin/sshd | |-+= 00482 root /usr/sbin/cron -s | | \-+- 03750 root cron: running job (cron) | | \-+= 03751 root /bin/sh -c date >> /tmp/new ; sleep 30 ; >> /tmp/new ... |--- 00051 root [vmdaemon] |--- 00052 root [pagezero] |--- 00053 root [bufdaemon] |--- 00054 root [vnlru] |--- 00055 root [syncer] |--- 00056 root [nfsiod 0] |--- 00057 root [nfsiod 1] |--- 00058 root [nfsiod 2] |--- 00059 root [nfsiod 3] \--- 00060 root [schedcpu] |
#man pstree
|
#history
483 ping m05 484 ping m02 485 ping m01 486 ping 192.168.15.21 487 ping m05 488 ping m05 489 ifconfig 490 ifconfig -l 491 man fxp 492 man fxp ... 622 ping 192.168.17.21 623 ping 624 ping -S 192.168.16.65 192.168.17.21 625 ping 192.168.16.130 626 ping 192.168.16.193 627 traceroute -n 192.168.16.130 628 traceroute -n 192.168.16.193 629 pstree 630 man pstree 631 history |
#traceroute -n 192.168.16.193
traceroute to 192.168.16.193 (192.168.16.193), 64 hops max, 40 byte packets 1 192.168.16.66 0.329 ms 0.249 ms 0.197 ms 2 192.168.16.193 0.320 ms 0.251 ms 0.252 ms |
#ping 192.168.15.5
PING 192.168.15.5 (192.168.15.5): 56 data bytes 64 bytes from 192.168.15.5: icmp_seq=0 ttl=62 time=0.456 ms 64 bytes from 192.168.15.5: icmp_seq=1 ttl=62 time=0.386 ms 64 bytes from 192.168.15.5: icmp_seq=2 ttl=62 time=0.363 ms 64 bytes from 192.168.15.5: icmp_seq=3 ttl=62 time=0.388 ms 64 bytes from 192.168.15.5: icmp_seq=4 ttl=62 time=0.360 ms ^C --- 192.168.15.5 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.360/0.391/0.456/0.035 ms |
#ping mail.ru
PING mail.ru (194.67.57.26): 56 data bytes 64 bytes from 194.67.57.26: icmp_seq=0 ttl=110 time=126.802 ms 64 bytes from 194.67.57.26: icmp_seq=1 ttl=110 time=122.645 ms 64 bytes from 194.67.57.26: icmp_seq=2 ttl=109 time=121.759 ms 64 bytes from 194.67.57.26: icmp_seq=3 ttl=109 time=121.809 ms 64 bytes from 194.67.57.26: icmp_seq=4 ttl=109 time=121.963 ms 64 bytes from 194.67.57.26: icmp_seq=5 ttl=110 time=120.964 ms ^C --- mail.ru ping statistics --- 6 packets transmitted, 6 packets received, 0% packet loss round-trip min/avg/max/stddev = 120.964/122.657/126.802/1.917 ms |
#vi /etc/rc.conf
|
#/etc/rc.d/netif restart
Stopping network: lo0 xl0 fxp0. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#/etc/rc.d/routing restart
add net default: gateway 192.168.15.254 route: writing to routing socket: Invalid argument add net : Invalid argument route: writing to routing socket: Invalid argument add net : Invalid argument Additional routing options: IP gateway=YES. |
#ping 192.168.15.22
PING 192.168.15.22 (192.168.15.22): 56 data bytes 64 bytes from 192.168.15.22: icmp_seq=0 ttl=64 time=0.088 ms 64 bytes from 192.168.15.22: icmp_seq=1 ttl=64 time=0.061 ms 64 bytes from 192.168.15.22: icmp_seq=2 ttl=64 time=0.060 ms 64 bytes from 192.168.15.22: icmp_seq=3 ttl=64 time=0.055 ms ^C --- 192.168.15.22 ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.055/0.066/0.088/0.013 ms |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes ^C --- 192.168.15.254 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#netstat -n
Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr c26ec000 stream 0 0 c2641330 0 0 0 /var/run/devd.pipe c26eb3d4 dgram 0 0 0 c26ebe38 0 c26ebb7c c26ebb7c dgram 0 0 0 c26ebe38 0 0 c26ebe38 dgram 0 0 c26ed990 0 c26eb3d4 0 /var/run/logpriv c26ebec4 dgram 0 0 c26edaa0 0 0 0 /var/run/log |
#netstat -nrn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.254 UGS 0 0 fxp0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.15 link#2 UC 0 0 fxp0 192.168.15.22 00:07:e9:45:0d:2c UHLW 1 8 lo0 192.168.15.254 link#2 UHLW 2 2 fxp0 192.168.16/26 link#1 UC 0 0 xl0 Internet6: ... fe80::%xl0/64 link#1 UC xl0 fe80::204:79ff:fe67:9671%xl0 00:04:79:67:96:71 UHL lo0 fe80::%fxp0/64 link#2 UC fxp0 fe80::207:e9ff:fe45:d2c%fxp0 00:07:e9:45:0d:2c UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#3 UHL lo0 ff01::/32 ::1 U lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%fxp0/32 link#2 UC fxp0 ff02::%lo0/32 ::1 UC lo0 |
#vi /etc/rc.conf
14,15c14,15 < static_routes="net16 net17" < #:qroute_net16="192.168.16.0/24 192.168.16.1" --- > #static_routes="net16 net17" > #route_net16="192.168.16.0/24 192.168.16.1" |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes ^C --- 192.168.15.254 ping statistics --- 4 packets transmitted, 0 packets received, 100% packet loss |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (none) status: no carrier lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes 64 bytes from 192.168.15.254: icmp_seq=0 ttl=64 time=0.394 ms 64 bytes from 192.168.15.254: icmp_seq=1 ttl=64 time=0.210 ms 64 bytes from 192.168.15.254: icmp_seq=2 ttl=64 time=0.264 ms ^C --- 192.168.15.254 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.210/0.289/0.394/0.077 ms |
#ping mail.ru
PING mail.ru (194.67.57.26): 56 data bytes 64 bytes from 194.67.57.26: icmp_seq=0 ttl=113 time=127.151 ms 64 bytes from 194.67.57.26: icmp_seq=1 ttl=113 time=125.061 ms 64 bytes from 194.67.57.26: icmp_seq=2 ttl=112 time=121.487 ms ^C --- mail.ru ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 121.487/124.566/127.151/2.339 ms |
#who
root ttyv0 18 ÆÅ× 12:13 user ttyv2 18 ÆÅ× 12:22 root ttyp2 18 ÆÅ× 15:17 (linux.nt) |
#cd /usr/ports/net-mgmt/
|
#cd ettercap/
|
#make install WITHOUT_GTK=yes
install -o root -g wheel -m 555 'libtool' '/usr/local/bin/libtool15' install -o root -g wheel -m 555 'libtoolize' '/usr/local/bin/libtoolize15' test -z "/usr/local/share/aclocal" || /bin/sh /usr/ports/devel/libtool15/work/libtool-1.5.22/install-sh -d "/usr/local/share/aclocal" install -o root -g wheel -m 444 'libtool15.m4' '/usr/local/share/aclocal/libtool15.m4' install -o root -g wheel -m 444 'ltdl15.m4' '/usr/local/share/aclocal/ltdl15.m4' test -z "/usr/local/share/libtool15/libltdl" || /bin/sh /usr/ports/devel/libtool15/work/libtool-1.5.22/install-sh -d "/usr/local/share/libtool15/libltdl" install -o root -g wheel -m 444 'libltdl/COPYING.LIB' '/usr/local/share/libtool15/libltdl/COPYING.LIB' install -o root -g wheel -m 444 'libltdl/README' '/usr/local/share/libtool15/libltdl/README' install -o root -g wheel -m 444 'libltdl/configure.ac' '/usr/local/share/libtool15/libltdl/configure.ac' install -o root -g wheel -m 444 'libltdl/Makefile.am' '/usr/local/share/libtool15/libltdl/Makefile.am' install -o root -g wheel -m 444 'libltdl/ltdl.c' '/usr/local/share/libtool15/libltdl/ltdl.c' |
#man ettercap
|
#host mail.ru
mail.ru has address 192.168.15.254 mail.ru mail is handled by 10 mxs.mail.ru. |
#ls -l
total 22 -rw-r--r-- 1 root wheel 3070 11 ÆÅ× 16:47 Makefile -rw-r--r-- 1 root wheel 576 18 ÆÅ× 15:25 arp -rw-r--r-- 1 root wheel 209 11 ÆÅ× 16:47 distinfo drwxr-xr-x 2 root wheel 512 11 ÆÅ× 16:47 files -rw------- 1 root wheel 32 18 ÆÅ× 15:25 log.eci -rw------- 1 root wheel 32 18 ÆÅ× 15:25 log.ecp -rw-r--r-- 1 root wheel 343 9 ÆÅ× 2005 pkg-descr -rw-r--r-- 1 root wheel 2453 29 ÄÅË 2004 pkg-plist drwxr-xr-x 3 root wheel 512 18 ÆÅ× 15:23 work |
#less log.eci
|
#cd
|
#ping 192.168.15.3
PING 192.168.15.3 (192.168.15.3): 56 data bytes 64 bytes from 192.168.15.3: icmp_seq=0 ttl=64 time=0.406 ms ^C --- 192.168.15.3 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.406/0.406/0.406/0.000 ms |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes 64 bytes from 192.168.15.254: icmp_seq=0 ttl=64 time=0.248 ms ^C --- 192.168.15.254 ping statistics --- 1 packets transmitted, 1 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.248/0.248/0.248/0.000 ms |
#ettercap -T -m arp /192.168.15.3/ /192.168.15.254/ -L log
ettercap NG-0.7.3 copyright 2001-2004 ALoR & NaGA Listening on xl0... (Ethernet) xl0 -> 00:04:79:67:96:71 192.168.16.2 255.255.255.192 SSL dissection needs a valid 'redir_command_on' script in the etter.conf file Privileges dropped to UID 65534 GID 65534... 28 plugins 39 protocol dissectors 53 ports monitored 7587 mac vendor fingerprint 1698 tcp OS fingerprint 2183 known services Scanning for merged targets (2 hosts)... * |==================================================>| 100.00 % 0 hosts added to the hosts list... Starting Unified sniffing... Text only Interface activated... Hit 'h' for inline help Closing text interface... Unified sniffing was stopped. |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (none) status: no carrier fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig xl0 down
|
#ls -l
total 122 -rw------- 1 root wheel 157 18 ÆÅ× 09:47 .ICEauthority -rw------- 1 root wheel 51 18 ÆÅ× 09:50 .Xauthority -rw-r--r-- 1 root wheel 1126 6 ÄÅË 2003 .Xresources -rw-r--r-- 1 root wheel 7705 18 ÆÅ× 11:35 .bash_history -rw-r--r-- 1 root wheel 24 6 ÄÅË 2003 .bash_logout -rw-r--r-- 1 root wheel 336 14 ÑÎ× 00:19 .bash_profile -rw-r--r-- 1 root wheel 1440 13 ÑÎ× 23:58 .bashrc -rw-r--r-- 2 root wheel 210 6 ÄÅË 2003 .cshrc drwx------ 4 root wheel 512 18 ÆÅ× 09:50 .gconf ... -rw-r--r-- 1 root wheel 4676 13 ÑÎ× 21:09 mi.sh -rw-r--r-- 2 root wheel 0 14 ÑÎ× 16:47 myfile -rw-r--r-- 1 root wheel 79 6 ÄÅË 2003 mymotd -rw-r--r-- 1 root wheel 86 6 ÄÅË 2003 mynologin drwxr-xr-x 2 root wheel 512 28 ÑÎ× 12:54 mytgz drwxr-xr-x 10 root wheel 512 21 ÑÎ× 16:29 nt.com.ua -r--r--r-- 1 root wheel 3886 11 ÆÅ× 16:25 ports-supfile drwxr-xr-x 2 root wheel 512 28 ÑÎ× 12:54 soft lrwxr-xr-x 1 root wheel 6 14 ÑÎ× 16:56 sum-myfile -> myfile -rw-r--r-- 1 root wheel 2610 13 ÑÎ× 21:03 xorg.conf.new |
#ettercap -i fxp0 -T -m arp /192.168.15.3/ /192.168.15.254/
ettercap NG-0.7.3 copyright 2001-2004 ALoR & NaGA Listening on fxp0... (Ethernet) fxp0 -> 00:07:E9:45:0D:2C 192.168.15.22 255.255.255.0 SSL dissection needs a valid 'redir_command_on' script in the etter.conf file Privileges dropped to UID 65534 GID 65534... 28 plugins 39 protocol dissectors 53 ports monitored 7587 mac vendor fingerprint 1698 tcp OS fingerprint ... q FATAL: Unsupported format (q) Packet visualization restarted... Packet visualization stopped... Packet visualization restarted... Packet visualization stopped... Packet visualization restarted... Connections list: Closing text interface... Unified sniffing was stopped. |
#ettercap -i fxp0 -T -m arp /192.168.15.3/ /192.168.15.4/
ettercap NG-0.7.3 copyright 2001-2004 ALoR & NaGA Listening on fxp0... (Ethernet) fxp0 -> 00:07:E9:45:0D:2C 192.168.15.22 255.255.255.0 SSL dissection needs a valid 'redir_command_on' script in the etter.conf file Privileges dropped to UID 65534 GID 65534... 28 plugins 39 protocol dissectors 53 ports monitored 7587 mac vendor fingerprint 1698 tcp OS fingerprint 2183 known services Scanning for merged targets (2 hosts)... * |==================================================>| 100.00 % 2 hosts added to the hosts list... Starting Unified sniffing... Text only Interface activated... Hit 'h' for inline help User requested a CTRL+C... (deprecated, next time use proper shutdown) |
#cd /usr/ports/net-mgmt/ettercap/
|
#ls
Makefile distinfo log.eci pkg-descr work arp files log.ecp pkg-plist |
#less Makefile
|
#ls /usr/local/etc/etter.conf
/usr/local/etc/etter.conf |
#less /usr/local/etc/etter.conf
|
#host google.com.ua
google.com.ua has address 192.168.15.254 google.com.ua mail is handled by 30 smtp3.google.com. google.com.ua mail is handled by 10 smtp1.google.com. google.com.ua mail is handled by 20 smtp2.google.com. |
#ping 192.168.15.100
PING 192.168.15.100 (192.168.15.100): 56 data bytes 64 bytes from 192.168.15.100: icmp_seq=1 ttl=255 time=1.312 ms 64 bytes from 192.168.15.100: icmp_seq=2 ttl=255 time=1.288 ms ^C --- 192.168.15.100 ping statistics --- 3 packets transmitted, 2 packets received, 33% packet loss round-trip min/avg/max/stddev = 1.288/1.300/1.312/0.012 ms |
#telnet 192.168.15.100
^C |
#ping 192.168.15.21
PING 192.168.15.21 (192.168.15.21): 56 data bytes 64 bytes from 192.168.15.21: icmp_seq=0 ttl=64 time=0.253 ms 64 bytes from 192.168.15.21: icmp_seq=1 ttl=64 time=0.232 ms ^C --- 192.168.15.21 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.232/0.242/0.253/0.010 ms |
#telnet 192.168.15.100
^C |
#telnet 192.168.15.100
Building configuration... Current configuration: ! version 12.0 no service pad service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname sw-down ... 2 vlan2 active Fa0/2 3 vlan3 active Fa0/3 4 vlan4 active Fa0/4 5 vlan5 active Fa0/5 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active sw-down#exit Connection closed by foreign host. |
Время первой команды журнала | 14:31:56 2006- 2-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:27:27 2006- 2-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 20.79 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.41 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.20 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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