Re: [CentOS] IP range

2012-08-03 Thread Birta Levente
On 02/08/2012 22:45, Scott Silva wrote:
 snip
 Nope

 Work only .49 and .50

 I bought 8 public IP-s ... so 8 IPs have to get work.
 In the hosting specification this IPs is usable with xxx.xxx.xxx.48-55
 with subnet mask 255.255.255.255 with no gateway.

 As I sad, works perfectly with this command (8 times, of course :) ):
 #ifconfig eth:(0 to 7) xxx.xxx.xxx.(48-55) netmask 255.255.255.255

 Thanks

 Levi

 It doesn't work that way... You may think you bought 8 ip's, but you can only
 pass traffic on 6... That is how it works... You buy 16, and only 14 work. The
 first and last address are as Johnny said...

 http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing



 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

Thank you all for your time ...

But I have another question:

Why is a difference in setting up with icfg-eth0:0 and ifconfig ?
As I sad, setting up all 8 IP-s with ifconfig works perfectly.
Why if I specify explicitly the subnet mask in ifcfg-eth0:0 then appear 
other?

Thanks

Levi




___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] IP range

2012-08-03 Thread Lamar Owen
[For the archives, since I think Johnny just hit the wrong number key.]

On Thursday, August 02, 2012 10:24:27 AM Johnny Hughes wrote:
 If you want 8 usable addresses (including the Network number, a gateway
 address, and a Broadcast address), that would mean you need at least 11
 IPs in that subnet ... the closest fit would be a 255.255.255.240 subnet
 (which has 16 addresses).  If you were to want to use th 255.255.255.240
 subnet, then 192.168.1.48 would not be available as it would the the
 Network number for that subnet ... the usable addresses would be
 192.168.1.49-63 that case and the Broadcast Address would be 192.168.1.64

192.168.1.63 would be the correct broadcast address; .64 would be the network 
address of the next subnet.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] IP range

2012-08-03 Thread Johnny Hughes
On 08/03/2012 08:54 AM, Lamar Owen wrote:
 [For the archives, since I think Johnny just hit the wrong number key.]

 On Thursday, August 02, 2012 10:24:27 AM Johnny Hughes wrote:
 If you want 8 usable addresses (including the Network number, a gateway
 address, and a Broadcast address), that would mean you need at least 11
 IPs in that subnet ... the closest fit would be a 255.255.255.240 subnet
 (which has 16 addresses).  If you were to want to use th 255.255.255.240
 subnet, then 192.168.1.48 would not be available as it would the the
 Network number for that subnet ... the usable addresses would be
 192.168.1.49-63 that case and the Broadcast Address would be 192.168.1.64
 192.168.1.63 would be the correct broadcast address; .64 would be the network 
 address of the next subnet.

Indeed ... Thanks Lamar :-)



signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] IP range

2012-08-02 Thread Birta Levente
Hi all

Can someone explain me this:

ifcfg-eth0-range1:
ONBOOT=yes
IPADDR_START=192.168.1.48
IPADDR_END=192.168.1.55
CLONENUM_START=1

Why Bcast is 192.168.1.51 and why Mask is 255.255.255.252 ?

OS: Centos 6.3/64bit


Thanks

Levi

# ifconfig

eth0:1Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
   inet addr:192.168.1.48  Bcast:192.168.1.51  Mask:255.255.255.252
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   Interrupt:16 Memory:fbee-fbf0

eth0:2Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
   inet addr:192.168.1.49  Bcast:192.168.1.51  Mask:255.255.255.252
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   Interrupt:16 Memory:fbee-fbf0

eth0:3Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
   inet addr:192.168.1.50  Bcast:192.168.1.51  Mask:255.255.255.252
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   Interrupt:16 Memory:fbee-fbf0

eth0:4Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
   inet addr:192.168.1.51  Bcast:192.168.1.51  Mask:255.255.255.252
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   Interrupt:16 Memory:fbee-fbf0

eth0:5Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
   inet addr:192.168.1.52  Bcast:192.168.1.51  Mask:255.255.255.252
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   Interrupt:16 Memory:fbee-fbf0

eth0:6Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
   inet addr:192.168.1.53  Bcast:192.168.1.51  Mask:255.255.255.252
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   Interrupt:16 Memory:fbee-fbf0

eth0:7Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
   inet addr:192.168.1.54  Bcast:192.168.1.51  Mask:255.255.255.252
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   Interrupt:16 Memory:fbee-fbf0

eth0:8Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
   inet addr:192.168.1.55  Bcast:192.168.1.51  Mask:255.255.255.252
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   Interrupt:16 Memory:fbee-fbf0



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] IP range

2012-08-02 Thread Nux!
On 02.08.2012 15:00, Birta Levente wrote:
 Hi all

 Can someone explain me this:

 ifcfg-eth0-range1:
 ONBOOT=yes
 IPADDR_START=192.168.1.48
 IPADDR_END=192.168.1.55
 CLONENUM_START=1

 Why Bcast is 192.168.1.51 and why Mask is 255.255.255.252 ?

 OS: Centos 6.3/64bit


 Thanks

 Levi

 # ifconfig

 eth0:1Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
inet addr:192.168.1.48  Bcast:192.168.1.51  
 Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
Interrupt:16 Memory:fbee-fbf0

 eth0:2Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
inet addr:192.168.1.49  Bcast:192.168.1.51  
 Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
Interrupt:16 Memory:fbee-fbf0

 eth0:3Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
inet addr:192.168.1.50  Bcast:192.168.1.51  
 Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
Interrupt:16 Memory:fbee-fbf0

 eth0:4Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
inet addr:192.168.1.51  Bcast:192.168.1.51  
 Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
Interrupt:16 Memory:fbee-fbf0

 eth0:5Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
inet addr:192.168.1.52  Bcast:192.168.1.51  
 Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
Interrupt:16 Memory:fbee-fbf0

 eth0:6Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
inet addr:192.168.1.53  Bcast:192.168.1.51  
 Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
Interrupt:16 Memory:fbee-fbf0

 eth0:7Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
inet addr:192.168.1.54  Bcast:192.168.1.51  
 Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
Interrupt:16 Memory:fbee-fbf0

 eth0:8Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
inet addr:192.168.1.55  Bcast:192.168.1.51  
 Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
Interrupt:16 Memory:fbee-fbf0



 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

You can (and are encouraged) to specify the NETMASK as well in that 
range file. I don't know why it uses that mask and broadcast; maybe it 
inherits them from other already configures interface?

-- 
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] IP range

2012-08-02 Thread John Doe
From: Birta Levente blevi.li...@gmail.com

 Can someone explain me this:
 ifcfg-eth0-range1:
 ONBOOT=yes
 IPADDR_START=192.168.1.48
 IPADDR_END=192.168.1.55
 CLONENUM_START=1
 Why Bcast is 192.168.1.51 and why Mask is 255.255.255.252 ?

Never used ifcfg-eth0-range, but did you try 49 to 54 instead of 48 to 55?

$ ipcalc 192.168.1.48/29
Address:   192.168.1.48 1100.10101000.0001.00110 000
Netmask:   255.255.255.248 = 29 ...1 000
Wildcard:  0.0.0.7  ...0 111
=
Network:   192.168.1.48/29  1100.10101000.0001.00110 000
HostMin:   192.168.1.49 1100.10101000.0001.00110 001
HostMax:   192.168.1.54 1100.10101000.0001.00110 110
Broadcast: 192.168.1.55 1100.10101000.0001.00110 111
Hosts/Net: 6 Class C, Private Internet

JD
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] IP range

2012-08-02 Thread Johnny Hughes
On 08/02/2012 09:00 AM, Birta Levente wrote:
 Hi all

 Can someone explain me this:

 ifcfg-eth0-range1:
 ONBOOT=yes
 IPADDR_START=192.168.1.48
 IPADDR_END=192.168.1.55
 CLONENUM_START=1

 Why Bcast is 192.168.1.51 and why Mask is 255.255.255.252 ?

 OS: Centos 6.3/64bit


 Thanks

 Levi

 # ifconfig

 eth0:1Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
inet addr:192.168.1.48  Bcast:192.168.1.51  Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
Interrupt:16 Memory:fbee-fbf0

 eth0:2Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
inet addr:192.168.1.49  Bcast:192.168.1.51  Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
Interrupt:16 Memory:fbee-fbf0

 eth0:3Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
inet addr:192.168.1.50  Bcast:192.168.1.51  Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
Interrupt:16 Memory:fbee-fbf0

 eth0:4Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
inet addr:192.168.1.51  Bcast:192.168.1.51  Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
Interrupt:16 Memory:fbee-fbf0

 eth0:5Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
inet addr:192.168.1.52  Bcast:192.168.1.51  Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
Interrupt:16 Memory:fbee-fbf0

 eth0:6Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
inet addr:192.168.1.53  Bcast:192.168.1.51  Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
Interrupt:16 Memory:fbee-fbf0

 eth0:7Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
inet addr:192.168.1.54  Bcast:192.168.1.51  Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
Interrupt:16 Memory:fbee-fbf0

 eth0:8Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
inet addr:192.168.1.55  Bcast:192.168.1.51  Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
Interrupt:16 Memory:fbee-fbf0

That is obviously not going to work ... a 255.255.255.252 mask is a 4 IP
subnet, with only 2  usable addresses and a network number and a
broadcast address.  The only free addresses in
192.168.1.48/255.255.255.252 are .49 and .50

The Broadcast and Mask settings are likely in your ifcfg-eth0 file and
not in the range file at all.

The Mask would either be set manually in ifcfg-eth0 ... or by the DHCP
server if you get DHCP. The Broadcast address would automatically be set
based on the Mask, unless it is overridden in ifcfg-eth0.

If the address is set via DHCP, you need to change the subnet mask on
the DHCP server as that is where it comes from.

If you want 8 usable addresses (including the Network number, a gateway
address, and a Broadcast address), that would mean you need at least 11
IPs in that subnet ... the closest fit would be a 255.255.255.240 subnet
(which has 16 addresses).  If you were to want to use th 255.255.255.240
subnet, then 192.168.1.48 would not be available as it would the the
Network number for that subnet ... the usable addresses would be
192.168.1.49-63 that case and the Broadcast Address would be 192.168.1.64

Since this is on a private network, why are you not just using the full
192.168.1.0 network with a 255.255.255.0 subnet?

I guess the real question is, what are you trying to do :D






signature.asc
Description: OpenPGP digital signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] IP range

2012-08-02 Thread Birta Levente
On 02/08/2012 17:24, Johnny Hughes wrote:
 On 08/02/2012 09:00 AM, Birta Levente wrote:
 Hi all

 Can someone explain me this:

 ifcfg-eth0-range1:
 ONBOOT=yes
 IPADDR_START=192.168.1.48
 IPADDR_END=192.168.1.55
 CLONENUM_START=1

 Why Bcast is 192.168.1.51 and why Mask is 255.255.255.252 ?

 OS: Centos 6.3/64bit


 Thanks

 Levi

 # ifconfig

 eth0:1Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
 inet addr:192.168.1.48  Bcast:192.168.1.51  Mask:255.255.255.252
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Interrupt:16 Memory:fbee-fbf0

 eth0:2Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
 inet addr:192.168.1.49  Bcast:192.168.1.51  Mask:255.255.255.252
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Interrupt:16 Memory:fbee-fbf0

 eth0:3Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
 inet addr:192.168.1.50  Bcast:192.168.1.51  Mask:255.255.255.252
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Interrupt:16 Memory:fbee-fbf0

 eth0:4Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
 inet addr:192.168.1.51  Bcast:192.168.1.51  Mask:255.255.255.252
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Interrupt:16 Memory:fbee-fbf0

 eth0:5Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
 inet addr:192.168.1.52  Bcast:192.168.1.51  Mask:255.255.255.252
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Interrupt:16 Memory:fbee-fbf0

 eth0:6Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
 inet addr:192.168.1.53  Bcast:192.168.1.51  Mask:255.255.255.252
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Interrupt:16 Memory:fbee-fbf0

 eth0:7Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
 inet addr:192.168.1.54  Bcast:192.168.1.51  Mask:255.255.255.252
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Interrupt:16 Memory:fbee-fbf0

 eth0:8Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
 inet addr:192.168.1.55  Bcast:192.168.1.51  Mask:255.255.255.252
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Interrupt:16 Memory:fbee-fbf0

 That is obviously not going to work ... a 255.255.255.252 mask is a 4 IP
 subnet, with only 2  usable addresses and a network number and a
 broadcast address.  The only free addresses in
 192.168.1.48/255.255.255.252 are .49 and .50

 The Broadcast and Mask settings are likely in your ifcfg-eth0 file and
 not in the range file at all.

 The Mask would either be set manually in ifcfg-eth0 ... or by the DHCP
 server if you get DHCP. The Broadcast address would automatically be set
 based on the Mask, unless it is overridden in ifcfg-eth0.

 If the address is set via DHCP, you need to change the subnet mask on
 the DHCP server as that is where it comes from.

 If you want 8 usable addresses (including the Network number, a gateway
 address, and a Broadcast address), that would mean you need at least 11
 IPs in that subnet ... the closest fit would be a 255.255.255.240 subnet
 (which has 16 addresses).  If you were to want to use th 255.255.255.240
 subnet, then 192.168.1.48 would not be available as it would the the
 Network number for that subnet ... the usable addresses would be
 192.168.1.49-63 that case and the Broadcast Address would be 192.168.1.64

 Since this is on a private network, why are you not just using the full
 192.168.1.0 network with a 255.255.255.0 subnet?

 I guess the real question is, what are you trying to do :D






 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


I have eth0 with public IP, netmask is 255.255.255.252.
Additionally I own 8 public IPs xxx.xxx.xxx.48-55 with class subnet mask 
255.255.255.248

If I set up with ifconfig eth:(0 to 7) xxx.xxx.xxx.(48-55) netmask 
255.255.255.255 it's work.

But if I set up the ifcfg-eth0:(0-7) files with the same IP and netmask 
it's not work. ifconfig show me the 255.255.255.252 netmask even if in 
file other netmask is specified.
The same situation in ifcfg-eth0-range1 case.


Thanks

Levi





___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] IP range

2012-08-02 Thread Johnny Hughes
On 08/02/2012 09:33 AM, Birta Levente wrote:
 On 02/08/2012 17:24, Johnny Hughes wrote:
 On 08/02/2012 09:00 AM, Birta Levente wrote:
 Hi all

 Can someone explain me this:

 ifcfg-eth0-range1:
 ONBOOT=yes
 IPADDR_START=192.168.1.48
 IPADDR_END=192.168.1.55
 CLONENUM_START=1

 Why Bcast is 192.168.1.51 and why Mask is 255.255.255.252 ?

 OS: Centos 6.3/64bit


 Thanks

 Levi

 # ifconfig

 eth0:1Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
 inet addr:192.168.1.48  Bcast:192.168.1.51  Mask:255.255.255.252
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Interrupt:16 Memory:fbee-fbf0

 eth0:2Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
 inet addr:192.168.1.49  Bcast:192.168.1.51  Mask:255.255.255.252
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Interrupt:16 Memory:fbee-fbf0

 eth0:3Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
 inet addr:192.168.1.50  Bcast:192.168.1.51  Mask:255.255.255.252
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Interrupt:16 Memory:fbee-fbf0

 eth0:4Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
 inet addr:192.168.1.51  Bcast:192.168.1.51  Mask:255.255.255.252
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Interrupt:16 Memory:fbee-fbf0

 eth0:5Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
 inet addr:192.168.1.52  Bcast:192.168.1.51  Mask:255.255.255.252
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Interrupt:16 Memory:fbee-fbf0

 eth0:6Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
 inet addr:192.168.1.53  Bcast:192.168.1.51  Mask:255.255.255.252
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Interrupt:16 Memory:fbee-fbf0

 eth0:7Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
 inet addr:192.168.1.54  Bcast:192.168.1.51  Mask:255.255.255.252
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Interrupt:16 Memory:fbee-fbf0

 eth0:8Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
 inet addr:192.168.1.55  Bcast:192.168.1.51  Mask:255.255.255.252
 UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
 Interrupt:16 Memory:fbee-fbf0
 That is obviously not going to work ... a 255.255.255.252 mask is a 4 IP
 subnet, with only 2  usable addresses and a network number and a
 broadcast address.  The only free addresses in
 192.168.1.48/255.255.255.252 are .49 and .50

 The Broadcast and Mask settings are likely in your ifcfg-eth0 file and
 not in the range file at all.

 The Mask would either be set manually in ifcfg-eth0 ... or by the DHCP
 server if you get DHCP. The Broadcast address would automatically be set
 based on the Mask, unless it is overridden in ifcfg-eth0.

 If the address is set via DHCP, you need to change the subnet mask on
 the DHCP server as that is where it comes from.

 If you want 8 usable addresses (including the Network number, a gateway
 address, and a Broadcast address), that would mean you need at least 11
 IPs in that subnet ... the closest fit would be a 255.255.255.240 subnet
 (which has 16 addresses).  If you were to want to use th 255.255.255.240
 subnet, then 192.168.1.48 would not be available as it would the the
 Network number for that subnet ... the usable addresses would be
 192.168.1.49-63 that case and the Broadcast Address would be 192.168.1.64

 Since this is on a private network, why are you not just using the full
 192.168.1.0 network with a 255.255.255.0 subnet?

 I guess the real question is, what are you trying to do :D






 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

 I have eth0 with public IP, netmask is 255.255.255.252.
 Additionally I own 8 public IPs xxx.xxx.xxx.48-55 with class subnet mask 
 255.255.255.248

 If I set up with ifconfig eth:(0 to 7) xxx.xxx.xxx.(48-55) netmask 
 255.255.255.255 it's work.

 But if I set up the ifcfg-eth0:(0-7) files with the same IP and netmask 
 it's not work. ifconfig show me the 255.255.255.252 netmask even if in 
 file other netmask is specified.
 The same situation in ifcfg-eth0-range1 case.

What if you do this:

ifcfg-eth0-range1:
ONBOOT=yes
IPADDR_START=192.168.1.49
IPADDR_END=192.168.1.54
CLONENUM_START=1
BROADCAST=192.168.1.55
NETMASK=255.255.255.248
NETWORK=192.168.1.48

(with a .248 subnet, you can not use the first address (192.168.1.48) or
the last address (192.168.1.55) on a device, they are the Network
Address and the Broadcast Address ... so an 8 IP subnet has 6 usable
addresses.  Also, one of those 6 addresses will also need to be assigned
to the gateway router if you need to talk to another network, so you
really only have 5 addresses that you can assign for use).




signature.asc

Re: [CentOS] IP range

2012-08-02 Thread Birta Levente
On 02/08/2012 17:52, Johnny Hughes wrote:
 On 08/02/2012 09:33 AM, Birta Levente wrote:
 On 02/08/2012 17:24, Johnny Hughes wrote:
 On 08/02/2012 09:00 AM, Birta Levente wrote:
 Hi all

 Can someone explain me this:

 ifcfg-eth0-range1:
 ONBOOT=yes
 IPADDR_START=192.168.1.48
 IPADDR_END=192.168.1.55
 CLONENUM_START=1

 Why Bcast is 192.168.1.51 and why Mask is 255.255.255.252 ?

 OS: Centos 6.3/64bit


 Thanks

 Levi

 # ifconfig

 eth0:1Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
  inet addr:192.168.1.48  Bcast:192.168.1.51  
 Mask:255.255.255.252
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  Interrupt:16 Memory:fbee-fbf0

 eth0:2Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
  inet addr:192.168.1.49  Bcast:192.168.1.51  
 Mask:255.255.255.252
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  Interrupt:16 Memory:fbee-fbf0

 eth0:3Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
  inet addr:192.168.1.50  Bcast:192.168.1.51  
 Mask:255.255.255.252
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  Interrupt:16 Memory:fbee-fbf0

 eth0:4Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
  inet addr:192.168.1.51  Bcast:192.168.1.51  
 Mask:255.255.255.252
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  Interrupt:16 Memory:fbee-fbf0

 eth0:5Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
  inet addr:192.168.1.52  Bcast:192.168.1.51  
 Mask:255.255.255.252
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  Interrupt:16 Memory:fbee-fbf0

 eth0:6Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
  inet addr:192.168.1.53  Bcast:192.168.1.51  
 Mask:255.255.255.252
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  Interrupt:16 Memory:fbee-fbf0

 eth0:7Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
  inet addr:192.168.1.54  Bcast:192.168.1.51  
 Mask:255.255.255.252
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  Interrupt:16 Memory:fbee-fbf0

 eth0:8Link encap:Ethernet  HWaddr 00:9C:02:99:FA:00
  inet addr:192.168.1.55  Bcast:192.168.1.51  
 Mask:255.255.255.252
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  Interrupt:16 Memory:fbee-fbf0
 That is obviously not going to work ... a 255.255.255.252 mask is a 4 IP
 subnet, with only 2  usable addresses and a network number and a
 broadcast address.  The only free addresses in
 192.168.1.48/255.255.255.252 are .49 and .50

 The Broadcast and Mask settings are likely in your ifcfg-eth0 file and
 not in the range file at all.

 The Mask would either be set manually in ifcfg-eth0 ... or by the DHCP
 server if you get DHCP. The Broadcast address would automatically be set
 based on the Mask, unless it is overridden in ifcfg-eth0.

 If the address is set via DHCP, you need to change the subnet mask on
 the DHCP server as that is where it comes from.

 If you want 8 usable addresses (including the Network number, a gateway
 address, and a Broadcast address), that would mean you need at least 11
 IPs in that subnet ... the closest fit would be a 255.255.255.240 subnet
 (which has 16 addresses).  If you were to want to use th 255.255.255.240
 subnet, then 192.168.1.48 would not be available as it would the the
 Network number for that subnet ... the usable addresses would be
 192.168.1.49-63 that case and the Broadcast Address would be 192.168.1.64

 Since this is on a private network, why are you not just using the full
 192.168.1.0 network with a 255.255.255.0 subnet?

 I guess the real question is, what are you trying to do :D






 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos

 I have eth0 with public IP, netmask is 255.255.255.252.
 Additionally I own 8 public IPs xxx.xxx.xxx.48-55 with class subnet mask
 255.255.255.248

 If I set up with ifconfig eth:(0 to 7) xxx.xxx.xxx.(48-55) netmask
 255.255.255.255 it's work.

 But if I set up the ifcfg-eth0:(0-7) files with the same IP and netmask
 it's not work. ifconfig show me the 255.255.255.252 netmask even if in
 file other netmask is specified.
 The same situation in ifcfg-eth0-range1 case.

 What if you do this:

 ifcfg-eth0-range1:
 ONBOOT=yes
 IPADDR_START=192.168.1.49
 IPADDR_END=192.168.1.54
 CLONENUM_START=1
 BROADCAST=192.168.1.55
 NETMASK=255.255.255.248
 NETWORK=192.168.1.48

 (with a .248 subnet, you can not use the first address (192.168.1.48) or
 the last address (192.168.1.55) on a device, they are the Network
 Address and the Broadcast Address ... so an 8 IP subnet has 6 usable
 addresses.  Also, one of those 6 addresses will also need to be assigned
 to the gateway router if you need to talk to another 

Re: [CentOS] IP range

2012-08-02 Thread John Doe
From: Birta Levente blevi.li...@gmail.com

 I bought 8 public IP-s ... so 8 IPs have to get work.
 In the hosting specification this IPs is usable with xxx.xxx.xxx.48-55 
 with subnet mask 255.255.255.255 with no gateway.
 As I sad, works perfectly with this command (8 times, of course :) ):
 #ifconfig eth:(0 to 7) xxx.xxx.xxx.(48-55) netmask 255.255.255.255

So maybe you do not want to (or cannot) use an ifcfg range file 
and just use 1 eth0 file + 7 alias files...

JD
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] IP range

2012-08-02 Thread Scott Silva
snip
 Nope
 
 Work only .49 and .50
 
 I bought 8 public IP-s ... so 8 IPs have to get work.
 In the hosting specification this IPs is usable with xxx.xxx.xxx.48-55 
 with subnet mask 255.255.255.255 with no gateway.
 
 As I sad, works perfectly with this command (8 times, of course :) ):
 #ifconfig eth:(0 to 7) xxx.xxx.xxx.(48-55) netmask 255.255.255.255
 
 Thanks
 
 Levi
 
It doesn't work that way... You may think you bought 8 ip's, but you can only
pass traffic on 6... That is how it works... You buy 16, and only 14 work. The
first and last address are as Johnny said...

http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing



___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] IP range

2012-08-02 Thread Stephen Harris
On Thu, Aug 02, 2012 at 12:45:46PM -0700, Scott Silva wrote:
 It doesn't work that way... You may think you bought 8 ip's, but you can only
 pass traffic on 6... That is how it works... You buy 16, and only 14 work. The
 first and last address are as Johnny said...

It very much depends on if he bought a routed subnet or bought 8
individual IPs.  It's very possible the OP _does_ have 8 IPs to play
with but, because it's not a subnet, he may need to configure them
individually.


(I had a friend who bought 4 IPs from BellAtlantic DSL in the late 90s
 that were 4 available IPs and not a routed subnet; his OpenBSD firewall
 machine would proxy-arp for the Windows machines sitting behind it)

-- 

rgds
Stephen
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] IP range

2012-08-02 Thread John R Pierce
On 08/02/12 12:45 PM, Scott Silva wrote:
 It doesn't work that way... You may think you bought 8 ip's, but you can only
 pass traffic on 6... That is how it works... You buy 16, and only 14 work. The
 first and last address are as Johnny said...

I've also seen DSL networks like this where those extra IPs are bridged 
not routed.  in these cases, you use the same gateway as the 'main' IP, 
but usually the main IP has a /24 or whatever mask that encompasses ALL 
the IPs.

regardless, the OP should contact the ISP and find out what the mask and 
gateway are for the extra IPs.


-- 
john r pierceN 37, W 122
santa cruz ca mid-left coast

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] IP range

2012-08-02 Thread Scott Silva
on 8/2/2012 12:54 PM John R Pierce spake the following:
 On 08/02/12 12:45 PM, Scott Silva wrote:
 It doesn't work that way... You may think you bought 8 ip's, but you can only
 pass traffic on 6... That is how it works... You buy 16, and only 14 work. 
 The
 first and last address are as Johnny said...
 
 I've also seen DSL networks like this where those extra IPs are bridged 
 not routed.  in these cases, you use the same gateway as the 'main' IP, 
 but usually the main IP has a /24 or whatever mask that encompasses ALL 
 the IPs.
 
 regardless, the OP should contact the ISP and find out what the mask and 
 gateway are for the extra IPs.
 
 
I guess with the ipv4 drought, this will become even more common... Until
everyone gets to ipv6...


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] ip range cidr calculator

2009-12-25 Thread Frank Cox
I found a command-line program that did this once before, used it for a
while and then forgot about it until right now and I'll be damned if I
can find it again.

A command line IP calculator that takes an address range and give it
back in cidr format.

I found an online one that does this here:

http://www.ipaddresslocation.org/subnet-mask-calculator.php

But I would prefer to have the commandline one back again.

Does anyone know what it's called and where it can be found?

-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] ip range cidr calculator

2009-12-25 Thread John R. Dennison
On Fri, Dec 25, 2009 at 05:05:53PM -0600, Frank Cox wrote:
 
 Does anyone know what it's called and where it can be found?

/bin/ipcalc - part of the initscripts package.




John

-- 
If man does find the solution for world peace it will be the most
revolutionary reversal of his record we have ever known.

-- George C. Marshall (1880 - 1959), American military leader and statesman,
creator of the Marshall Plan, the only US Army general to receive the Nobel
Peace Prize, Biennial Report of the Chief of Staff, US Army, 1 September 1945


pgpO2a8JmpZZ0.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] ip range cidr calculator

2009-12-25 Thread Barry Brimer
 I found a command-line program that did this once before, used it for a
 while and then forgot about it until right now and I'll be damned if I
 can find it again.

 A command line IP calculator that takes an address range and give it
 back in cidr format.

 I found an online one that does this here:

 http://www.ipaddresslocation.org/subnet-mask-calculator.php

 But I would prefer to have the commandline one back again.

 Does anyone know what it's called and where it can be found?

I like the one at http://jodies.de/ipcalc-archive/ipcalc-0.41/ipcalc 
which also gives Cisco wildcard masks as well as all the other useful 
things.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] ip range cidr calculator

2009-12-25 Thread Frank Cox

On Fri, 2009-12-25 at 17:14 -0600, Barry Brimer wrote:

 I like the one at http://jodies.de/ipcalc-archive/ipcalc-0.41/ipcalc 
 which also gives Cisco wildcard masks as well as all the other useful 
 things.

I'm pretty sure this is the one that I was using before.

Thanks loads for the help.

-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] ip range cidr calculator

2009-12-25 Thread Frank Cox
On Fri, 2009-12-25 at 17:09 -0600, John R. Dennison wrote:
  Does anyone know what it's called and where it can be found?
   
   /bin/ipcalc - part of the initscripts package.

As far as I can tell, that one doesn't do ranges (from a.b.c.0 to
a.b.e.255 stuff).  At least, if it does I haven't figured out the magic
incantation to get it to do that.

The one that Barry posted here does ranges.  I'm pretty sure it's the
same one that I was using before.

This time I have put it into a directory that I'm not likely to lose.

Thanks for the help.
-- 
MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] ip range cidr calculator

2009-12-25 Thread John R. Dennison
On Fri, Dec 25, 2009 at 05:41:29PM -0600, Frank Cox wrote:
 
 As far as I can tell, that one doesn't do ranges (from a.b.c.0 to
 a.b.e.255 stuff).  At least, if it does I haven't figured out the magic
 incantation to get it to do that.

No, it indeed does not.  My brain skipped over the part of
your original post that specified you wanting to do
ranges.  I blame all the food consumed today :(

 The one that Barry posted here does ranges.  I'm pretty sure it's the
 same one that I was using before.

Also available in the epel repo if you want it in rpm
format.




John

-- 
TURKEY, n. A large bird whose flesh when eaten on certain religious
anniversaries has the peculiar property of attesting piety and gratitude.
Incidentally, it is pretty good eating.

-- Ambrose Bierce, The Devil's Dictionary




pgpPQctks2Epz.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] IP range of Google Analytics server farm

2007-11-14 Thread Simon Jolle
Hi Centos Users

I would like to allow outgoing traffic to Google Analytics servers
(destination port 80). I wish to do a iptables rule. How to whitelist
all Google Analytics servers?

cheers
Simon

-- 
XMPP: [EMAIL PROTECTED]
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] IP range of Google Analytics server farm

2007-11-14 Thread Shibu C Varughese
On 11/14/07, Simon Jolle [EMAIL PROTECTED] wrote:

 Hi Centos Users

 I would like to allow outgoing traffic to Google Analytics servers
 (destination port 80). I wish to do a iptables rule. How to whitelist
 all Google Analytics servers?

 cheers
 Simon

 --
 XMPP: [EMAIL PROTECTED]


hi...Simon,

I thinks you can get your answer at http://www.google.com/support/analytics/
just have a search there 


-- 
[EMAIL PROTECTED]
True greatness is measured by how much freedom you give to others, not by
how much you can coerce others to do what you want. --Larry Wall
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] IP range of Google Analytics server farm

2007-11-14 Thread Simon Jolle sjolle
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/14/2007 05:01 PM, Shibu C Varughese wrote:
 hi...Simon,

Hi Shibu

 I thinks you can get your answer at http://www.google.com/support/analytics/
 just have a search there 

I didn't found my answer there. Can you point me to the right page?
I wish to add an outgoing iptables rule that allows Google Analytics.

cheers
Simon

- --
actually, I think Windows Vista has done more than virtually any OS
release to promote the use of Linux (Slashdot Kommentar, 4. Oct 07)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHOzAmEMN/lNE/wrwRArnLAJ9GOWsGeOlIyNvpGaWPQSwSxtDtDgCbB0cI
7ahyQKZZdQAVL9AAiZL2cCs=
=JimG
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] IP range of Google Analytics server farm

2007-11-14 Thread Shibu C Varughese
On 11/14/07, Simon Jolle sjolle [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 11/14/2007 05:01 PM, Shibu C Varughese wrote:
  hi...Simon,

 Hi Shibu

  I thinks you can get your answer at
 http://www.google.com/support/analytics/
  just have a search there 

 I didn't found my answer there. Can you point me to the right page?
 I wish to add an outgoing iptables rule that allows Google Analytics.

 cheers
 Simon




- --



Simon ... i just searched at the google support page ... this is what they
say

http://www.google.com/analytics/urchin_software.html

If you have content behind a security firewall or on an intranet or internal
network that prevents you from using the Google Analytics service, Urchin 5
software is for you.



-- 
[EMAIL PROTECTED]
True greatness is measured by how much freedom you give to others, not by
how much you can coerce others to do what you want. --Larry Wall
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos