Tuesday, May 29, 2012

Routing Table

how to set default rout for the system?how to modify routing table in solaris 10?










Hi 
step1:create defaultrouter file under /etc directory. 
step2: edit this file like--vi /etc/defaultrouter 
and mention the gateway ip address. 
:wq! 
step3typr the command route add <10.18.16.1>
create a file containing route in /etc/rc2.d like S100route
The default route is set in this way 
as root 
#route add default 172.18.1.1 
if your default gateway is 172.18,1.1 
By typing the command this route is not permanent. 
to maintain the route after a reboot, you must edit the file 
/etc/defaultrouter. 
/etc/defaultrouter contains only the IP address of the gateway. 
[root@rntcds00 /]# cat /etc/defaultrouter 
172.18.1.1 
[root@rntcds00 /]# 


0 comments:

Post a Comment

 
Design by BABU | Dedicated to grandfather | welcome to BABU-UNIX-FORUM