You are troubleshooting a newly installed desktop Oracle Solaris 11 system with a single network
interface. From this system, you can connect to other systems within the company intranet, but
cannot access any external services (such as websites and email), even when using IP
addresses.
Examining the routing table confirms that the default route to 192.168.1.1 is missing. DHCP is not
used at this site. Which two commands will temporarily mid permanently configure the default
route?
A.
ipadm set-gateway 192.168.1.1
B.
route add default 192.168.1.1
C.
ipadm set-default 192.168.1.1
D.
dladm route-add �d 192.168.1.1
E.
echo 192.168.1.1 >/etc/gateway
F.
echo 192.168.1.1 >/etc/defaultrouter
Explanation:
B: Setting the default route on Solaris is easy. If you are trying to just set the route
temporarily you can use the route command:
route add default <ipaddress>
Example:
route add default 192.168.1.1
Note: Route command manipulates the kernel routing tables. Routing is the process of forwarding
a packet from one computer to another. It is based on the IP address in the IP packet header and
netmask.
F: If you want the route to be persisted when you reboot the system, you will need to set the route
in the /etc/defaultrouter file.
/etc/defaultrouter
Example:
echo 192.168.1.1 > /etc/defaultrouter
B and F
B,F
B and F