route add -net 192.168.2.10 netmask 255.255.255.255 gw 170.18.10.1 删除路由: route del -net 192.168.2.10 netmask 255.255.255.255 gw 170.18.10.1 2.永久路由添加 cd /etc/sysconfig/network-scripts vi route-eth0 GATEWAY0=170.18.10.1 NETMASK0=255.255.255.255 ADDRESS0=192.168.2.20 GATEWAY2=170.18.10.1 NETMASK2=255.255.255.255 ADDRESS2=192.168.2.10 重启网卡后生效 windows上添加路由: 1. 找出以太网卡的接口编号 操作方法:显示当前网卡号;在“命令提示符”窗口中输入以下命令: route print 出现以下结果: 2. 添加路由 在命令行窗口中输入以下命令(-p参数为永久路由): route -p add 170.18.20.0 mask 255.255.255.0 172.18.20.1 if 14 route -p add 170.18.10.0 mask 255.255.255.0 172.18.10.1 if 13 3. 删除到170.18.20.0网段的路由: route delete 170.18.20.0