Routing on Solaris 10


Check routing table
# netstat -nr

howto add routing table
# route -n add -interface 10.10.10.1/32 -gateway 10.10.20.1

howto delete from routing table
# route -n delete -interface 10.10.10.1/32 -gateway 10.10.20.1

modify default route
# route change default -gateway 10.10.20.1

if you have multiple interface with same network, ex: hme0=10.10.10.1 and hme1=10.10.10.2.
you want for outgoing connection send by 10.10.10.1, here the syntax :
# route change default -gateway 10.10.20.1 -setsrc 10.10.10.1

add routing for multicast purpose
# route -n add -interface 224.0/4 -gateway 10.10.20.1 >/dev/null

delete routing for multicast purpose
# route -n delete -interface 224.0/4 -gateway 10.10.20.1 >/dev/null

Popular posts from this blog

Howto configure boot device order on ILOM

Installing Depot files on HP-UX 11.23 ia64

SAN Switch Config Command