Berkeley CSUA MOTD:Entry 25411
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/25 [General] UID:1000 Activity:popular
5/25    

2002/7/23-25 [Computer/SW/Languages/Java] UID:25411 Activity:high
7/22  /sbin/iptables -t nat -A POSTROUTING -s 10.1.1.0/24 -o eth0 -j MASQUERADE
      In the above line what is the point of the /24 ?
      Is it saying "this class C."  If so how does "24" relate to that?
      What would /8 be?
      \_ Yes it is -- it means the first 24 bits of the address are the
         network address, and so the last 8 bits specify a host on that
         network.  If it were /8, that would be a class A: the first 8
         bits are the network number, and the last 24 bits are for all
         the hosts on that network.
        \_ It's standard CIDR addressing. Nowadays, you can get IP chunks that
           are /22's and so forth, so "Class C" doesn't always make sense.
           CIDR is also referred to as classless routing.
           \_ Classless Inter-Domain Routing even!
        \_ I thought the second number is the number of bits in the subnet
           mask. /24 is the same as 255.255.255.0. In practicality, the
           example is the same. --dim
           \_ Exactly: an IP address specifies both a particular network and
              a particular host on that network, and the netmask tells you how
              many bits of the address are for the network part.
              --original responder
        \_ The submask binds the parity bit, that denotes Class A
           or Class B, for upstream data logging.
2025/05/25 [General] UID:1000 Activity:popular
5/25    

You may also be interested in these entries...
2013/5/1-18 [Computer/SW/Languages/Java, Computer/Theory] UID:54669 Activity:nil
5/1     What's the difference between CS and Computer Engineering?
        http://holykaw.alltop.com/top-ten-paying-degrees-for-college-graduates
        \_ One is science and the other is engineering.
        \_ From http://en.wikiquote.org/wiki/Computer_science
           'A folkloric quotation ... states that "computer science is no more
           about computers than astronomy is about telescopes."  The design
	...
2012/12/4-18 [Computer/SW/Languages/Java] UID:54544 Activity:nil
12/4    Holy cow, everyone around me in Silicon Valley is way beyond
        middle class according to Chinni's definition:
        http://en.wikipedia.org/wiki/American_middle_class
        \_ Let's set our goals higher:
           http://en.wikipedia.org/wiki/Upper_middle_class_in_the_United_States
           \_ How about this one?
	...
2012/10/29-12/4 [Science/Disaster, Computer/SW/Languages/Java, Politics/Domestic/President/Bush] UID:54516 Activity:nil
10/29   Go Away Sandy.
        \_ Sorry, Coursera is performing preventive maintenance for this
           class site ahead of Hurricane Sandy. Please check back in 15 minutes.
           class site ahead of Hurricane Sandy. Please check back in 15
           minutes.
        \_ Bitch.
	...
2012/1/18-3/3 [Computer/SW/Languages/Java, Finance/Investment] UID:54290 Activity:nil
1/18    I own a bunch of NFLX stocks bought at several different periods
        (from high $200 all the way down to $80). I dumped a few and
        still have a few. Why the hell is Reid Hastings still making
        $500,000/year? How do I join the pending NFLX Class Action
        Lawsuit?
        \_ Why would you buy stock in a company run by a narcissistic
	...