雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 4811|回复: 11

[讨论/求助] 路由器分割广播的问题~~~~~~~··

  [复制链接]
发表于 2011-6-28 20:35:20 | 显示全部楼层 |阅读模式
路由器默认隔绝广播,但什么广播可以穿透路由器?????????
发表于 2011-6-28 21:17:27 | 显示全部楼层
不清楚 等待高手解决
发表于 2011-6-28 22:32:56 | 显示全部楼层
正常的广播是不能穿越路由器的,除非把广播封装成单播由路由器转发。
发表于 2011-6-29 08:52:21 | 显示全部楼层
1、 在默认情况下,Cisco路由器在收到任何广播数据的时候,默认都是丢弃而不转发,在某些时候,有些广播是必须的,比如我们通常使用的NetBios Name Server协议,DNS协议,还有DHCP协议。就像DHCP协议,当主机在没有地址的情况下,向服务器请求IP地址,正因为自己没有IP地址,却又不知道服务器在哪,所以需要使用广播来查找,这时,如果服务器在远程网络,而路由器又拒绝转发广播,那么将给我们的DHCP带来麻烦。这种方式可以将广播转化为单播转发给DHCP服务器:接口下使用:ip helper-address x.x.x.x  (说明:255.255.255.255的广播路由器不转发)
2、Directed-broadcast定向广播
每个网络都是与路由器的某个接口相连的,这个网络需要向远程网络发送广播,首先就是发送到路由器与之相连的接口,那么当路由器从该接口收到广播之后,决定是丢弃还是转发,就在于路由器的接口是否允许定向广播功能,如果我们需要让路由器帮我们转发定向广播,就需要在接口上手工配置directed-broadcast转发功能。(说明:如果你本网段是172.16.1.0/24,需要广播到192.168.166.0/24,那么你就可以发送广播到广播地址:192.168.166.255,这个取决于你是否在路由器接口上开启了定向广播的转发:接口下采用ip directed-broadcast,注:IOS 12.0开始,默认接口上是关闭directed-broadcast的。(注意IOS版本,请以自身为准。)可以采用show ip int F0/1(以F0/1为例))

附加:
RACK29R1#sh ip int f0/1
FastEthernet0/1 is up, line protocol is up
  Internet address is 29.29.15.161/27
  Broadcast address is 255.255.255.255
  Address determined by setup command
  MTU is 1500 bytes
  Helper address is not set
  Directed broadcast forwarding is disabled
  Multicast reserved groups joined: 224.0.0.5 224.0.0.6
  Outgoing access list is not set
  Inbound  access list is not set
  Proxy ARP is enabled
  Local Proxy ARP is disabled
  Security level is default
  Split horizon is enabled
  ICMP redirects are always sent
  ICMP unreachables are always sent
  ICMP mask replies are never sent
  IP fast switching is enabled
  IP fast switching on the same interface is disabled
  IP Flow switching is disabled
  IP CEF switching is enabled
  IP CEF Feature Fast switching turbo vector
  IP multicast fast switching is enabled
  IP multicast distributed fast switching is disabled
  IP route-cache flags are Fast, CEF
  Router Discovery is disabled
  IP output packet accounting is disabled
  IP access violation accounting is disabled
  TCP/IP header compression is disabled
  RTP/IP header compression is disabled
  Policy routing is disabled
  Network address translation is disabled
  BGP Policy Mapping is disabled
  WCCP Redirect outbound is disabled
  WCCP Redirect inbound is disabled
  WCCP Redirect exclude is disabled
RACK29R1#

发表于 2011-6-29 09:45:46 | 显示全部楼层
JEFF 好厉害哦
发表于 2011-6-29 10:52:03 | 显示全部楼层
先研究研究四楼了
发表于 2011-6-29 10:54:09 | 显示全部楼层
JEFF回答的很详细了 还有例子
发表于 2011-6-29 11:00:18 | 显示全部楼层
楼上又来灌水了
发表于 2011-6-29 11:18:55 | 显示全部楼层
Jeff. 发表于 2011-6-29 08:52
1、 在默认情况下,Cisco路由器在收到任何广播数据的时候,默认都是丢弃而不转发,在某些时候,有些广播是必 ...

JEFF老师好~

..那个..关于第二个Directed-broadcast我有个小疑问

您说的这个定向广播指的是只要在路由的某个接口上开启这个ip Directed-broadcast功能
不论是串口还是以太网接口 只要路由可达
这个接口收到的所有到某个网段的广播都是转发的是把?比如192.168.1.255/24这样的、172.16.255.255/16这样的?

只是不转发255.255.255.255的广播对吧?

非常感谢JEFF大哥的讲解..受益了~!
发表于 2011-6-29 11:37:52 | 显示全部楼层
magic_os 发表于 2011-6-29 11:18
JEFF老师好~

..那个..关于第二个Directed-broadcast我有个小疑问

嗯 不转发255.255.255.255
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-5-18 09:26 , Processed in 0.078135 second(s), 18 queries , Gzip On.

快速回复 返回顶部 返回列表