/l3/users/18-01-2010/nt-fbsdnet/fbsd7.net.nt/root :1 :2 :3 :4 :5 :6 :7 :8 :9 :10 :11 :12 :13 :14 :15 :16 :17 :18 :19 :20 :21 |
|
#netstat -rn -f inet
![]() Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 99 re0 127.0.0.1 127.0.0.1 UH 0 48 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.23 00:16:4e:00:00:03 UHLW 1 1 re0 271 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 2 3482 re0 263 192.168.16.227 00:16:35:7d:81:ee UHLW 2 2438 re0 381 192.168.16.254 00:07:e9:0c:45:0c UHLW 2 129 re0 1129 192.168.17 192.168.16.226 UGS 0 0 re0 192.168.17.223 192.168.16.227 UGHS 0 0 re0 |
#netstat -rn -f inet
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 99 re0 127.0.0.1 127.0.0.1 UH 0 48 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.23 00:16:4e:00:00:03 UHLW 1 1 re0 271 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 2 3482 re0 263 192.168.16.227 00:16:35:7d:81:ee UHLW 2 2438 re0 381 192.168.16.254 00:07:e9:0c:45:0c UHLW 2 129 re0 1129 192.168.17 192.168.16.226 UGS 0 0 re0 192.168.17.223 192.168.16.227 UGHS 0 0 re0 |
#route add -host 192.168.17.223 192.168.16.227
![]() |
#route add -host 192.168.17.223 192.168.16.227
![]() |
#route add -host 192.168.17.223 192.168.16.227
![]() |
#sysctl -a | grep forwarding
![]() net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a | grep forwarding
![]() net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a | grep forwarding
net.inet.ip.forwarding: 0 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl net.inet.ip.forwarding=1
![]() net.inet.ip.forwarding: 0 -> 1 |
#sysctl net.inet.ip.forwarding=1
![]() net.inet.ip.forwarding: 0 -> 1 |
#sysctl net.inet.ip.forwarding=1
net.inet.ip.forwarding: 0 -> 1 |
#sysctl -a | grep forwarding
![]() net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a | grep forwarding
![]() net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a | grep forwarding
net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a
![]() dev.isab.0.%driver: isab dev.isab.0.%location: slot=1 function=0 handle=\_SB_.PCI0.ISA_ dev.isab.0.%pnpinfo: vendor=0x8086 device=0x7000 subvendor=0x0000 subdevice=0x0000 class=0x060100 dev.isab.0.%parent: pci0 dev.isa.0.%desc: ISA bus dev.isa.0.%driver: isa dev.isa.0.%parent: isab0 dev.atapci.0.%desc: Intel PIIX3 WDMA2 controller dev.atapci.0.%driver: atapci dev.atapci.0.%location: slot=1 function=1 ... dev.ums.0.%driver: ums dev.ums.0.%location: port=1 interface=0 dev.ums.0.%pnpinfo: vendor=0x0627 product=0x0001 devclass=0x00 devsubclass=0x00 release=0x0000 sernum="1" intclass=0x03 intsubclass=0x01 dev.ums.0.%parent: uhub0 dev.ad.0.%desc: QEMU HARDDISK/0.9.0 dev.ad.0.%driver: ad dev.ad.0.%parent: ata0 dev.subdisk.0.%driver: subdisk dev.subdisk.0.%parent: ad0 hptmv.status: RocketRAID 182x SATA Controller driver Version v1.12 (Jan 16 2008 04:43:08) |
#sysctl -a
dev.isab.0.%driver: isab dev.isab.0.%location: slot=1 function=0 handle=\_SB_.PCI0.ISA_ dev.isab.0.%pnpinfo: vendor=0x8086 device=0x7000 subvendor=0x0000 subdevice=0x0000 class=0x060100 dev.isab.0.%parent: pci0 dev.isa.0.%desc: ISA bus dev.isa.0.%driver: isa dev.isa.0.%parent: isab0 dev.atapci.0.%desc: Intel PIIX3 WDMA2 controller dev.atapci.0.%driver: atapci dev.atapci.0.%location: slot=1 function=1 ... dev.ums.0.%driver: ums dev.ums.0.%location: port=1 interface=0 dev.ums.0.%pnpinfo: vendor=0x0627 product=0x0001 devclass=0x00 devsubclass=0x00 release=0x0000 sernum="1" intclass=0x03 intsubclass=0x01 dev.ums.0.%parent: uhub0 dev.ad.0.%desc: QEMU HARDDISK/0.9.0 dev.ad.0.%driver: ad dev.ad.0.%parent: ata0 dev.subdisk.0.%driver: subdisk dev.subdisk.0.%parent: ad0 hptmv.status: RocketRAID 182x SATA Controller driver Version v1.12 (Jan 16 2008 04:43:08) |
#sysctl -a | less
![]() |
#sysctl -a | less
![]() |
#sysctl -a | less
![]() |
#sysctl -a | less
|
#sysctl -a | grep forwarding
![]() net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a | grep forwarding
![]() net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a | grep forwarding
![]() net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a | grep forwarding
net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a | grep forward
![]() kern.smp.forward_signal_enabled: 1 kern.smp.forward_roundrobin_enabled: 1 net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a | grep forward
![]() kern.smp.forward_signal_enabled: 1 kern.smp.forward_roundrobin_enabled: 1 net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a | grep forward
![]() kern.smp.forward_signal_enabled: 1 kern.smp.forward_roundrobin_enabled: 1 net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a | grep forward
kern.smp.forward_signal_enabled: 1 kern.smp.forward_roundrobin_enabled: 1 net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a | grep forwarding
![]() net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a | grep forwarding
![]() net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a | grep forwarding
![]() net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#sysctl -a | grep forwarding
net.inet.ip.forwarding: 1 net.inet.ip.fastforwarding: 0 net.inet6.ip6.forwarding: 0 |
#route add -net 192.168.17.0/24 192.168.16.226
![]() |
#route add -net 192.168.17.0/24 192.168.16.226
![]() |
#route add -net 192.168.17.0/24 192.168.16.226
![]() |
#netstat -rn
![]() Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 177 re0 127.0.0.1 127.0.0.1 UH 0 72 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.23 00:16:4e:00:00:03 UHLW 1 1 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 2 3826 re0 884 192.168.16.227 00:16:35:7d:81:ee UHLW 2 2793 re0 1006 192.168.16.254 00:07:e9:0c:45:0c UHLW 2 147 re0 1169 192.168.17 192.168.16.226 UGS 0 0 re0 192.168.17.223 192.168.16.227 UGHS 0 0 re0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#5 UHL lo0 ff01:5::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#netstat -rn
![]() Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 177 re0 127.0.0.1 127.0.0.1 UH 0 72 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.23 00:16:4e:00:00:03 UHLW 1 1 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 2 3826 re0 884 192.168.16.227 00:16:35:7d:81:ee UHLW 2 2793 re0 1006 192.168.16.254 00:07:e9:0c:45:0c UHLW 2 147 re0 1169 192.168.17 192.168.16.226 UGS 0 0 re0 192.168.17.223 192.168.16.227 UGHS 0 0 re0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#5 UHL lo0 ff01:5::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 177 re0 127.0.0.1 127.0.0.1 UH 0 72 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.23 00:16:4e:00:00:03 UHLW 1 1 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 2 3826 re0 884 192.168.16.227 00:16:35:7d:81:ee UHLW 2 2793 re0 1006 192.168.16.254 00:07:e9:0c:45:0c UHLW 2 147 re0 1169 192.168.17 192.168.16.226 UGS 0 0 re0 192.168.17.223 192.168.16.227 UGHS 0 0 re0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#5 UHL lo0 ff01:5::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#netstat -rn -f inet
![]() Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 177 re0 127.0.0.1 127.0.0.1 UH 0 72 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.23 00:16:4e:00:00:03 UHLW 1 1 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 2 3848 re0 881 192.168.16.227 00:16:35:7d:81:ee UHLW 2 2815 re0 1003 192.168.16.254 00:07:e9:0c:45:0c UHLW 2 147 re0 1166 192.168.17 192.168.16.226 UGS 0 0 re0 192.168.17.223 192.168.16.227 UGHS 0 0 re0 |
#netstat -rn -f inet
![]() Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 177 re0 127.0.0.1 127.0.0.1 UH 0 72 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.23 00:16:4e:00:00:03 UHLW 1 1 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 2 3848 re0 881 192.168.16.227 00:16:35:7d:81:ee UHLW 2 2815 re0 1003 192.168.16.254 00:07:e9:0c:45:0c UHLW 2 147 re0 1166 192.168.17 192.168.16.226 UGS 0 0 re0 192.168.17.223 192.168.16.227 UGHS 0 0 re0 |
#netstat -rn -f inet
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 177 re0 127.0.0.1 127.0.0.1 UH 0 72 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.23 00:16:4e:00:00:03 UHLW 1 1 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 2 3848 re0 881 192.168.16.227 00:16:35:7d:81:ee UHLW 2 2815 re0 1003 192.168.16.254 00:07:e9:0c:45:0c UHLW 2 147 re0 1166 192.168.17 192.168.16.226 UGS 0 0 re0 192.168.17.223 192.168.16.227 UGHS 0 0 re0 |
#grep static /etc/defaults/rc.conf
![]() static_routes="" # Set to static route list (or leave empty). natm_static_routes="" # Set to static route list for NATM (or leave empty). ipv6_static_routes="" # Set to static route list (or leave empty). #ipv6_static_routes="xxx" # An example to set fec0:0000:0000:0006::/64 # or static configuration for end node. |
#grep static /etc/defaults/rc.conf
![]() static_routes="" # Set to static route list (or leave empty). natm_static_routes="" # Set to static route list for NATM (or leave empty). ipv6_static_routes="" # Set to static route list (or leave empty). #ipv6_static_routes="xxx" # An example to set fec0:0000:0000:0006::/64 # or static configuration for end node. |
#grep static /etc/defaults/rc.conf
static_routes="" # Set to static route list (or leave empty). natm_static_routes="" # Set to static route list for NATM (or leave empty). ipv6_static_routes="" # Set to static route list (or leave empty). #ipv6_static_routes="xxx" # An example to set fec0:0000:0000:0006::/64 # or static configuration for end node. |
#grep route /etc/defaults/rc.conf
![]() removable_route_flush="NO" # Flush routes when removing an interface #gif_interfaces="gif0 gif1" # Examples typically for a router. #gifconfig_gif0="10.1.1.1 10.1.2.1" # Examples typically for a router. #gifconfig_gif1="10.1.1.2 10.1.2.2" # Examples typically for a router. defaultrouter="NO" # Set to default gateway (or NO). static_routes="" # Set to static route list (or leave empty). natm_static_routes="" # Set to static route list for NATM (or leave empty). router_enable="NO" # Set to YES to enable a routing daemon. router="/sbin/routed" # Name of routing daemon to use if enabled. router_flags="-q" # Flags for routing daemon. ... #ipv6_router_flags="-q" # If you want to run a routing daemon on an end #ipv6_network_interfaces="ed0 ep0" # Examples for router rtsol_flags="" # Flags to IPv6 router solicitation. rtadvd_enable="NO" # Set to YES to enable an IPv6 router # this router becomes a possible candidate # IPv6 default router for local subnets. mroute6d_enable="NO" # Do IPv6 multicast routing. mroute6d_program="/usr/local/sbin/pim6dd" # Name of IPv6 multicast mroute6d_flags="" # Flags to IPv6 multicast routing daemon. jail_socket_unixiproute_only="YES" # Route only TCP/IP within a jail |
#grep route /etc/defaults/rc.conf
![]() removable_route_flush="NO" # Flush routes when removing an interface #gif_interfaces="gif0 gif1" # Examples typically for a router. #gifconfig_gif0="10.1.1.1 10.1.2.1" # Examples typically for a router. #gifconfig_gif1="10.1.1.2 10.1.2.2" # Examples typically for a router. defaultrouter="NO" # Set to default gateway (or NO). static_routes="" # Set to static route list (or leave empty). natm_static_routes="" # Set to static route list for NATM (or leave empty). router_enable="NO" # Set to YES to enable a routing daemon. router="/sbin/routed" # Name of routing daemon to use if enabled. router_flags="-q" # Flags for routing daemon. ... #ipv6_router_flags="-q" # If you want to run a routing daemon on an end #ipv6_network_interfaces="ed0 ep0" # Examples for router rtsol_flags="" # Flags to IPv6 router solicitation. rtadvd_enable="NO" # Set to YES to enable an IPv6 router # this router becomes a possible candidate # IPv6 default router for local subnets. mroute6d_enable="NO" # Do IPv6 multicast routing. mroute6d_program="/usr/local/sbin/pim6dd" # Name of IPv6 multicast mroute6d_flags="" # Flags to IPv6 multicast routing daemon. jail_socket_unixiproute_only="YES" # Route only TCP/IP within a jail |
#grep route /etc/defaults/rc.conf
removable_route_flush="NO" # Flush routes when removing an interface #gif_interfaces="gif0 gif1" # Examples typically for a router. #gifconfig_gif0="10.1.1.1 10.1.2.1" # Examples typically for a router. #gifconfig_gif1="10.1.1.2 10.1.2.2" # Examples typically for a router. defaultrouter="NO" # Set to default gateway (or NO). static_routes="" # Set to static route list (or leave empty). natm_static_routes="" # Set to static route list for NATM (or leave empty). router_enable="NO" # Set to YES to enable a routing daemon. router="/sbin/routed" # Name of routing daemon to use if enabled. router_flags="-q" # Flags for routing daemon. ... #ipv6_router_flags="-q" # If you want to run a routing daemon on an end #ipv6_network_interfaces="ed0 ep0" # Examples for router rtsol_flags="" # Flags to IPv6 router solicitation. rtadvd_enable="NO" # Set to YES to enable an IPv6 router # this router becomes a possible candidate # IPv6 default router for local subnets. mroute6d_enable="NO" # Do IPv6 multicast routing. mroute6d_program="/usr/local/sbin/pim6dd" # Name of IPv6 multicast mroute6d_flags="" # Flags to IPv6 multicast routing daemon. jail_socket_unixiproute_only="YES" # Route only TCP/IP within a jail |
#grep route /etc/defaults/rc.conf | less
![]() |
#grep route /etc/defaults/rc.conf | less
![]() |
#grep route /etc/defaults/rc.conf | less
|
#screen -x
![]() |
#screen -x
![]() |
#screen -x
![]() |
#screen -x
![]() |
#screen -x
|
#screen
![]() |
#screen
|
#grep route /etc/defaults/rc.conf | less
![]() |
#grep route /etc/defaults/rc.conf | less
|
#sysintall
![]() bash: sysintall: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ |
#sysintall
![]() bash: sysintall: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ |
#sysintall
![]() bash: sysintall: ËÏÍÁÎÄÁ ÎÅ ÎÁÊÄÅÎÁ |
#sysinstall
![]() Standard Begin a standard installation (recommended) x software not providedqqq Network Services Menu qq qqk x various hostname/gateway/name server parameters) in the process x x of installing FreeBSD. This menu allows you to configure other x x x aspects of your system's network configuration. previous) x x x lqq UqqqqManagement Add user and group information qqk x x x <<< X Exitfaces Exit this menu (returning to previous)s x x <<< X Exit Exit this menu (returning to previous) x x [ ] Interfaces Configure additional network interfaces x x x x [ ] Interfaces Configure additional network interfaces x x ... [ ] inetdtekd This machine wants to run a Mail Transfer AgentFS. [ ] MailSD RPC port mapping daemon (formerly portmapper) x x [ ] rpcbindtd NFS status monitoring daemonlt: routed) x x [ ] rpc.statd NFS status monitoring daemon x x [ ] rpc.lockd NFS file locking daemondefault: routed)on x x [ ] Routed This machine wants to run the rwho daemon x x [X] .(+) Extensions Allow RFC1323 and RFC1644 TCP extensions? x x tqqq[ ] Ntpdate OK ] Cancel qqu x [ Press F1 for more information on these options ] q x mqqq qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq qqj |
#sysinstall
![]() Standard Begin a standard installation (recommended) x software not providedqqq Network Services Menu qq qqk x various hostname/gateway/name server parameters) in the process x x of installing FreeBSD. This menu allows you to configure other x x x aspects of your system's network configuration. previous) x x x lqq UqqqqManagement Add user and group information qqk x x x <<< X Exitfaces Exit this menu (returning to previous)s x x <<< X Exit Exit this menu (returning to previous) x x [ ] Interfaces Configure additional network interfaces x x x x [ ] Interfaces Configure additional network interfaces x x ... [ ] inetdtekd This machine wants to run a Mail Transfer AgentFS. [ ] MailSD RPC port mapping daemon (formerly portmapper) x x [ ] rpcbindtd NFS status monitoring daemonlt: routed) x x [ ] rpc.statd NFS status monitoring daemon x x [ ] rpc.lockd NFS file locking daemondefault: routed)on x x [ ] Routed This machine wants to run the rwho daemon x x [X] .(+) Extensions Allow RFC1323 and RFC1644 TCP extensions? x x tqqq[ ] Ntpdate OK ] Cancel qqu x [ Press F1 for more information on these options ] q x mqqq qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq qqj |
#sysinstall
Standard Begin a standard installation (recommended) x software not providedqqq Network Services Menu qq qqk x various hostname/gateway/name server parameters) in the process x x of installing FreeBSD. This menu allows you to configure other x x x aspects of your system's network configuration. previous) x x x lqq UqqqqManagement Add user and group information qqk x x x <<< X Exitfaces Exit this menu (returning to previous)s x x <<< X Exit Exit this menu (returning to previous) x x [ ] Interfaces Configure additional network interfaces x x x x [ ] Interfaces Configure additional network interfaces x x ... [ ] inetdtekd This machine wants to run a Mail Transfer AgentFS. [ ] MailSD RPC port mapping daemon (formerly portmapper) x x [ ] rpcbindtd NFS status monitoring daemonlt: routed) x x [ ] rpc.statd NFS status monitoring daemon x x [ ] rpc.lockd NFS file locking daemondefault: routed)on x x [ ] Routed This machine wants to run the rwho daemon x x [X] .(+) Extensions Allow RFC1323 and RFC1644 TCP extensions? x x tqqq[ ] Ntpdate OK ] Cancel qqu x [ Press F1 for more information on these options ] q x mqqq qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq qqj |
#vim /etc/rc.conf
![]() --- /tmp/l3-saved-2440.14137.8547 2010-01-18 14:52:46.000000000 +0200 +++ /etc/rc.conf 2010-01-18 14:54:42.000000000 +0200 @@ -15,5 +15,8 @@ hostname="fbsd7.net.nt" ifconfig_re2="inet 192.168.16.227 netmask 255.255.255.0" defaultrouter="192.168.16.254" -# -- sysinstall generated deltas -- # Mon Jan 18 14:49:56 2010 gateway_enable="YES" +static_routes="route1, route2" +route_route1="-net 192.168.17.0/24 192.168.16.226" +route_route2="-host 192.168.18.18 192.168.16.226" + |
#vim /etc/rc.conf
![]() --- /tmp/l3-saved-2440.14137.8547 2010-01-18 14:52:46.000000000 +0200 +++ /etc/rc.conf 2010-01-18 14:54:42.000000000 +0200 @@ -15,5 +15,8 @@ hostname="fbsd7.net.nt" ifconfig_re2="inet 192.168.16.227 netmask 255.255.255.0" defaultrouter="192.168.16.254" -# -- sysinstall generated deltas -- # Mon Jan 18 14:49:56 2010 gateway_enable="YES" +static_routes="route1, route2" +route_route1="-net 192.168.17.0/24 192.168.16.226" +route_route2="-host 192.168.18.18 192.168.16.226" + |
#vim /etc/rc.conf
--- /tmp/l3-saved-2440.14137.8547 2010-01-18 14:52:46.000000000 +0200 +++ /etc/rc.conf 2010-01-18 14:54:42.000000000 +0200 @@ -15,5 +15,8 @@ hostname="fbsd7.net.nt" ifconfig_re2="inet 192.168.16.227 netmask 255.255.255.0" defaultrouter="192.168.16.254" -# -- sysinstall generated deltas -- # Mon Jan 18 14:49:56 2010 gateway_enable="YES" +static_routes="route1, route2" +route_route1="-net 192.168.17.0/24 192.168.16.226" +route_route2="-host 192.168.18.18 192.168.16.226" + |
#vim /etc/rc.conf vim /etc/defaults/rc.conf
![]() |
#vim /etc/rc.conf vim /etc/defaults/rc.conf
![]() |
#vim /etc/rc.conf vim /etc/defaults/rc.conf
![]() |
#vim /etc/rc.conf vim /etc/defaults/rc.conf
![]() |
#vim /etc/rc.conf vim /etc/defaults/rc.conf
![]() |
#vim /etc/rc.conf vim /etc/defaults/rc.conf
![]() |
#route flush
![]() default debian done 192.168.17 host226 done 192.168.17.223 fbsd7 done |
#route flush
![]() default debian done 192.168.17 host226 done 192.168.17.223 fbsd7 done |
#route flush
![]() default debian done 192.168.17 host226 done 192.168.17.223 fbsd7 done |
#route flush
![]() default debian done 192.168.17 host226 done 192.168.17.223 fbsd7 done |
#route flush
![]() default debian done 192.168.17 host226 done 192.168.17.223 fbsd7 done |
#route flush
default debian done 192.168.17 host226 done 192.168.17.223 fbsd7 done |
#netstat -rn
![]() Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 96 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 1 4831 re0 318 192.168.16.227 00:16:35:7d:81:ee UHLW 1 4093 re0 440 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 177 re0 1192 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#5 UHL lo0 ff01:5::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#netstat -rn
![]() Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 96 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 1 4831 re0 318 192.168.16.227 00:16:35:7d:81:ee UHLW 1 4093 re0 440 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 177 re0 1192 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#5 UHL lo0 ff01:5::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#netstat -rn
![]() Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 96 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 1 4831 re0 318 192.168.16.227 00:16:35:7d:81:ee UHLW 1 4093 re0 440 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 177 re0 1192 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#5 UHL lo0 ff01:5::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#netstat -rn
![]() Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 96 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 1 4831 re0 318 192.168.16.227 00:16:35:7d:81:ee UHLW 1 4093 re0 440 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 177 re0 1192 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#5 UHL lo0 ff01:5::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#netstat -rn
![]() Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 96 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 1 4831 re0 318 192.168.16.227 00:16:35:7d:81:ee UHLW 1 4093 re0 440 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 177 re0 1192 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#5 UHL lo0 ff01:5::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#netstat -rn
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 96 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 1 4831 re0 318 192.168.16.227 00:16:35:7d:81:ee UHLW 1 4093 re0 440 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 177 re0 1192 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#5 UHL lo0 ff01:5::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 |
#netstat -rn -f inet
![]() Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 96 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 1 4856 re0 313 192.168.16.227 00:16:35:7d:81:ee UHLW 1 4115 re0 435 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 177 re0 1187 |
#netstat -rn -f inet
![]() Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 96 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 1 4856 re0 313 192.168.16.227 00:16:35:7d:81:ee UHLW 1 4115 re0 435 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 177 re0 1187 |
#netstat -rn -f inet
![]() Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 96 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 1 4856 re0 313 192.168.16.227 00:16:35:7d:81:ee UHLW 1 4115 re0 435 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 177 re0 1187 |
#netstat -rn -f inet
![]() Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 96 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 1 4856 re0 313 192.168.16.227 00:16:35:7d:81:ee UHLW 1 4115 re0 435 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 177 re0 1187 |
#netstat -rn -f inet
![]() Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 96 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 1 4856 re0 313 192.168.16.227 00:16:35:7d:81:ee UHLW 1 4115 re0 435 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 177 re0 1187 |
#netstat -rn -f inet
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 96 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 1 4856 re0 313 192.168.16.227 00:16:35:7d:81:ee UHLW 1 4115 re0 435 192.168.16.254 00:07:e9:0c:45:0c UHLW 1 177 re0 1187 |
#sh /etc/netstart
![]() devd already running? (pid=659). lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.27 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:07 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.227 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:02:07 media: Ethernet autoselect (100baseTX <full-duplex>) status: active add net default: gateway 192.168.16.254 route: bad address: 192.168.16.226, add host 192.168.18.18: gateway 192.168.16.226 Additional routing options: IP gateway=YES. |
#sh /etc/netstart
![]() devd already running? (pid=659). lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.27 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:07 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.227 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:02:07 media: Ethernet autoselect (100baseTX <full-duplex>) status: active add net default: gateway 192.168.16.254 route: bad address: 192.168.16.226, add host 192.168.18.18: gateway 192.168.16.226 Additional routing options: IP gateway=YES. |
#sh /etc/netstart
![]() devd already running? (pid=659). lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.27 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:07 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.227 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:02:07 media: Ethernet autoselect (100baseTX <full-duplex>) status: active add net default: gateway 192.168.16.254 route: bad address: 192.168.16.226, add host 192.168.18.18: gateway 192.168.16.226 Additional routing options: IP gateway=YES. |
#sh /etc/netstart
devd already running? (pid=659). lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.27 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:00:07 media: Ethernet autoselect (100baseTX <full-duplex>) status: active re2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet 192.168.16.227 netmask 0xffffff00 broadcast 192.168.16.255 ether 00:16:4e:00:02:07 media: Ethernet autoselect (100baseTX <full-duplex>) status: active add net default: gateway 192.168.16.254 route: bad address: 192.168.16.226, add host 192.168.18.18: gateway 192.168.16.226 Additional routing options: IP gateway=YES. |
#netstat -rn -f inet
![]() Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 0 re0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 2 31 re0 1183 192.168.16.227 00:16:35:7d:81:ee UHLW 1 43 re0 1183 192.168.16.254 00:07:e9:0c:45:0c UHLW 2 2 re0 1188 192.168.18.18 192.168.16.226 UGHS 0 0 re0 |
#netstat -rn -f inet
Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.16.254 UGS 0 0 re0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.16 link#1 UC 0 0 re0 192.168.16.226 00:1b:fc:c1:52:e8 UHLW 2 31 re0 1183 192.168.16.227 00:16:35:7d:81:ee UHLW 1 43 re0 1183 192.168.16.254 00:07:e9:0c:45:0c UHLW 2 2 re0 1188 192.168.18.18 192.168.16.226 UGHS 0 0 re0 |
Время первой команды журнала | 13:35:29 2010- 1-18 | ||||||||||||||||||||||||||||||
Время последней команды журнала | 13:55:51 2010- 1-18 | ||||||||||||||||||||||||||||||
Количество командных строк в журнале | 101 | ||||||||||||||||||||||||||||||
Процент команд с ненулевым кодом завершения, % | 14.85 | ||||||||||||||||||||||||||||||
Процент синтаксически неверно набранных команд, % | 2.97 | ||||||||||||||||||||||||||||||
Суммарное время работы с терминалом *, час | 0.34 | ||||||||||||||||||||||||||||||
Количество командных строк в единицу времени, команда/мин | 4.96 | ||||||||||||||||||||||||||||||
Частота использования команд |
|
В журнал автоматически попадают все команды, данные в любом терминале системы.
Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду 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