Enable IP Routing On Solaris

IP routing or IP forwarding is the process of routing packets between the network interfaces on a system with routing capabilities. While routing is usually the job of a network router, a server running on any recent version of UNIX can perform this action as well.

The IP forwarding functionality is usually disabled by default, and it should never be enabled unless required. A server with IP forwarding functionality could potentially be hacked to access unauthorised remote networks.

In this article, we will see how we can enable IP forwarding in Solaris.

In Solaris 9 and earlier, the ndd command could be used to enable or disable IP forwarding. From Solaris 10 onwards, the routeadm and ifconfig commands are used.

On Solaris 10, enable IP forwarding by running the routeadm command as follows:

On Solaris 8 or 9, enable IP forwarding by running the ndd command as follows:

To disable IP forwarding, run the following commands on Solaris 10:

Run the following to disable IP forwarding in Solaris 8 or 9:

To get the IP forwarding configuration on Solaris 10:

To get the IP forwarding configuration on Solaris 8:

ibrahim = { interested_in(unix, linux, android, open_source, reverse_engineering); coding(c, shell, php, python, java, javascript, nodejs, react); plays_on(xbox, ps4); linux_desktop_user(true); }