Re: Jails within different networks ... ?

2011-12-04 Thread Snoop
I've actually done that but the result was jails coming up incredibly
slowly and once up basically not wired.
I'm gonna check my configuration again and I'll update the mailing list
soon.
Thanks for you time to you all.

On Sat, 2011-12-03 at 21:54 +, Matthew Seaman wrote:
 On 03/12/2011 17:54, Snoop wrote:
  I have 3 jails within the host xxx.xxx.26.224 configured in this way
  (below) and everything works well.
  What if I want to enable another jail but I don't want to assign to that
  my next available public ip address xxx.xxx.26.228/24 but I want this
  jail to have a private ip address like 172.16.1.2/27?
  Is that possible or it's a delirium?
 
 Sure you can do that.  Remember the rule though, that the first IP from
 each different network configured on an interface must use the natural
 netmask for that network.  Second and subsequent addresses from each
 different network can either use the all-ones (/32) netmask, or the
 natural netmask.  This only changed a few years ago, so there's still a
 lot of advice going around saying you should use the older all-ones
 style, but in actuality you can do it which ever of those ways you want
 and it won't make any functional difference.
 
   Cheers,
 
   Matthew
 


 
 
 --
 Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP 
autenticato? GRATIS solo con Email.it http://www.email.it/f
 
 Sponsor:
 ING DIRECT Conto Arancio. 4,20% per 12 mesi, zero spese, aprilo in due minuti!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=11924d=4-12
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Jails within different networks ... ?

2011-12-04 Thread Snoop
Just an update.

It seems to be working well.
The jail startup slowness I believe is due to the fact that the DNS is
still down.
Thanks for your time.

### host rc.conf related section
ifconfig_lagg0=laggproto failover laggport bge0 laggport bge1
xxx.xxx.26.224/24
ifconfig_lagg0_alias_0=inet xxx.xxx.26.225/32
ifconfig_lagg0_alias_1=inet xxx.xxx.26.226/32
ifconfig_lagg0_alias_2=inet xxx.xxx.26.227/32
ifconfig_lagg0_alias_3=inet 172.16.3.2/27
ifconfig_lagg0_alias_4=inet 172.16.3.3/27
ifconfig_lagg0_alias_5=inet 172.16.3.4/27
ifconfig_lagg0_alias_6=inet 172.16.3.5/27
ifconfig_lagg0_alias_7=inet 172.16.3.6/27

### ifconfig related output
lagg0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu
1500

options=8009bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE
ether 00:14:5e:ee:2b:c0
inet xxx.xxx.26.224 netmask 0xff00 broadcast xxx.xxx.26.255
inet xxx.xxx.26.225 netmask 0x broadcast xxx.xxx.26.225
inet xxx.xxx.26.226 netmask 0x broadcast xxx.xxx.26.226
inet xxx.xxx.26.227 netmask 0x broadcast xxx.xxx.26.227
inet 172.16.3.2 netmask 0x broadcast 172.16.3.2
inet 172.16.3.3 netmask 0x broadcast 172.16.3.3
inet 172.16.3.4 netmask 0x broadcast 172.16.3.4
inet 172.16.3.5 netmask 0x broadcast 172.16.3.5
inet 172.16.3.6 netmask 0x broadcast 172.16.3.6
media: Ethernet autoselect
status: active
laggproto failover
laggport: bge1 flags=0
laggport: bge0 flags=5MASTER,ACTIVE

 
 
 --
 Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP 
autenticato? GRATIS solo con Email.it http://www.email.it/f
 
 Sponsor:
 Conto Arancio al 4,20%. Soldi sempre disponibili, zero spese, aprilo in due 
minuti!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=11920d=4-12
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Jails within different networks ... ?

2011-12-03 Thread Snoop
Hi there, I've a doubt!
I have 3 jails within the host xxx.xxx.26.224 configured in this way
(below) and everything works well.
What if I want to enable another jail but I don't want to assign to that
my next available public ip address xxx.xxx.26.228/24 but I want this
jail to have a private ip address like 172.16.1.2/27?
Is that possible or it's a delirium?
I don't want to waste my public ip address for a jail which I want to
have a network configured but not to be publicly visible.

Many thanks in advance.

lagg0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu
1500

options=8009bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE
ether 00:14:5e:ee:2b:c0
inet xxx.xxx.26.224 netmask 0xff00 broadcast xxx.xxx.26.255
inet xxx.xxx.26.225 netmask 0x broadcast xxx.xxx.26.225
inet xxx.xxx.26.226 netmask 0x broadcast xxx.xxx.26.226
inet xxx.xxx.26.227 netmask 0x broadcast xxx.xxx.26.227
media: Ethernet autoselect
status: active
laggproto failover
laggport: bge1 flags=0
laggport: bge0 flags=5MASTER,ACTIVE

 
 
 --
 Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP 
autenticato? GRATIS solo con Email.it http://www.email.it/f
 
 Sponsor:
 Conto Arancio al 4,20%. Zero spese e massima liberta', aprilo in due minuti!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=11922d=3-12
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Jails within different networks ... ?

2011-12-03 Thread Sergio Tam
2011/12/3 Snoop sn...@email.it:
 Hi there, I've a doubt!
 I have 3 jails within the host xxx.xxx.26.224 configured in this way
 (below) and everything works well.
 What if I want to enable another jail but I don't want to assign to that
 my next available public ip address xxx.xxx.26.228/24 but I want this
 jail to have a private ip address like 172.16.1.2/27?
 Is that possible or it's a delirium?
 I don't want to waste my public ip address for a jail which I want to
 have a network configured but not to be publicly visible.

 Many thanks in advance.

 lagg0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu
 1500

 options=8009bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE
        ether 00:14:5e:ee:2b:c0
        inet xxx.xxx.26.224 netmask 0xff00 broadcast xxx.xxx.26.255
        inet xxx.xxx.26.225 netmask 0x broadcast xxx.xxx.26.225
        inet xxx.xxx.26.226 netmask 0x broadcast xxx.xxx.26.226
        inet xxx.xxx.26.227 netmask 0x broadcast xxx.xxx.26.227
        media: Ethernet autoselect
        status: active
        laggproto failover
        laggport: bge1 flags=0
        laggport: bge0 flags=5MASTER,ACTIVE



Create an Alias

Example:

ifconfig_em0_alias0=inet 192.0.2.9 netmask 255.255.255.255


http://blather.michaelwlucas.com/archives/1021

Regards.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Jails within different networks ... ?

2011-12-03 Thread Matthew Seaman
On 03/12/2011 17:54, Snoop wrote:
 I have 3 jails within the host xxx.xxx.26.224 configured in this way
 (below) and everything works well.
 What if I want to enable another jail but I don't want to assign to that
 my next available public ip address xxx.xxx.26.228/24 but I want this
 jail to have a private ip address like 172.16.1.2/27?
 Is that possible or it's a delirium?

Sure you can do that.  Remember the rule though, that the first IP from
each different network configured on an interface must use the natural
netmask for that network.  Second and subsequent addresses from each
different network can either use the all-ones (/32) netmask, or the
natural netmask.  This only changed a few years ago, so there's still a
lot of advice going around saying you should use the older all-ones
style, but in actuality you can do it which ever of those ways you want
and it won't make any functional difference.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature