Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    3

    Exclamation 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

  2. #2
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,392
    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/

  3. #3
    Just 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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...