Re: Configure ipaddress and route entries in /etc/rc.conf file
El Lun 04 Jun 2007, bsenthil escribió: > Yes, It working fine.. Thanks for your help.. > > inetd_enable="YES" > hostname="test.abc.com" > ifconfig_fxp0="inet 192.168.110.14 netmask 255.255.255.0" > ifconfig_fxp1="inet 192.168.111.14 netmask 255.255.255.0" > hostname="test.abc.com" > static_routes="net1 net2" > > route_net1="-net 10.1.1.1/24 *fxp0*" (Error ...) > > I am not configure any default router entries . But i want to redirect > all 10.1.1.1/24 packets through fxp0. short answer: route_net1="-net 10.1.1.0/24 192.168.110.1" Replace the ip 192.168.110.1 with the router in the LAN 192.168.110.0/24 Long answer: so, you are connected to 2 LANs: 192.168.110.0/24 192.168.111.0/24 And there exist another LAN 10.1.1.0/24 when you configure the interface fxp0: ifconfig_fxp0="inet 192.168.110.14 netmask 255.255.255.0" You are adding an entry in the routing table like this: "-net 192.168.110.0/24 192.168.110.14" Since you want to transmit all the trafic to the LAN 10.1.1.0/24 by the interface fxp0 (connected to the LAN 192.168.110.0/24), there should exist some connection betwen these 2 LANs (controled by a router), all you have to say is that the LAN 10.1.1.0/24 is reached by the router 192.168.110.X route_net1="-net 10.1.1.0/24 192.168.110.X" maps ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Configure ipaddress and route entries in /etc/rc.conf file
Yes, It working fine.. Thanks for your help.. inetd_enable="YES" hostname="test.abc.com" ifconfig_fxp0="inet 192.168.110.14 netmask 255.255.255.0" ifconfig_fxp1="inet 192.168.111.14 netmask 255.255.255.0" hostname="test.abc.com" static_routes="net1 net2" route_net1="-net 10.1.1.1/24 *fxp0*" (Error ...) I am not configure any default router entries . But i want to redirect all 10.1.1.1/24 packets through fxp0. Help me , how to configure/specify fxp0 dev in router entries... Thanks, Senthilkumar. Reid Linnemann wrote: Written by bsenthil on 06/04/07 01:17>> I am trying to configure ipaddress and route entries. so that i added below the entries in /etc/rc.conf file. vi /etc/rc.conf inetd_enable="YES" hostname="test.abc.com" ifconfig_fxp0="inet 192.168.110.14 netmask 255.255.255.0" defaultrouter="192.168.110.2" hostname="test.abc.com" static_routes="net1 net2" route_net1="-net 192.168.1.1/24 192.168.110.2" route_net2="-net 192.168.2.1/24 192.168.110.2" and then i restated the network services "netif restart" The below entries are listed in router table ... $ netstat -nr Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire 127.0.0.1 127.0.0.1 UH 00lo0 192.168.110link#1 UC 00 fxp0 Problem :: Default router entries and net1 & net2 entries are not added in router table... Please advice me anything i want to configue more in rc.conf file I can able to add default router by executing " route add -net 0.0.0.0 192.168.110.2" Thanks, Senthilkumar. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" Wrong rc script. Try "/etc/rc.d/routing restart". routing requires netif, but netif does not imply routing. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Configure ipaddress and route entries in /etc/rc.conf file
Written by bsenthil on 06/04/07 01:17>> I am trying to configure ipaddress and route entries. so that i added below the entries in /etc/rc.conf file. vi /etc/rc.conf inetd_enable="YES" hostname="test.abc.com" ifconfig_fxp0="inet 192.168.110.14 netmask 255.255.255.0" defaultrouter="192.168.110.2" hostname="test.abc.com" static_routes="net1 net2" route_net1="-net 192.168.1.1/24 192.168.110.2" route_net2="-net 192.168.2.1/24 192.168.110.2" and then i restated the network services "netif restart" The below entries are listed in router table ... $ netstat -nr Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire 127.0.0.1 127.0.0.1 UH 00lo0 192.168.110link#1 UC 00 fxp0 Problem :: Default router entries and net1 & net2 entries are not added in router table... Please advice me anything i want to configue more in rc.conf file I can able to add default router by executing " route add -net 0.0.0.0 192.168.110.2" Thanks, Senthilkumar. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" Wrong rc script. Try "/etc/rc.d/routing restart". routing requires netif, but netif does not imply routing. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Configure ipaddress and route entries in /etc/rc.conf file
I am trying to configure ipaddress and route entries. so that i added below the entries in /etc/rc.conf file. vi /etc/rc.conf inetd_enable="YES" hostname="test.abc.com" ifconfig_fxp0="inet 192.168.110.14 netmask 255.255.255.0" defaultrouter="192.168.110.2" hostname="test.abc.com" static_routes="net1 net2" route_net1="-net 192.168.1.1/24 192.168.110.2" route_net2="-net 192.168.2.1/24 192.168.110.2" and then i restated the network services "netif restart" The below entries are listed in router table ... $ netstat -nr Routing tables Internet: DestinationGatewayFlagsRefs Use Netif Expire 127.0.0.1 127.0.0.1 UH 00lo0 192.168.110link#1 UC 00 fxp0 Problem :: Default router entries and net1 & net2 entries are not added in router table... Please advice me anything i want to configue more in rc.conf file I can able to add default router by executing " route add -net 0.0.0.0 192.168.110.2" Thanks, Senthilkumar. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"