Results 1 to 3 of 3
Hi,
Currently i am trying to reassign of my machines to another network.
Thought it would had been simple as an ifconfig command with the right static IP.
Bit of ...
- 02-28-2009 #1Just Joined!
- Join Date
- Feb 2009
- Posts
- 3
ifconfig on SSH
Hi,
Currently i am trying to reassign of my machines to another network.
Thought it would had been simple as an ifconfig command with the right static IP.
Bit of background info:
i only have access to this machine VIA ssh
So meaning once i change the ip address via ifconfig, i get cut off.
However when i try ssh-ing into the new address, it doesnt work
Pretty sure i did the ifconfig / cabling part right.
ifconfig eth0 10.x.x.x netmask 255.255.255.0 up
Just wondering what else i could be missing.
The other machines on the network (both old and new one) cant ping it now.
Am i going about this the wrong way?
How should i really do it?
Physically attaching a keyboard and monitor is not really a option for me and would seen as a last resort.
Many Thanks in advance !
P.S> i am running on a CentOS 5.2 Distro pretty similiar to RH
- 02-28-2009 #2
You could be struggling because your new network settings aren't being saved. Try running the tool 'system-config-network' and setting it up that way. You should be able to run the text-mode version of the tool, but you can also run the X (gui) version locally if you're SSH'ing in from a machine with an X server running (i.e. another Linux machine) - just specify the '-X' option when you ssh in.
Linux user #126863 - see http://linuxcounter.net/
- 03-01-2009 #3Just Joined!
- Join Date
- Feb 2009
- Posts
- 3
Hi,
Thanks so much for the reply,
Will try it monday.
Funny thing was when i did change the IP w/ ifconfig, i got cut off from SSH (as expected)
But i couldnt ping the machine on the new IP.
But glad to know thats probably another way around it
Thanks!


Reply With Quote