Andrey75 0 Posted 2017-06-02 08:45:41 Share Posted 2017-06-02 08:45:41 помогите с настройками план такой поднять на Ubilling сервер DHCP, который будет выдавать абонентам адреса связь между коммутатором и биллингом по 10 вланабоненты сидят на 200 думаю не подымается сервер DHCP на Ubillingе в настройках сеть создал, DHCP тоже создал Link to post Share on other sites
a_n_h 607 Posted 2017-06-02 08:48:05 Share Posted 2017-06-02 08:48:05 конфиги? начиная с rc.conf. Link to post Share on other sites
Andrey75 0 Posted 2017-06-02 09:00:31 Author Share Posted 2017-06-02 09:00:31 (edited) rc.conf hostname="ubilling" ifconfig_bce0="inet 10.X.X.2 netmask 255.255.255.0" ifconfig_bce1="inet 172.X.X.2 netmask 255.255.248.0" defaultrouter="10.1.0.1" sshd_enable="YES" # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable dumpdev="AUTO" # ====== added by UBinstaller ==== gateway_enable="YES" #all needed services mysql_enable="YES" apache24_enable="YES" dhcpd_enable="YES" dhcpd_flags="-q" dhcpd_conf="/usr/local/etc/multinet/dhcpd.conf" dhcpd_ifaces="bce0" ubilling_enable="YES" ubilling_flags="bce1" #netflow sensor softflowd_enable="YES" softflowd_interfaces="bce1" softflowd_bce1_collector="127.0.0.1:42111" #optional services memcached_enable="NO" memcached_flags="-l 127.0.0.1 -m 64" radiusd_enable="YES" # ========== #access/shape/nat firewall_enable="YES" firewall_nat_enable="YES" dummynet_enable="YES" firewall_script="/etc/firewall.conf" # ========== dhcpd.conf # # Sample configuration file for ISC dhcpd # # option definitions common to all supported networks... option domain-name "example.org"; option domain-name-servers ns1.example.org, ns2.example.org; 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; # 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 10.152.187.0 netmask 255.255.255.0 { } # 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; file "/usr/local/etc/dhcpd.conf", 104 lines файл конфига из настроек сети option domain-name "ourisp"; option domain-name-servers 8.8.8.8; default-lease-time 3600; max-lease-time 43200; authoritative; ddns-update-style none; log-facility local7; one-lease-per-client true; deny duplicates; shared-network ourisp { subnet 172.Х.Х.0 netmask 255.255.248.0 { default-lease-time 3600; option domain-name "ourisp"; option subnet-mask 255.255.248.0; option routers 172.Х.Х.102; include "/usr/local/etc/multinet/Internt Edited 2017-06-02 09:00:53 by Andrey75 Link to post Share on other sites
a_n_h 607 Posted 2017-06-02 09:04:07 Share Posted 2017-06-02 09:04:07 rc.conf hostname="ubilling" ifconfig_bce0="inet 10.X.X.2 netmask 255.255.255.0" ifconfig_bce1="inet 172.X.X.2 netmask 255.255.248.0" а где вланы? Link to post Share on other sites
a_n_h 607 Posted 2017-06-02 09:05:22 Share Posted 2017-06-02 09:05:22 думаю не подымается сервер DHCP на Ubillingе а что "говорит": /usr/local/etc/rc.d/isc-dhcpd status Link to post Share on other sites
Andrey75 0 Posted 2017-06-02 09:06:38 Author Share Posted 2017-06-02 09:06:38 настроил на коммутаторе на порту 10 на ifconfig_bce0="inet 10.X.X.2 netmask 255.255.255.0" 200 на ifconfig_bce1="inet 172.X.X.2 netmask 255.255.248.0" Link to post Share on other sites
Andrey75 0 Posted 2017-06-02 09:23:48 Author Share Posted 2017-06-02 09:23:48 (edited) думаю не подымается сервер DHCP на Ubillingе а что "говорит": /usr/local/etc/rc.d/isc-dhcpd status root@ubilling:/usr/home/ubilling # usr/local/etc/rc.d/isc-dhcpd status usr/local/etc/rc.d/isc-dhcpd: Command not found. root@ubilling:/usr/home/ubilling # root@ubilling:/usr/local/etc/rc.d # ps -ax | grep dhcpd 1031 0 S+ 0:00.00 grep dhcpd root@ubilling:/usr/local/etc/rc.d # Edited 2017-06-02 09:37:48 by Andrey75 Link to post Share on other sites
Andrey75 0 Posted 2017-06-02 09:50:23 Author Share Posted 2017-06-02 09:50:23 поменял в rc.conf dhcpd_ifaces="bce0" на dhcpd_ifaces="bce1" теперь и абонент и Ubilling и DHCP на одном интерфейсе и в одной сети вставляю кабель абонента в порт Ubilling, DHCP не работает МАК адрес абонента прописан, IP биллингом присвоена Link to post Share on other sites
Andrey75 0 Posted 2017-06-02 09:58:03 Author Share Posted 2017-06-02 09:58:03 он не запускается root@ubilling:/usr/home/ubilling # /usr/local/etc/rc.d/isc-dhcpd start Starting dhcpd. /usr/local/etc/rc.d/isc-dhcpd: WARNING: failed to start dhcpd root@ubilling:/usr/home/ubilling # /usr/local/etc/rc.d/isc-dhcpd stop dhcpd not running? (check /var/run/dhcpd/dhcpd.pid). root@ubilling:/usr/home/ubilling # Link to post Share on other sites
Andrey75 0 Posted 2017-06-02 10:17:13 Author Share Posted 2017-06-02 10:17:13 root@ubilling:/usr/home/ubilling # tcpdump -n -i bce1 port 67 or udp port 68 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on bce1, link-type EN10MB (Ethernet), capture size 65535 bytes 15:07:11.969047 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:e0:4c:d4:1a:b1, length 300 15:07:16.960162 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:e0:4c:d4:1a:b1, length 300 15:07:23.960091 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:e0:4c:d4:1a:b1, length 300 15:07:40.959757 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:e0:4c:d4:1a:b1, length 300 15:08:18.024648 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:e0:4c:d4:1a:b1, length 300 15:08:22.021562 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:e0:4c:d4:1a:b1, length 300 15:08:29.021441 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:e0:4c:d4:1a:b1, length 300 15:08:45.021192 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:e0:4c:d4:1a:b1, length 300 Link to post Share on other sites
Andrey75 0 Posted 2017-06-02 10:34:29 Author Share Posted 2017-06-02 10:34:29 сделал рестарт ubilling@ubilling:/var/log# /usr/local/etc/rc.d/isc-dhcpd restart Internet Systems Consortium DHCP Server 4.1-ESV-R12-P1 Copyright 2004-2016 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Can't open /usr/local/etc/multinet/Internt: No such file or directory If you did not get this software from ftp.isc.org, please get the latest from ftp.isc.org and install that before requesting help. If you did get this software from ftp.isc.org and have not yet read the README, please read it before requesting help. If you intend to request help from the dhcp-bugs at isc.org mailing list, please read the section on the README about submitting bug reports and requests for help. Please do not under any circumstances send requests for help directly to the authors of this software - please send them to the appropriate mailing list as described in the README file. exiting. /usr/local/etc/rc.d/isc-dhcpd: ERROR: Configuration file sanity check failed ubilling@ubilling:/var/log# в логах Jun 2 15:29:15 ubilling dhcpd: Can't open /usr/local/etc/multinet/Internt: No such file or directory Jun 2 15:29:15 ubilling dhcpd: Jun 2 15:29:15 ubilling dhcpd: If you did not get this software from ftp.isc.org, please Jun 2 15:29:15 ubilling dhcpd: get the latest from ftp.isc.org and install that before Jun 2 15:29:15 ubilling dhcpd: requesting help. Jun 2 15:29:15 ubilling dhcpd: Jun 2 15:29:15 ubilling dhcpd: If you did get this software from ftp.isc.org and have not Jun 2 15:29:15 ubilling dhcpd: yet read the README, please read it before requesting help. Jun 2 15:29:15 ubilling dhcpd: If you intend to request help from the dhcp-bugs at isc.org Jun 2 15:29:15 ubilling dhcpd: mailing list, please read the section on the README about Jun 2 15:29:15 ubilling dhcpd: submitting bug reports and requests for help. Jun 2 15:29:15 ubilling dhcpd: Jun 2 15:29:15 ubilling dhcpd: Please do not under any circumstances send requests for Jun 2 15:29:15 ubilling dhcpd: help directly to the authors of this software - please Jun 2 15:29:15 ubilling dhcpd: send them to the appropriate mailing list as described in Jun 2 15:29:15 ubilling dhcpd: the README file. Jun 2 15:29:15 ubilling dhcpd: Jun 2 15:29:15 ubilling dhcpd: exiting. Jun 2 15:29:15 ubilling dhcpd: Internet Systems Consortium DHCP Server 4.1-ESV-R12-P1 Jun 2 15:29:15 ubilling dhcpd: Copyright 2004-2016 Internet Systems Consortium. Jun 2 15:29:15 ubilling dhcpd: All rights reserved. Jun 2 15:29:15 ubilling dhcpd: For info, please visit https://www.isc.org/software/dhcp/ Jun 2 15:29:15 ubilling dhcpd: Can't open /usr/local/etc/multinet/Internt: No such file or directory Jun 2 15:29:15 ubilling dhcpd: Jun 2 15:29:15 ubilling dhcpd: If you did not get this software from ftp.isc.org, please Jun 2 15:29:15 ubilling dhcpd: get the latest from ftp.isc.org and install that before Jun 2 15:29:15 ubilling dhcpd: requesting help. Jun 2 15:29:15 ubilling dhcpd: Jun 2 15:29:15 ubilling dhcpd: If you did get this software from ftp.isc.org and have not Jun 2 15:29:15 ubilling dhcpd: yet read the README, please read it before requesting help. Jun 2 15:29:15 ubilling dhcpd: If you intend to request help from the dhcp-bugs at isc.org Jun 2 15:29:15 ubilling dhcpd: mailing list, please read the section on the README about Jun 2 15:29:15 ubilling dhcpd: submitting bug reports and requests for help. Jun 2 15:29:15 ubilling dhcpd: Jun 2 15:29:15 ubilling dhcpd: Please do not under any circumstances send requests for Jun 2 15:29:15 ubilling dhcpd: help directly to the authors of this software - please Jun 2 15:29:15 ubilling dhcpd: send them to the appropriate mailing list as described in Jun 2 15:29:15 ubilling dhcpd: the README file. Jun 2 15:29:15 ubilling dhcpd: Jun 2 15:29:15 ubilling dhcpd: exiting. подскажите где копать? Link to post Share on other sites
Andrey75 0 Posted 2017-06-02 10:42:12 Author Share Posted 2017-06-02 10:42:12 может этоCan't open /usr/local/etc/multinet/Internt: No such file or directory где это искать? Link to post Share on other sites
Andrey75 0 Posted 2017-06-02 11:00:59 Author Share Posted 2017-06-02 11:00:59 итак файл настройки DHCP сети файл конфига из настроек сети option domain-name "ourisp"; option domain-name-servers 8.8.8.8; default-lease-time 3600; max-lease-time 43200; authoritative; ddns-update-style none; log-facility local7; one-lease-per-client true; deny duplicates; shared-network ourisp { subnet 172.Х.Х.0 netmask 255.255.248.0 { default-lease-time 3600; option domain-name "ourisp"; option subnet-mask 255.255.248.0; option routers 172.Х.Х.102; include "/usr/local/etc/multinet/Internt ссылается на файл настройки сети, котого у меня нет закоментировал последнюю строчку и вот root@ubilling:/ # /usr/local/etc/rc.d/isc-dhcpd restart dhcpd not running? (check /var/run/dhcpd/dhcpd.pid). Starting dhcpd. root@ubilling:/ # /usr/local/etc/rc.d/isc-dhcpd start dhcpd already running? (pid=1057). root@ubilling:/ # tcpdump -n -i bce1 port 67 or udp port 68 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on bce1, link-type EN10MB (Ethernet), capture size 65535 bytes 15:57:05.236088 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:e0:4c:d4:1a:b1, length 300 15:57:14.236214 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:e0:4c:d4:1a:b1, length 300 15:57:29.236430 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 00:e0:4c:d4:1a:b1, length 300 ^Z Suspended root@ubilling:/ # /usr/local/etc/rc.d/isc-dhcpd restart Stopping dhcpd. Waiting for PIDS: 1057. Starting dhcpd. root@ubilling:/ # но адрес не присвоил при этом root@ubilling:/ # /usr/local/etc/rc.d/isc-dhcpd status dhcpd is running as pid 1098. root@ubilling:/ # Link to post Share on other sites
a_n_h 607 Posted 2017-06-02 11:19:40 Share Posted 2017-06-02 11:19:40 dhcpd is running as pid 1098. уже "хорошо", что пишет в лог? Link to post Share on other sites
a_n_h 607 Posted 2017-06-02 11:21:58 Share Posted 2017-06-02 11:21:58 Вопрос вдогонку: в билинге абона создал? мак к абону привязал? для неизвестных как здесь: http://wiki.ubilling.net.ua/doku.php?id=uhw сделал? Link to post Share on other sites
nightfly 1,260 Posted 2017-06-02 15:06:47 Share Posted 2017-06-02 15:06:47 (edited) ссылается на файл настройки сети, котого у меня нет закоментировал последнюю строчку Круто. Теперь у вас есть декоративный и ничего не делающий isc-dhcp. Продолжайте - очень интерестно. Edited 2017-06-02 15:07:42 by nightfly Link to post Share on other sites
Andrey75 0 Posted 2017-06-02 18:17:17 Author Share Posted 2017-06-02 18:17:17 (edited) ссылается на файл настройки сети, котого у меня нет закоментировал последнюю строчку Круто. Теперь у вас есть декоративный и ничего не делающий isc-dhcp. Продолжайте - очень интерестно. ошибки нашел, в строке (include "/usr/local/etc/multinet/Internt") была ссылка на неправильный файл удалил сервер DHCP в биллинге и все фалы в /usr/local/etc/multinet/ кроме *host затем создал сервер DHCP поновой при настройках на коммутаторе DHCP relay на сеть отличную от абонентов и настройке сервера DHCP на отличный от сети DHCP интерфейс(10 влан на ifconfig_bce0="inet 10.X.X.2 netmask 255.255.255.0") выходит ошибка при запуске сервера когда сменил интерфейс на родной с абонентами при настройках сервера DHCP на интерфейсе (200 влан на ifconfig_bce1="inet 172.X.X.2 netmask 255.255.248.0") и смене адреса в коммутаторе DHCP relay все заработало всем спасибо! может для работы через 10 влан добавить дополнительный IP c 32 маской на интерфейс (200 влан на ifconfig_bce1="inet 172.X.X.2 netmask 255.255.248.0") !!? Edited 2017-06-03 08:55:00 by Andrey75 Link to post Share on other sites
Andrey75 0 Posted 2017-06-03 08:51:56 Author Share Posted 2017-06-03 08:51:56 (edited) в свое время настраивал по такому же принципу виртуально бесплатный "carbonsoft" , там на интерфейс надо было добавить адрес сети DHCP даже с маской 32, не знаю может это поможет и данной ситуации Edited 2017-06-03 08:53:49 by Andrey75 Link to post Share on other sites
GrDEV 44 Posted 2017-06-04 07:36:42 Share Posted 2017-06-04 07:36:42 У вас комутатор Л3? Link to post Share on other sites
Andrey75 0 Posted 2017-06-04 15:43:31 Author Share Posted 2017-06-04 15:43:31 У вас комутатор Л3? нет OLT Dasah на 4 порта Link to post Share on other sites
GrDEV 44 Posted 2017-06-04 17:51:54 Share Posted 2017-06-04 17:51:54 Тогда какая то схема у вас бредовая имхо. Link to post Share on other sites
Andrey75 0 Posted 2017-06-05 05:57:41 Author Share Posted 2017-06-05 05:57:41 Тогда какая то схема у вас бредовая имхо. ну может быть, только пока много и не надо ------------- абоненты инет---- циска------ОЛТ ----- Билинг Link to post Share on other sites
GrDEV 44 Posted 2017-06-05 06:25:42 Share Posted 2017-06-05 06:25:42 Циска какая? Link to post Share on other sites
GrDEV 44 Posted 2017-06-05 06:29:53 Share Posted 2017-06-05 06:29:53 В идеале было бы сделать как то так: инет - биллинг - Л3 - ОЛТ - абоненты На биллинге тупо два физических интерфейса без всяких алиасов и вланов На Л3 свиче нарезаются ВЛАНы и настраивается маршрутизация ОЛТ настраивается обычно. В такой конфигурации не будет плясок с бубном ) Link to post Share on other sites
Andrey75 0 Posted 2017-06-05 06:59:09 Author Share Posted 2017-06-05 06:59:09 В идеале было бы сделать как то так: инет - биллинг - Л3 - ОЛТ - абоненты На биллинге тупо два физических интерфейса без всяких алиасов и вланов На Л3 свиче нарезаются ВЛАНы и настраивается маршрутизация ОЛТ настраивается обычно. В такой конфигурации не будет плясок с бубном ) биллинг не сертифицорован, значит резать скорость абонентов не может Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now