我有一个像下面这样的拓扑,其中地址为 192.168.0.0/24 和 192.168.1.0/24 的 2 个子网连接到单个路由器 Router0。
现在我想从子网 192.168.0.0/24 上的 PC0 向子网 192.168.1.0/24 发送定向广播。当我尝试这样做时,它没有按预期工作。
当我从 PC0 ping 192.168.1.255 时,下面是我得到的回复。数据包根本不会通过 Router0 的接口 gigabitethernet0/0!
C:>ping 192.168.1.255
使用 32 字节数据 Ping 192.168.1.255:
来自192.168.0.1的回复:bytes=32 time=1ms TTL=255
来自192.168.0.1的回复:bytes=32 time<1ms TTL=255
来自192.168.0.1的回复:bytes=32 time<1ms TTL=255
来自18902.16的回复: 字节=32 时间=1ms TTL=255192.168.1.255 的 Ping 统计信息:数据包:发送 = 4,接收 = 4,丢失 = 0(丢失 0%),
以毫秒为单位的近似往返时间:最小值 = 0ms,最大值 = 1ms,平均值 = 0ms
我知道默认情况下,大多数路由器都禁用定向广播。我可以通过执行以下命令来确认相同的 -
Router#show ip interface gigabitethernet0/0 | 包括广播
定向广播转发被禁用
所以需要开启。
我遵循了几个链接并理解我需要执行命令
ip定向广播
所以我尝试如下 -
Router#config 终端
输入配置命令,每行一个。以 CNTL/Z 结尾。
Router(config)#interface gigabitethernet0/0
Router(config-if)#ip direct-broadcast^ % Invalid input detected at '^' marker.
路由器(配置-如果)#
路由器似乎无法识别命令本身。
如果我执行命令 ip ?要查看ip命令支持的参数,它列出如下-
Router(config-if)#ip ?
access-group Specify access control for packets
address Set the IP address of an interface
authentication authentication subcommands
flow NetFlow Related commands
hello-interval Configures IP-EIGRP hello interval
helper-address Specify a destination address for UDP broadcasts
mtu Set IP Maximum Transmission Unit
nat NAT interface commands
ospf OSPF interface commands
proxy-arp Enable proxy ARP
split-horizon Perform split horizon
summary-address Perform address summarization
并且看起来没有定向广播的论据支持!
有人可以帮助我,我应该如何继续在路由器中启用定向广播功能?