setting up static ip using shell command
Hi,
Is there a command in linux to set-up static ip from command prompt? I don't want to change it through configuration files and any similar mechanism. I need to change it directly from command prompt. Thanks in advance. |
Code:
ifconfig ethX x.x.x.x netmask x.x.x.x |
can gateway be configured using ifconfig?
|
nope, you would need route for that..
Code:
route add default gw x.x.x.x Code:
nameserver x.x.x.x |
Quote:
|
All times are GMT -5. The time now is 05:34 PM. |