[FUG-BR] Packet loss com Layer2
    Renata Dias 
    renatchinha em gmail.com
       
    Quarta Janeiro  6 15:08:04 BRST 2010
    
    
  
Boa tarde!
Tenho um FreeBSD 7.2 STABLE rodando como router da minha rede e o trafego da
rede é de 34Mbps.
Servidor HP:
Intel(R) Xeon(R) CPU           E5520  @ 2.27GHz
usable memory = 6424711168 (6127 MB)
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP/HT): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP/HT): APIC ID:  3
 cpu4 (AP): APIC ID:  4
 cpu5 (AP/HT): APIC ID:  5
 cpu6 (AP): APIC ID:  6
 cpu7 (AP/HT): APIC ID:  7
Kernel AMD64
Opções adicionadas no kernel DEFAULT:
options         HZ=2000
maxusers        6121
options         ACCEPT_FILTER_DATA
options         DEVICE_POLLING
options         ACCEPT_FILTER_HTTP
options         IPSTEALTH
options         IPFIREWALL
options         IPFIREWALL_FORWARD
options         IPFIREWALL_VERBOSE
options         IPFIREWALL_VERBOSE_LIMIT=100
options         IPFIREWALL_DEFAULT_TO_ACCEPT
options         IPDIVERT
options         DUMMYNET
Quando eu habilito a sysctl net.link.ether.ipfw=1 toda minha rede passa a
apresentar tempo de latencia acima de 80ms (quando rede local deveria ser 0
ou 1ms) e perdas de pacote acima de 10%. É só eu voltar a sysctl
net.link.ether.ipfw para 0 (zero) e a rede volta a responder com 0ms e 0% de
perdas.
No meu Firewall tenho algumas regras de bloqueio de MAC e em seguida regras
de controle de banda:
01608 deny log logamount 100 ip from any to any in via bge0 MAC any
00:12:0e:a1:38:47 layer2
01609 deny log logamount 100 ip from any to any in via bge0 MAC any
00:e0:4c:fa:87:48 layer2
01650 allow ip from any to any layer2 not mac-type 0x0800
# Cliente 1
20040 pipe 20040 ip from any to 200.200.200.243 out via bge0 not layer2
20041 pipe 20041 ip from 200.200.200.243 to any in via bge0 not layer2
20045 allow ip from any to 200.200.200.243
20046 allow ip from 200.200.200.243 to any
# Cliente 2
20060 pipe 20060 ip from any to 200.200.200.220 out via bge0 not layer2
20061 pipe 20061 ip from 200.200.200.220 to any in via bge0 not layer2
20065 allow ip from any to 200.200.200.220
20066 allow ip from 200.200.200.220 to any
Obrigada!
-- 
Renata Dias
    
    
Mais detalhes sobre a lista de discussão freebsd