First I am NO expert. I do basics with FreeBSD. I do appreciate the expertise I see in here.
What I am trying to do is have two NICs in one machine, one connects to my "behind the NAT" network with a static IP. The other connects to the router itself with a static IP. I can set both NICs up, however the defaultrouter statement in the rc.conf prevents one of the NICs from seeing its appropriate network. Yes, I know it can be done, but I am getting lost in the "technical" jargon.
Here is my rc.conf lines
Obviously I changed the A,B and C.
Now I understand that the second defaultrouter line eliminates the sis0 network's gateway and thus make that network non-functional. My question is, what lines do I need in this file to make this desired configuration work and have two NICs with two gateways?
Thanks in advance for any help you can give.
What I am trying to do is have two NICs in one machine, one connects to my "behind the NAT" network with a static IP. The other connects to the router itself with a static IP. I can set both NICs up, however the defaultrouter statement in the rc.conf prevents one of the NICs from seeing its appropriate network. Yes, I know it can be done, but I am getting lost in the "technical" jargon.
Here is my rc.conf lines
Code:
ifconfig_sis0=" inet [I]A.B.C[/I].138 netmask 255.255.255.248"
defaultrouter="[I]A.B.C[/I].137"
ifconfig_re0="inet 192.168.1.252 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
Now I understand that the second defaultrouter line eliminates the sis0 network's gateway and thus make that network non-functional. My question is, what lines do I need in this file to make this desired configuration work and have two NICs with two gateways?
Thanks in advance for any help you can give.