eNSP中配置默认路由

配置接口IP地址并通过静态路由、默认路由配置实现全网互通。

搭建环境

eNSP中配置默认路由

代码

[R1]ip route-static 0.0.0.0 0.0.0.0 192.168.2.2
[R3]ip route-static 0.0.0.0 0.0.0.0 192.168.3.1
[R2]ip route-static 192.168.1.0 255.255.255.0 192.168.2.1
[R2]ip route-static 192.168.4.0 255.255.255.0 192.168.3.2

测试

pc1和pc2之间能够相互连通

猜你喜欢

转载自blog.51cto.com/14309999/2388251