Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have 3 VLANs connected by a Ubuntu box acting as a router. Unicast packets are properly routed (machines can ping across VLANs, etc). I am now trying to get broadcast working. I want to be able to broadcast into another VLAN by sending to that VLANs broadcast address.

How do I get the broadcast to work?

share|improve this question
    
OK and what is the question? –  Petter H Aug 28 '13 at 18:28
    
I guess broadcast doesn't cross to other vlan when he is broadcasting from one to another? –  Danila Ladner Aug 28 '13 at 18:42
    
@PetterH Clarified question. I want to be able to broadcast and I cannot, so can I reconfigure my router to allow it? –  Konstantin Naryshkin Aug 28 '13 at 19:18
2  
What's your use case here? Typically you want broadcasts to be limited to a single L2 segment. –  EEAA Aug 28 '13 at 19:48
    
VLANs divide broadcast domains. That is their purpose. en.wikipedia.org/wiki/Broadcast_domain –  Zoredache Aug 28 '13 at 19:55

1 Answer 1

You can't forward broadcasts between two different networks ( that is why they are separate networks ). Instead you need to set up a single IP network ( same network address and netmask ) and bridge the two parts. Have a look at the brctl command from the bridge-utils package to configure a bridge interface and bind the nics to it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.