Link to home
Start Free TrialLog in
Avatar of dissolved
dissolved

asked on

changing IP from SSH

What is the command to change the IP from a ssh session?
ifconfig something?

Thanks

ps: this is on redhat 9
ASKER CERTIFIED SOLUTION
Avatar of rindi
rindi
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dissolved
dissolved

ASKER

thanks. how do I change the netmask and gateway?
To set the gateway:

route add default gw xxx.xxx.xxx.xxx

to set the netmask:

ifconfig eth0 xxx.xxx.xxx.xxx netmask xxx.xxx.xxx.xxx

And thanks.
u da man