linux怎样更改网关地址

来源:百度知道 编辑:UC知道 时间:2024/06/17 14:57:38
我装 linux系统的时候把网关填错啦怎么改回来啊?

Adding a Default GW in Linux

route add default gw 192.168.0.1
route del default gw 192.168.0.1

The old gw will still remain and may need to be taken out for the system to function properly

所以你先删掉原来的,再添加新的