AnsweredAssumed Answered

The problems when changing MAC and IP in linaro 14.04!

Question asked by FivePandaH on Mar 25, 2018
Latest reply on Mar 27, 2018 by FivePandaH

Hi,

I managed to get everything work using the 2017_R1 example design on ZC706 board, bu when I change 

the MAC and IP address of eth0, I met some problems!

I modified the /etc/network/interface file to as follows:

 

auto eth0

iface eth0 inet static

pre-up ifconfig eth0 hw ether AA:BB:CC:DD:EE:01

address 192.168.0.55

netmask 255.255.255.0

gateway 192.168.0.255

 

 

Then reboot the system, the boot process hangs about 1 minute, finally it enters the linux,

but the network don't work.

If comments ''pre-up ifconfig eth0 hw ether AA:BB:CC:DD:EE:01", the network works fine!

 

And I tried another approach:

Add ifconfig command lines at the end of  "/etc/init.d/rc.local " file as :

 

ifconfig eth0 down

ifconfig eth0 hw ether AA:BB:CC:DD:EE:01

ifconfig eth0 192.168.0.55 netmask 255.255.255.0

sleep 5

ifconfig eth0 up

 

Then reboot, the boot process work right, but when pinging 192.168.0.55,

the ping results show : the network connect about 8-10 seconds, then disconnect,

about 30-40 seconds, then it reconnect all the time.

 

Anyone can give some tips about this? Any help will be appreciated! 

 

 

Outcomes