-
Notifications
You must be signed in to change notification settings - Fork 112
Set static IP address
roleo edited this page Aug 21, 2020
·
1 revision
Wiki page based on this post https://github.com/roleoroleo/yi-hack-MStar/issues/208#issuecomment-651939001 - thanks to @bonuzzz
To set a static IP address follow these steps:
- Create a folder "yi-hack" on the microSD card.
- Create a file (inside the prevoius folder) "startup.sh" with the following content:
#!/bin/sh
ifconfig wlan0 192.168.1.127 netmask 255.255.255.0 up
route add default gw 192.168.1.1
echo "nameserver 192.168.1.1" >> /tmp/resolv.conf
- Change the file permissions entering this command via ssh:
chmod 0755 /tmp/sd/yi-hack/startup.sh
- Reboot your cam.
In this example the cam has IP 192.168.1.127 and the router has IP 192.168.1.1