Take the 2-minute tour ×

I'm trying to connect from one machine to the other (for Postgres), and I'm confused about how to configure my IP address, both from a allow connections from IP address X and from a connect to machine A on IP address X standpoint, assuming there could be a difference.

If I use ifconfig, the output says my bcast is and inet addr is A related query on this subject pertains to the selected answer to this question, wherein the use of /24 (24 bit IP) in the actual IP address confuses me. How/when should /24 be used when specifying an IP address?

share|improve this question
ifconfig is deprecated on Linux. Use ip addr (or just ip a) instead. –  BatchyX Jan 1 '13 at 21:25
@batchyx - would you please stop propogating this invalid information. I have seen this specific comment more than once and again, I must comment on how this is wrong. –  mdpc Jan 1 '13 at 23:13
add comment

closed as off topic by mdpc, Ward, Khaled, Lucas Kauffman, dunxd Jan 2 '13 at 9:29


1 Answer

up vote 3 down vote accepted is your system's address, .255 is the broadcast address for the subnet.

/24 is CIDR notation for the subnet mask; it means that 24 bits of the 32 bit IPv4 address are the network and the other 8 bits are the addresses within the subnet.

See this question for more information.

share|improve this answer
Thanks Shane. That's helpful. –  Johnny 5 Jan 2 '13 at 22:39
add comment
