I have connected Pynq Z2 board with my lab’s Ethernet port. And I have got static IP from the network administrator to assign to my Pynq board. How can I assign the static IP to Pynq board.
If I see the current output of ifconfig, I see eth0 and lo only. eth0 has some inet address which can not be pinged from Windows.
I have tried over there. I changed the address to static IP provided by administrator but it did not work. The board is not able to connect to internet. The file looks like this.
auto eth0
iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.2.99 (Changed this with the provided static IP)
netmask 255.255.255.0
What do you mean “The board is not able to connect to internet”? Do you mean external internet, or that you can’t connect to the board over the network i.e. from Jupyter?
If external internet, check if there is a proxy on your lab network that you need to config settings for on the board.
If you can’t connect to the board from Jupyter, for the IP, did you reboot and verify your changes?
Did you check what the IP address is?
“The board is not able to connect to internet”, I cannot ping any IP from terminal which means there is no internet.
“If external internet, check if there is a proxy on your lab network that you need to config settings for on the board.” There is no proxy on the lab’s network. We just assign static IP to PC and we can connect to internet.
“If you can’t connect to the board from Jupyter, for the IP, did you reboot and verify your changes? Did you check what the IP address is?” Yes. I rebooted the system and I can see that IP gets updated to the IP that I assign.
This isn’t accurate, ping can be blocked on a network.
“The board is not able to connect to internet”, I cannot ping any IP from terminal which means there is no internet.
It might help if you can post the output of ipconfig. Can you ping the board from your host computer, and can you share the IP details of both board and computer?
If you have set the IP correctly, then this is all you need to do on the board. You might need to check with your system administrators.