Date: Mon, 23 Nov 2009 03:22:19 +0000 From: "Anthony M. Rasat" <anthony.rasat@gmail.com> To: freebsd-questions@freebsd.org,trober@trober.com Subject: Re: Specific interface to default route Message-ID: <2021024133-1258946587-cardhu_decombobulator_blackberry.rim.net-1725549160-@bda049.bisx.prodap.on.blackberry>
index | next in thread | raw e-mail
Trober wrote: > Anthony wrote: >> Dear all, >> >> I have two (ethernet) network interface with IP address within the same >> subnet, call it msk0 and nfe0. >> >> Interface msk0 have IP address 192.168.0.2 and nfe0 192.168.0.3 and >> default router IP address is 192.168.0.1. >> >> I want only nfe0 that can talk to default router while keeping msk0 >> reachable within subnet (answer to ping from hosts with same subnet and so >> on). >> >> Is it possible? What should I put in /etc/rc.conf file? >Hi Anthony! > >### RC.CONF ################################ > >ifconfig_nfe0="inet 192.168.0.3 netmask 255.255.255.0 up" # /24 >ifconfig_msk0="inet 192.168.0.2 netmask 255.255.255.255 up" # /32 >defaultrouter="192.168.0.1" # Router >### RC.CONF ################################ > >The msk0 interface has /32 mask (according by aliases[1] settings). Only >nfe0 "talk" with your router. > >Both interfaces can be reached by other hosts (in same network). > >[1]http://freebsd.org/doc/en/books/handbook/configtuning-virtual-hosts.html > >I hope to help you, > >Trober Wow. Thanks Trober. Regards, Anthony M. Rasat Manager - Technical, Network and Support Division PT. Jawa Pos National Network Graha Pena Jawa Pos Group Building, 5th floor Jln. Raya Kebayoran Lama 12, Jakarta Selatan 12210 Indonesia.- Phone 02132185562 Phone 081574217035 Fax 02153651465 Web http://www.jpnn.comhelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2021024133-1258946587-cardhu_decombobulator_blackberry.rim.net-1725549160->
