Find the answer to your Linux question:
Results 1 to 5 of 5
hai, the network interface card ip address is changing by using the command "ifconfig".... so my doubt is after change the ip address for that interface, which file would be ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Oct 2006
    Posts
    107

    ifconfig command


    hai,

    the network interface card ip address is changing by using the command "ifconfig"....

    so my doubt is after change the ip address for that interface, which file would be reflected in linux ....


    Thanks in Advance

  2. #2
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Location
    India
    Posts
    362
    AFAIK, when you change IP of the system using ifconfig, it will not affect any of the files. The change is temporary.
    ---------------------------------
    Registered Linux User #440311
    HI2ARUN _AT_ GMAIL _DOT_ COM
    ---------------------------------

  3. #3
    Linux Newbie dilbert's Avatar
    Join Date
    Sep 2006
    Location
    Yorkshire, GB
    Posts
    237
    cyberinstru is right. The change is only temporary. If you reboot your machine, the changes have all gone.

    I'm not 100% sure if there is not a temporary file. If you are eager to find out, you could first exmaine what variable reads the IP address from the program ifconfig and what happens then with this IP address. Is it stored only in RAM or also on a temporary file?

    I never got that tricky questions in an interview. All the best for you.

    PS: If everything goes wrong you could come to the UK.
    Bus Error: Passengers dumped. Hech gap yo'q.

  4. #4
    Just Joined! s13884's Avatar
    Join Date
    Apr 2007
    Posts
    27

    Arrow

    Hay

    this will only change the your ethernet script.
    I ain't dead sure but u need to check the /etc/sysconf/network/eth.

    this file build upon your NIC configuration.

    cheers
    S

  5. #5
    Linux Newbie dilbert's Avatar
    Join Date
    Sep 2006
    Location
    Yorkshire, GB
    Posts
    237
    Well, you said already, you're not really sure.

    I looked into "/etc/sysconf/network*". There are files and further directories. I found there start-up scripts for configuration, but none of them changes its values when ifconfig has got a new IP address.

    The embedded board on my desk hasn't got a sysconfig directory at all under /etc/, this only by the way.
    Bus Error: Passengers dumped. Hech gap yo'q.

Posting Permissions

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