Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have set my interfaces configuration as below:
auto lo
iface lo inet loopback

auto eth1
iface eth1 inet static
address 192.168.1.39
netmask 255.255.255.0
gateway 192.168.1.1


The problem is that sometimes the eth0 is rename to rename0/rename1/rename2 etc.. with different IP. When i try to run this:
ifdown -a && ifup -a

It shows: failed to bring up eth0.
I also tried this:
ifconfig eth0 down && ifconfig eth0 192.168.1.39 netmask 255.255.255.0 up

and got the following output:
eth0: ERROR while getting interface flags: No such device

I cross verified and got false results that if some node is having IP Address 192.168.1.39.

Is there any solution to overcome this and have the same IP mentioned in configurations like we have in windows?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900