/l3/trainings/nt-lnet/2006-02-18/fbsd2/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 :22 :23 :24 |
|
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (none) status: no carrier fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (none) status: no carrier lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.16.1 ping statistics --- 9 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 ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.16.1 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.15.254 ping statistics --- 9 packets transmitted, 0 packets received, 100% packet loss |
#[root@fbsd2:~]# ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.15.254 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#[root@fbsd2:~]# ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (none) status: no carrier fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 56 data bytes ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.15.254 ping statistics --- 8 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.16.2
PING 192.168.16.2 (192.168.16.2): 56 data bytes 64 bytes from 192.168.16.2: icmp_seq=0 ttl=64 time=0.083 ms 64 bytes from 192.168.16.2: icmp_seq=1 ttl=64 time=0.056 ms 64 bytes from 192.168.16.2: icmp_seq=2 ttl=64 time=0.057 ms ^C --- 192.168.16.2 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.056/0.065/0.083/0.012 ms |
#ping 192.168.16.1
PING 192.168.16.1 (192.168.16.1): 56 data bytes ^C --- 192.168.16.1 ping statistics --- 5 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 ping: sendto: Host is down ping: sendto: Host is down ^C --- 192.168.16.1 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss |
#less /etc/rc.conf
|
#vi /etc/rc.conf
12c12 < ifconfig_fxp0="inet 192.168.15.22 netmask 255.255.255.0" --- > ifconfig_fxp0="inet 192.168.16.65 netmask 255.255.255.192" |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (none) status: no carrier fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.15.22 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig fxp0 inet 192.168.16.65 netmask 255.255.255.192
|
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (none) status: no carrier fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (none) status: no carrier lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (none) status: no carrier fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (none) status: no carrier lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (none) status: no carrier fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (none) status: no carrier lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (none) status: no carrier fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (none) status: no carrier lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (none) status: no carrier fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (none) status: no carrier lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (none) status: no carrier fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (none) status: no carrier lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (none) status: no carrier fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (none) status: no carrier lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (none) status: no carrier fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (none) status: no carrier lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (none) status: no carrier lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (none) status: no carrier lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (none) status: no carrier lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (none) status: no carrier lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#ifconfig
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 |
#vi /etc/rc.conf
|
#/etc/rc.d/netif restart
Stopping network: lo0 xl0 fxp0. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#vi /etc/rc.conf
|
#/etc/rc.d/netif restart
Stopping network: lo0 xl0 fxp0. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ping 92.168.16.1
PING 92.168.16.1 (92.168.16.1): 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 ^Xping: sendto: No route to host ^C --- 92.168.16.1 ping statistics --- 5 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.204 ms 64 bytes from 192.168.16.1: icmp_seq=1 ttl=64 time=0.188 ms 64 bytes from 192.168.16.1: icmp_seq=2 ttl=64 time=0.188 ms ^C --- 192.168.16.1 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.188/0.193/0.204/0.008 ms |
#ping 192.168.16.65
PING 192.168.16.65 (192.168.16.65): 56 data bytes 64 bytes from 192.168.16.65: icmp_seq=0 ttl=64 time=0.103 ms 64 bytes from 192.168.16.65: icmp_seq=1 ttl=64 time=0.058 ms 64 bytes from 192.168.16.65: icmp_seq=2 ttl=64 time=0.059 ms 64 bytes from 192.168.16.65: icmp_seq=3 ttl=64 time=0.062 ms 64 bytes from 192.168.16.65: icmp_seq=4 ttl=64 time=0.054 ms ^C --- 192.168.16.65 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.054/0.067/0.103/0.018 ms |
#ping 192.168.16.66
PING 192.168.16.66 (192.168.16.66): 56 data bytes 64 bytes from 192.168.16.66: icmp_seq=0 ttl=64 time=0.216 ms 64 bytes from 192.168.16.66: icmp_seq=1 ttl=64 time=0.169 ms 64 bytes from 192.168.16.66: icmp_seq=2 ttl=64 time=0.175 ms ^C --- 192.168.16.66 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.169/0.187/0.216/0.021 ms |
#route add 192.168.16.0/24 192.168.16.1
add net 192.168.16.0: gateway 192.168.16.1 |
#route add 192.168.17.0/24 192.168.17.1
route: writing to routing socket: Network is unreachable add net 192.168.17.0: gateway 192.168.17.1: Network is unreachable |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.16/26 link#1 UC 0 0 xl0 => 192.168.16 192.168.16.1 UGS 0 0 xl0 192.168.16.1 link#1 UHLW 2 0 xl0 192.168.16.64/26 link#2 UC 0 0 fxp0 192.168.16.65 00:07:e9:45:0d:2c UHLW 1 10 lo0 Internet6: ... fe80::%xl0/64 link#1 UC xl0 fe80::204:79ff:fe67:9671%xl0 00:04:79:67:96:71 UHL lo0 fe80::%fxp0/64 link#2 UC fxp0 fe80::207:e9ff:fe45:d2c%fxp0 00:07:e9:45:0d:2c UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#3 UHL lo0 ff01::/32 ::1 U lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%fxp0/32 link#2 UC fxp0 ff02::%lo0/32 ::1 UC lo0 |
#sysctl -a | grep forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#vi /etc/rc.conf
|
#sysctl -a | grep forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a | grep forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#/etc/rc.d/netif restart
Stopping network: lo0 xl0 fxp0. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#sysctl -a | grep forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#vi /etc/rc.conf
|
#sysctl -a | grep forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a | grep forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#/etc/rc.d/netif restart
Stopping network: lo0 xl0 fxp0. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#sysctl -a | grep forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#vi /etc/rc.conf
|
#exitr
bash: exitr: command not found |
#vi /etc/rc.conf
|
#sysctl -a | grep forward
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -w net.inet.ip.forwarding=1
net.inet.ip.forwarding: 0 -> 1 |
#sysctl -a | grep forward
net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#vi /etc/rc.conf
|
#/etc/rc.d/routing restart
route: writing to routing socket: Network is unreachable add net default: gateway 192.168.15.254: Network is unreachable add net 192.168.16.0: gateway 192.168.16.1 route: writing to routing socket: Network is unreachable add net 192.168.17.0: gateway 192.168.17.1: Network is unreachable Additional routing options: IP gateway=YES. |
#/etc/rc.d/netif restart
Stopping network: lo0 xl0 fxp0. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#/etc/rc.d/routing restart
route: writing to routing socket: Network is unreachable add net default: gateway 192.168.15.254: Network is unreachable add net 192.168.16.0: gateway 192.168.16.1 route: writing to routing socket: Network is unreachable add net 192.168.17.0: gateway 192.168.17.1: Network is unreachable Additional routing options: IP gateway=YES. |
#vi /etc/rc.conf
|
#/etc/rc.d/routing restart
192.168.16 192.168.16.1 done add net default: gateway 192.168.16.1 add net 192.168.16.0: gateway 192.168.16.1 add net 192.168.17.0: gateway 192.168.17.1 Additional routing options: IP gateway=YES. |
#/etc/rc.d/netif restart
Stopping network: lo0 xl0 fxp0. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> inet6 fe80::204:79ff:fe67:9671%xl0 prefixlen 64 scopeid 0x1 inet 192.168.16.2 netmask 0xffffffc0 broadcast 192.168.16.63 ether 00:04:79:67:96:71 media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=8<VLAN_MTU> inet6 fe80::207:e9ff:fe45:d2c%fxp0 prefixlen 64 scopeid 0x2 inet 192.168.16.65 netmask 0xffffffc0 broadcast 192.168.16.127 ether 00:07:e9:45:0d:2c media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ping google.com.ua
ping: cannot resolve google.com.ua: Host name lookup failure |
#ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254): 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 ^C --- 192.168.15.254 ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss |
#vi /etc/rc.cong
|
#vi /etc/rc.conf
|
#/etc/rc.d/routing restart
add net default: gateway 192.168.16.1 add net 192.168.16.0: gateway 192.168.16.1 add net 192.168.17.0: gateway 192.168.17.1 Additional routing options: IP gateway=YES. |
#ping google.com.ua
PING google.com.ua (216.239.39.99): 56 data bytes 64 bytes from 216.239.39.99: icmp_seq=0 ttl=241 time=168.928 ms 64 bytes from 216.239.39.99: icmp_seq=1 ttl=240 time=167.770 ms ^X64 bytes from 216.239.39.99: icmp_seq=2 ttl=240 time=167.525 ms ^C --- google.com.ua ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 167.525/168.074/168.928/0.612 ms |
#ping 192.168.17.1
PING 192.168.17.1 (192.168.17.1): 56 data bytes ping: sendto: Invalid argument ping: sendto: Invalid argument ping: sendto: Invalid argument ping: sendto: Invalid argument ping: sendto: Invalid argument ^C --- 192.168.17.1 ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.16.66
PING 192.168.16.66 (192.168.16.66): 56 data bytes 64 bytes from 192.168.16.66: icmp_seq=0 ttl=64 time=0.212 ms 64 bytes from 192.168.16.66: icmp_seq=1 ttl=64 time=0.163 ms 64 bytes from 192.168.16.66: icmp_seq=2 ttl=64 time=0.165 ms ^C --- 192.168.16.66 ping statistics --- 3 packets transmitted, 3 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.163/0.180/0.212/0.023 ms |
#ping 192.168.16.129
36 bytes from linux16-1.linux.nt (192.168.16.1): Redirect Host(New addr: 192.168.16.2) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 01da 0 0000 06 01 10fc 192.168.16.2 192.168.16.129 36 bytes from linux16-2.linux.nt (192.168.16.2): Redirect Host(New addr: 192.168.16.1) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 01da 0 0000 05 01 11fc 192.168.16.2 192.168.16.129 36 bytes from linux16-1.linux.nt (192.168.16.1): Redirect Host(New addr: 192.168.16.2) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 01da 0 0000 04 01 12fc 192.168.16.2 192.168.16.129 36 bytes from linux16-2.linux.nt (192.168.16.2): Redirect Host(New addr: 192.168.16.1) ... 4 5 00 0054 023b 0 0000 25 01 f19a 192.168.16.2 192.168.16.129 36 bytes from linux16-1.linux.nt (192.168.16.1): Redirect Host(New addr: 192.168.16.2) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 023b 0 0000 24 01 f29a 192.168.16.2 192.168.16.129 36 bytes from linux16-2.linux.nt (192.168.16.2): Redirect Host(New addr: 192.168.16.1) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 023b 0 0000 23 01 f39a 192.168.16.2 192.168.16.129 36 bytes from linux16-1.linux.nt (192.168.16.1): Redirect Host(New addr: 192.168.16.2) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 023b 0 0000 22 01 f49a 192.168.16.2 192.168.16.129 |
#ping 192.168.16.129
4 5 00 0054 02e8 0 0000 25 01 f0ed 192.168.16.2 192.168.16.129 36 bytes from linux16-1.linux.nt (192.168.16.1): Redirect Host(New addr: 192.168.16.2) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 02e8 0 0000 24 01 f1ed 192.168.16.2 192.168.16.129 36 bytes from linux16-2.linux.nt (192.168.16.2): Redirect Host(New addr: 192.168.16.1) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 02e8 0 0000 23 01 f2ed 192.168.16.2 192.168.16.129 36 bytes from linux16-1.linux.nt (192.168.16.1): Redirect Host(New addr: 192.168.16.2) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 02e8 0 0000 22 01 f3ed 192.168.16.2 192.168.16.129 ... 4 5 00 0054 02e8 0 0000 03 01 12ee 192.168.16.2 192.168.16.129 36 bytes from linux16-1.linux.nt (192.168.16.1): Redirect Host(New addr: 192.168.16.2) Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 02e8 0 0000 02 01 13ee 192.168.16.2 192.168.16.129 36 bytes from linux16-2.linux.nt (192.168.16.2): Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 5400 02e8 0 0000 01 01 14ee 192.168.16.2 192.168.16.129 ^C --- 192.168.16.129 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#traceroute -n 192.168.16.129
traceroute to 192.168.16.129 (192.168.16.129), 64 hops max, 40 byte packets 1 192.168.16.1 0.329 ms 0.250 ms 0.285 ms 2 192.168.16.2 0.297 ms 0.287 ms 0.283 ms 3 192.168.16.1 0.403 ms 0.367 ms 0.364 ms 4 192.168.16.2 0.420 ms 0.412 ms 0.399 ms 5 192.168.16.1 0.468 ms 0.518 ms 0.453 ms 6 192.168.16.2 0.504 ms 0.605 ms 0.519 ms 7 192.168.16.1 0.605 ms 0.619 ms 0.588 ms 8 192.168.16.2 0.619 ms 0.630 ms 0.636 ms 9 192.168.16.1 0.708 ms 0.700 ms 0.721 ms ... 55 192.168.16.1 3.345 ms 3.509 ms 3.388 ms 56 192.168.16.2 3.420 ms 3.402 ms 3.404 ms 57 192.168.16.1 3.510 ms 3.490 ms 3.482 ms 58 192.168.16.2 3.484 ms 3.484 ms 3.608 ms 59 192.168.16.1 3.986 ms 3.636 ms 3.679 ms 60 192.168.16.2 3.699 ms 3.715 ms 3.564 ms 61 192.168.16.1 3.717 ms 3.767 ms 3.741 ms 62 192.168.16.2 3.771 ms 3.940 ms 3.754 ms 63 192.168.16.1 3.806 ms 3.853 ms 3.864 ms 64 192.168.16.2 3.899 ms 3.891 ms 3.861 ms |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.1 UGS 1 444 xl0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.16/26 link#1 UC 0 0 xl0 => 192.168.16 192.168.16.1 UGS 0 3808 xl0 192.168.16.1 00:0a:01:d4:d1:e3 UHLW 3 205 xl0 911 192.168.16.2 00:04:79:67:96:71 UHLW 1 3450 lo0 192.168.16.64/26 link#2 UC 0 0 fxp0 ... fe80::%xl0/64 link#1 UC xl0 fe80::204:79ff:fe67:9671%xl0 00:04:79:67:96:71 UHL lo0 fe80::%fxp0/64 link#2 UC fxp0 fe80::207:e9ff:fe45:d2c%fxp0 00:07:e9:45:0d:2c UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#3 UHL lo0 ff01::/32 ::1 U lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%fxp0/32 link#2 UC fxp0 ff02::%lo0/32 ::1 UC lo0 |
#vi /etc/rc.conf
15,16c15,16 < route_net16="192.168.16.0/24 192.168.16.1" < route_net17="192.168.17.0/24 192.168.17.1" --- > route_net16="192.168.16.0/24 192.168.16.66" > route_net17="192.168.17.0/24 192.168.16.66" |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.1 UGS 1 547 xl0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.16/26 link#1 UC 0 0 xl0 => 192.168.16 192.168.16.1 UGS 0 11756 xl0 192.168.16.1 00:0a:01:d4:d1:e3 UHLW 3 5998 xl0 709 192.168.16.2 00:04:79:67:96:71 UHLW 1 3636 lo0 192.168.16.64/26 link#2 UC 0 0 fxp0 ... fe80::%xl0/64 link#1 UC xl0 fe80::204:79ff:fe67:9671%xl0 00:04:79:67:96:71 UHL lo0 fe80::%fxp0/64 link#2 UC fxp0 fe80::207:e9ff:fe45:d2c%fxp0 00:07:e9:45:0d:2c UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#3 UHL lo0 ff01::/32 ::1 U lo0 ff02::%xl0/32 link#1 UC xl0 ff02::%fxp0/32 link#2 UC fxp0 ff02::%lo0/32 ::1 UC lo0 |
#/etc/rc.d/routing restart
default 192.168.16.1 done 192.168.16 192.168.16.1 done 192.168.17 192.168.17.1 done add net default: gateway 192.168.16.1 add net 192.168.16.0: gateway 192.168.16.66 add net 192.168.17.0: gateway 192.168.16.66 Additional routing options: IP gateway=YES. |
#ping 192.168.16.66
PING 192.168.16.66 (192.168.16.66): 56 data bytes 64 bytes from 192.168.16.66: icmp_seq=0 ttl=64 time=0.172 ms 64 bytes from 192.168.16.66: icmp_seq=1 ttl=64 time=0.162 ms 64 bytes from 192.168.16.66: icmp_seq=2 ttl=64 time=0.164 ms 64 bytes from 192.168.16.66: icmp_seq=3 ttl=64 time=0.171 ms ^C --- 192.168.16.66 ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.162/0.167/0.172/0.004 ms |
#ping 192.168.17.1
PING 192.168.17.1 (192.168.17.1): 56 data bytes 64 bytes from 192.168.17.1: icmp_seq=0 ttl=62 time=0.441 ms 64 bytes from 192.168.17.1: icmp_seq=1 ttl=62 time=0.360 ms 64 bytes from 192.168.17.1: icmp_seq=2 ttl=62 time=0.343 ms 64 bytes from 192.168.17.1: icmp_seq=3 ttl=62 time=0.314 ms ^C --- 192.168.17.1 ping statistics --- 4 packets transmitted, 4 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.314/0.364/0.441/0.047 ms |
#pkg_add cvsup
pkg_add: can't stat package file 'cvsup' |
#pkg_add -r cvsup
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.0-release/Latest/cvsup.tbz... Done. pkg_add: package 'cvsup-16.1h_2' or its older version already installed |
#cd /etc/mail
|
#ls
Makefile freebsd.cf mailer.conf README freebsd.mc mailertable.sample access.sample freebsd.submit.cf sendmail.cf aliases freebsd.submit.mc submit.cf aliases.db helpfile virtusertable.sample |
#make
cp freebsd.mc fbsd2.mc /usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4 fbsd2.mc > fbsd2.cf cp freebsd.submit.mc fbsd2.submit.mc /usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4 fbsd2.submit.mc > fbsd2.submit.cf |
#ls
Makefile fbsd2.submit.cf mailer.conf README fbsd2.submit.mc mailertable.sample access.sample freebsd.cf sendmail.cf aliases freebsd.mc submit.cf aliases.db freebsd.submit.cf virtusertable.sample fbsd2.cf freebsd.submit.mc fbsd2.mc helpfile |
#cp sendmail.cf sendmail.cf
cp: sendmail.cf and sendmail.cf are identical (not copied). |
#cp sendmail.cf sendmail.cf_old
|
#ls
Makefile fbsd2.submit.cf mailer.conf README fbsd2.submit.mc mailertable.sample access.sample freebsd.cf sendmail.cf aliases freebsd.mc sendmail.cf_old aliases.db freebsd.submit.cf submit.cf fbsd2.cf freebsd.submit.mc virtusertable.sample fbsd2.mc helpfile |
#vi fbsd2.cf
|
#vi fbsd2.mc
|
#make install
/usr/bin/m4 -D_CF_DIR_=/usr/share/sendmail/cf/ /usr/share/sendmail/cf/m4/cf.m4 fbsd2.mc > fbsd2.cf install -m 444 fbsd2.cf /etc/mail/sendmail.cf install -m 444 fbsd2.submit.cf /etc/mail/submit.cf |
#cd /etc/rc.con
rc.conf rc.cong |
#cd /etc/rc.d
|
#ls
DAEMON dumpon kpasswdd ntpd rwho LOGIN early.sh ldconfig ntpdate savecore NETWORKING encswap local othermta securelevel SERVERS fsck localpkg pccard sendmail abi gbde lpd pcvt serial accounting geli mixer pf sppp addswap geli2 motd pflog sshd adjkerntz hostname mountcritlocal pfsync swap1 amd ike mountcritremote power_profile syscons apm inetd mountd powerd sysctl ... bootparams ipmon netif random virecover bsnmpd ipnat netoptions rarpd watchdogd ccd ipsec network_ipv6 rcconf.sh wpa_supplicant cleanvar ipxrouted newsyslog resolv ypbind cleartmp isdnd nfsclient root yppasswdd cron jail nfsd route6d ypserv devd kadmind nfslocking routed ypset devfs kerberos nfsserver routing ypupdated dhclient keyserv nisdomain rpcbind ypxfrd dmesg kldxref nsswitch rtadvd |
#./rc.d
bash: ./rc.d: No such file or directory |
#ls
DAEMON dumpon kpasswdd ntpd rwho LOGIN early.sh ldconfig ntpdate savecore NETWORKING encswap local othermta securelevel SERVERS fsck localpkg pccard sendmail abi gbde lpd pcvt serial accounting geli mixer pf sppp addswap geli2 motd pflog sshd adjkerntz hostname mountcritlocal pfsync swap1 amd ike mountcritremote power_profile syscons apm inetd mountd powerd sysctl ... bootparams ipmon netif random virecover bsnmpd ipnat netoptions rarpd watchdogd ccd ipsec network_ipv6 rcconf.sh wpa_supplicant cleanvar ipxrouted newsyslog resolv ypbind cleartmp isdnd nfsclient root yppasswdd cron jail nfsd route6d ypserv devd kadmind nfslocking routed ypset devfs kerberos nfsserver routing ypupdated dhclient keyserv nisdomain rpcbind ypxfrd dmesg kldxref nsswitch rtadvd |
#vi /etc/rc.conf
7c7 < defaultrouter="192.168.16.1" --- > defaultrouter="192.168.16.66" 15,16c15,16 < route_net16="192.168.16.0/24 192.168.16.66" < route_net17="192.168.17.0/24 192.168.16.66" --- > route_net16="192.168.16.0/24 192.168.16.1" > route_net17="192.168.17.0/24 192.168.16.1" |
#/etc/rc.d/routing restart
default 192.168.16.1 done 192.168.16 192.168.16.66 done 192.168.17 192.168.16.66 done add net default: gateway 192.168.16.66 add net 192.168.16.0: gateway 192.168.16.1 add net 192.168.17.0: gateway 192.168.16.1 Additional routing options: IP gateway=YES. |
Время первой команды журнала | 12:02:22 2006- 2-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Время последней команды журнала | 14:31:56 2006- 2-18 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 16.83 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 1.98 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 1.55 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 1.08 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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