Results 1 to 3 of 3
Hello,
I work with NFS, and would like to change ip address & mac address in the application. From past experience I remember that it causes problems and that OS ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-19-2012 #1Just Joined!
- Join Date
- Apr 2011
- Posts
- 3
change ip address
Hello,
I work with NFS, and would like to change ip address & mac address in the application. From past experience I remember that it causes problems and that OS then halts, but I didn't find any documentation for that. I would like to ask if it is legal to change ip & ethernet in the application when working with NFS, and if yes, how should it be done ?
Thank you, Ran
- 07-19-2012 #2
Hi
1] the MAC shouldn't be related to the NFS (network file system) protocolwould like to change ip address & mac address in the application
2] a NFS client or server does not change the IP address by itself, but rather it uses one of the IP addresses that are configured on the computer where the NFS client or server runs
1] Changing the IP address shouldn't be a problem - but changing the ip address on the NFS server means that all clients have to connect to another IP address and have to be configured to do so.is legal to change ip & ethernet in the application when working with NFS
2] Changing the MAC is not prohibited, but you should do so if and only if you are on a private network where you know all computers and if the private network is unable to communicate with the rest of the world. A MAC address is unique for all manufactored network cards and should NEVER exist twice. If it does you will experience strange things happen. It's comparable to a situation where two households have the same address - the postal services won't know which one of them should receive packets and may deliver one packet to one household and the next packet to the other household.
1] changing an ip address is easy as that:how should it be done
where <device> may be "eth0", <address> may be "192.168.0.1" and <netmask> may be "255.255.255.0".Code:~# ifconfig <device> <address> netmask <netmask>
2] For the mac address it is not easy, since the mac address is programmed into the network card chipset. Some network cards do not support to change their mac address, but if your model allows that you should be able to do so with something like:
where <device> may once more be "eth0" and <mac> may be something like "01:23:45:67:89:AB".Code:~# ifconfig <device> hw ether <mac>
Cheers
- 07-19-2012 #3Just Joined!
- Join Date
- Apr 2011
- Posts
- 3
Hi Kloschussel,
Thanks for reply.
I want to change the ip & mac in the client (target running embedded linux).
From past experience I remember that when I changed the ip or mac address after linux startup with NFS, then it caused the OS to "halt".
I searched the internet but found no documentary regarding such limitation when working with NFS.
I assume that changing the ip address in the target might cause problem with NFS protocol becuase it tries to send udp/tcp to the previous address from u-boot.
Regards,
Ran


Reply With Quote
