linux 设备增加跨网段功能

一般linux 设备在使用过程中需要跟不在同一网段的服务器进行通信,需要设置网口的跨网点功能,使用 route 命令增加路由转发

增加网络设备 eth0 对网段的 192.168. 的处理

route add -net 192.168.0.0 netmask 255.255.0.0 gw $GATEWAY dev eth0

posted @ 2023-03-22 13:37  愿得入睡  阅读(128)  评论(0)    收藏  举报