Hasta cuantos ip´s se puede agregar???

Forums: 

Hola Amigos la pregunta es el siguiente yo trabajo en un empresa donde hay mas de 200 computadoras y pues me gustaria hacer la restrincion de ancho de banda para todas pero me sale un error

check rates conf, not enough download bandwidth

solo he podido colocar hasta 168 ip mi linea es de 512 tanto de subida como de bajada, ahora a todos les he puesto como 64k de subida y bajada.
como para poder hacer pruebas le baje a 32Kb tanto para la subiva y bajada y me sale el mismo error, que puedo hacer para poder agregar las 210 computadoras que tengo para ser mas exacto?

Primeramente: Dónde te sale

Imagen de Monkito

Primeramente: Dónde te sale ese error???

Por otro lado, lo que yo harìa es poner un switch de buena marca y segmentar la red con vlans por departamento.

Implantaría un servidor Linux con QoS, htb y controlar conexiones con el iptables recompilado y filtrando por capa 7.

Ha, también pensaría en subir el ancho de banda, por lo menos a un T1.

counter.li.org

Cogito Ergo Sum

------------
counter.li.org

Cogito Ergo Sum

Gracias por tu sugerencia

Hola te agradesco tu sugerencia de ante mano voy tener en cosideracion tu opinion

el error me sale cuando estoy tratando de segmentar el ancho de banda en la configuracion
"check rates conf, not enough download bandwidth" es el error que me sale cuando corro el comando htb-gen tc_all
cuando ya estan colocados los 210 ip, ahora mi linea es dedicada de 512 kb tanto de sibida como de bajada, y eso esta configurado en el archivo htb-gen.conf, ahora cuando trato de poner como valor "0" en el rate me sale un error en la linez 50 del archivo /usr/bin/htb-gen y haciendo las pruebas solo pude ingresar 169 ip para su segmentacion

Recomendaciones Saludables

Imagen de damage

Recomendaciones Saludables las que hace Monkito, pero por lo que veo esta usando HTB-GEN o me equivoco :? (no creo), mira muy bien los comentarios que estan en el mismo htb-gen-rates.conf, te dice exactamente para que sirve cada variable, es mas ese es solo un archivo plano que sera leido por el htb-gen no existe nada de bash ni sintaxis de programaciòn.
El error que te da es cuando has especificado mas rate de lo que has declarado en el htb-gen.conf, si no has declarado tu ancho de banda, debes hacerlo, te recomiendo que pongas 0 como valor del rate para cada IP y luego si necesitas asegurarle un ancho de banda "X" a una IP, sub red o lo que sea, lo declares quitando el 0 y poniendo lo que necesitas.

Saludos.

P.D. Creia que el COMO de Htb-Gen seria muy explicativo, pero veo que hay personas que solo quieren copiar y pegar. Para ellos, recuerden que esto no en Window$ aca las cosas tiene un razon y un motivo de ser y se las debe entender.

Gracias por tu sugerencia

Hola de ante mano gracias por tu sugerencia de poner como rate "0" ayer en la noche estuve haciendo las pruebas y pues tambien hize lo mismo de poner como valor cero a todos lo ip y me salio un error en la linea 50 del archivo /usr/bin/htb-gen y especifica la siguiente linea: "test ${rate_down[n]} == 0 && rate_down[n]=$((${ceil_down[n]}*_total_rate_down/total_ceil_down+rate_granted))"
por eso motivo descarte esa opcion de poner "0" como valor al rate

htb-gen y htb-gen-rates solicitados

Hola aqui te coloco lo que me haz solicitado gracias por tu ayuda

htb-gen.conf

#!/bin/bash
#Basic Configuration: configure only this vars to get all up & running

htb_gen_rates_conf="/etc/htb-gen/htb-gen-rates.conf" #htb-gen rates conf file

iface_down="eth1" # Server LAN iface
iface_up="eth0" # Server INET iface

total_rate_down=512
total_rate_up=512

# this one is only usefull if you use the htbinit backend
htb_dir="/etc/sysconfig/htb" #htb-init conf directory

#Advanced Configuration: configure this if you have special needs
#tcp prio ports
#defaults: ftp-data,ftp,ssh,smtp,www,pop3,imap,https,smtps,imaps,pops,msn,msn,rdp
#prio_ports=20,21,22,25,80,110,143,443,465,993,995,1863,1864,3389
prio_ports=80,3128

# this will determine min(rate) and max(ceil) values for junk traffic
rate_dfl_percent=10 #percent of host's rate assigned to dfl class(junk traffic)
ceil_dfl_percent=100 #percent of host's ceil assigned to dfl class(junk traffic)

do_full_conf=1 #if 0 only classes bellow class_parent_* are created
#see bellow for furter information, usefull if you want to
#generate only a brach of your config tree

mtu=1500 # link Max Transfer Unit
r2q=10 # quantum=rate*1024/8/r2q

#Really Advanced Configuration: TOUCH THIS IF YOU REALLY KNOW WHAT ARE DOING
#the parent classes, util if you have an alredy runing htb-init set of files
#change this two values ONLY if you whant to mix htb-gen with a manual htb-init conf
#files only for this two classes and bellow will be created
#put the full class path ie: "3:30:300" or "3:4:5:9" or "3"
class_parent_down="7000" #the parent(htb.init notation) class of the down iface
class_parent_up="7001" #the parent(htb.init notation) class of the up iface

class_start="7002" #defualt start from 7000 to not interfer with other clases
#this allow about 500 hosts in config, if you need more simply
#put a lower class_start value

#'rate_granted' this value matters only if you are using automatic rate (a 0 in
#rates columns) this is to grant that low_rate classes have at least a minimun bw,
#this have a high impact in low_rate classes and low impact in high rate classes
#Increment this value if you are getting rates per host class under the 6~10kbps
rate_granted=3

#path adaptation
iptables_command="/sbin/iptables"
iptables_save_command="/sbin/iptables-save"
iptables_restore_command="/sbin/iptables-restore"
tc_command="/sbin/tc"

htb-gen-rates.conf

#- Conf file Fields:
# 'ip' you can put any ip(of different networks if you want), only mather that
# - goes trougth your FORWARD chain
# - is traffic that uses the ifaces configured in htb-gen
#
# Network syntax (1.2.3.4/xx style) is allowed, rules will be applied
# to entire network
#
# 'down_rate' host|net's real/granted bw assigned for download (kbit/s)
# a value of 0(cero) means "calculate it atomagickly based
# on the ceil"
#
# 'down_ceil' host|net's shared/ungranted bw assigned for downloads (kbit/s)
#
# 'up_rate' host|net's real/granted bw assigned for upload (kbit/s)
# a value of 0(cero) means "calculate it atomagickly based
# on the ceil"
#
# 'up_ceil' host|net's shared/ungranted bw assigned for upload (kbit/s)
#
#- Conf file Syntax:
# Tab/space sepparated columns, commented and blank lines will be ignored
# The column order goes like this
#
# ip down_rate down_ceil up_rate up_ceil
#
#- Example conf: this will show all you can do, but at the same time is a
# valid conf as is
# Whe have a assimetric 1024(down)/512(up)kbit link to spend
#
#Four hosts from same network each one with a different ceil
# rate is in 0 so it means that it will be automagickly calculated

#192.168.1.3 0 128 0 64
#192.168.1.4 0 256 0 128

192.168.10.2 0 64 0 64
192.168.10.3 0 64 0 64
192.168.10.4 0 64 0 64
192.168.10.5 0 64 0 64
192.168.10.6 0 64 0 64
192.168.10.7 0 64 0 64
192.168.10.8 0 64 0 64
192.168.10.9 0 64 0 64
192.168.10.10 0 64 0 64
192.168.10.11 0 64 0 64
192.168.10.12 0 64 0 64
192.168.10.13 0 64 0 64
192.168.10.14 0 64 0 64
192.168.10.15 0 64 0 64
192.168.10.16 0 64 0 64
192.168.10.17 0 64 0 64
192.168.10.18 0 64 0 64
192.168.10.19 0 64 0 64
192.168.10.20 0 64 0 64
192.168.10.21 0 64 0 64
192.168.10.22 0 64 0 64
192.168.10.23 0 64 0 64
192.168.10.24 0 64 0 64
192.168.10.25 0 64 0 64
192.168.10.26 0 64 0 64
192.168.10.27 0 64 0 64
192.168.10.28 0 64 0 64
192.168.10.29 0 64 0 64
192.168.10.30 0 64 0 64
192.168.10.31 0 64 0 64
192.168.10.32 0 64 0 64
192.168.10.33 0 64 0 64
192.168.10.34 0 64 0 64
192.168.10.35 0 64 0 64
192.168.10.36 0 64 0 64
192.168.10.37 0 64 0 64
192.168.10.38 0 64 0 64
192.168.10.39 0 64 0 64
192.168.10.40 0 64 0 64
192.168.10.41 0 64 0 64
192.168.10.42 0 64 0 64
192.168.10.43 0 64 0 64
192.168.10.44 0 64 0 64
192.168.10.45 0 64 0 64
192.168.10.46 0 64 0 64
192.168.10.47 0 64 0 64
192.168.10.48 0 64 0 64
192.168.10.49 0 64 0 64
192.168.10.50 0 64 0 64
192.168.10.51 0 64 0 64
192.168.10.52 0 64 0 64
192.168.10.53 0 64 0 64
192.168.10.54 0 64 0 64
192.168.10.55 0 64 0 64
192.168.10.56 0 64 0 64
192.168.10.57 0 64 0 64
192.168.10.58 0 64 0 64
192.168.10.59 0 64 0 64
192.168.10.60 0 64 0 64
192.168.10.61 0 64 0 64
192.168.10.62 0 64 0 64
192.168.10.63 0 64 0 64
192.168.10.64 0 64 0 64
192.168.10.65 0 64 0 64
192.168.10.66 0 64 0 64
192.168.10.67 0 64 0 64
192.168.10.68 0 64 0 64
192.168.10.69 0 64 0 64
192.168.10.70 0 64 0 64
192.168.10.71 0 64 0 64
192.168.10.72 0 64 0 64
192.168.10.73 0 64 0 64
192.168.10.74 0 64 0 64
192.168.10.75 0 64 0 64
192.168.10.76 0 64 0 64
192.168.10.77 0 64 0 64
192.168.10.78 0 64 0 64
192.168.10.79 0 64 0 64
192.168.10.80 0 64 0 64
192.168.10.81 0 64 0 64
192.168.10.82 0 64 0 64
192.168.10.83 0 64 0 64
192.168.10.84 0 64 0 64
192.168.10.85 0 64 0 64
192.168.10.86 0 64 0 64
192.168.10.87 0 64 0 64
192.168.10.88 0 64 0 64
192.168.10.89 0 64 0 64
192.168.10.90 0 64 0 64
192.168.10.91 0 64 0 64
192.168.10.92 0 64 0 64
192.168.10.93 0 64 0 64
192.168.10.94 0 64 0 64
192.168.10.95 0 64 0 64
192.168.10.96 0 64 0 64
192.168.10.97 0 64 0 64
192.168.10.98 0 64 0 64
192.168.10.99 0 64 0 64
192.168.10.100 0 64 0 64
192.168.10.101 0 64 0 64
192.168.10.102 0 64 0 64
192.168.10.103 0 64 0 64
192.168.10.104 0 64 0 64
192.168.10.105 0 64 0 64
192.168.10.106 0 64 0 64
192.168.10.107 0 64 0 64
192.168.10.108 0 64 0 64
192.168.10.109 0 64 0 64
192.168.10.110 0 64 0 64
192.168.10.111 0 64 0 64
192.168.10.112 0 64 0 64
192.168.10.113 0 64 0 64
192.168.10.114 0 64 0 64
192.168.10.115 0 64 0 64
192.168.10.116 0 64 0 64
192.168.10.117 0 64 0 64
192.168.10.118 0 64 0 64
192.168.10.119 0 64 0 64
192.168.10.120 0 64 0 64
192.168.10.121 0 64 0 64
192.168.10.122 0 64 0 64
192.168.10.123 0 64 0 64
192.168.10.124 0 64 0 64
192.168.10.125 0 64 0 64
192.168.10.126 0 64 0 64
192.168.10.127 0 64 0 64
192.168.10.128 0 64 0 64
192.168.10.129 0 64 0 64
192.168.10.130 0 64 0 64
192.168.10.131 0 64 0 64
192.168.10.132 0 64 0 64
192.168.10.133 0 64 0 64
192.168.10.134 0 64 0 64
192.168.10.135 0 64 0 64
192.168.10.136 0 64 0 64
192.168.10.137 0 64 0 64
192.168.10.138 0 64 0 64
192.168.10.139 0 64 0 64
192.168.10.140 0 64 0 64
192.168.10.141 0 64 0 64
192.168.10.142 0 64 0 64
192.168.10.143 0 64 0 64
192.168.10.144 0 64 0 64
192.168.10.145 0 64 0 64
192.168.10.146 0 64 0 64
192.168.10.147 0 64 0 64
192.168.10.148 0 64 0 64
192.168.10.149 0 64 0 64
192.168.10.150 0 64 0 64
192.168.10.151 0 64 0 64
192.168.10.152 0 64 0 64
192.168.10.153 0 64 0 64
192.168.10.154 0 64 0 64
192.168.10.155 0 64 0 64
192.168.10.156 0 64 0 64
192.168.10.157 0 64 0 64
192.168.10.158 0 64 0 64
192.168.10.159 0 64 0 64
192.168.10.160 0 64 0 64
192.168.10.161 0 64 0 64
192.168.10.162 0 64 0 64
192.168.10.163 0 64 0 64
192.168.10.164 0 64 0 64
192.168.10.165 0 64 0 64
192.168.10.166 0 64 0 64
192.168.10.167 0 64 0 64
192.168.10.168 0 64 0 64
192.168.10.169 0 64 0 64
192.168.10.170 0 64 0 64
192.168.10.171 0 64 0 64
192.168.10.172 0 64 0 64
192.168.10.173 0 64 0 64
192.168.10.174 0 64 0 64
192.168.10.175 0 64 0 64
192.168.10.176 0 64 0 64
192.168.10.177 0 64 0 64
192.168.10.178 0 64 0 64
192.168.10.179 0 64 0 64
192.168.10.180 0 64 0 64
192.168.10.181 0 64 0 64
192.168.10.182 0 64 0 64
192.168.10.183 0 64 0 64
192.168.10.184 0 64 0 64
192.168.10.185 0 64 0 64
192.168.10.186 0 64 0 64
192.168.10.187 0 64 0 64
192.168.10.188 0 64 0 64
192.168.10.189 0 64 0 64
192.168.10.190 0 64 0 64
192.168.10.191 0 64 0 64
192.168.10.192 0 64 0 64
192.168.10.193 0 64 0 64
192.168.10.194 0 64 0 64
192.168.10.195 0 64 0 64
192.168.10.196 0 64 0 64
192.168.10.197 0 64 0 64
192.168.10.198 0 64 0 64
192.168.10.199 0 64 0 64
192.168.10.200 0 64 0 64
192.168.10.201 0 64 0 64
192.168.10.202 0 64 0 64
192.168.10.203 0 64 0 64
192.168.10.204 0 64 0 64
192.168.10.205 0 64 0 64
192.168.10.206 0 64 0 64
192.168.10.207 0 64 0 64
192.168.10.208 0 64 0 64
192.168.10.209 0 64 0 64
192.168.10.210 0 64 0 64

# A whole network, that will fight for the bw,
# we grant at least 50% of the ceil setting manual rate
#10.0.0.10/30 256 512 128 256

# A public IP, dedicated host, we grant the total bw
#200.80.22.2 256 256 256 256

si lee esta parte:#

si lee esta parte:


# 'down_rate' host|net's real/granted bw assigned for download (kbit/s)
# a value of 0(cero) means "calculate it atomagickly based
# on the ceil"

Lo que yo entiendo es que dice que cuando tu pone un valor de cero en el rate, el calcula automáticamente el medio entre el rate y el ceil. Entonces la suma del todo eso rate no debe ser mas alto que tu total_rate.

Saludos

Veo todo en orden, no se que

Imagen de damage

Veo todo en orden, no se que suceda, seria bueno que pruebes con la version 0.91b, se me ocurre que puede ser un bug de la versiòn 0.84, aunque yo tengo un server con casi 120 IP's segmentadas y trabaja muy bien. Igual chuequea que tengas iproute instalado y en su ultima versiòn.
Si te pasas en el CEIL del ancho de banda que declaras, no pasa nada (teoricamente), donde si afecta es en RATE.

Keep The Fire Burning.....
Stryper 1988
http://counter.li.org/

Hola

gracias por tu sugerencia, hasta con 169 ip si funciona ya lo probe pero 210 pc y es mas van a seguir creciendo porque tengo 2 sub_sedes conectadas con antenas y tendre 3 sub_sedes conectadas por vpn asi que se hara un bun de mas ip´s claro que tendre que hacer ip virtuales para las sub_sedes conectadas por vpn como lo voy haciendo con las sub-sedes conectadas con antenas y lo el aumento de la linea ni hablar no podra ser porque no hay presupuesto para poder pagarlo ejejeje

sáquenme de una duda, el

Imagen de Monkito

sáquenme de una duda, el htb-gen trabaja con disciplinas de cola sfq, esfq o ambas?, la teoría dice que se debe usar esfq para filtrar paquetes marcados por capa 7, y así poder controlar protocolos como el p2p, etc etc..

------------
counter.li.org

Cogito Ergo Sum

------------
counter.li.org

Cogito Ergo Sum

Páginas