I'm looking to enable IP forwarding from a private LAN thru a Solaris Unix box onto a general LAN. Can Anyone tell me how to go about it ? An example of hte command line would be a great help.
Thanx
I'm looking to enable IP forwarding from a private LAN thru a Solaris Unix box onto a general LAN. Can Anyone tell me how to go about it ? An example of hte command line would be a great help.
Thanx
The command to turn on ip forwarding is:
ndd -set /dev/ip ip_forwarding 1
The values are:
0 never forward
1 always forward
2 forward only if more than one interface is up
I have this enabled in /etc/rc2.d/S69inet but am finding that since I have 3 NICs :
1 going to public LAN
1 going to another private LAN
1 going to private LAN i want to ip forward.
I find that the routing for some reason is going to the 1st private LAN NIC rather than the 2nd one I want. What am I doing wrong / or need to do ?
Thanx
This sounds like a routing problem. With more than one NIC on a Sun box, dynamic routing is enabled by default. Try using the touch command to create the file /etc/notrouter and reboot the machine. Then you can add static routes to send things where you want. If this still doesn't work, can you give us the output of ifconfig -a and netstat -rn?
How do I add statis routes ?
What's the command line syntax so I can give it a try.
Thanx
Static routes are added with the route command. Try man route and see if this info helps.