6.5

Table Of Contents
Procedure
1 Add a route entry to the VMkernel and make it the default.
n
For IPv4 networks, no additional options are required.
vicfg-route <conn_options> --add <network_ip> <netmask_IP> <gateway_ip>
For example, to add a route to 192.XXX.100.0 through 192.XXX.0.1 by using the following syntax.
vicfg-route <conn_options> -a 192.XXX.100.0/24 192.XXX.0.1
You can also use the following syntax.
vicfg-route <conn_options> -a 192.XXX.100.0 255.255.255.0 192.XXX.0.1
n
For IPv6 networks, use --family v6.
vicfg-route <conn_options> -f V6 --add <network_ip_and_mask> <gateway_ip>
The following command uses example values.
vicfg-route <conn_options> -f V6 --add 2001:10:20:253::/64 2001:10:20:253::1
2 List route entries to check that your route was added by running the command without options.
vicfg-route <conn_options>
The output lists all networks and corresponding netmasks and gateways.
3 Set the default gateway.
n
For IPv4, use the following syntax.
vicfg-route <conn_options> 192.XXX.0.1
You can also use the following syntax.
vicfg-route <conn_options> -a default 192.XXX.0.1
n
For IPv6, use the following syntax.
vicfg-route <conn_options> -f V6 -a default 2001:10:20:253::1
4 Run vicfg-route --delete to delete the route. Specify rst the gateway, and then the network.
vicfg-route <conn_options> -d 192.XXX.100.0/24 192.XXX.0.1
Setting Up IPsec
You can set Internet Protocol Security with esxcli network ip ipsec commands or with the vicfg-ipsec
command, which secures IP communications coming from and arriving at ESXi hosts. Administrators who
perform IPsec setup must have a solid understanding of both IPv6 and IPsec.
ESXi hosts support IPsec only for IPv6 trac, but not for IPv4 trac.
I In ESXi 4.1, ESXi 5.0, and ESXi 5.1, IPv6 is by default disabled. You can turn on IPv6 by running
one of the following vCLI commands.
esxcli <conn_options> network ip interface ipv6 set --enable-dhcpv6
esxcli <conn_options> network ip interface ipv6 address add
vicfg-vmknic <conn_options> --enable-ipv6
You cannot run vicfg-ipsec with a vCenter Server system as the target, by using the --vihost option.
You can run esxcli network ip ipsec commands with a vCenter Server system as a target, by using the
--vihost option.
Chapter 9 Managing vSphere Networking
VMware, Inc. 153