rither
(usa Red Hat)
Enviado em 07/10/2010 - 08:40h
Cara, segue meu rt_tables e o rc.rules.sh.. o meu arquivo de static-routes é muito grande (150 lines).
############RT_TABLES
# rt_tables
#
# reserved values
#
255 local
254 main
253 default
0 unspec
#
# local
#
#1 inr.ruhep
2 INTELIG
###########RC.RULES.SH
# Rede Wimax
ip rule add from 192.168.207.0/24 fwmark 0x80 lookup INTELIG
ip rule add from 192.168.207.0/24 to 192.168.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.207.0/24 to 172.18.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.207.0/24 to 129.181.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.207.0/24 to 129.182.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.207.0/24 to 129.183.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.207.0/24 to 129.184.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.207.0/24 to 129.185.0.0/16 fwmark 0x80 lookup main
# Rede ITGS
ip rule add from 192.168.208.0/24 fwmark 0x80 lookup INTELIG
ip rule add from 192.168.208.0/24 to 192.168.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.208.0/24 to 172.18.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.208.0/24 to 129.181.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.208.0/24 to 129.182.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.208.0/24 to 129.183.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.208.0/24 to 129.184.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.208.0/24 to 129.185.0.0/16 fwmark 0x80 lookup main
# Rede SDESK_MIS
ip rule add from 192.168.209.0/24 fwmark 0x80 lookup INTELIG
ip rule add from 192.168.209.0/24 to 192.168.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.209.0/24 to 172.18.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.209.0/24 to 129.181.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.209.0/24 to 129.182.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.209.0/24 to 129.183.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.209.0/24 to 129.184.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.209.0/24 to 129.185.0.0/16 fwmark 0x80 lookup main
# Rede BOTICARIO_N2
ip rule add from 192.168.210.0/24 fwmark 0x80 lookup INTELIG
ip rule add from 192.168.210.0/24 to 192.168.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.210.0/24 to 172.18.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.210.0/24 to 129.181.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.210.0/24 to 129.182.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.210.0/24 to 129.183.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.210.0/24 to 129.184.0.0/16 fwmark 0x80 lookup main
ip rule add from 192.168.210.0/24 to 129.185.0.0/16 fwmark 0x80 lookup main
Esse arquivo vai crescer mais umas 160 linhas mais ou menos, pois falta 12 redes para adicionar...
obrigado a todos pelo apoio.