Edit command for Gateway Route Logged in as root
hi
can you please hlp with the command to edit gateway ip I`ve added gateway ip address with route default add gw 192.168.xxx.xxx now I want to edit and make changes please help |
Which distro do you have?
Code:
cat /etc/*release* |
Quote:
unbuntu 12.04 |
Quote:
Delete the gateway you put in previously with a "route del" command, then add the new default gateway command in with the command you first ran. |
First remove old default gateway
Code:
# route del default gw 192.168.old.old <interface> Code:
# route add default gw 192.168.new.new <interface> Code:
# route |
All times are GMT -5. The time now is 11:29 PM. |