/l3/users/bezha/nt-bsdnet/fbsd6.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 :37 :38 :39 :40 :41 :42 :43 :44 :45 :46 :47 :48 :49 :50 :51 :52 :53 :54 :55 :56 :57 :58 :59 :60 :61 :62 :63 :64 :65 :66 :67 :68 :69 :70 :71 :72 :73 :74 :75 :76 :77 :78 :79 :80 :81 :82 :83 :84 :85 :86 :87 :88 :89 :90 :91 :92 :93 :94 :95 :96 :97 :98 :99 :100 |
|
#/etc/rc.d/netif restart
Stopping network: lo0 em0. ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCSETVLAN: Device busy ifconfig: SIOCSETVLAN: Device busy lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ... ether 00:13:d4:b2:4f:ec media: Ethernet autoselect status: no carrier vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect status: no carrier vlan: 5 parent interface: em0 |
#vi /etc/rc.conf
|
#vi /etc/rc.conf
|
#vi /etc/rc.conf
|
#vi /etc/rc.conf
|
#/etc/rc.d/routing restart
add net default: gateway 192.168.15.254 Additional routing options:. |
#/etc/rc.d/routing restart
add net default: gateway 192.168.15.254 Additional routing options:. |
#/etc/rc.d/routing restart
add net default: gateway 192.168.15.254 Additional routing options:. |
#/etc/rc.d/routing restart
add net default: gateway 192.168.15.254 Additional routing options:. |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 inet 192.168.15.26 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 ... ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 inet 192.168.15.26 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 ... ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 inet 192.168.15.26 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 ... ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 inet 192.168.15.26 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 ... ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#ifconfig vlan4 destroy
|
#ifconfig vlan4 destroy
|
#ifconfig vlan4 destroy
|
#ifconfig vlan4 destroy
|
#ifconfig vlan5 destroy
|
#ifconfig vlan5 destroy
|
#ifconfig vlan5 destroy
|
#ifconfig vlan5 destroy
|
#/etc/rc.d/netif restart
Stopping network: lo0 em0. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 inet 192.168.15.26 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:13:d4:b2:4f:ec ... media: Ethernet autoselect status: no carrier vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 192.168.25.254 netmask 0xffffff00 broadcast 192.168.25.255 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 tentative scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect status: no carrier vlan: 5 parent interface: em0 |
#/etc/rc.d/netif restart
Stopping network: lo0 em0. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 inet 192.168.15.26 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:13:d4:b2:4f:ec ... media: Ethernet autoselect status: no carrier vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 192.168.25.254 netmask 0xffffff00 broadcast 192.168.25.255 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 tentative scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect status: no carrier vlan: 5 parent interface: em0 |
#/etc/rc.d/netif restart
Stopping network: lo0 em0. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 inet 192.168.15.26 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:13:d4:b2:4f:ec ... media: Ethernet autoselect status: no carrier vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 192.168.25.254 netmask 0xffffff00 broadcast 192.168.25.255 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 tentative scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect status: no carrier vlan: 5 parent interface: em0 |
#/etc/rc.d/netif restart
Stopping network: lo0 em0. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 inet 192.168.15.26 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:13:d4:b2:4f:ec ... media: Ethernet autoselect status: no carrier vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 192.168.25.254 netmask 0xffffff00 broadcast 192.168.25.255 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 tentative scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect status: no carrier vlan: 5 parent interface: em0 |
#/etc/rc.d/routing restart
add net default: gateway 192.168.15.254 Additional routing options:. |
#/etc/rc.d/routing restart
add net default: gateway 192.168.15.254 Additional routing options:. |
#/etc/rc.d/routing restart
add net default: gateway 192.168.15.254 Additional routing options:. |
#/etc/rc.d/routing restart
add net default: gateway 192.168.15.254 Additional routing options:. |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 inet 192.168.15.26 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 ... media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 192.168.25.254 netmask 0xffffff00 broadcast 192.168.25.255 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 inet 192.168.15.26 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 ... media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 192.168.25.254 netmask 0xffffff00 broadcast 192.168.25.255 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 inet 192.168.15.26 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 ... media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 192.168.25.254 netmask 0xffffff00 broadcast 192.168.25.255 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 inet 192.168.15.26 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 ... media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 192.168.25.254 netmask 0xffffff00 broadcast 192.168.25.255 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#vi /etc/rc.conf
7c7 < ifconfig_em0="inet 192.168.15.26 netmask 255.255.255.0" --- > #ifconfig_em0="inet 192.168.15.26 netmask 255.255.255.0" |
#vi /etc/rc.conf
|
#vi /etc/rc.conf
|
#vi /etc/rc.conf
|
#/etc/rc.d/netif restart
Stopping network: lo0 em0 vlan4 vlan5. ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCSETVLAN: Device busy ifconfig: SIOCSETVLAN: Device busy lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 vlan4: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan4 prefixlen 64 scopeid 0x5 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#/etc/rc.d/netif restart
Stopping network: lo0 em0 vlan4 vlan5. ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCSETVLAN: Device busy ifconfig: SIOCSETVLAN: Device busy lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 vlan4: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan4 prefixlen 64 scopeid 0x5 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#/etc/rc.d/netif restart
Stopping network: lo0 em0 vlan4 vlan5. ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCSETVLAN: Device busy ifconfig: SIOCSETVLAN: Device busy lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 vlan4: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan4 prefixlen 64 scopeid 0x5 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#/etc/rc.d/netif restart
Stopping network: lo0 em0 vlan4 vlan5. ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCSETVLAN: Device busy ifconfig: SIOCSETVLAN: Device busy lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 vlan4: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan4 prefixlen 64 scopeid 0x5 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 media: Ethernet autoselect (none) ... ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 media: Ethernet autoselect (none) ... ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 media: Ethernet autoselect (none) ... ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 media: Ethernet autoselect (none) ... ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active |
#/etc/rc.d/netif restart
Stopping network: lo0. ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCSETVLAN: Device busy ifconfig: SIOCSETVLAN: Device busy lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 vlan4: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan4 prefixlen 64 scopeid 0x5 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#/etc/rc.d/netif restart
Stopping network: lo0. ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCSETVLAN: Device busy ifconfig: SIOCSETVLAN: Device busy lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 vlan4: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan4 prefixlen 64 scopeid 0x5 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#/etc/rc.d/netif restart
Stopping network: lo0. ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCSETVLAN: Device busy ifconfig: SIOCSETVLAN: Device busy lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 vlan4: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan4 prefixlen 64 scopeid 0x5 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#/etc/rc.d/netif restart
Stopping network: lo0. ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCSETVLAN: Device busy ifconfig: SIOCSETVLAN: Device busy lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 vlan4: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan4 prefixlen 64 scopeid 0x5 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#/etc/rc.d/netif restart
Stopping network: lo0. ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCSETVLAN: Device busy ifconfig: SIOCSETVLAN: Device busy lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 vlan4: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan4 prefixlen 64 scopeid 0x5 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#/etc/rc.d/netif restart
Stopping network: lo0. ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCSETVLAN: Device busy ifconfig: SIOCSETVLAN: Device busy lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 vlan4: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan4 prefixlen 64 scopeid 0x5 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#/etc/rc.d/netif restart
Stopping network: lo0. ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCSETVLAN: Device busy ifconfig: SIOCSETVLAN: Device busy lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 vlan4: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan4 prefixlen 64 scopeid 0x5 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#/etc/rc.d/netif restart
Stopping network: lo0. ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCIFCREATE: File exists ifconfig: SIOCSETVLAN: Device busy ifconfig: SIOCSETVLAN: Device busy lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 vlan4: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan4 prefixlen 64 scopeid 0x5 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#vi /etc/rc.conf
21,23c21,23 < cloned_interfaces="vlan4 vlan5" < ifconfig_vlan4="192.168.26.254/24 vlan 4 vlandev em0" < ifconfig_vlan5="192.168.25.254/24 vlan 5 vlandev em0" --- > #cloned_interfaces="vlan4 vlan5" > #ifconfig_vlan4="192.168.26.254/24 vlan 4 vlandev em0" > #ifconfig_vlan5="192.168.25.254/24 vlan 5 vlandev em0" |
#vi /etc/rc.conf
21,23c21,23 < cloned_interfaces="vlan4 vlan5" < ifconfig_vlan4="192.168.26.254/24 vlan 4 vlandev em0" < ifconfig_vlan5="192.168.25.254/24 vlan 5 vlandev em0" --- > #cloned_interfaces="vlan4 vlan5" > #ifconfig_vlan4="192.168.26.254/24 vlan 4 vlandev em0" > #ifconfig_vlan5="192.168.25.254/24 vlan 5 vlandev em0" |
#vi /etc/rc.conf
21,23c21,23 < cloned_interfaces="vlan4 vlan5" < ifconfig_vlan4="192.168.26.254/24 vlan 4 vlandev em0" < ifconfig_vlan5="192.168.25.254/24 vlan 5 vlandev em0" --- > #cloned_interfaces="vlan4 vlan5" > #ifconfig_vlan4="192.168.26.254/24 vlan 4 vlandev em0" > #ifconfig_vlan5="192.168.25.254/24 vlan 5 vlandev em0" |
#vi /etc/rc.conf
21,23c21,23 < cloned_interfaces="vlan4 vlan5" < ifconfig_vlan4="192.168.26.254/24 vlan 4 vlandev em0" < ifconfig_vlan5="192.168.25.254/24 vlan 5 vlandev em0" --- > #cloned_interfaces="vlan4 vlan5" > #ifconfig_vlan4="192.168.26.254/24 vlan 4 vlandev em0" > #ifconfig_vlan5="192.168.25.254/24 vlan 5 vlandev em0" |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 media: Ethernet autoselect (none) ... ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 media: Ethernet autoselect (none) ... ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 media: Ethernet autoselect (none) ... ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active xl0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 options=9<RXCSUM,VLAN_MTU> ether 00:04:79:67:96:71 media: Ethernet autoselect (none) ... ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 4 parent interface: em0 vlan5: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::213:d4ff:feb2:4fec%vlan5 prefixlen 64 scopeid 0x6 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect (100baseTX <full-duplex>) status: active vlan: 5 parent interface: em0 |
#vi /etc/rc.conf
7c7 < #ifconfig_em0="inet 192.168.15.26 netmask 255.255.255.0" --- > ifconfig_em0="inet 192.168.15.26 netmask 255.255.255.0" 20,23d19 < ###### VLAN ##### < #cloned_interfaces="vlan4 vlan5" < #ifconfig_vlan4="192.168.26.254/24 vlan 4 vlandev em0" < #ifconfig_vlan5="192.168.25.254/24 vlan 5 vlandev em0" |
#vi /etc/rc.conf
|
#vi /etc/rc.conf
|
#vi /etc/rc.conf
|
#vi /etc/rc.conf
|
#vi /etc/rc.conf
|
#vi /etc/rc.conf
|
#vi /etc/rc.conf
|
#ping 192.168.15.26
PING 192.168.15.26 (192.168.15.26): 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 ^[[Aping: sendto: No route to host ^C --- 192.168.15.26 ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.26
PING 192.168.15.26 (192.168.15.26): 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 ^[[Aping: sendto: No route to host ^C --- 192.168.15.26 ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.26
PING 192.168.15.26 (192.168.15.26): 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 ^[[Aping: sendto: No route to host ^C --- 192.168.15.26 ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.26
PING 192.168.15.26 (192.168.15.26): 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 ^[[Aping: sendto: No route to host ^C --- 192.168.15.26 ping statistics --- 5 packets transmitted, 0 packets received, 100% packet loss |
#/etc/rc.d/netif restart
Stopping network: lo0. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 inet 192.168.15.26 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect status: no carrier |
#/etc/rc.d/netif restart
Stopping network: lo0. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 inet 192.168.15.26 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect status: no carrier |
#/etc/rc.d/netif restart
Stopping network: lo0. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 inet 192.168.15.26 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect status: no carrier |
#/etc/rc.d/netif restart
Stopping network: lo0. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=b<RXCSUM,TXCSUM,VLAN_MTU> inet6 fe80::213:d4ff:feb2:4fec%em0 prefixlen 64 scopeid 0x1 inet 192.168.15.26 netmask 0xffffff00 broadcast 192.168.15.255 ether 00:13:d4:b2:4f:ec media: Ethernet autoselect status: no carrier |
#/etc/rc.d/routing restart
add net default: gateway 192.168.15.254 Additional routing options:. |
#/etc/rc.d/routing restart
add net default: gateway 192.168.15.254 Additional routing options:. |
#/etc/rc.d/routing restart
add net default: gateway 192.168.15.254 Additional routing options:. |
#/etc/rc.d/routing restart
add net default: gateway 192.168.15.254 Additional routing options:. |
#ping 192.168.15
PING 192.168.15 (192.168.0.15): 56 data bytes .^C --- 192.168.15 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15
PING 192.168.15 (192.168.0.15): 56 data bytes .^C --- 192.168.15 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15
PING 192.168.15 (192.168.0.15): 56 data bytes .^C --- 192.168.15 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15
PING 192.168.15 (192.168.0.15): 56 data bytes .^C --- 192.168.15 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.26
PING 192.168.15.26 (192.168.15.26): 56 data bytes 64 bytes from 192.168.15.26: icmp_seq=0 ttl=64 time=0.052 ms 64 bytes from 192.168.15.26: icmp_seq=1 ttl=64 time=0.036 ms ^C --- 192.168.15.26 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.036/0.044/0.052/0.008 ms |
#ping 192.168.15.26
PING 192.168.15.26 (192.168.15.26): 56 data bytes 64 bytes from 192.168.15.26: icmp_seq=0 ttl=64 time=0.052 ms 64 bytes from 192.168.15.26: icmp_seq=1 ttl=64 time=0.036 ms ^C --- 192.168.15.26 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.036/0.044/0.052/0.008 ms |
#ping 192.168.15.26
PING 192.168.15.26 (192.168.15.26): 56 data bytes 64 bytes from 192.168.15.26: icmp_seq=0 ttl=64 time=0.052 ms 64 bytes from 192.168.15.26: icmp_seq=1 ttl=64 time=0.036 ms ^C --- 192.168.15.26 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.036/0.044/0.052/0.008 ms |
#ping 192.168.15.26
PING 192.168.15.26 (192.168.15.26): 56 data bytes 64 bytes from 192.168.15.26: icmp_seq=0 ttl=64 time=0.052 ms 64 bytes from 192.168.15.26: icmp_seq=1 ttl=64 time=0.036 ms ^C --- 192.168.15.26 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.036/0.044/0.052/0.008 ms |
#ping 192.168.15.255
PING 192.168.15.255 (192.168.15.255): 56 data bytes ^C --- 192.168.15.255 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.255
PING 192.168.15.255 (192.168.15.255): 56 data bytes ^C --- 192.168.15.255 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.255
PING 192.168.15.255 (192.168.15.255): 56 data bytes ^C --- 192.168.15.255 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#ping 192.168.15.255
PING 192.168.15.255 (192.168.15.255): 56 data bytes ^C --- 192.168.15.255 ping statistics --- 2 packets transmitted, 0 packets received, 100% packet loss |
#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 |
#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 |
#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 |
#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 |
Время первой команды журнала | 19:36:35 2006-11-27 | |||||||||||||||
Время последней команды журнала | 19:45:17 2006-11-27 | |||||||||||||||
Количество командных строк в журнале | 101 | |||||||||||||||
Процент команд с ненулевым кодом завершения, % | 15.84 | |||||||||||||||
Процент синтаксически неверно набранных команд, % | 0.00 | |||||||||||||||
Суммарное время работы с терминалом *, час | 0.14 | |||||||||||||||
Количество командных строк в единицу времени, команда/мин | 11.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