/l3/users/02-04-2012/NT-BSDnet/freebsd1.net.nt/root :1 :2 :3 :4 :5 |
|
#shutdown -h now -p
Shutdown NOW! shutdown: [pid 1611] |
#Cfirewall_type="OPEN"
firewall_type="OPEN" ~ ~ NO" #firewall_type="OPEN" pf_enable="YES" pflog_logfile="/var/log/pf.log" "/etc/rc.conf" 24 lines, 714 characters written |
#vim /etc/pf.conf
![]() --- /dev/null 2012-04-04 09:31:08.000000000 +0300 +++ /etc/pf.conf 2012-04-04 09:31:12.000000000 +0300 @@ -0,0 +1,5 @@ +int_extr=re0 +int_intr=re1 + +ip_extr=192.168.13.21 +ip_intr=10.0.0.1 |
#vim /etc/pf.conf
--- /tmp/l3-saved-1476.26109.26545 2012-04-04 09:31:25.000000000 +0300 +++ /etc/pf.conf 2012-04-04 09:33:32.000000000 +0300 @@ -3,3 +3,5 @@ ip_extr=192.168.13.21 ip_intr=10.0.0.1 + +drop in proto icmp from 192.168.13.0/24 to any |
#/etc/netstart
devd already running? (pid=778). Setting hostuuid: f36ef4c0-9a32-7080-d856-468a91fac700. Setting hostid: 0x828a6b9f. Starting Network: lo0 re0. lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=3<RXCSUM,TXCSUM> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 nd6 options=3<PERFORMNUD,ACCEPT_RTADV> re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM> ether 00:16:4e:00:00:01 inet 192.168.13.21 netmask 0xffffff00 broadcast 192.168.13.255 media: Ethernet autoselect (100baseTX <full-duplex>) status: active add net default: gateway 192.168.13.253 Additional routing options: IP gateway=YES. |
#/etc/rc.d/pf
![]() pf pflog pfsync |
#/etc/rc.d/pf start
Enabling pfNo ALTQ support in kernel ALTQ related functions disabled /etc/pf.conf:7: syntax error pfctl: Syntax error in config file: pf rules not loaded No ALTQ support in kernel ALTQ related functions disabled No ALTQ support in kernel ALTQ related functions disabled pf enabled . |
#pfctl -e
![]() No ALTQ support in kernel ALTQ related functions disabled pfctl: pf already enabled |
#vim /etc/pf.conf
--- /tmp/l3-saved-1476.13082.11458 2012-04-04 09:34:42.000000000 +0300 +++ /etc/pf.conf 2012-04-04 09:34:50.000000000 +0300 @@ -4,4 +4,4 @@ ip_extr=192.168.13.21 ip_intr=10.0.0.1 -drop in proto icmp from 192.168.13.0/24 to any +drop bolck in proto icmp from 192.168.13.0/24 to any |
#vim /etc/pf.conf
--- /tmp/l3-saved-1476.11136.2309 2012-04-04 09:35:03.000000000 +0300 +++ /etc/pf.conf 2012-04-04 09:35:11.000000000 +0300 @@ -4,4 +4,4 @@ ip_extr=192.168.13.21 ip_intr=10.0.0.1 -drop bolck in proto icmp from 192.168.13.0/24 to any +drop block in proto icmp from 192.168.13.0/24 to any |
#/etc/rc.d/pf start
Enabling pfNo ALTQ support in kernel ALTQ related functions disabled /etc/pf.conf:7: syntax error pfctl: Syntax error in config file: pf rules not loaded No ALTQ support in kernel ALTQ related functions disabled . |
#vim /etc/pf.conf
--- /tmp/l3-saved-1476.25628.32563 2012-04-04 09:35:18.000000000 +0300 +++ /etc/pf.conf 2012-04-04 09:37:04.000000000 +0300 @@ -4,4 +4,4 @@ ip_extr=192.168.13.21 ip_intr=10.0.0.1 -drop block in proto icmp from 192.168.13.0/24 to any +drop block in inet proto icmp from 192.168.13.0/24 to any |
#/etc/rc.d/pf start
Enabling pfNo ALTQ support in kernel ALTQ related functions disabled /etc/pf.conf:7: syntax error pfctl: Syntax error in config file: pf rules not loaded No ALTQ support in kernel ALTQ related functions disabled . |
#vim /etc/pf.conf
--- /tmp/l3-saved-1476.9364.10756 2012-04-04 09:37:26.000000000 +0300 +++ /etc/pf.conf 2012-04-04 09:38:31.000000000 +0300 @@ -4,4 +4,16 @@ ip_extr=192.168.13.21 ip_intr=10.0.0.1 -drop block in inet proto icmp from 192.168.13.0/24 to any +set debug urgent +set require-order yes +set block-policy drop +set loginterface $ext_if +set state-policy if-bound +set fingerprints "/etc/pf.os" +set optimization high-latency +set ruleset-optimization basic +set skip on lo + + + +drop block in on $int_extr inet proto icmp from 192.168.13.0/24 to any |
#/etc/rc.d/pf start
Enabling pfNo ALTQ support in kernel ALTQ related functions disabled /etc/pf.conf:10: macro 'ext_if' not defined /etc/pf.conf:10: syntax error /etc/pf.conf:18: syntax error pfctl: Syntax error in config file: pf rules not loaded No ALTQ support in kernel ALTQ related functions disabled . |
#vim /etc/pf.conf
--- /tmp/l3-saved-1476.5282.13893 2012-04-04 09:38:38.000000000 +0300 +++ /etc/pf.conf 2012-04-04 09:38:55.000000000 +0300 @@ -7,7 +7,7 @@ set debug urgent set require-order yes set block-policy drop -set loginterface $ext_if +set loginterface $int_extr set state-policy if-bound set fingerprints "/etc/pf.os" set optimization high-latency |
#/etc/rc.d/pf start
Enabling pfNo ALTQ support in kernel ALTQ related functions disabled /etc/pf.conf:19: syntax error pfctl: Syntax error in config file: pf rules not loaded No ALTQ support in kernel ALTQ related functions disabled . |
#vim /etc/pf.conf
|
#pfctl -e
![]() No ALTQ support in kernel ALTQ related functions disabled pfctl: pf already enabled |
#vim /usr/src/sys/i386/conf/GENERIC
--- /tmp/l3-saved-1476.24508.27168 2012-04-04 09:45:12.000000000 +0300 +++ /usr/src/sys/i386/conf/GENERIC 2012-04-04 10:01:00.000000000 +0300 @@ -41,6 +41,22 @@ options IPFIREWALL_DEFAULT_TO_ACCEPT options IPDIVERT options DUMMYNET + +options IPFILTER +options IPFILTER_LOG +options IPFILTER_DEFAULT_PASS + +options ALTQ +options ALTQ_CBQ # Class Bases Queuing (CBQ) +options ALTQ_RED # Random Early Detection (RED) +options ALTQ_RIO # RED In/Out +options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC) +options ALTQ_PRIQ # Priority Queuing (PRIQ) +options ALTQ_NOPCC # Required for SMP build + + + + options SCHED_ULE # ULE scheduler options PREEMPTION # Enable kernel thread preemption options INET # InterNETworking |
#ssh root@192.168.13.253
![]() The authenticity of host '192.168.13.253 (192.168.13.253)' can't be established. RSA key fingerprint is 61:cb:01:48:24:79:e0:e4:73:34:dd:72:12:d2:a4:01. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.13.253' (RSA) to the list of known hosts. root@192.168.13.253's password: Read from socket failed: Connection reset by peer |
#ssh root@192.168.13.253
root@192.168.13.253's password: Linux fobos 3.1.0-rc9+ #1 SMP Sun Apr 1 22:29:39 EEST 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Apr 4 09:40:57 2012 from 10.0.23.1 fobos:~# fobos:~# fobos:~# /etc/init.d/udhcpd stop Stopping very small Busybox based DHCP server: Stopped /usr/sbin/udhcpd (pid 3312). udhcpd. fobos:~# ps aux|grep dhcp root 8824 0.0 0.0 5084 744 pts/7 S+ 10:18 0:00 grep dhcp fobos:~# exit logout Connection to 192.168.13.253 closed. |
#cd /usr/ports/
|
#make search name="dhcp"
Port: dhcp6-20080615_1 Path: /usr/ports/net/dhcp6 Info: KAME DHCP6 client, server, and relay Maint: ports@FreeBSD.org B-deps: R-deps: WWW: http://wide-dhcpv6.sourceforge.net/. Port: dhcpcd-3.2.3 Path: /usr/ports/net/dhcpcd Info: DHCP client ... Date: 2010-07-09 Reason: Has expired: deprecated upstream since March 2009 Port: net/isc-dhcp30-relay Moved: net/isc-dhcp31-relay Date: 2010-07-09 Reason: Has expired: deprecated upstream since March 2009 Port: net/isc-dhcp30-server Moved: net/isc-dhcp31-server Date: 2010-07-09 Reason: Has expired: deprecated upstream since March 2009 |
#cd net/isc
![]() isc-dhcp3-devel/ isc-dhcp31-relay/ isc-dhcp41-client/ isc-dhcp41-server/ isc-dhcp31-client/ isc-dhcp31-server/ isc-dhcp41-relay/ iscsi-target/ |
#cd net/isc
![]() isc-dhcp3-devel/ isc-dhcp31-relay/ isc-dhcp41-client/ isc-dhcp41-server/ isc-dhcp31-client/ isc-dhcp31-server/ isc-dhcp41-relay/ iscsi-target/ |
#cd net/isc
![]() isc-dhcp3-devel/ isc-dhcp31-relay/ isc-dhcp41-client/ isc-dhcp41-server/ isc-dhcp31-client/ isc-dhcp31-server/ isc-dhcp41-relay/ iscsi-target/ |
#cd net/isc-dhcp31-server/
|
#make install clean
conflex.c:675: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness conflex.c:677: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness conflex.c:679: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness conflex.c:681: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness conflex.c:682: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness conflex.c:684: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness conflex.c:687: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness conflex.c:689: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness conflex.c:691: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness conflex.c:693: warning: pointer targets in passing argument 1 of 'strcasecmp' differ in signedness ... these network services to be started at boot time. /usr/local/etc/rc.d/isc-dhcpd If there are vulnerabilities in these programs there may be a security risk to the system. FreeBSD makes no guarantee about the security of ports included in the Ports Collection. Please type 'make deinstall' to deinstall the port if this is a concern. For more information, and contact details about the security status of this software, see the following webpage: http://www.isc.org/products/DHCP/ ===> Cleaning for isc-dhcp31-server-3.1.ESV,1 |
#ls /etc/
![]() Display all 106 possibilities? (y or n) X11/ locate.rc profile aliases login.access protocols amd.map login.conf pwd.db apmd.conf login.conf.db rc auth.conf mac.conf rc.bsdextended bluetooth/ mail/ rc.conf crontab mail.rc rc.d/ csh.cshrc make.conf rc.firewall csh.login manpath.config rc.initdiskless ... devd.conf namedb/ rc.suspend devfs.conf netconfig regdomain.xml dhclient.conf netstart remote disktab network.subr resolv.conf dumpdates networks rmt fbtab newsyslog.conf rpc freebsd-update.conf nscd.conf security/ fstab nsmb.conf services ftpusers nsswitch.conf shells gettytab ntp/ skel/ |
#ls /etc/dhclient.conf
![]() Makefile files/ pkg-install pkg-plist distinfo pkg-descr pkg-message |
#cd
|
#vim /etc/dhclient.conf
![]() |
#vim /etc/dhclient.conf
![]() |
#vim /usr/local/etc/
![]() |
#cp /usr/local/etc/dhcpd.conf.sample /usr/local/etc/dhcpd.conf.
![]() |
#cp /usr/local/etc/dhcpd.conf.sample /usr/local/etc/dhcpd.conf
|
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.31945.7855 2012-04-04 10:22:11.000000000 +0300 +++ /usr/local/etc/dhcpd.conf 2012-04-04 10:30:03.000000000 +0300 @@ -4,8 +4,8 @@ # # option definitions common to all supported networks... -option domain-name "example.org"; -option domain-name-servers ns1.example.org, ns2.example.org; +option domain-name "net.nt"; +option domain-name-servers 192.168.13.253; default-lease-time 600; max-lease-time 7200; @@ -27,7 +27,9 @@ # No service will be given on this subnet, but declaring it helps the # DHCP server to understand the network topology. -subnet 10.152.187.0 netmask 255.255.255.0 { +subnet 192.168.13.0 netmask 255.255.255.0 { +range 192.168.13.50 192.168.13.100; +options routers 192.168.13.253 } # This is a very basic subnet declaration. @@ -68,6 +70,14 @@ server-name "toccata.fugue.com"; } + +host vasya_pupkin { +hardware ethernet 00:01:13:DF:A5:E1; +fixed-address 192.168.13.11; +options routers 192.168.13.254; +} + + # Fixed IP addresses can also be specified for hosts. These addresses # should not also be listed as being available for dynamic assignment. # Hosts for which fixed IP addresses have been specified can boot using |
#vim /etc/defaults/
![]() |
#vim /etc/defaults/rc.conf
|
#:q
pflog_logfile="/var/log/pf.log" dhpc_enable="YES" "/etc/rc.conf" 25 lines, 732 characters written |
#/usr/local/etc/rc.d/isc-dhcpd start
Cannot 'start' dhcpd. Set dhcpd_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'. |
#vim /etc/rc.conf
--- /tmp/l3-saved-1476.5874.10913 2012-04-04 10:32:20.000000000 +0300 +++ /etc/rc.conf 2012-04-04 10:32:26.000000000 +0300 @@ -22,4 +22,4 @@ pf_enable="YES" pflog_enable="YES" pflog_logfile="/var/log/pf.log" -dhpc_enable="YES" +dhpcd_enable="YES" |
#/usr/local/etc/rc.d/isc-dhcpd start
Cannot 'start' dhcpd. Set dhcpd_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'. |
#/usr/local/etc/rc.d/isc-dhcpd onestart
![]() Starting dhcpd. Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /usr/local/etc/dhcpd.conf line 32: semicolon expected. options routers ^ /usr/local/etc/dhcpd.conf line 37: subnet declarations not allowed here. subnet ... options routers ^ /usr/local/etc/dhcpd.conf line 102: shared-network parameters not allowed here. shared-network ^ /usr/local/etc/dhcpd.conf line 117: unexpected end of file } ^ Configuration file errors encountered -- exiting /usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd |
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.13269.27514 2012-04-04 10:33:05.000000000 +0300 +++ /usr/local/etc/dhcpd.conf 2012-04-04 10:34:26.000000000 +0300 @@ -1,8 +1,3 @@ -# dhcpd.conf -# -# Sample configuration file for ISC dhcpd -# - # option definitions common to all supported networks... option domain-name "net.nt"; option domain-name-servers 192.168.13.253; @@ -10,108 +5,11 @@ default-lease-time 600; max-lease-time 7200; -# Use this to enble / disable dynamic dns updates globally. -#ddns-update-style none; - -# If this DHCP server is the official DHCP server for the local -# network, the authoritative directive should be uncommented. -#authoritative; - -# ad-hoc DNS update scheme - set to "none" to disable dynamic DNS updates. -ddns-update-style ad-hoc; - -# Use this to send dhcp log messages to a different log file (you also -# have to hack syslog.conf to complete the redirection). log-facility local7; -# No service will be given on this subnet, but declaring it helps the -# DHCP server to understand the network topology. subnet 192.168.13.0 netmask 255.255.255.0 { range 192.168.13.50 192.168.13.100; -options routers 192.168.13.253 -} - -# This is a very basic subnet declaration. - -subnet 10.254.239.0 netmask 255.255.255.224 { - range 10.254.239.10 10.254.239.20; - option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org; -} - -# This declaration allows BOOTP clients to get dynamic addresses, -# which we don't really recommend. - -subnet 10.254.239.32 netmask 255.255.255.224 { - range dynamic-bootp 10.254.239.40 10.254.239.60; - option broadcast-address 10.254.239.31; - option routers rtr-239-32-1.example.org; -} - -# A slightly different configuration for an internal subnet. -subnet 10.5.5.0 netmask 255.255.255.224 { - range 10.5.5.26 10.5.5.30; - option domain-name-servers ns1.internal.example.org; - option domain-name "internal.example.org"; - option routers 10.5.5.1; - option broadcast-address 10.5.5.31; - default-lease-time 600; - max-lease-time 7200; -} - -# Hosts which require special configuration options can be listed in -# host statements. If no address is specified, the address will be -# allocated dynamically (if possible), but the host-specific information -# will still come from the host declaration. - -host passacaglia { - hardware ethernet 0:0:c0:5d:bd:95; - filename "vmunix.passacaglia"; - server-name "toccata.fugue.com"; -} - - -host vasya_pupkin { -hardware ethernet 00:01:13:DF:A5:E1; -fixed-address 192.168.13.11; -options routers 192.168.13.254; -} - - -# Fixed IP addresses can also be specified for hosts. These addresses -# should not also be listed as being available for dynamic assignment. -# Hosts for which fixed IP addresses have been specified can boot using -# BOOTP or DHCP. Hosts for which no fixed address is specified can only -# be booted with DHCP, unless there is an address range on the subnet -# to which a BOOTP client is connected which has the dynamic-bootp flag -# set. -host fantasia { - hardware ethernet 08:00:07:26:c0:a5; - fixed-address fantasia.fugue.com; -} - -# You can declare a class of clients and then do address allocation -# based on that. The example below shows a case where all clients -# in a certain class get addresses on the 10.17.224/24 subnet, and all -# other clients get addresses on the 10.0.29/24 subnet. - -class "foo" { - match if substring (option vendor-class-identifier, 0, 4) = "SUNW"; -} - -shared-network 224-29 { - subnet 10.17.224.0 netmask 255.255.255.0 { - option routers rtr-224.example.org; - } - subnet 10.0.29.0 netmask 255.255.255.0 { - option routers rtr-29.example.org; - } - pool { - allow members of "foo"; - range 10.17.224.10 10.17.224.250; - } - pool { - deny members of "foo"; - range 10.0.29.10 10.0.29.230; - } +options domain-name-servers 192.168.13.253; +options routers 192.168.13.253; } |
#/usr/local/etc/rc.d/isc-dhcpd onestart
![]() Starting dhcpd. Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /usr/local/etc/dhcpd.conf line 13: semicolon expected. options domain-name-servers ^ /usr/local/etc/dhcpd.conf line 14: semicolon expected. options routers ^ Configuration file errors encountered -- exiting /usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd |
#vim /usr/local/etc/dhcpd.conf
|
#vim /usr/local/etc/dhcpd.conf.sample
|
#/usr/local/etc/rc.d/isc-dhcpd onestart
![]() Starting dhcpd. Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /usr/local/etc/dhcpd.conf line 13: semicolon expected. options domain-name-servers ^ /usr/local/etc/dhcpd.conf line 14: semicolon expected. options routers ^ Configuration file errors encountered -- exiting /usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd |
#/usr/local/etc/rc.d/isc-dhcpd start
Cannot 'start' dhcpd. Set dhcpd_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'. |
#vim /etc/rc.conf
|
#pflog_enable="YES"
pflog_logfile="/var/log/pf.log" dhpcd_enable="YES" dhpcd_ifaces="re0" "/etc/rc.conf" 26 lines, 752 characters written |
#/usr/local/etc/rc.d/isc-dhcpd start
Cannot 'start' dhcpd. Set dhcpd_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'. |
#vim /etc/rc.conf
--- /tmp/l3-saved-1476.17993.1441 2012-04-04 10:39:07.000000000 +0300 +++ /etc/rc.conf 2012-04-04 10:39:44.000000000 +0300 @@ -24,3 +24,5 @@ pflog_logfile="/var/log/pf.log" dhpcd_enable="YES" dhpcd_ifaces="re0" +dhcpd_flags="-q -4" +dhcpd_conf="/usr/local/etc/dhcpd.conf" |
#/usr/local/etc/rc.d/isc-dhcpd start
Cannot 'start' dhcpd. Set dhcpd_enable to YES in /etc/rc.conf or use 'onestart' instead of 'start'. |
#vim /etc/rc.conf
--- /tmp/l3-saved-1476.10984.26317 2012-04-04 10:39:57.000000000 +0300 +++ /etc/rc.conf 2012-04-04 10:40:22.000000000 +0300 @@ -22,7 +22,7 @@ pf_enable="YES" pflog_enable="YES" pflog_logfile="/var/log/pf.log" -dhpcd_enable="YES" -dhpcd_ifaces="re0" +dhcpd_enable="YES" +dhcpd_ifaces="re0" dhcpd_flags="-q -4" dhcpd_conf="/usr/local/etc/dhcpd.conf" |
#/usr/local/etc/rc.d/isc-dhcpd start
![]() Starting dhcpd. Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. Usage: dhcpd [-p <UDP port #>] [-d] [-f] [-cf config-file] [-lf lease-file] [-user user] [-group group] [-chroot dir] [-early_chroot] [-jail name ip] [-tf trace-output-file] [-play trace-input-file] [-t] [-T] [-s server] [if0 [...ifN]] /usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd |
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.19794.21618 2012-04-04 10:40:35.000000000 +0300 +++ /usr/local/etc/dhcpd.conf 2012-04-04 10:41:20.000000000 +0300 @@ -10,6 +10,6 @@ subnet 192.168.13.0 netmask 255.255.255.0 { range 192.168.13.50 192.168.13.100; - options domain-name-servers fobos.net.nt; - options routers fobos.net.nt; + options domain-name-servers 192.168.13.253; + options routers 192.168.13.253; } |
#/usr/local/etc/rc.d/isc-dhcpd restart
![]() Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. Usage: dhcpd [-p <UDP port #>] [-d] [-f] [-cf config-file] [-lf lease-file] [-user user] [-group group] [-chroot dir] [-early_chroot] [-jail name ip] [-tf trace-output-file] [-play trace-input-file] ... All rights reserved. Usage: dhcpd [-p <UDP port #>] [-d] [-f] [-cf config-file] [-lf lease-file] [-user user] [-group group] [-chroot dir] [-early_chroot] [-jail name ip] [-tf trace-output-file] [-play trace-input-file] [-t] [-T] [-s server] [if0 [...ifN]] /usr/local/etc/rc.d/isc-dhcpd: ERROR: Configuration file sanity check failed |
#/usr/local/etc/rc.d/isc-dhcpd restart
![]() Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. Usage: dhcpd [-p <UDP port #>] [-d] [-f] [-cf config-file] [-lf lease-file] [-user user] [-group group] [-chroot dir] [-early_chroot] [-jail name ip] [-tf trace-output-file] [-play trace-input-file] ... All rights reserved. Usage: dhcpd [-p <UDP port #>] [-d] [-f] [-cf config-file] [-lf lease-file] [-user user] [-group group] [-chroot dir] [-early_chroot] [-jail name ip] [-tf trace-output-file] [-play trace-input-file] [-t] [-T] [-s server] [if0 [...ifN]] /usr/local/etc/rc.d/isc-dhcpd: ERROR: Configuration file sanity check failed |
#vim /etc/rc.conf
--- /tmp/l3-saved-1476.7720.22433 2012-04-04 10:42:01.000000000 +0300 +++ /etc/rc.conf 2012-04-04 10:42:07.000000000 +0300 @@ -24,5 +24,4 @@ pflog_logfile="/var/log/pf.log" dhcpd_enable="YES" dhcpd_ifaces="re0" -dhcpd_flags="-q -4" dhcpd_conf="/usr/local/etc/dhcpd.conf" |
#/usr/local/etc/rc.d/isc-dhcpd restart
![]() Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /usr/local/etc/dhcpd.conf line 13: semicolon expected. options domain-name-servers ^ /usr/local/etc/dhcpd.conf line 14: semicolon expected. options routers ^ Configuration file errors encountered -- exiting /usr/local/etc/rc.d/isc-dhcpd: ERROR: Configuration file sanity check failed |
#/usr/local/etc/rc.d/isc-dhcpd start
![]() Starting dhcpd. Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /usr/local/etc/dhcpd.conf line 13: semicolon expected. options domain-name-servers ^ /usr/local/etc/dhcpd.conf line 14: semicolon expected. options routers ^ Configuration file errors encountered -- exiting /usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd |
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.8616.11110 2012-04-04 10:42:41.000000000 +0300 +++ /usr/local/etc/dhcpd.conf 2012-04-04 10:42:54.000000000 +0300 @@ -10,6 +10,6 @@ subnet 192.168.13.0 netmask 255.255.255.0 { range 192.168.13.50 192.168.13.100; - options domain-name-servers 192.168.13.253; - options routers 192.168.13.253; +# options domain-name-servers 192.168.13.253; +# options routers 192.168.13.253; } |
#/usr/local/etc/rc.d/isc-dhcpd start
![]() Starting dhcpd. Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ ** You must add a global ddns-update-style statement to /usr/local/etc/dhcpd.conf. To get the same behaviour as in 3.0b2pl11 and previous versions, add a line that says "ddns-update-style ad-hoc;" Please read the dhcpd.conf manual page for more information. ** /usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd |
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.25822.19949 2012-04-04 10:43:15.000000000 +0300 +++ /usr/local/etc/dhcpd.conf 2012-04-04 10:44:02.000000000 +0300 @@ -1,15 +1,17 @@ # option definitions common to all supported networks... option domain-name "net.nt"; option domain-name-servers 192.168.13.253; +option default-lease-time 600; max-lease-time 7200; +ddns-update-style statement log-facility local7; subnet 192.168.13.0 netmask 255.255.255.0 { range 192.168.13.50 192.168.13.100; -# options domain-name-servers 192.168.13.253; -# options routers 192.168.13.253; + option domain-name-servers 192.168.13.253; + option routers 192.168.13.253; } |
#/usr/local/etc/rc.d/isc-dhcpd start
![]() Starting dhcpd. Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /usr/local/etc/dhcpd.conf line 6: unknown option dhcp.default-lease-time default-lease-time 600; ^ /usr/local/etc/dhcpd.conf line 9: unknown value ddns-update-style statement ^ /usr/local/etc/dhcpd.conf line 10: expecting a parameter or declaration log-facility local7; ^ Configuration file errors encountered -- exiting /usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd |
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.7263.11214 2012-04-04 10:44:16.000000000 +0300 +++ /usr/local/etc/dhcpd.conf 2012-04-04 10:44:42.000000000 +0300 @@ -8,7 +8,7 @@ ddns-update-style statement log-facility local7; - +authoritative; subnet 192.168.13.0 netmask 255.255.255.0 { range 192.168.13.50 192.168.13.100; |
#/usr/local/etc/rc.d/isc-dhcpd start
![]() Starting dhcpd. Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /usr/local/etc/dhcpd.conf line 6: unknown option dhcp.default-lease-time default-lease-time 600; ^ /usr/local/etc/dhcpd.conf line 9: unknown value ddns-update-style statement ^ /usr/local/etc/dhcpd.conf line 10: expecting a parameter or declaration log-facility local7; ^ Configuration file errors encountered -- exiting /usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd |
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.6756.17981 2012-04-04 10:44:52.000000000 +0300 +++ /usr/local/etc/dhcpd.conf 2012-04-04 10:45:14.000000000 +0300 @@ -6,7 +6,7 @@ default-lease-time 600; max-lease-time 7200; -ddns-update-style statement +ddns-update-style none; log-facility local7; authoritative; |
#/usr/local/etc/rc.d/isc-dhcpd start
![]() Starting dhcpd. Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /usr/local/etc/dhcpd.conf line 6: unknown option dhcp.default-lease-time default-lease-time 600; ^ Configuration file errors encountered -- exiting /usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd |
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.2523.5348 2012-04-04 10:45:33.000000000 +0300 +++ /usr/local/etc/dhcpd.conf 2012-04-04 10:45:45.000000000 +0300 @@ -3,7 +3,7 @@ option domain-name-servers 192.168.13.253; option -default-lease-time 600; +#default-lease-time 600; max-lease-time 7200; ddns-update-style none; |
#/usr/local/etc/rc.d/isc-dhcpd start
![]() Starting dhcpd. Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /usr/local/etc/dhcpd.conf line 7: unknown option dhcp.max-lease-time max-lease-time 7200; ^ Configuration file errors encountered -- exiting /usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd |
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.14345.3664 2012-04-04 10:45:50.000000000 +0300 +++ /usr/local/etc/dhcpd.conf 2012-04-04 10:45:57.000000000 +0300 @@ -4,7 +4,7 @@ option #default-lease-time 600; -max-lease-time 7200; +#max-lease-time 7200; ddns-update-style none; log-facility local7; |
#/usr/local/etc/rc.d/isc-dhcpd start
![]() Starting dhcpd. Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /usr/local/etc/dhcpd.conf line 9: unknown option dhcp.ddns-update-style ddns-update-style none; ^ Configuration file errors encountered -- exiting /usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd |
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.23914.5039 2012-04-04 10:46:06.000000000 +0300 +++ /usr/local/etc/dhcpd.conf 2012-04-04 10:46:12.000000000 +0300 @@ -6,7 +6,7 @@ #default-lease-time 600; #max-lease-time 7200; -ddns-update-style none; +#ddns-update-style none; log-facility local7; authoritative; |
#/usr/local/etc/rc.d/isc-dhcpd start
![]() Starting dhcpd. Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /usr/local/etc/dhcpd.conf line 10: unknown option dhcp.log-facility log-facility local7; ^ Configuration file errors encountered -- exiting /usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd |
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.28877.17912 2012-04-04 10:46:19.000000000 +0300 +++ /usr/local/etc/dhcpd.conf 2012-04-04 10:46:32.000000000 +0300 @@ -7,7 +7,7 @@ #max-lease-time 7200; #ddns-update-style none; -log-facility local7; +#log-facility local7; authoritative; subnet 192.168.13.0 netmask 255.255.255.0 { |
#/usr/local/etc/rc.d/isc-dhcpd start
![]() Starting dhcpd. Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /usr/local/etc/dhcpd.conf line 11: unknown option dhcp.authoritative authoritative; ^ Configuration file errors encountered -- exiting /usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd |
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.16188.9687 2012-04-04 10:46:36.000000000 +0300 +++ /usr/local/etc/dhcpd.conf 2012-04-04 10:46:41.000000000 +0300 @@ -8,7 +8,7 @@ #ddns-update-style none; #log-facility local7; -authoritative; +#authoritative; subnet 192.168.13.0 netmask 255.255.255.0 { range 192.168.13.50 192.168.13.100; |
#/usr/local/etc/rc.d/isc-dhcpd start
![]() Starting dhcpd. Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /usr/local/etc/dhcpd.conf line 13: unknown option dhcp.subnet subnet 192. ^ Configuration file errors encountered -- exiting /usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd |
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.18723.8907 2012-04-04 10:46:46.000000000 +0300 +++ /usr/local/etc/dhcpd.conf 2012-04-04 10:47:45.000000000 +0300 @@ -1,14 +1,13 @@ -# option definitions common to all supported networks... option domain-name "net.nt"; option domain-name-servers 192.168.13.253; -option +option routers 192.168.13.253; -#default-lease-time 600; -#max-lease-time 7200; +default-lease-time 600; +max-lease-time 7200; -#ddns-update-style none; -#log-facility local7; -#authoritative; +ddns-update-style none; +log-facility local7; +authoritative; subnet 192.168.13.0 netmask 255.255.255.0 { range 192.168.13.50 192.168.13.100; |
#/usr/local/etc/rc.d/isc-dhcpd start
Starting dhcpd. Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Wrote 0 leases to leases file. Listening on BPF/re0/00:16:4e:00:00:01/192.168.13/24 Sending on BPF/re0/00:16:4e:00:00:01/192.168.13/24 Sending on Socket/fallback/fallback-net |
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.29887.23039 2012-04-04 10:47:56.000000000 +0300 +++ /usr/local/etc/dhcpd.conf 2012-04-04 10:50:52.000000000 +0300 @@ -14,3 +14,12 @@ option domain-name-servers 192.168.13.253; option routers 192.168.13.253; } + +subnet 192.168.15.0 netmask 255.255.255.0 { + range 192.168.15.10 192.168.15.200; + option domain-name-servers 192.168.13.254; + option routers 192.168.15.1; + option domain-name example.org; +} +A +} |
#/usr/local/etc/rc.d/isc-dhcpd restart
![]() Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /usr/local/etc/dhcpd.conf line 22: semicolon expected. option domain-name example. ^ /usr/local/etc/dhcpd.conf line 25: semicolon expected. } ^ Configuration file errors encountered -- exiting /usr/local/etc/rc.d/isc-dhcpd: ERROR: Configuration file sanity check failed |
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.9027.17232 2012-04-04 10:50:59.000000000 +0300 +++ /usr/local/etc/dhcpd.conf 2012-04-04 10:51:21.000000000 +0300 @@ -21,5 +21,3 @@ option routers 192.168.15.1; option domain-name example.org; } -A -} |
#/usr/local/etc/rc.d/isc-dhcpd restart
![]() Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /usr/local/etc/dhcpd.conf line 22: semicolon expected. option domain-name example. ^ Configuration file errors encountered -- exiting /usr/local/etc/rc.d/isc-dhcpd: ERROR: Configuration file sanity check failed |
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.25515.5864 2012-04-04 10:51:29.000000000 +0300 +++ /usr/local/etc/dhcpd.conf 2012-04-04 10:52:02.000000000 +0300 @@ -19,5 +19,5 @@ range 192.168.15.10 192.168.15.200; option domain-name-servers 192.168.13.254; option routers 192.168.15.1; - option domain-name example.org; + option domain-name 'example.org'; } |
#/usr/local/etc/rc.d/isc-dhcpd restart
![]() Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ /usr/local/etc/dhcpd.conf line 22: expecting string. option domain-name ' ^ Configuration file errors encountered -- exiting /usr/local/etc/rc.d/isc-dhcpd: ERROR: Configuration file sanity check failed |
#vim /usr/local/etc/dhcpd.conf.sample
|
#/usr/local/etc/rc.d/isc-dhcpd restart
Stopping dhcpd. Starting dhcpd. Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Wrote 0 leases to leases file. Listening on BPF/re0/00:16:4e:00:00:01/192.168.13/24 Sending on BPF/re0/00:16:4e:00:00:01/192.168.13/24 Sending on Socket/fallback/fallback-net |
#vim /usr/local/etc/dhcpd.conf
--- /tmp/l3-saved-1476.12636.5612 2012-04-04 10:56:15.000000000 +0300 +++ /usr/local/etc/dhcpd.conf 2012-04-04 10:56:28.000000000 +0300 @@ -12,7 +12,7 @@ subnet 192.168.13.0 netmask 255.255.255.0 { range 192.168.13.50 192.168.13.100; option domain-name-servers 192.168.13.253; - option routers 192.168.13.253; + option routers 192.168.13.254; } subnet 192.168.15.0 netmask 255.255.255.0 { |
#/usr/local/etc/rc.d/isc-dhcpd restart
Stopping dhcpd. Starting dhcpd. Internet Systems Consortium DHCP Server V3.1-ESV Copyright 2004-2010 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Wrote 1 leases to leases file. Listening on BPF/re0/00:16:4e:00:00:01/192.168.13/24 Sending on BPF/re0/00:16:4e:00:00:01/192.168.13/24 Sending on Socket/fallback/fallback-net |
#/usr/local/etc/rc.d/isc-dhcpd stop
Stopping dhcpd. |
#vim /etc/rc.conf
--- /tmp/l3-saved-1476.29124.191 2012-04-04 10:58:04.000000000 +0300 +++ /etc/rc.conf 2012-04-04 10:58:34.000000000 +0300 @@ -22,6 +22,3 @@ pf_enable="YES" pflog_enable="YES" pflog_logfile="/var/log/pf.log" -dhcpd_enable="YES" -dhcpd_ifaces="re0" -dhcpd_conf="/usr/local/etc/dhcpd.conf" |
#ssh root@192.168.13.254
![]() The authenticity of host '192.168.13.254 (192.168.13.254)' can't be established. RSA key fingerprint is 27:ad:05:53:67:18:24:87:81:8a:48:9c:3c:a9:2b:87. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.13.254' (RSA) to the list of known hosts. We'd like to keep you up to date about: * Software feature updates * New product announcements * Special events Please register your products now at: www.ProCurve.com root@192.168.13.254's password: Permission denied, please try again. root@192.168.13.254's password: |
#ssh root@192.168.13.253
root@192.168.13.253's password: Linux fobos 3.1.0-rc9+ #1 SMP Sun Apr 1 22:29:39 EEST 2012 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Apr 4 10:18:31 2012 from 192.168.13.21 fobos:~# fobos:~# /etc/init.d/udhcpd start Starting very small Busybox based DHCP server: Starting /usr/sbin/udhcpd... udhcpd. fobos:~# exit logout Connection to 192.168.13.253 closed. |
#cd
|
Время первой команды журнала | 12:34:24 2012- 4- 2 | |||
Время последней команды журнала | 10:01:08 2012- 4- 4 | |||
Количество командных строк в журнале | 100 | |||
Процент команд с ненулевым кодом завершения, % | 24.00 | |||
Процент синтаксически неверно набранных команд, % | 0.00 | |||
Суммарное время работы с терминалом *, час | 1.55 | |||
Количество командных строк в единицу времени, команда/мин | 1.08 | |||
Частота использования команд |
|