/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 |
|
#route
usage: route [-dnqtv] command [[modifiers] args] |
#route -n
usage: route [-dnqtv] command [[modifiers] args] |
#route -n
usage: route [-dnqtv] command [[modifiers] args] |
#netstat
Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 host237.53295 chub.in.http ESTABLISHED tcp4 0 0 host237.56014 chub.in.http ESTABLISHED tcp4 0 0 host237.60096 chub.in.http ESTABLISHED tcp4 0 0 host237.61275 chub.in.18030 TIME_WAIT tcp4 0 0 host237.52794 host237.ssh TIME_WAIT tcp4 0 0 host237.50716 host242.ssh ESTABLISHED Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr ... c7133460 stream 32 0 0 c6c23230 0 0 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 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 c6841000 0 /var/run/logpriv c6841348 dgram 0 0 c68a9880 0 c684108c 0 /var/run/log |
#route -n
usage: route [-dnqtv] command [[modifiers] args] |
#route -n
usage: route [-dnqtv] command [[modifiers] args] |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.180 UGS 0 4600 em0 10.0.15/24 link#1 UC 0 0 em0 10.0.15.3 00:07:e9:3c:2c:15 UHLW 1 4 lo0 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 528 em0 1157 192.168.15.237 00:07:e9:3c:2c:15 UHLW 1 72 lo0 192.168.15.242 00:07:e9:3c:29:f9 UHLW 1 2195 em0 416 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 |
#host 10.0.15.23
Host 23.15.0.10.in-addr.arpa not found: 3(NXDOMAIN) |
#host 10.0.15.23
Host 23.15.0.10.in-addr.arpa not found: 3(NXDOMAIN) |
#traceroute 10.0.15.23
traceroute to 10.0.15.23 (10.0.15.23), 64 hops max, 40 byte packets 1 * * * 2 * * * traceroute: sendto: Host is down 3 traceroute: wrote 10.0.15.23 40 chars, ret=-1 *traceroute: sendto: Host is down traceroute: wrote 10.0.15.23 40 chars, ret=-1 *traceroute: sendto: Host is down traceroute: wrote 10.0.15.23 40 chars, ret=-1 * ... traceroute: sendto: Host is down 5 traceroute: wrote 10.0.15.23 40 chars, ret=-1 *traceroute: sendto: Host is down traceroute: wrote 10.0.15.23 40 chars, ret=-1 *traceroute: sendto: Host is down traceroute: wrote 10.0.15.23 40 chars, ret=-1 * traceroute: sendto: Host is down 6 traceroute: wrote 10.0.15.23 40 chars, ret=-1 ^C |
#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 10.0.15.3 netmask 0xffffff00 broadcast 10.0.15.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 10.0.15.1 netmask 0xff000000 broadcast 10.255.255.255 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.237 netmask 0xffffff00 broadcast 192.168.15.255 inet 10.0.15.3 netmask 0xffffff00 broadcast 10.0.15.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 10.0.15.1 netmask 0xff000000 broadcast 10.255.255.255 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.237 netmask 0xffffff00 broadcast 192.168.15.255 inet 10.0.15.3 netmask 0xffffff00 broadcast 10.0.15.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 10.0.15.1 netmask 0xff000000 broadcast 10.255.255.255 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.237 netmask 0xffffff00 broadcast 192.168.15.255 inet 10.0.15.3 netmask 0xffffff00 broadcast 10.0.15.255 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 10.0.15.1 netmask 0xff000000 broadcast 10.255.255.255 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 10.0.15.3 -alias
|
#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 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet 10.0.15.1 netmask 0xff000000 broadcast 10.255.255.255 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.237 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 10.0.15.133 netmask 0xffffff00 broadcast 10.0.15.255 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.255 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.237 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 10.0.15.133 netmask 0xffffff00 broadcast 10.0.15.255 inet 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.255 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 10.0.15.23
PING 10.0.15.23 (10.0.15.23): 56 data bytes ping: sendto: Host is down ^C --- 10.0.15.23 ping statistics --- 6 packets transmitted, 0 packets received, 100% packet loss |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.180 UGS 0 4688 em0 10.0.15/24 link#2 UC 0 0 xl0 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 547 em0 1168 192.168.15.237 00:07:e9:3c:2c:15 UHLW 1 72 lo0 192.168.15.242 00:07:e9:3c:29:f9 UHLW 1 2195 em0 43 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 |
#echo ifconfig_xl0="inet 10.0.15.133/24"
ifconfig_xl0=inet 10.0.15.133/24 |
#echo ifconfig_xl0="inet 10.0.15.133/24" >> /etc/rc.conf
|
#echo ifconfig_xl0="inet 10.0.15.133/24" >> /etc/rc.conf
|
#echo ifconfig_xl0="inet 10.0.15.133/24" >> /etc/rc.conf
|
#vim /etc/rc.conf
20c20 < ifconfig_xl0=inet 10.0.15.133/24 --- > ifconfig_xl0="inet 10.0.15.133/24" |
#netstart
bash: netstart: command not found |
#/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.15.237 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 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.255 inet 10.0.15.133 netmask 0xffffff00 broadcast 10.0.15.255 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier Additional routing options:. |
#/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.15.237 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 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.255 inet 10.0.15.133 netmask 0xffffff00 broadcast 10.0.15.255 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier Additional routing options:. |
#ifconfig xl0 10.0.15.133 -alias
|
#ifconfig xl0 10.0.15.133 -alias
|
#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 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 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.255 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 |
#/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.15.237 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 10.0.15.133 netmask 0xffffff00 broadcast 10.0.15.255 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier Additional routing options:. |
#/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.15.237 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 10.0.15.133 netmask 0xffffff00 broadcast 10.0.15.255 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier Additional routing options:. |
#/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.15.237 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 10.0.15.133 netmask 0xffffff00 broadcast 10.0.15.255 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier Additional routing options:. |
#/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.15.237 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 10.0.15.133 netmask 0xffffff00 broadcast 10.0.15.255 ether 00:04:76:a1:f0:5d media: Ethernet autoselect (none) status: no carrier Additional routing options:. |
#vim /etc/rc.conf
20a21 > ifconfig_xl0_alias0="inet 10.0.15.3/32" |
#netstart
bash: netstart: command not found |
#netstart
bash: netstart: command not found |
#/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.15.237 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 10.0.15.133 netmask 0xffffff00 broadcast 10.0.15.255 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 Additional routing options:. |
#/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.15.237 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 10.0.15.133 netmask 0xffffff00 broadcast 10.0.15.255 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 Additional routing options:. |
#arp -a
host180.unix.nt (192.168.15.180) at 00:04:75:7f:23:26 on em0 [ethernet] host237.unix.nt (192.168.15.237) at 00:07:e9:3c:2c:15 on em0 permanent [ethernet] host242.unix.nt (192.168.15.242) at 00:07:e9:3c:29:f9 on em0 [ethernet] |
#arp -a
host180.unix.nt (192.168.15.180) at 00:04:75:7f:23:26 on em0 [ethernet] host237.unix.nt (192.168.15.237) at 00:07:e9:3c:2c:15 on em0 permanent [ethernet] host242.unix.nt (192.168.15.242) at 00:07:e9:3c:29:f9 on em0 [ethernet] |
#arp -a
host180.unix.nt (192.168.15.180) at 00:04:75:7f:23:26 on em0 [ethernet] host237.unix.nt (192.168.15.237) at 00:07:e9:3c:2c:15 on em0 permanent [ethernet] host242.unix.nt (192.168.15.242) at 00:07:e9:3c:29:f9 on em0 [ethernet] |
#ifconfig
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 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 10.0.15.133 netmask 0xffffff00 broadcast 10.0.15.255 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 |
#make install
`install' is up to date. |
#install
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ... |
#install
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 file2 install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode] [-o owner] file1 ... fileN directory install -d [-v] [-g group] [-m mode] [-o owner] directory ... |
#cd /usr/ports/mail/popa3d &&
these network services to be started at boot time. /usr/local/etc/rc.d/popa3d.sh If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.openwall.com/popa3d/ |
#ifconfig
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 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 10.0.15.133 netmask 0xffffff00 broadcast 10.0.15.255 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 |
#arp -a
host180.unix.nt (192.168.15.180) at 00:04:75:7f:23:26 on em0 [ethernet] host237.unix.nt (192.168.15.237) at 00:07:e9:3c:2c:15 on em0 permanent [ethernet] host242.unix.nt (192.168.15.242) at 00:07:e9:3c:29:f9 on em0 [ethernet] host243.unix.nt (192.168.15.243) at 00:07:e9:3c:29:f9 on em0 [ethernet] |
#sh /etc/rc.conf
|
#sh /etc/rc.conf
|
#/usr/local/etc/rc.d/popa3d.sh start
Starting popa3d. |
#arp -a
host180.unix.nt (192.168.15.180) at 00:04:75:7f:23:26 on em0 [ethernet] host237.unix.nt (192.168.15.237) at 00:07:e9:3c:2c:15 on em0 permanent [ethernet] host240.unix.nt (192.168.15.240) at 00:0a:b8:ab:eb:c0 on em0 [ethernet] host242.unix.nt (192.168.15.242) at 00:07:e9:3c:29:f9 on em0 [ethernet] host243.unix.nt (192.168.15.243) at 00:07:e9:3c:29:9e on em0 [ethernet] |
#netstat -r -n -f inet
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.15.180 UGS 0 9325 em0 10.0.15/24 link#2 UC 0 0 xl0 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 1059 em0 1022 192.168.15.237 00:07:e9:3c:2c:15 UHLW 1 72 lo0 192.168.15.240 00:0a:b8:ab:eb:c0 UHLW 1 5 em0 1001 192.168.15.242 00:07:e9:3c:29:f9 UHLW 1 1033 em0 665 192.168.15.243 00:07:e9:3c:29:9e UHLW 1 5 em0 766 |
#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 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 10.0.15.133 netmask 0xffffff00 broadcast 10.0.15.255 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.237 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 10.0.15.133 netmask 0xffffff00 broadcast 10.0.15.255 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.237 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 10.0.15.133 netmask 0xffffff00 broadcast 10.0.15.255 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 |
#tcpdump
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on em0, link-type EN10MB (Ethernet), capture size 96 bytes 16:22:51.279625 IP host242.unix.nt.ssh > host237.unix.nt.50716: P 1611095763:1611095811(48) ack 2236341334 win 33304 <nop,nop,timestamp 24324985 24210858> 16:22:51.300106 IP host242.unix.nt.ssh > host237.unix.nt.50716: P 48:176(128) ack 1 win 33304 <nop,nop,timestamp 24325006 24210858> 16:22:51.300193 IP host237.unix.nt.50716 > host242.unix.nt.ssh: . ack 176 win 33240 <nop,nop,timestamp 24211942 24324985> 16:22:51.418220 IP host237.unix.nt.57731 > host180.unix.nt.domain: 13654+ A? xgu.ru. (24) 16:22:51.419014 IP host180.unix.nt.domain > host237.unix.nt.57731: 13654 1/3/3 A chub.in (154) 16:22:51.419486 IP host237.unix.nt.60663 > chub.in.18030: S 1085104554:1085104554(0) win 65535 <mss 1460,nop,wscale 1,nop,nop,timestamp 24212061 0,sackOK,eol> 16:22:51.439250 IP chub.in.18030 > host237.unix.nt.60663: S 3235861752:3235861752(0) ack 1085104555 win 5792 <mss 1460,sackOK,timestamp 16241242 24212061,nop,wscale 2> 16:22:51.439324 IP host237.unix.nt.60663 > chub.in.18030: . ack 1 win 33304 <nop,nop,timestamp 24212081 16241242> ... 16:22:51.795116 IP host237.unix.nt.50716 > host242.unix.nt.ssh: . ack 528 win 33240 <nop,nop,timestamp 24212437 24325477> 16:22:51.970924 IP host242.unix.nt.ssh > host237.unix.nt.50716: P 528:576(48) ack 1 win 33304 <nop,nop,timestamp 24325677 24212437> 16:22:52.070976 IP host237.unix.nt.50716 > host242.unix.nt.ssh: . ack 576 win 33304 <nop,nop,timestamp 24212713 24325677> 16:22:52.093961 IP host242.unix.nt.ssh > host237.unix.nt.50716: P 576:704(128) ack 1 win 33304 <nop,nop,timestamp 24325800 24212713> 16:22:52.193972 IP host237.unix.nt.50716 > host242.unix.nt.ssh: . ack 704 win 33304 <nop,nop,timestamp 24212836 24325800> 16:22:53.614636 ^C 32 packets captured 32 packets received by filter 0 packets dropped by kernel |
#tcpdump
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on em0, link-type EN10MB (Ethernet), capture size 96 bytes 16:22:51.279625 IP host242.unix.nt.ssh > host237.unix.nt.50716: P 1611095763:1611095811(48) ack 2236341334 win 33304 <nop,nop,timestamp 24324985 24210858> 16:22:51.300106 IP host242.unix.nt.ssh > host237.unix.nt.50716: P 48:176(128) ack 1 win 33304 <nop,nop,timestamp 24325006 24210858> 16:22:51.300193 IP host237.unix.nt.50716 > host242.unix.nt.ssh: . ack 176 win 33240 <nop,nop,timestamp 24211942 24324985> 16:22:51.418220 IP host237.unix.nt.57731 > host180.unix.nt.domain: 13654+ A? xgu.ru. (24) 16:22:51.419014 IP host180.unix.nt.domain > host237.unix.nt.57731: 13654 1/3/3 A chub.in (154) 16:22:51.419486 IP host237.unix.nt.60663 > chub.in.18030: S 1085104554:1085104554(0) win 65535 <mss 1460,nop,wscale 1,nop,nop,timestamp 24212061 0,sackOK,eol> 16:22:51.439250 IP chub.in.18030 > host237.unix.nt.60663: S 3235861752:3235861752(0) ack 1085104555 win 5792 <mss 1460,sackOK,timestamp 16241242 24212061,nop,wscale 2> 16:22:51.439324 IP host237.unix.nt.60663 > chub.in.18030: . ack 1 win 33304 <nop,nop,timestamp 24212081 16241242> ... 16:22:51.795116 IP host237.unix.nt.50716 > host242.unix.nt.ssh: . ack 528 win 33240 <nop,nop,timestamp 24212437 24325477> 16:22:51.970924 IP host242.unix.nt.ssh > host237.unix.nt.50716: P 528:576(48) ack 1 win 33304 <nop,nop,timestamp 24325677 24212437> 16:22:52.070976 IP host237.unix.nt.50716 > host242.unix.nt.ssh: . ack 576 win 33304 <nop,nop,timestamp 24212713 24325677> 16:22:52.093961 IP host242.unix.nt.ssh > host237.unix.nt.50716: P 576:704(128) ack 1 win 33304 <nop,nop,timestamp 24325800 24212713> 16:22:52.193972 IP host237.unix.nt.50716 > host242.unix.nt.ssh: . ack 704 win 33304 <nop,nop,timestamp 24212836 24325800> 16:22:53.614636 ^C 32 packets captured 32 packets received by filter 0 packets dropped by kernel |
#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 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 10.0.15.3 netmask 0xffffffff broadcast 10.0.15.3 inet 192.168.16.62 netmask 0xffffffc0 broadcast 192.168.16.63 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 xl0 -alias
|
#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 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 (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: 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 (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.237 netmask 255. netmask 255.255.2
|
#ifconfig em0 192.168.15.237 netmask 255.255. netmask 255.2
|
#ifconfig em0 192.168.15.237 netmask 255.255.255. netmask 2
|
#ifconfig em0 192.168.15.237 netmask 255.255.255. netmask 2
|
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.237 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 |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.237 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 |
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.237 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 |
#ifconfig em0 192.168.15.237 netmask 255.255.255.0 broadcas
|
#ifconfig em0 192.168.15.237 netmask 255.255.255.0 broadcas
|
#ifconfig em0 192.168.15.237 netmask 255.255t 192.168.15.25
|
#ifconfig em0 192.168.15.237 nett 192.168.15.255 netmask 25
|
#ifconfig em0 192.168.15.237t 192.168.15.255 netmask 255.25
|
#ifconfig em0 192.168.15t 192.168.15.255 netmask 255.255.25
|
#ifconfig -a
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet 192.168.15.237 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:3c:2c:15 media: Ethernet autoselect status: no carrier 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 |
#t 192.168.15.255 netmask 255.255.255.192 broadcast 192.168
|
#t 192.168.15.255 netmask 255.255.255.192 broadcast\
bash: t: command not found |
#t 192.168.15.255 netmask 255.255.255.192 broadcast\ 192.16
|
#t 192.168.15.255 netmask 255.255.255.192 broadcast\
> 192.168.15.255 bash: t: command not found |
#ifconfig -a
|
#ifconfig -a
|
#ifconfig -a
|
#ifconfig -a
|
#ifconfig -a
|
#ifconfig -a
|
#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 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 192.168.15.237 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 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 192.168.15.237 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 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 192.168.15.237 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 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 192.168.15.237 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 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
|
#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 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 em0 192.168.16.65 netmask 255.255.255.192\
> broadcast 192.168.16.127 alias |
#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 |
#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 |
Время первой команды журнала | 13:05:03 2007- 9-10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 16:34:17 2007- 9-10 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 11.88 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 11.88 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.46 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.15 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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