Static ip for freeNAS and jail system

Status
Not open for further replies.

iMarcus

Dabbler
Joined
Aug 16, 2012
Messages
32
Hi, im trying to setup static ip for the freeNAS and the jailsystem.
I have discovered that you could config the interfaces:

Is this the right setup:
Hi my router has the following ip: 192.168.0.1.
Shall i conf em0:
NIC: em0
Interface Name: em0
DHCP: unchecked
IPv4 Adress: 192.168.0.199
Ipv4 NetMask: 255.255.255.0 (24)
Auto configure IPv6.

And epair0a:
NIC: epair0a
Interface Name: epair0a
DHCP: unchecked
IPv4 Adress: 192.168.0.198
Ipv4 NetMask: 255.255.255.0 (24)
Auto configure IPv6.

Or how shall i do in order to get static ip to both?

Shall i leave bridge0 uncon?
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Marcus,

Have you tried reading the documentation? That last time I saw it, it explained how to do that.

doc.freenas.org/index.php/Main_Page
 

iMarcus

Dabbler
Joined
Aug 16, 2012
Messages
32
Im sorry but i have read the Network section but i cant find something like "How to assign freeNAS and "plugin system" static ips".
Im quite new to freeNAS would be great if somebudy could help med out here.
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403

iMarcus

Dabbler
Joined
Aug 16, 2012
Messages
32
Hi i now how to add/edit a interface the problem is i dont know how the settings should look like. Im having em0, bridge0 and epair0a.
 

Forssux

Explorer
Joined
Mar 13, 2013
Messages
67
Hi There,

I'm having the same question....sort of...

I installed the FreeNas 8.3.1 release system at home hence the 192.168 addresses

When I installed the jail pluggins system I noticed that a bridge0 and a epair0a is created...

Today I took the server at work and changed the Ipadress from 192.168.0.2 to 10.120.17.124
I also changed the gateway to 10.120.17.1 and I changed the Ip address of the jail to 10.120.17.126


I don't now what the the concept is of the epair0 and bridge ip adresses

This isn't explained in http://en.wikipedia.org/wiki/Freebsd_jail or in http://www.freenas.org/images/resou...s8.2_guide.html#__RefHeading__33325_859822269

It seems by changing the ipadress I can now access at 3 addresses my Freenas.

10.120.17.124 which I choose
10.120.17.145 which the system choose
10.120.17.146 which the system choose


Do I need the bridge0? and the epair0?


This is the ifconfig of the Freenas itself
Code:
em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=2098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
	ether 00:15:60:10:11:aa
	inet 10.120.17.124 netmask 0xffffff00 broadcast 10.120.17.255
	media: Ethernet autoselect (1000baseT <full-duplex>)
	status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=3<RXCSUM,TXCSUM>
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x7 
	inet6 ::1 prefixlen 128 
	inet 127.0.0.1 netmask 0xff000000 
	nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
bridge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	ether 02:35:25:4e:51:00
	inet 10.120.17.145 netmask 0xffffff00 broadcast 10.120.17.255
	id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15
	maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200
	root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0
	member: em0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
	        ifmaxaddr 0 port 6 priority 128 path cost 20000
	member: epair0a flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP>
	        ifmaxaddr 0 port 9 priority 128 path cost 2000
epair0a: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:9a:d6:00:09:0a
	inet 10.120.17.146 netmask 0xffffff00 broadcast 10.120.17.255
	media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
	status: active




This is the ifconfig of the jail

Code:
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=3<RXCSUM,TXCSUM>
	inet 127.0.0.1 netmask 0xff000000 
	inet6 ::1 prefixlen 128 
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 
	nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
epair0b: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=8<VLAN_MTU>
	ether 02:9a:d6:00:0a:0b
	inet 10.120.17.126 netmask 0xffffff00 broadcast 10.120.17.255
	inet6 fe80::9a:d6ff:fe00:a0b%epair0b prefixlen 64 scopeid 0x2 
	nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
	media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
	status: active




Kind Regards
Guy Forssman
 

gmontalvo

Dabbler
Joined
Sep 4, 2012
Messages
18
Do I need the bridge0? and the epair0?

Yes ... Your setup appears very similar to mine. In order to achieve static routing, I wrote down the mac addresses, and then created entries for re0 and epair0b in the static routing tables of my router.

Unrelated, but ... I noticed the promiscuous mode setting in ifconfig, and was a little concerned. Since I have seen others posting their ifconfig and have it set as well, I figured its "normal" ??
 

Forssux

Explorer
Joined
Mar 13, 2013
Messages
67
Thanks for looking into it,,, what is indeed the promiscious mode?


after reboot there was only one ip adress left.

I hooped for howto's and manual that where a little more explaining.....then with just a community driven project..
I think it's a todo for the company behind this project just my thoughts of course..

Kind Regards
Guy
 

Forssux

Explorer
Joined
Mar 13, 2013
Messages
67
Reading the article it seems we need the Promiscuous mode otherwise we wouldn't have the bridge which we need to virtualise the jail got it I hope Thanks for the quick answer...

I think most of us think of promiscuos as bad thanks to our mothers :smile:
 
Status
Not open for further replies.
Top