sudo ifconfig eth0 netmask not permanent

view story

http://serverfault.com – I have two PC's and a series of Juniper EX-2200 switches connected to form a network.None of the devices are connected to any external network.If I do an ifconfig on the first PC (monitor) I see that that PC only has an ethernet address.It does not have an IP address.I want to use an IP address to use applications such as scp. So I do the following. sudo ifconfig eth0 netmask Now if I do an ifconfig the PC shows the IP address of as expected.However it does n't seem to retains the IP address.It seems to lose the IP address after some time.I never reboo (HowTos)