How to set up static IP

Status
Not open for further replies.

tbrezniak

Dabbler
Joined
Oct 8, 2014
Messages
49
Code:
Enter an option from 1-14: 1
1) em0
Select an interface (q to quit): 1
Delete existing config? (y/n) n
Configure interface for DHCP? (y/n) n
Configure IPv4? (y/n) y
Interface name: (press enter as can be blank)
Several input formats are supported
Example 1 CIDR Notation: 192.168.1.1/24
Example 2 IP and Netmask separate:
IP: 192.168.1.1
Netmask: 255.255.255.0, or /24 or 24
IPv4 Address: 192.168.2.100/24
Saving interface configuration: Ok
Configure IPv6? (y/n) n
Restarting network: ok
You may try the following URLs to access the web user interface:
http://192.168.2.100
http://192.168.2.14

After going through step 1 on the startup screen of a fresh 9.3.1 build I am unable to access the web gui through the static ip I set as 192.168.2.100. It seems to be giving me 192.168.2.14 as an option as well as 192.168.2.100. Do I need to delete the 192.168.2.14 option?
I also setup the global config with an IP4 gateway and nameserver 1 shown in the static 1 photo. I got that info from running ipconfig in the command prompt, that output is in the picture static 3. Lastly I setup a static route with the destination network as 192.168.2.100/24, gateway as 192.168.2.1 seen in static 2 picture. I am not sure what I have missed, any help would be appreciate?


Hardware
Motherboard:
Supermicro X10SLL-F Micro ATX LGA1150 Motherboard , ECC support 32 GB max 1600 ram
Memory:
Crucial 16GB (2 x 8GB) DDR3-1866 CT2K8G3W186DM, ECC unregistered
HDDs - RAIDZ2 pool: MEdia pool for movies and TV shows
6x WD Green WD20EZRX, 2TB- SATA 6 GB/S 5400rpm
HDDs- mirror pool: backup of local pcs
2x WD RED WD20EFRX, 2TB - SATA6 GB/s 5400rpm
Boot Drive:
1x Sandisk 16gb USB drive
CPU:
Intel Pentium G3258 BX80646G3258, 3.2GHz Dual-Core Processor
Case:
NZXT Source 210 S210-001
Raid Card:
IBM SERVERAID M1015 Flashed to LSI IT mode
Power Supply:
EVGA 220-G2-0550-Y1 G2 80 Plus Gold Rated 550W
 

Attachments

  • static 2.JPG
    static 2.JPG
    25.5 KB · Views: 1,518
  • static 1.JPG
    static 1.JPG
    49.5 KB · Views: 1,695
  • static 3.JPG
    static 3.JPG
    40.7 KB · Views: 1,564

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
Odd that the 'old' address (192.168.2.14) is showing up... can you access the GUI via that address? Try deleting the existing config to start with a clean slate.

Make sure the IP address you're assigning (192.168.2.100) is not within the range of addresses assigned by your router via DHCP.

Your nameserver and gateway setup in Global Configuration looks good.

You don't need a static route...
 

tbrezniak

Dabbler
Joined
Oct 8, 2014
Messages
49
Odd that the 'old' address (192.168.2.14) is showing up... can you access the GUI via that address? Try deleting the existing config to start with a clean slate.

Make sure the IP address you're assigning (192.168.2.100) is not within the range of addresses assigned by your router via DHCP.

Your nameserver and gateway setup in Global Configuration looks good.

You don't need a static route...
I made sure the ip address is not within the DHCP range. It was so I reassigned it to 192.168.2.201 which is out side of the routers DHCP range. But that ip address still doesn't let me connect to it.

What do you mean try deleting the existing config? Is this in the gui?

Also I can still sign in using the 192.168.2.14 ip address.
 

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
I made sure the ip address is not within the DHCP range. It was so I reassigned it to 192.168.2.201 which is out side of the routers DHCP range. But that ip address still doesn't let me connect to it.

What do you mean try deleting the existing config? Is this in the gui?

Also I can still sign in using the 192.168.2.14 ip address.
At the console, the first question after "Select an interface" is "Delete existing config?" Do that to clear out any old settings; then carry on and configure the interface with your desired IP address.
 

tbrezniak

Dabbler
Joined
Oct 8, 2014
Messages
49
At the console, the first question after "Select an interface" is "Delete existing config?" Do that to clear out any old settings; then carry on and configure the interface with your desired IP address.
I ended up doing a complete new install of FreeNAS 9.3. I redid the static ip setup and rebooted the system. It now shows the static ip as the only ip in the gui. But when I enter it in chrome I just get site can't be reached error.
 
Last edited by a moderator:

Spearfoot

He of the long foot
Moderator
Joined
May 13, 2015
Messages
2,478
I ended up doing a complete new install of freenas 9.3. I redid the static ip setup and rebooted the system. It now shows the static ip as the only ip in the gui. But when I enter it in chrome I just get site can't be reached error.
Ah good!

Chrome may be a separate problem, perhaps related to certificates. In chrome, make sure you browse to http://... and not https://...
 

tbrezniak

Dabbler
Joined
Oct 8, 2014
Messages
49
Ah good!

Chrome may be a separate problem, perhaps related to certificates. In chrome, make sure you browse to http://... and not https://...
Still a no go even with the http:// I may just have to go without a static IP unfortunately! Unless you have any other suggestions?
And now I get a message showing host name not found that keeps popping up on the screen. Even tho I configured the gateway and nameserver before I set the static ip as 192.168.2.250 in case I was not able to get into the gui.
 

ccssid

Explorer
Joined
Dec 12, 2016
Messages
86
I just set up static in v9.10. I did just as you did in your static 2.jpg and the same in your static 1.jpg....except the nameserver 1 is : 208.67.222.222 and nameserver 2 is: 208.67.220.220. (as per Open DNS)

the only other thing I did was I added an interface where nic is "came in as default setting", interface name is "your choice" and ipv4 is the static address you are looking for (192.168.2.100 ), I believe.

all set up in GUI

I haven't a clue if this is the correct method or not but....All I can say is that now, in my router, my freenas box is listed as a static address, whereas before it was dhcp.
 

tbrezniak

Dabbler
Joined
Oct 8, 2014
Messages
49
I just set up static in v9.10. I did just as you did in your static 2.jpg and the same in your static 1.jpg....except the nameserver 1 is : 208.67.222.222 and nameserver 2 is: 208.67.220.220. (as per Open DNS)

the only other thing I did was I added an interface where nic is "came in as default setting", interface name is "your choice" and ipv4 is the static address you are looking for (192.168.2.100 ), I believe.

all set up in GUI

I haven't a clue if this is the correct method or not but....All I can say is that now, in my router, my freenas box is listed as a static address, whereas before it was dhcp.
Where do you see nic? I am not sure where you added an interface. Can you post a picture of what you are talking about?
 

ccssid

Explorer
Joined
Dec 12, 2016
Messages
86
it is under :
network
interfaces
add interface

I would post a jpg, but the computer I am working off of is basically stripped down the to min. of programs...sorry.
 

ccssid

Explorer
Joined
Dec 12, 2016
Messages
86
Don't forget 9.3.1 is a slightly different layout than 9.10
 

ccssid

Explorer
Joined
Dec 12, 2016
Messages
86
one more thing:

network:
static route;
add static route

you should have:

destination network: 192.168.2.100/24
gateway: 192.168.2.1
 

gpsguy

Active Member
Joined
Jan 22, 2012
Messages
4,472
The OP doesn't need a static route.

For the short run, I'd go back to the console setup menu, choose option #1, delete the current configuration and select DHCP. See if you can get that to work.

If you can SSH into the server, do an ifconfig and capture the data/screen shot, etc. If you can't SSH in, go back to the console setup menu and choose the shell option. Then issue the ifconfig command.

Re-read @Spearfoot 's messages regarding configuring a static IP address. Ensure that you are configuring the same interface that was used with DHCP. Since the mobo has dual NICS, you might be configuring the wrong one, when you tried to configure a static address, earlier.

network:
static route;
add static route
1
 
Last edited:

wblock

Documentation Engineer
Joined
Nov 14, 2014
Messages
1,506
I ended up doing a complete new install of FreeNAS 9.3.
Please realize that 9.3 is very, very old. The current version is 9.10. Many things have been fixed or improved.
 

tbrezniak

Dabbler
Joined
Oct 8, 2014
Messages
49
Please realize that 9.3 is very, very old. The current version is 9.10. Many things have been fixed or improved.
I think I may update to the 9.10 version and work from there. @gpsguy I will try your suggestions after I update to the 9.10 version of FreeNAS.
 
Last edited by a moderator:
Status
Not open for further replies.
Top