Ola Pessoal, Eu estou precisando de colocar um servidor para trabalhar em tres sub-redes diferentes. O servidor não vai rotear nada entres as redes.
O servidor tem tres placas de rede. A configuração está assim: cat /etc/sysconfig/network-scripts/ifcfg-eth0 ONBOOT=yes TYPE=Ethernet DEVICE=eth0 BOOTPROTO=none NETMASK=255.255.255.0 IPADDR=192.168.100.12 cat /etc/sysconfig/network-scripts/ifcfg-eth1 ONBOOT=yes TYPE=Ethernet DEVICE=eth1 BOOTPROTO=none NETMASK=255.255.255.240 IPADDR=192.168.10.8 cat /etc/sysconfig/network-scripts/ifcfg-eth2 ONBOOT=yes TYPE=Ethernet DEVICE=eth2 BOOTPROTO=none NETMASK=255.255.255.0 IPADDR=10.0.1.10 cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=centos.domain.local GATEWAY=192.168.100.34 route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.10.0 * 255.255.255.240 U 0 0 0 eth2 192.168.100.0 * 255.255.255.0 U 0 0 0 eth0 10.0.1.0 * 255.255.255.0 U 0 0 0 eth3 default 192.168.100.34 0.0.0.0 UG 0 0 0 eth0 Eu só estou conseguindo pingar as máquinas da rede 192.168.100.0. As outras redes não funcionam. O problema, ou melhor, a minha pergunta é como é que eu faça para poder adicionar os routedores para as outras redes? Eu tentei com o route add -net 10.0.1.0 netmask 255.255.255.0 gateway 10.0.1.254 dev eth3 Mas a tabela de roteamento fica assim: route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.10.0 * 255.255.255.240 U 0 0 0 eth2 192.168.100.0 * 255.255.255.0 U 0 0 0 eth0 10.0.1.0 * 255.255.255.0 U 0 0 0 eth3 10.0.1.0 10.0.1.254 255.255.255.0 UG 0 0 0 eth3 default 192.168.100.34 0.0.0.0 UG 0 0 0 eth0 com duas entradas para a rede 10.0.1.0 e, eu acho que por causa disto, não consigo pingar nada. Se eu apago a entrada da rede 10.0.1.0 antes de incluir o roteador certo, recebo um erro. route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.10.0 * 255.255.255.240 U 0 0 0 eth2 192.168.100.0 * 255.255.255.0 U 0 0 0 eth0 10.0.1.0 * 255.255.255.0 U 0 0 0 eth3 default 192.168.100.34 0.0.0.0 UG 0 0 0 eth0 route del -net 10.0.1.0 netmask 255.255.255.0 gateway 0.0.0.0 dev eth3 route add -net 10.0.1.0 netmask 255.255.255.0 gateway 10.0.1.254 dev eth3 SIOCADDRT: Network is unreachable Como é o procedimento para se fazer essa configuração e de forma que após um boot a configuração se seja apagada. Obrigado, Oscar --------------------------------------------------------------------------- Esta lista é patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br Regras de utilização da lista: http://linux-br.conectiva.com.br FAQ: http://www.zago.eti.br/menu.html
