vSphere 6

FreeNAS Change IP Address on iSCSI target VMware ESXi 6

FreeNAS Change IP Address on iSCSI target VMware ESXi 6

FreeNAS is one of the easiest and coolest virtual SAN appliances out there for use with VMware and other Hypervisor labs. ย If you have FreeNAS already setup and running with a VMware lab, you may at some point due to various reasons need to change the IP address on the FreeNAS appliance. ย Let’s take a look at the steps involved to FreeNAS change IP Address on iSCSI target. ย The steps are fairly simple, however, take place in a couple of different places on the box.

Process

The first thing we need to do is change the IP address on the FreeNAS appliance. ย I have mine running inside of VMware Workstation software, so I am connecting to the console and changing the IP address from the builtin menu there in FreeNAS.

  • The first thing you need to do is connect to the console. ย You will see the 1-14 menu of FreeNas where we will choose the option 1 which isย Configure Network Interfaces option

freenas_ip01

 

  • Let’s go through the steps here on the screen once we choose the configure network interfaces.
    • First we select the interface which for me is only once option em0
    • Next say no to delete the interface
    • This is a little bit confusing and not really a very well worded question, but you want to selectย n orย noย for resetting the network configuration
    • Then we are asked whether or not we want DHCP, we say no here
    • Then on the configure IPv4? ย We say yes
    • The IP Address format can be input as CIDR which to me is the quickest and easiest, so enter your IP address information here

freenas_ip02

 

After you have confirmed your IP address, the next thing we need to do is reconfigure our iSCSI parameters for the new IP Address and the section we need to adjust is theย Portal section of the iSCSI configuration screen. ย This takes place in the Web GUI of the FreeNAS appliance. ย Simply login there and navigate to the iSCSI configuration screen.

  • After getting to the configuration screen, click on theย Portals tab of the iSCSI configuration properties. ย You should already have a Portal ID setup as you are already connected to the iSCSI target.
  • Double click the existing Portal Group ID and it should bring up the configuration for the Portal Group where you can change the IP address.

freenas_ip03

Below is the IP Address configuration screen.

freenas_ip04

After you save your Portal Group ID configuration, you need to cycle the iSCSI service on the appliance. ย This will restart the service and make sure the new IP address is working with the configuration.

freenas_ip05

 

VMware configuration

In ESXi 6 we need to make sure that the iSCSI target is pointing to the correct IP address for communication to the iSCSI LUN.

freenas_ip06

  • Go to yourย Storage Adapters and then click the properties of your iSCSI Initiator adapter >> go toย Dynamic Discovery tab and remove the old ip address entry and then add the correct IP address for the iSCSI target now that you have changed the ip address.


freenas_ip07

After you correct the ip address for the iSCSI LUN, you should be able to run a rescan on the storage devices and you should now be connected back to your iSCSI LUN that was previously configured.

freenas_ip08

Final Thoughts

The scope of this article doesn’t take into consideration whether or not your new IP address is outside the configured subnet of the vmware interface you are working with for iSCSI traffic. ย Your vSwitch may need to be reconfigured with an interface with a different address or configuration. ย This article mainly applies to changing the iSCSI address within the same subnet so no additional changes needed to be made on the VMware side.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.