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 ...
- 05-04-2007 #1Linux 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
- 05-04-2007 #2
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
---------------------------------
- 05-04-2007 #3
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.
- 05-04-2007 #4
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
- 05-04-2007 #5
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.


Reply With Quote