Static routing

Solaris:

route add host 192.168.1.12 192.168.1.1

Solaris, route persistent between reboots:

route -p add host 192.168.1.12 192.168.1.1

Linux RedHat:

route add -host 192.168.1.12 gw 192.168.1.1

Linux persistent routes:

/etc/sysconfig/network-scripts/route-XXX

where XXX – name of interface

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

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 Unix version:

  • /etc/init.d/inetsvc