Wednesday, May 27, 2009

Solaris Routing

  • Add a route
    # route add net 128.50.3.0 bigbox
     
  • Add a default route [host|net] dest. [ gateway]
    # route add default  maingw
     
  • Delete a route
    # route delete net 128.50.3.0 sword-r

  • Lookup and display the route for a destination:
    # route get 128.50.2.0

  • Get routing reports continuously
    # route monitor

  • Flush the routing table:
    # route flush

  • Add the multicast path for 224.0.0.0:
    # route add 224.0.0.0 `uname -n` 0

  • Use
    the "route add net" command with the -netmask option to make the route
    command to take the netmask specified on the command line

    # route add net 192.168.68.0 128.50.1.250 1 -netmask 255.255.255.192

Q1. Which command manipulates the routing table ?

 A: route

 Q2: Command to add a route to server1 via router1:

 A: route add host server1 router1

Q3. Which command will add a route to the network 128.251.0.0 via 128.144.1.254 ?

 A: route add net 128.251.0.0 128.144.1.254

Q4. Which command would delete a route to host server1 via router1 ?

 A: route delete host server1 router1

Q5. Which command will delete the route to the network 128.251.0.0 via 128.144.1.254 ?

 A: route delete net 128.251.0.0 128.144.1.254

Q6. Which command will remove all entries from the routing table ?

 A: route flush

Q7. Which command allows you to monitor the routing requests that are not getting resolved from the routing table ?

 A7: route monitor

Q8. Which script starts the in.named daemon ?

A:  Depend on the Solaris version:

  • /etc/init.d/inetsvc


Source: http://www.softpanorama.org/Net/Netutils/route.shtml

No comments: