vCenter – Adding persistent route.

Leave a comment

June 27, 2012 by aubreykloppers

Now this is easy.  As vCenter uses SUSE Linux, all you have to do is:

vi /etc/sysconfig.network/route

and add your route statement into it:

10.10.1.0 10.10.0.10 255.255.255.0 eth0

The statement is as follows:

<network> <gateway> <netmask> <eth-device>

That is it.

I also found that the following works:

# vi /etc/sysconfig/network/ifroute-eth0

(supposing the interface is eth0)
For every route add a line with the following format:
<TargetNetwork> <GatewayAddress> <Netmask> <Interface>
Then run the following command:
# service network restart
and finally verify the route with:
# route
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: