-
例如:在路由器的配置及管理中,静态路由在网络故障应急处理中的应用
资源介绍
举例:静态路由
ip route 172.16.1.0 255.255.255.0 172.16.2.1
172.16.2.0
Cisco A
172.16.1.0
255.255.255.0
172.16.2.1
Cisco B
E0
S0
S1
S2
S0
172.16.2.2
In the example:
ip route 172.16.1.0 255.255.255.0
172.16.2.1 Command Description
ip route 172.16.1.0 Specifies a static route to the destination subnetwork.
255.255.255.0 Subnet mask indicates that 8 bits of subnetting are in effect.
172.16.2.1 IP address of next-hop router in the path to the destination.
The assignment of a static route to reach the stub network 172.16.1.0 is proper for Cisco A because there is only one way to reach that network.
The assignment of a static route from Cisco B to the cloud networks is also possible. However, a static route assignment is required for each destination network, so a default route may be more appropriate.