Fiz um teste: #ifconfig em0 alias 192.168.10.100 netmask 255.255.255.0 #ifconfig em1 alias 192.168.10.101 netmask 255.255.255.0 #route add 200.2.2.0/30 192.168.10.1 add net 200.2.2.0: gateway 192.168.10.1
#netstat -rn [..] 192.168.10.0/24 link#1 UC 0 0 em0 [..] 200.2.2.0/30 192.168.10.1 UGS 0 0 em0 192.168.10.100 00:50:56:89:01:30 UHLW 1 3 lo0 192.168.10.101 00:50:56:89:7a:1f UHLW 1 1 em0 1197 Como se vê, ele só vai usar a em0 para a rede 192.168.10.0, se tiver algum cliente conectado á em1, isoladamente, não será alcançado. Se o cliente estiver na em0 e acessar o 10.101, vai achar o MAC pelo switch, mas o freebsd vai responder pela em0, já que a rota que ele criou é pela lo0. Gambiarra da brava, no final, chega-se a conclusão, que o certo e'colocar alias de IP na placa, ou fazer subnet. > -----Mensagem original----- > De: [email protected] [mailto:[email protected]] Em > nome de Thiago Gomes > Enviada em: quarta-feira, 26 de agosto de 2009 11:33 > Para: Lista Brasileira de Discussão sobre FreeBSD (FUG-BR) > Assunto: Re: [FUG-BR] RES: RES: 4 ethers no mesmo range de IP > > neste caso o freebsd não daria o "jeito" dele ?? > > 2009/8/26 Alexandre Correa <[email protected]>: > > 172.31.1.53 255.255.255.255 127.0.0.1 127.0.0.1 > 20 > > 172.31.1.55 255.255.255.255 127.0.0.1 127.0.0.1 > 20 > > > > veja que o windows deu o "jeito" dele :P > > > > 2009/8/26 Thiago Gomes <[email protected]>: > >> 2009/8/26 Renato Frederick <[email protected]>: > >>> Sào aliases de IP na mesma placa... > >>> > >>> Não são endereços do mesmo range em outra placa!!! > >>> > >>> > >>> > >> > >> > >> Não seja por isso.. tem outro servidor que é anti-spam symatech. Não > >> me pergunte pq essa configuração.. já peguei assim.. e time que esta > >> ganhando não se mexe. > >> > >> > >> > >> Ethernet adapter Local Area Connection 1: > >> > >> Connection-specific DNS Suffix . : > >> Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Desktop > Adapter > >> Physical Address. . . . . . . . . : 00-0E-0C-2C-99-F8 > >> DHCP Enabled. . . . . . . . . . . : No > >> IP Address. . . . . . . . . . . . : 172.31.1.55 <=== > >> Subnet Mask . . . . . . . . . . . : 255.255.255.240 > >> Default Gateway . . . . . . . . . : > >> > >> Ethernet adapter Local Area Connection: > >> > >> Connection-specific DNS Suffix . : > >> Description . . . . . . . . . . . : Broadcom NetXtreme 57xx > Gigabit Controlle > >> r > >> Physical Address. . . . . . . . . : 00-11-43-D0-99-59 > >> DHCP Enabled. . . . . . . . . . . : No > >> IP Address. . . . . . . . . . . . : 172.31.1.53 <===== > >> Subnet Mask . . . . . . . . . . . : 255.255.255.240 > >> Default Gateway . . . . . . . . . : 172.31.1.51 > >> DNS Servers . . . . . . . . . . . : 172.31.1.52 > >> > >> > >> C:\Documents and Settings\suporte.ddr.NEDL>route print > >> > >> IPv4 Route Table > >> > ======================================================================= > ==== > >> Interface List > >> 0x1 ........................... MS TCP Loopback interface > >> 0x2 ...00 0e 0c 2c 99 f8 ...... Intel(R) PRO/1000 MT Desktop Adapter > - Teefer2 > >> iniport > >> 0x3 ...00 11 43 d0 99 59 ...... Broadcom NetXtreme 57xx Gigabit > Controller - T > >> fer2 Miniport > >> > ======================================================================= > ==== > >> > ======================================================================= > ==== > >> Active Routes: > >> Network Destination Netmask Gateway Interface > Metric > >> 0.0.0.0 0.0.0.0 172.31.1.51 172.31.1.53 > 20 > >> 127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 > 1 > >> 172.31.1.48 255.255.255.240 172.31.1.53 172.31.1.53 > 20 > >> 172.31.1.48 255.255.255.240 172.31.1.55 172.31.1.55 > 20 > >> 172.31.1.53 255.255.255.255 127.0.0.1 127.0.0.1 > 20 > >> 172.31.1.55 255.255.255.255 127.0.0.1 127.0.0.1 > 20 > >> 172.31.255.255 255.255.255.255 172.31.1.53 172.31.1.53 > 20 > >> 172.31.255.255 255.255.255.255 172.31.1.55 172.31.1.55 > 20 > >> 224.0.0.0 240.0.0.0 172.31.1.53 172.31.1.53 > 20 > >> 224.0.0.0 240.0.0.0 172.31.1.55 172.31.1.55 > 20 > >> 255.255.255.255 255.255.255.255 172.31.1.53 172.31.1.53 > 1 > >> 255.255.255.255 255.255.255.255 172.31.1.55 172.31.1.55 > 1 > >> Default Gateway: 172.31.1.51 > >> > ======================================================================= > ==== > >> Persistent Routes: > >> ------------------------- > >> Histórico: http://www.fug.com.br/historico/html/freebsd/ > >> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd > >> > > > > > > > > -- > > > > Sds. > > Alexandre J. Correa > > Onda Internet / OPinguim.net > > http://www.ondainternet.com.br > > http://www.opinguim.net > > ------------------------- > > Histórico: http://www.fug.com.br/historico/html/freebsd/ > > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd > > > ------------------------- > Histórico: http://www.fug.com.br/historico/html/freebsd/ > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd ------------------------- Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd

