Results 1 to 5 of 5
Thread: ifconfig command
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Oct 2006
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
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
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.
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.
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.