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.com
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to