centos怎么添加路由
centos中添加路由的方法:1、打开centos终端;2、在命令行中输入“sudo route add default gw IP地址”命令添加默认路由即可。
具体操作方法如下:
1、在centos系统桌面中使用快捷键【Ctrl+Alt+T】打开centos终端命令行模式。
2、在centos终端命令行中输入以下命令添加默认路由即可。
sudo route add default gw IP地址 #添加默认网关
route命令参数:
add #增加路由
del #删除路由
-net #设置到某个网段的路由
-host #设置到某台主机的路由
gw #出口网关IP地址
dev #出口网关物理设备名
相关操作命令:
sudo route add -net 6.6.6.0/24 gw 5.5.5.250 #删除指定路由
sudoroute add-net Destination/genmask gw Gateway #添加到网络的路由
sudo route add –host Destination/genmask gw Gateway #添加到主机的路由
sudo route del default #删除默认路由
sudo route #查看当前的路由列表
上一篇:centos怎么删除用户
下一篇:centos怎么查看有几块硬盘
Wcat.exe是什么文件?Wcat.exe是不是病毒
wd2_051117_WIS207_mini.exe是什么文件?wd2_051117_WIS207_mini
winupd32.exe是什么文件?winupd32.exe是不是病毒
wc98pp.dll是什么文件?wc98pp.dll是不是病毒
wdm.exe是什么文件?wdm.exe是不是病毒
wget.exe是什么文件?wget.exe是不是病毒
wfwall1.exe是什么文件?wfwall1.exe是不是病毒
wincon.exe是什么文件?wincon.exe是不是病毒
winampb.exe是什么文件?winampb.exe是不是病毒
WatchClient.exe是什么文件?WatchClient.exe是不是病毒