思科路由器 每个接口属于不同的网络


在此请注意,每个接口必须属于不同的网络。尽管 IOS 允许在两个不同的接口上配置来自同一网络的 IP 地址,但路由器不会同时激活两个接口。


例如,如果为 R1 的 FastEthernet 0/1 接口配置 192.168.1.0/24 网络上的 IP 地址,会出现什么情况呢?FastEthernet 0/0 已分配到同一网络上的地址。如果为接口 FastEthernet 0/1 也配置属于这一网络的 IP 地址,则会收到以下消息:


R1(config)#interface FastEthernet0/1

R1(config-if)#ip address 192.168.1.2 255.255.255.0

192.168.1.0 overlaps with FastEthernet0/0


如果尝试使用 no shutdown 命令启用该接口,则会收到以下消息:


R1(config-if)#no shutdown

192.168.1.0 overlaps with FastEthernet0/0

FastEthernet0/1: incorrect IP address assignment


在以下情况中应使用静态路由:

网络中仅包含几台路由器。在这种情况下,使用动态路由协议并没有任何实际好处。相反,动态路由可能会