How to name another Freenas to Freenas2

Status
Not open for further replies.

ctantra

Dabbler
Joined
Aug 4, 2011
Messages
29
I just built the another freenas, how can I configure it to use freenas2 instead of freenas. I'ved tried change the host name and interface name to freenas2, but it didn't work. I still have to access the second freenas by IP Address, which is 192.168.0.150.
 

hotalot

Dabbler
Joined
Dec 23, 2011
Messages
19
Use hosts. Create a file using any text editor like notepad, gedit, etc. It is simple text with the ip, host and alias, - one address per line, ex:

127.0.0.1 localhost
127.0.1.1 freenas

192.168.0.1 router.yourdomain router
192.168.0.2 freenas.yourdomain freenas
192.168.0.150 freenas2.yourdomain freenas2

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

The second line should show the name of the computer the hosts file resides, I mean, on freenas2 it should read: 127.0.1.1 freenas2 and so on. You can specify any domain you want, use your imagination, save this file with the name hosts e copy and paste to all your machines.
 

ctantra

Dabbler
Joined
Aug 4, 2011
Messages
29
Thanks hatalot, but is there another way that I can do it via the GUI?

EDIT: I got it, in Services, CIFS, change the NetBIOS name to freenas2. It's working... :)
 

survive

Behold the Wumpus
Moderator
Joined
May 28, 2011
Messages
875
Hi ctantra,

I'm assuming you want to see "FreeNAS2" in "network neighborhood"? If so change the NETBIOS name is the CIFS config.

-Will
 

ctantra

Dabbler
Joined
Aug 4, 2011
Messages
29
Thanks survive, you got what I meant.
 

hotalot

Dabbler
Joined
Dec 23, 2011
Messages
19
On freenas network page there is a box for the hosts file, you can type the above lines right there. You can use control-A to select all the text, control-c to copy the text and control-v to paste the text to the freenas2 machine. Just remember to adjust the second line name to the name of the machine the hosts files is in, on freenas machine: 127.0.1.1 freenas, on freenas2 machine: 127.0.1.1 freenas2.

You can copy and paste this file to all computer you have so that you can access each of them by the alias instead the ip.
 
Status
Not open for further replies.
Top