Skip to contentSkip to conversation

192.168.2.33/24 & 192.168.2.33/29 on the same box

DISCUSSION lejeczek 2 participants 2 messages Apr 7, 2014

lore
Share & tools
lore

lejeczek

author
#0 lore raw

hi everybody

I'm hoping an expert could help me, clarify this one for me, should be simple I guess, probably not for a newbie like me

having on one system

physical eth 192.168.2.33/24
and a
bridge (only taps no phys) 192.168.2.33/29

I cannot get to anything behind 192.168.2.33/29 from anything behind 192.168.2.33/24 (and vice versa) each side can get respectively tofurther-out interface of the 192.168.2.33
routing + forwarding I have it set up all I believe

is such a configuration even valid? should be, right?

I'm trying to understand subnet concept of, in this case class C private net - is 192.168.2.33/29 still a part of 192.168.2.33/24 or it is a whole separate network.

regards
P.

#1 lore raw
Quoted 8 lines · lejeczek

I'm hoping an expert could help me, clarify this one for me, should be simple I guess, probably not for a newbie like me

having on one system

physical eth 192.168.2.33/24
and a
bridge (only taps no phys) 192.168.2.33/29

When you're going to bridge an interface, you assign it "0.0.0.0/0" (which is to bring it up.) Then you assign an IP address to the bridge.

No time to look it up for you right now, but I believe the brctl(8) manual should cover this.

Quoted 2 lines

I cannot get to anything behind 192.168.2.33/29 from anything behind 192.168.2.33/24 (and vice versa)

Broken bridge, I guess.

Quoted 6 lines

each side can get respectively tofurther-out interface of the 192.168.2.33 routing + forwarding I have it set up all I believe

is such a configuration even valid? should be, right?

I'm trying to understand subnet concept of, in this case class C

Do yourself a favor: totally forget about "class".

Quoted 2 lines

private net - is 192.168.2.33/29 still a part of 192.168.2.33/24 or it is a whole separate network.

It is indeed a part. To turn those addresses into valid CIDR expressions, change the last quads to be the network address:

1. 192.168.2.33/29 becomes 192.168.2.32/29 This includes IP addresses 192.168.2.32 through .39
2. 192.168.2.33/24 becomes 192.168.2.0/24 This includes IP addresses 192.168.2.0 through .255

Signature · 2 lines
  http://rob0.nodns4.us/
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject: