/l3/users/10-09-2007/nt-bsdnet/fbsd3.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 :26 :27 :28 :29 :30 :31 :32 :33 :34 :35 :36 |
|
#sysctl -a|grep forward
kern.smp.forward_signal_enabled: 1 kern.smp.forward_roundrobin_enabled: 1 net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl net.inet.ip.forwarding=1
net.inet.ip.forwarding: 0 -> 1 |
#sysctl -a|grep forward
kern.smp.forward_signal_enabled: 1 kern.smp.forward_roundrobin_enabled: 1 net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.237 netmask 0xffffff00 broadcast 192.168.15.255 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#netstat -na
Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 *.110 *.* LISTEN tcp4 0 0 192.168.15.237.50716 192.168.15.242.22 ESTABLISHED tcp4 0 0 *.6000 *.* LISTEN tcp6 0 0 *.6000 *.* LISTEN tcp4 0 0 127.0.0.1.25 *.* LISTEN tcp4 0 0 *.22 *.* LISTEN tcp6 0 0 *.22 *.* LISTEN udp4 0 0 *.514 *.* ... c7133348 stream 0 0 c70d9660 0 0 0 /tmp/.X11-unix/X0 c684271c stream 0 0 c70dadd0 0 0 0 /tmp/fam-user/fam- c68414ec stream 0 0 c6896660 0 0 0 /var/run/devd.pipe c8034348 dgram 0 0 0 c68412bc 0 c6841000 c6841000 dgram 0 0 0 c68412bc 0 c68411a4 c68411a4 dgram 0 0 0 c68412bc 0 c6841118 c684108c dgram 0 0 0 c6841348 0 0 c6841118 dgram 0 0 0 c68412bc 0 0 c68412bc dgram 0 0 c68a9770 0 c8034348 0 /var/run/logpriv c6841348 dgram 0 0 c68a9880 0 c684108c 0 /var/run/log |
#netstat -nr
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 0 link#1 UC 0 0 em0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.16/26 link#2 UC 0 0 xl0 192.168.16.64/26 link#1 UC 0 0 em0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01:4::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#ipconfig -a
bash: ipconfig: command not found |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#vim /etc/rc
|
#vim /etc/rc.conf
|
#vim /etc/rc.conf
|
#vim /etc/rc.conf
|
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#rout add default 192.168.16.126
bash: rout: command not found |
#routeadd default 192.168.16.126
route: writing to routing socket: Network is unreachable add net default: gateway 192.168.16.126: Network is unreachable |
#netstat -n -r
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 0 link#1 UC 0 0 em0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.16/26 link#2 UC 0 0 xl0 192.168.16.1 00:07:e9:3c:29:f9 UHLW 1 136 xl0 906 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01:4::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#vim /etc/rc.conf
11c11 < ifconfig_em0="DHCP" --- > #ifconfig_em0="DHCP" 20c20,21 < ifconfig_xl0="inet 10.0.15.133/24" --- > ifconfig_em0="inet 192.168.16.65/26" > ifconfig_xl0="inet 192.168.16.62/26" 22a24 > gateway_enable="YES" |
#vim /etc/rc.conf
11c11 < ifconfig_em0="DHCP" --- > #ifconfig_em0="DHCP" 20c20,21 < ifconfig_xl0="inet 10.0.15.133/24" --- > ifconfig_em0="inet 192.168.16.65/26" > ifconfig_xl0="inet 192.168.16.62/26" 22a24 > gateway_enable="YES" |
#sh /etc/rc.conf
|
#sh /etc/rc.conf
|
#/etc/netstart
devd already running? (pid=627). lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (100baseTX <full-duplex>) status: active Additional routing options: IP gateway=YES. |
#/etc/netstart
devd already running? (pid=627). lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (100baseTX <full-duplex>) status: active Additional routing options: IP gateway=YES. |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 10.0.15.3/32 link#2 UC 0 0 xl0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.16/26 link#2 UC 0 0 xl0 192.168.16.1 00:07:e9:3c:29:f9 UHLW 1 17 xl0 1179 192.168.16.64/26 link#1 UC 0 0 em0 192.168.16.126 link#1 UHLW 1 8 em0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01:4::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#ping 192.168.16.126
PING 192.168.16.126 (192.168.16.126): 56 data bytes ^C --- 192.168.16.126 ping statistics --- 9 packets transmitted, 0 packets received, 100% packet loss |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (100baseTX <full-duplex>) status: active plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig -u
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ping 192.168.16.126
PING 192.168.16.126 (192.168.16.126): 56 data bytes ^C --- 192.168.16.126 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.16.126
PING 192.168.16.126 (192.168.16.126): 56 data bytes ^C --- 192.168.16.126 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1): 56 data bytes 64 bytes from 192.168.16.1: icmp_seq=0 ttl=64 time=0.304 ms 64 bytes from 192.168.16.1: icmp_seq=1 ttl=64 time=0.226 ms 64 bytes from 192.168.16.1: icmp_seq=2 ttl=64 time=0.244 ms ^C --- 192.168.16.1 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.226/0.258/0.304/0.033 ms |
#ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1): 56 data bytes 64 bytes from 192.168.16.1: icmp_seq=0 ttl=64 time=0.304 ms 64 bytes from 192.168.16.1: icmp_seq=1 ttl=64 time=0.226 ms 64 bytes from 192.168.16.1: icmp_seq=2 ttl=64 time=0.244 ms ^C --- 192.168.16.1 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.226/0.258/0.304/0.033 ms |
#ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1): 56 data bytes 64 bytes from 192.168.16.1: icmp_seq=0 ttl=64 time=0.304 ms 64 bytes from 192.168.16.1: icmp_seq=1 ttl=64 time=0.226 ms 64 bytes from 192.168.16.1: icmp_seq=2 ttl=64 time=0.244 ms ^C --- 192.168.16.1 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.226/0.258/0.304/0.033 ms |
#netstat -nr
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 10.0.15.3/32 link#2 UC 0 0 xl0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.16/26 link#2 UC 0 0 xl0 192.168.16.1 00:07:e9:3c:29:f9 UHLW 1 468 xl0 869 192.168.16.64/26 link#1 UC 0 0 em0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01:4::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#arp -a
? (192.168.16.1) at 00:07:e9:3c:29:f9 on xl0 [ethernet] |
#ping 192.168.16.126
PING 192.168.16.126 (192.168.16.126): 56 data bytes 64 bytes from 192.168.16.126: icmp_seq=0 ttl=64 time=0.488 ms 64 bytes from 192.168.16.126: icmp_seq=1 ttl=64 time=0.209 ms 64 bytes from 192.168.16.126: icmp_seq=2 ttl=64 time=0.222 ms 64 bytes from 192.168.16.126: icmp_seq=3 ttl=64 time=0.235 ms 64 bytes from 192.168.16.126: icmp_seq=4 ttl=64 time=0.242 ms 64 bytes from 192.168.16.126: icmp_seq=5 ttl=64 time=0.253 ms 64 bytes from 192.168.16.126: icmp_seq=6 ttl=64 time=0.266 ms 64 bytes from 192.168.16.126: icmp_seq=7 ttl=64 time=0.279 ms 64 bytes from 192.168.16.126: icmp_seq=8 ttl=64 time=0.292 ms ... 64 bytes from 192.168.16.126: icmp_seq=43 ttl=64 time=0.187 ms 64 bytes from 192.168.16.126: icmp_seq=44 ttl=64 time=0.197 ms 64 bytes from 192.168.16.126: icmp_seq=45 ttl=64 time=0.209 ms 64 bytes from 192.168.16.126: icmp_seq=46 ttl=64 time=0.223 ms 64 bytes from 192.168.16.126: icmp_seq=47 ttl=64 time=0.231 ms 64 bytes from 192.168.16.126: icmp_seq=48 ttl=64 time=0.241 ms ^C --- 192.168.16.126 ping statistics --- 49 packets transmitted, 49 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.185/0.249/0.488/0.049 ms |
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ... ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ^C --- 192.168.15.243 ping statistics --- 30 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ... ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ^C --- 192.168.15.243 ping statistics --- 30 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ... ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ^C --- 192.168.15.243 ping statistics --- 30 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ... ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ping: sendto: No route to host ^C --- 192.168.15.243 ping statistics --- 22 packets transmitted, 0 packets received, 100% packet loss |
#tcpdump -n -i em0 -p icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on em0, link-type EN10MB (Ethernet), capture size 96 bytes ^C 0 packets captured 0 packets received by filter 0 packets dropped by kernel |
#tcpdump -n -i xl-p icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on xl0, link-type EN10MB (Ethernet), capture size 96 bytes 17:00:16.388723 IP 192.168.16.1 > 192.168.15.243: ICMP echo request, id 62321, seq 102, length 64 17:00:16.388780 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.243 unreachable, length 36 17:00:16.389256 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.180 unreachable, length 36 17:00:16.389556 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.180 unreachable, length 36 17:00:17.389711 IP 192.168.16.1 > 192.168.15.243: ICMP echo request, id 62321, seq 103, length 64 17:00:17.389768 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.243 unreachable, length 36 17:00:17.390254 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.180 unreachable, length 36 17:00:17.390556 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.180 unreachable, length 36 ... 17:00:45.438870 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.180 unreachable, length 36 17:00:45.439185 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.180 unreachable, length 36 17:00:46.439335 IP 192.168.16.1 > 192.168.15.243: ICMP echo request, id 62321, seq 132, length 64 17:00:46.439391 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.243 unreachable, length 36 17:00:46.439871 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.180 unreachable, length 36 17:00:46.440180 IP 192.168.16.62 > 192.168.16.1: ICMP host 192.168.15.180 unreachable, length 36 ^C 132 packets captured 202 packets received by filter 0 packets dropped by kernel |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 10.0.15.3/32 link#2 UC 0 0 xl0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.16/26 link#2 UC 0 0 xl0 192.168.16.1 00:07:e9:3c:29:f9 UHLW 1 1101 xl0 431 192.168.16.64/26 link#1 UC 0 0 em0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01:4::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#route add default 192.168.16.126
add net default: gateway 192.168.16.126 |
#route add default 192.168.16.126
add net default: gateway 192.168.16.126 |
#route add default 192.168.16.126
add net default: gateway 192.168.16.126 |
#route add default 192.168.16.126
add net default: gateway 192.168.16.126 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.126 UGS 0 9 em0 10.0.15.3/32 link#2 UC 0 0 xl0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.16/26 link#2 UC 0 0 xl0 192.168.16.1 00:07:e9:3c:29:f9 UHLW 1 1206 xl0 396 192.168.16.64/26 link#1 UC 0 0 em0 192.168.16.126 00:01:02:b4:61:97 UHLW 2 0 em0 1196 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01:4::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes 64 bytes from 192.168.15.243: icmp_seq=0 ttl=64 time=0.247 ms 64 bytes from 192.168.15.243: icmp_seq=1 ttl=64 time=0.233 ms ^C --- 192.168.15.243 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.233/0.240/0.247/0.007 ms |
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes 64 bytes from 192.168.15.243: icmp_seq=0 ttl=64 time=0.247 ms 64 bytes from 192.168.15.243: icmp_seq=1 ttl=64 time=0.233 ms ^C --- 192.168.15.243 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.233/0.240/0.247/0.007 ms |
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes 64 bytes from 192.168.15.243: icmp_seq=0 ttl=64 time=0.247 ms 64 bytes from 192.168.15.243: icmp_seq=1 ttl=64 time=0.233 ms ^C --- 192.168.15.243 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.233/0.240/0.247/0.007 ms |
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes 64 bytes from 192.168.15.243: icmp_seq=0 ttl=64 time=0.247 ms 64 bytes from 192.168.15.243: icmp_seq=1 ttl=64 time=0.233 ms ^C --- 192.168.15.243 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.233/0.240/0.247/0.007 ms |
#ping 192.168.15.126
PING 192.168.15.126 (192.168.15.126): 56 data bytes ^C --- 192.168.15.126 ping statistics --- 6 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.126
PING 192.168.15.126 (192.168.15.126): 56 data bytes ^C --- 192.168.15.126 ping statistics --- 6 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15126
PING 192.168.15.126 (192.168.15.126): 56 data bytes ^C --- 192.168.15.126 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15126
PING 192.168.15.126 (192.168.15.126): 56 data bytes ^C --- 192.168.15.126 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes 64 bytes from 192.168.15.243: icmp_seq=0 ttl=64 time=0.251 ms 64 bytes from 192.168.15.243: icmp_seq=1 ttl=64 time=0.303 ms 64 bytes from 192.168.15.243: icmp_seq=2 ttl=64 time=0.293 ms 64 bytes from 192.168.15.243: icmp_seq=3 ttl=64 time=0.302 ms 64 bytes from 192.168.15.243: icmp_seq=4 ttl=64 time=0.208 ms 64 bytes from 192.168.15.243: icmp_seq=5 ttl=64 time=0.224 ms 64 bytes from 192.168.15.243: icmp_seq=6 ttl=64 time=0.232 ms 64 bytes from 192.168.15.243: icmp_seq=7 ttl=64 time=0.223 ms 64 bytes from 192.168.15.243: icmp_seq=8 ttl=64 time=0.243 ms 64 bytes from 192.168.15.243: icmp_seq=9 ttl=64 time=0.259 ms 64 bytes from 192.168.15.243: icmp_seq=10 ttl=64 time=0.274 ms 64 bytes from 192.168.15.243: icmp_seq=11 ttl=64 time=0.285 ms 64 bytes from 192.168.15.243: icmp_seq=12 ttl=64 time=0.290 ms 64 bytes from 192.168.15.243: icmp_seq=13 ttl=64 time=0.307 ms 64 bytes from 192.168.15.243: icmp_seq=14 ttl=64 time=0.298 ms 64 bytes from 192.168.15.243: icmp_seq=15 ttl=64 time=0.206 ms ^C --- 192.168.15.243 ping statistics --- 16 packets transmitted, 16 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.206/0.262/0.307/0.035 ms |
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes 64 bytes from 192.168.15.243: icmp_seq=0 ttl=64 time=0.251 ms 64 bytes from 192.168.15.243: icmp_seq=1 ttl=64 time=0.303 ms 64 bytes from 192.168.15.243: icmp_seq=2 ttl=64 time=0.293 ms 64 bytes from 192.168.15.243: icmp_seq=3 ttl=64 time=0.302 ms 64 bytes from 192.168.15.243: icmp_seq=4 ttl=64 time=0.208 ms 64 bytes from 192.168.15.243: icmp_seq=5 ttl=64 time=0.224 ms 64 bytes from 192.168.15.243: icmp_seq=6 ttl=64 time=0.232 ms 64 bytes from 192.168.15.243: icmp_seq=7 ttl=64 time=0.223 ms 64 bytes from 192.168.15.243: icmp_seq=8 ttl=64 time=0.243 ms 64 bytes from 192.168.15.243: icmp_seq=9 ttl=64 time=0.259 ms 64 bytes from 192.168.15.243: icmp_seq=10 ttl=64 time=0.274 ms 64 bytes from 192.168.15.243: icmp_seq=11 ttl=64 time=0.285 ms 64 bytes from 192.168.15.243: icmp_seq=12 ttl=64 time=0.290 ms 64 bytes from 192.168.15.243: icmp_seq=13 ttl=64 time=0.307 ms 64 bytes from 192.168.15.243: icmp_seq=14 ttl=64 time=0.298 ms 64 bytes from 192.168.15.243: icmp_seq=15 ttl=64 time=0.206 ms ^C --- 192.168.15.243 ping statistics --- 16 packets transmitted, 16 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.206/0.262/0.307/0.035 ms |
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes 64 bytes from 192.168.15.243: icmp_seq=0 ttl=64 time=0.251 ms 64 bytes from 192.168.15.243: icmp_seq=1 ttl=64 time=0.303 ms 64 bytes from 192.168.15.243: icmp_seq=2 ttl=64 time=0.293 ms 64 bytes from 192.168.15.243: icmp_seq=3 ttl=64 time=0.302 ms 64 bytes from 192.168.15.243: icmp_seq=4 ttl=64 time=0.208 ms 64 bytes from 192.168.15.243: icmp_seq=5 ttl=64 time=0.224 ms 64 bytes from 192.168.15.243: icmp_seq=6 ttl=64 time=0.232 ms 64 bytes from 192.168.15.243: icmp_seq=7 ttl=64 time=0.223 ms 64 bytes from 192.168.15.243: icmp_seq=8 ttl=64 time=0.243 ms 64 bytes from 192.168.15.243: icmp_seq=9 ttl=64 time=0.259 ms 64 bytes from 192.168.15.243: icmp_seq=10 ttl=64 time=0.274 ms 64 bytes from 192.168.15.243: icmp_seq=11 ttl=64 time=0.285 ms 64 bytes from 192.168.15.243: icmp_seq=12 ttl=64 time=0.290 ms 64 bytes from 192.168.15.243: icmp_seq=13 ttl=64 time=0.307 ms 64 bytes from 192.168.15.243: icmp_seq=14 ttl=64 time=0.298 ms 64 bytes from 192.168.15.243: icmp_seq=15 ttl=64 time=0.206 ms ^C --- 192.168.15.243 ping statistics --- 16 packets transmitted, 16 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.206/0.262/0.307/0.035 ms |
#ping 192.168.15.243
PING 192.168.15.243 (192.168.15.243): 56 data bytes 64 bytes from 192.168.15.243: icmp_seq=0 ttl=64 time=0.251 ms 64 bytes from 192.168.15.243: icmp_seq=1 ttl=64 time=0.303 ms 64 bytes from 192.168.15.243: icmp_seq=2 ttl=64 time=0.293 ms 64 bytes from 192.168.15.243: icmp_seq=3 ttl=64 time=0.302 ms 64 bytes from 192.168.15.243: icmp_seq=4 ttl=64 time=0.208 ms 64 bytes from 192.168.15.243: icmp_seq=5 ttl=64 time=0.224 ms 64 bytes from 192.168.15.243: icmp_seq=6 ttl=64 time=0.232 ms 64 bytes from 192.168.15.243: icmp_seq=7 ttl=64 time=0.223 ms 64 bytes from 192.168.15.243: icmp_seq=8 ttl=64 time=0.243 ms 64 bytes from 192.168.15.243: icmp_seq=9 ttl=64 time=0.259 ms 64 bytes from 192.168.15.243: icmp_seq=10 ttl=64 time=0.274 ms 64 bytes from 192.168.15.243: icmp_seq=11 ttl=64 time=0.285 ms 64 bytes from 192.168.15.243: icmp_seq=12 ttl=64 time=0.290 ms 64 bytes from 192.168.15.243: icmp_seq=13 ttl=64 time=0.307 ms 64 bytes from 192.168.15.243: icmp_seq=14 ttl=64 time=0.298 ms 64 bytes from 192.168.15.243: icmp_seq=15 ttl=64 time=0.206 ms ^C --- 192.168.15.243 ping statistics --- 16 packets transmitted, 16 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.206/0.262/0.307/0.035 ms |
#ping 192.168.16.180
PING 192.168.16.180 (192.168.16.180): 56 data bytes ^C --- 192.168.16.180 ping statistics --- 164 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.16.180
PING 192.168.16.180 (192.168.16.180): 56 data bytes ^C --- 192.168.16.180 ping statistics --- 164 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.16.180
PING 192.168.16.180 (192.168.16.180): 56 data bytes ^C --- 192.168.16.180 ping statistics --- 164 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.16.180
PING 192.168.16.180 (192.168.16.180): 56 data bytes ^C --- 192.168.16.180 ping statistics --- 164 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15180
PING 192.168.15.180 (192.168.15.180): 56 data bytes 64 bytes from 192.168.15.180: icmp_seq=161 ttl=63 time=0.554 ms 64 bytes from 192.168.15.180: icmp_seq=162 ttl=63 time=0.565 ms 64 bytes from 192.168.15.180: icmp_seq=163 ttl=63 time=0.452 ms 64 bytes from 192.168.15.180: icmp_seq=164 ttl=63 time=0.463 ms 64 bytes from 192.168.15.180: icmp_seq=165 ttl=63 time=0.472 ms 64 bytes from 192.168.15.180: icmp_seq=166 ttl=63 time=0.361 ms 64 bytes from 192.168.15.180: icmp_seq=167 ttl=63 time=0.499 ms 64 bytes from 192.168.15.180: icmp_seq=168 ttl=63 time=0.510 ms 64 bytes from 192.168.15.180: icmp_seq=169 ttl=63 time=0.521 ms ... 64 bytes from 192.168.15.180: icmp_seq=181 ttl=63 time=0.531 ms 64 bytes from 192.168.15.180: icmp_seq=182 ttl=63 time=0.415 ms 64 bytes from 192.168.15.180: icmp_seq=183 ttl=63 time=0.560 ms 64 bytes from 192.168.15.180: icmp_seq=184 ttl=63 time=0.435 ms 64 bytes from 192.168.15.180: icmp_seq=185 ttl=63 time=0.571 ms 64 bytes from 192.168.15.180: icmp_seq=186 ttl=63 time=0.582 ms ^C --- 192.168.15.180 ping statistics --- 187 packets transmitted, 26 packets received, 86% packet loss round-trip min/avg/max/stddev = 0.361/0.505/0.600/0.059 ms |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig em0 192.168.16
|
#ifconfig em0 192.168.15
|
#ifconfig -a
|
#ifconfig em0 192.168.15
|
#ifconfig -a
|
#route add default 192.168.15.180
route: writing to routing socket: Network is unreachable add net default: gateway 192.168.15.180: Network is unreachable |
#route add default 192.168.15.180
route: writing to routing socket: Network is unreachable add net default: gateway 192.168.15.180: Network is unreachable |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.16.2 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.16.2 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig em0 192.168.15
|
#ifconfig em0 192.168.15
|
#ifconfig -a
|
#route add default 192.168.15.180
add net default: gateway 192.168.15.180 |
#ifconfig -a
|
#route add default 192.168.15.180
add net default: gateway 192.168.15.180 |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#netstat -nr
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.180 UGS 0 34 em0 10.0.15.3/32 link#2 UC 0 0 xl0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.15 link#1 UC 0 0 em0 192.168.15.180 00:04:75:7f:23:26 UHLW 2 8 em0 1185 192.168.16/26 link#2 UC 0 0 xl0 192.168.16.1 00:07:e9:3c:29:f9 UHLW 1 1332 xl0 176 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01:4::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#netstat -nr
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.180 UGS 0 34 em0 10.0.15.3/32 link#2 UC 0 0 xl0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.15 link#1 UC 0 0 em0 192.168.15.180 00:04:75:7f:23:26 UHLW 2 8 em0 1185 192.168.16/26 link#2 UC 0 0 xl0 192.168.16.1 00:07:e9:3c:29:f9 UHLW 1 1332 xl0 176 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01:4::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ping 192.168.15.240
PING 192.168.15.240 (192.168.15.240): 56 data bytes 64 bytes from 192.168.15.240: icmp_seq=1 ttl=255 time=0.543 ms 64 bytes from 192.168.15.240: icmp_seq=2 ttl=255 time=0.552 ms ^C --- 192.168.15.240 ping statistics --- 3 packets transmitted, 2 packets received, 33% packet loss round-trip min/avg/max/stddev = 0.543/0.548/0.552/0.004 ms |
#route add default 192.168.23.2
route: writing to routing socket: File exists add net default: gateway 192.168.23.2: route already in table |
#route add default 192.168.23.2
route: writing to routing socket: File exists add net default: gateway 192.168.23.2: route already in table |
#route add default 192.168.23.2
route: writing to routing socket: File exists add net default: gateway 192.168.23.2: route already in table |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#netstat -nr
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.180 UGS 0 104 em0 10.0.15.3/32 link#2 UC 0 0 xl0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.15 link#1 UC 0 0 em0 192.168.15.180 00:04:75:7f:23:26 UHLW 2 22 em0 1183 192.168.15.240 00:0a:b8:ab:eb:c0 UHLW 1 3 em0 976 192.168.16/26 link#2 UC 0 0 xl0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01:4::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#netstat -nr
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.180 UGS 0 104 em0 10.0.15.3/32 link#2 UC 0 0 xl0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.15 link#1 UC 0 0 em0 192.168.15.180 00:04:75:7f:23:26 UHLW 2 22 em0 1183 192.168.15.240 00:0a:b8:ab:eb:c0 UHLW 1 3 em0 976 192.168.16/26 link#2 UC 0 0 xl0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01:4::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255 inet 192.168.23.1 netmask 0xffffff00 broadcast 192.168.23.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255 inet 192.168.23.1 netmask 0xffffff00 broadcast 192.168.23.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255 inet 192.168.23.1 netmask 0xffffff00 broadcast 192.168.23.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255 inet 192.168.23.1 netmask 0xffffff00 broadcast 192.168.23.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.2 netmask 0xffffff00 broadcast 192.168.15.255 inet 192.168.23.1 netmask 0xffffff00 broadcast 192.168.23.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> mtu 1500 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 |
#netstat -nr
|
Время первой команды журнала | 16:34:17 2007- 9-10 | ||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 17:37:07 2007- 9-10 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 20.79 | ||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | ||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.05 | ||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.61 | ||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.
Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
$ l s-l bash: l: command not found |
Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
$ test 5 -lt 4 |
Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
$ find / -name abc find: /home/devi-orig/.gnome2: Keine Berechtigung find: /home/devi-orig/.gnome2_private: Keine Berechtigung find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung find: /home/devi-orig/.metacity: Keine Berechtigung find: /home/devi-orig/.inkscape: Keine Berechtigung ^C |
Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
# id uid=0(root) gid=0(root) Gruppen=0(root) |
Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
$ vi ~/.bashrc
|
Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
$ patch ~/.bashrc |
Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.
Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.
Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.
Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора
Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.
Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.
Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:
$ whoami
user
$ #^ Интересно, кто я?в журнале это будет выглядеть так:
$ whoami
user
Интересно, кто я? |
Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:
$ whoami
user
$ cat > /dev/null #^ Интересно, кто я?
Программа whoami выводит имя пользователя, под которым мы зарегистрировались в системе. - Она не может ответить на вопрос о нашем назначении в этом мире.В журнале это будет выглядеть так:
$ whoami user
|
Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=
1 2 3 4Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.
LiLaLo (L3) расшифровывается как Live Lab Log.
Программа разработана для повышения эффективности обучения Unix/Linux-системам.
(c) Игорь Чубин, 2004-2008