VMware Cloud Community
lwinnert
Contributor
Contributor

Adding additional routes to have iSCSI work consistantly in 3.0.2

ESX 3.0.2

We can add the additional route with the CLI route command.... but not persistant.

Once the route is added and a rescan of storage adapters the VMkernel finds the iSCSI LUN.

Is there an esxcfg- command to add additional persistant routes?

Or is there a file that can be edited to add the route that is needed?

Reply
0 Kudos
1 Reply
virtualdud3
Expert
Expert

Once you know the correct CLI to add the route, you write a startup-script to run the command when the server boots.

To do so, first create the file/script by typing:

#touch /etc/rc3.d/S101addroute

(The S101addroute is just the name of the file/script).

Then:

#vi /etc/rc3.d/S101addroute

Using vi, just create a standard bash script:

#!/bin/bash

inet_route add XXX YYY ZZZ

Now, every time the ESX server boots (well, everytime it boots into runlevel 3), the script will run therefore creating the desired route.

############### Under no circumstances are you to award me any points. Thanks!!!