Re: broadcasting to a particular subnet

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You might try "ip route add broadcast 10.0.1.0/24 dev eth0" -- that 
should get the router to link-layer broadcast packets on eth0's link.  I 
think the important question here is, why do you want to do this?  Are 
you trying to bridge these two networks (i.e., make them appear to be a 
single subnet)?  If so, this is not the way to go about it.

Vinod wrote:
> how can i make my router broadcast all packets
> destined to a particular subnet?
> 
> i tried : route add -net 10.0.1.0 netmask
> 255.255.255.0 gw 10.0.0.255 dev eth1 but no
> success.any hints what i am doing wrong?
> 
> my router is 10.0.0.1 and 10.0.1.0 is a different
> subnet .
>           10.0.0.2  10.0.1.1      10.0.1.5
>             __ _ _pc1 __ _ _ _ _pc3  
>             |
>             |
> router------
>             | 10.0.0.3 10.0.1.2    10.0.1.6
>             |_ _ _ _pc2- - - - - - pc4 
>               
> pc1 nd pc2 have two ethernet cards in them.
> 
> Thanks in adcance,
> vinod
> 
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
> -
> : send the line "unsubscribe linux-net" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Casey Carter
Casey@Carter.net
ccarter@uiuc.edu
AIM: cartec69

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux