Supporting Connected Routes to Subnet Zero
Supporting Connected Routes to Subnet Zero
IOS allows the network engineer to tell a router to either allow addresses in the zero subnet or not. The motivation has to do with some older IP routing protocols that did not support the use of the zero subnet. Basically, with the ip subnet-zero command configured, IOS allows the zero subnet with no restrictions. With the no ip subnet-zero command configured, the router rejects any ip address command that uses an address/mask combination for the zero subnet. For many of the more recent IOS versions, IOS allows the use of the zero subnet.
Note that the error message does not mention the zero subnet, instead simply stating“bad mask.”
Note that the no ip subnet-zero command affects the local router’s ip address commands, as well as the local router’s ip route commands (which define static routes). However, it does not affect the local router’s routes as learned with a routing protocol. For example, R1 could be configured with no ip subnet-zero, but still learn a route for a zero subnet using a routing protocol.
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步