Skip to content

Instantly share code, notes, and snippets.

@djeraseit
Forked from adam-blip/tether.rc
Created September 7, 2024 23:31
Show Gist options
  • Save djeraseit/1a1b21cef11035eb43ce9a16ab41130f to your computer and use it in GitHub Desktop.
Save djeraseit/1a1b21cef11035eb43ce9a16ab41130f to your computer and use it in GitHub Desktop.
Android Tethering Fixed IP - Load this via root shell before enabling thethering > android 9
#!/bin/sh
/system/bin/ip addr add 192.168.1.1/24 dev dummy0
/system/bin/ip addr add 192.168.2.1/24 dev dummy0
/system/bin/ip addr add 192.168.3.1/24 dev dummy0
/system/bin/ip addr add 192.168.4.1/24 dev dummy0
/system/bin/ip addr add 192.168.5.1/24 dev dummy0
/system/bin/ip addr add 192.168.6.1/24 dev dummy0
/system/bin/ip addr add 192.168.7.1/24 dev dummy0
/system/bin/ip addr add 192.168.8.1/24 dev dummy0
/system/bin/ip addr add 192.168.9.1/24 dev dummy0
/system/bin/ip addr add 192.168.10.1/24 dev dummy0
/system/bin/ip addr add 192.168.11.1/24 dev dummy0
/system/bin/ip addr add 192.168.12.1/24 dev dummy0
/system/bin/ip addr add 192.168.13.1/24 dev dummy0
/system/bin/ip addr add 192.168.14.1/24 dev dummy0
/system/bin/ip addr add 192.168.15.1/24 dev dummy0
/system/bin/ip addr add 192.168.16.1/24 dev dummy0
/system/bin/ip addr add 192.168.17.1/24 dev dummy0
/system/bin/ip addr add 192.168.18.1/24 dev dummy0
/system/bin/ip addr add 192.168.19.1/24 dev dummy0
/system/bin/ip addr add 192.168.20.1/24 dev dummy0
/system/bin/ip addr add 192.168.21.1/24 dev dummy0
/system/bin/ip addr add 192.168.22.1/24 dev dummy0
/system/bin/ip addr add 192.168.23.1/24 dev dummy0
/system/bin/ip addr add 192.168.24.1/24 dev dummy0
/system/bin/ip addr add 192.168.25.1/24 dev dummy0
/system/bin/ip addr add 192.168.26.1/24 dev dummy0
/system/bin/ip addr add 192.168.27.1/24 dev dummy0
/system/bin/ip addr add 192.168.28.1/24 dev dummy0
/system/bin/ip addr add 192.168.29.1/24 dev dummy0
/system/bin/ip addr add 192.168.30.1/24 dev dummy0
/system/bin/ip addr add 192.168.31.1/24 dev dummy0
/system/bin/ip addr add 192.168.32.1/24 dev dummy0
/system/bin/ip addr add 192.168.33.1/24 dev dummy0
/system/bin/ip addr add 192.168.34.1/24 dev dummy0
/system/bin/ip addr add 192.168.35.1/24 dev dummy0
/system/bin/ip addr add 192.168.36.1/24 dev dummy0
/system/bin/ip addr add 192.168.37.1/24 dev dummy0
/system/bin/ip addr add 192.168.38.1/24 dev dummy0
/system/bin/ip addr add 192.168.39.1/24 dev dummy0
/system/bin/ip addr add 192.168.40.1/24 dev dummy0
/system/bin/ip addr add 192.168.41.1/24 dev dummy0
/system/bin/ip addr add 192.168.42.1/24 dev dummy0
/system/bin/ip addr add 192.168.43.1/24 dev dummy0
/system/bin/ip addr add 192.168.44.1/24 dev dummy0
/system/bin/ip addr add 192.168.45.1/24 dev dummy0
/system/bin/ip addr add 192.168.46.1/24 dev dummy0
/system/bin/ip addr add 192.168.47.1/24 dev dummy0
/system/bin/ip addr add 192.168.48.1/24 dev dummy0
/system/bin/ip addr add 192.168.49.1/24 dev dummy0
/system/bin/ip addr add 192.168.50.1/24 dev dummy0
/system/bin/ip addr add 192.168.51.1/24 dev dummy0
/system/bin/ip addr add 192.168.52.1/24 dev dummy0
/system/bin/ip addr add 192.168.53.1/24 dev dummy0
/system/bin/ip addr add 192.168.54.1/24 dev dummy0
/system/bin/ip addr add 192.168.55.1/24 dev dummy0
/system/bin/ip addr add 192.168.56.1/24 dev dummy0
/system/bin/ip addr add 192.168.57.1/24 dev dummy0
/system/bin/ip addr add 192.168.58.1/24 dev dummy0
/system/bin/ip addr add 192.168.59.1/24 dev dummy0
/system/bin/ip addr add 192.168.60.1/24 dev dummy0
/system/bin/ip addr add 192.168.61.1/24 dev dummy0
/system/bin/ip addr add 192.168.62.1/24 dev dummy0
/system/bin/ip addr add 192.168.63.1/24 dev dummy0
/system/bin/ip addr add 192.168.64.1/24 dev dummy0
/system/bin/ip addr add 192.168.65.1/24 dev dummy0
/system/bin/ip addr add 192.168.66.1/24 dev dummy0
/system/bin/ip addr add 192.168.67.1/24 dev dummy0
/system/bin/ip addr add 192.168.68.1/24 dev dummy0
/system/bin/ip addr add 192.168.69.1/24 dev dummy0
/system/bin/ip addr add 192.168.70.1/24 dev dummy0
/system/bin/ip addr add 192.168.71.1/24 dev dummy0
/system/bin/ip addr add 192.168.72.1/24 dev dummy0
/system/bin/ip addr add 192.168.73.1/24 dev dummy0
/system/bin/ip addr add 192.168.74.1/24 dev dummy0
/system/bin/ip addr add 192.168.75.1/24 dev dummy0
/system/bin/ip addr add 192.168.76.1/24 dev dummy0
/system/bin/ip addr add 192.168.77.1/24 dev dummy0
/system/bin/ip addr add 192.168.78.1/24 dev dummy0
/system/bin/ip addr add 192.168.79.1/24 dev dummy0
/system/bin/ip addr add 192.168.80.1/24 dev dummy0
/system/bin/ip addr add 192.168.81.1/24 dev dummy0
/system/bin/ip addr add 192.168.82.1/24 dev dummy0
/system/bin/ip addr add 192.168.83.1/24 dev dummy0
/system/bin/ip addr add 192.168.84.1/24 dev dummy0
/system/bin/ip addr add 192.168.85.1/24 dev dummy0
/system/bin/ip addr add 192.168.86.1/24 dev dummy0
/system/bin/ip addr add 192.168.87.1/24 dev dummy0
/system/bin/ip addr add 192.168.88.1/24 dev dummy0
/system/bin/ip addr add 192.168.89.1/24 dev dummy0
/system/bin/ip addr add 192.168.90.1/24 dev dummy0
/system/bin/ip addr add 192.168.91.1/24 dev dummy0
/system/bin/ip addr add 192.168.92.1/24 dev dummy0
/system/bin/ip addr add 192.168.93.1/24 dev dummy0
/system/bin/ip addr add 192.168.94.1/24 dev dummy0
/system/bin/ip addr add 192.168.95.1/24 dev dummy0
/system/bin/ip addr add 192.168.96.1/24 dev dummy0
/system/bin/ip addr add 192.168.97.1/24 dev dummy0
/system/bin/ip addr add 192.168.98.1/24 dev dummy0
/system/bin/ip addr add 192.168.99.1/24 dev dummy0
/system/bin/ip addr add 192.168.100.1/24 dev dummy0
/system/bin/ip addr add 192.168.101.1/24 dev dummy0
/system/bin/ip addr add 192.168.102.1/24 dev dummy0
/system/bin/ip addr add 192.168.103.1/24 dev dummy0
/system/bin/ip addr add 192.168.104.1/24 dev dummy0
/system/bin/ip addr add 192.168.105.1/24 dev dummy0
/system/bin/ip addr add 192.168.106.1/24 dev dummy0
/system/bin/ip addr add 192.168.107.1/24 dev dummy0
/system/bin/ip addr add 192.168.108.1/24 dev dummy0
/system/bin/ip addr add 192.168.109.1/24 dev dummy0
/system/bin/ip addr add 192.168.110.1/24 dev dummy0
/system/bin/ip addr add 192.168.111.1/24 dev dummy0
/system/bin/ip addr add 192.168.112.1/24 dev dummy0
/system/bin/ip addr add 192.168.113.1/24 dev dummy0
/system/bin/ip addr add 192.168.114.1/24 dev dummy0
/system/bin/ip addr add 192.168.115.1/24 dev dummy0
/system/bin/ip addr add 192.168.116.1/24 dev dummy0
/system/bin/ip addr add 192.168.117.1/24 dev dummy0
/system/bin/ip addr add 192.168.118.1/24 dev dummy0
/system/bin/ip addr add 192.168.119.1/24 dev dummy0
/system/bin/ip addr add 192.168.120.1/24 dev dummy0
/system/bin/ip addr add 192.168.121.1/24 dev dummy0
/system/bin/ip addr add 192.168.122.1/24 dev dummy0
/system/bin/ip addr add 192.168.123.1/24 dev dummy0
/system/bin/ip addr add 192.168.124.1/24 dev dummy0
/system/bin/ip addr add 192.168.125.1/24 dev dummy0
/system/bin/ip addr add 192.168.126.1/24 dev dummy0
/system/bin/ip addr add 192.168.127.1/24 dev dummy0
/system/bin/ip addr add 192.168.128.1/24 dev dummy0
/system/bin/ip addr add 192.168.129.1/24 dev dummy0
/system/bin/ip addr add 192.168.130.1/24 dev dummy0
/system/bin/ip addr add 192.168.131.1/24 dev dummy0
/system/bin/ip addr add 192.168.132.1/24 dev dummy0
/system/bin/ip addr add 192.168.133.1/24 dev dummy0
/system/bin/ip addr add 192.168.134.1/24 dev dummy0
/system/bin/ip addr add 192.168.135.1/24 dev dummy0
/system/bin/ip addr add 192.168.136.1/24 dev dummy0
/system/bin/ip addr add 192.168.137.1/24 dev dummy0
/system/bin/ip addr add 192.168.138.1/24 dev dummy0
/system/bin/ip addr add 192.168.139.1/24 dev dummy0
/system/bin/ip addr add 192.168.140.1/24 dev dummy0
/system/bin/ip addr add 192.168.141.1/24 dev dummy0
/system/bin/ip addr add 192.168.142.1/24 dev dummy0
/system/bin/ip addr add 192.168.143.1/24 dev dummy0
/system/bin/ip addr add 192.168.144.1/24 dev dummy0
/system/bin/ip addr add 192.168.145.1/24 dev dummy0
/system/bin/ip addr add 192.168.146.1/24 dev dummy0
/system/bin/ip addr add 192.168.147.1/24 dev dummy0
/system/bin/ip addr add 192.168.148.1/24 dev dummy0
/system/bin/ip addr add 192.168.149.1/24 dev dummy0
/system/bin/ip addr add 192.168.150.1/24 dev dummy0
/system/bin/ip addr add 192.168.151.1/24 dev dummy0
/system/bin/ip addr add 192.168.152.1/24 dev dummy0
/system/bin/ip addr add 192.168.153.1/24 dev dummy0
/system/bin/ip addr add 192.168.154.1/24 dev dummy0
/system/bin/ip addr add 192.168.155.1/24 dev dummy0
/system/bin/ip addr add 192.168.156.1/24 dev dummy0
/system/bin/ip addr add 192.168.157.1/24 dev dummy0
/system/bin/ip addr add 192.168.158.1/24 dev dummy0
/system/bin/ip addr add 192.168.159.1/24 dev dummy0
/system/bin/ip addr add 192.168.160.1/24 dev dummy0
/system/bin/ip addr add 192.168.161.1/24 dev dummy0
/system/bin/ip addr add 192.168.162.1/24 dev dummy0
/system/bin/ip addr add 192.168.163.1/24 dev dummy0
/system/bin/ip addr add 192.168.164.1/24 dev dummy0
/system/bin/ip addr add 192.168.165.1/24 dev dummy0
/system/bin/ip addr add 192.168.166.1/24 dev dummy0
/system/bin/ip addr add 192.168.167.1/24 dev dummy0
/system/bin/ip addr add 192.168.168.1/24 dev dummy0
/system/bin/ip addr add 192.168.169.1/24 dev dummy0
/system/bin/ip addr add 192.168.170.1/24 dev dummy0
/system/bin/ip addr add 192.168.171.1/24 dev dummy0
/system/bin/ip addr add 192.168.172.1/24 dev dummy0
/system/bin/ip addr add 192.168.173.1/24 dev dummy0
/system/bin/ip addr add 192.168.174.1/24 dev dummy0
/system/bin/ip addr add 192.168.175.1/24 dev dummy0
/system/bin/ip addr add 192.168.176.1/24 dev dummy0
/system/bin/ip addr add 192.168.177.1/24 dev dummy0
/system/bin/ip addr add 192.168.178.1/24 dev dummy0
/system/bin/ip addr add 192.168.179.1/24 dev dummy0
/system/bin/ip addr add 192.168.180.1/24 dev dummy0
/system/bin/ip addr add 192.168.181.1/24 dev dummy0
/system/bin/ip addr add 192.168.182.1/24 dev dummy0
/system/bin/ip addr add 192.168.183.1/24 dev dummy0
/system/bin/ip addr add 192.168.184.1/24 dev dummy0
/system/bin/ip addr add 192.168.185.1/24 dev dummy0
/system/bin/ip addr add 192.168.186.1/24 dev dummy0
/system/bin/ip addr add 192.168.187.1/24 dev dummy0
/system/bin/ip addr add 192.168.188.1/24 dev dummy0
/system/bin/ip addr add 192.168.189.1/24 dev dummy0
/system/bin/ip addr add 192.168.190.1/24 dev dummy0
/system/bin/ip addr add 192.168.191.1/24 dev dummy0
/system/bin/ip addr add 192.168.192.1/24 dev dummy0
/system/bin/ip addr add 192.168.193.1/24 dev dummy0
/system/bin/ip addr add 192.168.194.1/24 dev dummy0
/system/bin/ip addr add 192.168.195.1/24 dev dummy0
/system/bin/ip addr add 192.168.196.1/24 dev dummy0
/system/bin/ip addr add 192.168.197.1/24 dev dummy0
/system/bin/ip addr add 192.168.198.1/24 dev dummy0
/system/bin/ip addr add 192.168.199.1/24 dev dummy0
/system/bin/ip addr add 192.168.200.1/24 dev dummy0
/system/bin/ip addr add 192.168.201.1/24 dev dummy0
/system/bin/ip addr add 192.168.202.1/24 dev dummy0
/system/bin/ip addr add 192.168.203.1/24 dev dummy0
/system/bin/ip addr add 192.168.204.1/24 dev dummy0
/system/bin/ip addr add 192.168.205.1/24 dev dummy0
/system/bin/ip addr add 192.168.206.1/24 dev dummy0
/system/bin/ip addr add 192.168.207.1/24 dev dummy0
/system/bin/ip addr add 192.168.208.1/24 dev dummy0
/system/bin/ip addr add 192.168.209.1/24 dev dummy0
/system/bin/ip addr add 192.168.210.1/24 dev dummy0
/system/bin/ip addr add 192.168.211.1/24 dev dummy0
/system/bin/ip addr add 192.168.212.1/24 dev dummy0
/system/bin/ip addr add 192.168.213.1/24 dev dummy0
/system/bin/ip addr add 192.168.214.1/24 dev dummy0
/system/bin/ip addr add 192.168.215.1/24 dev dummy0
/system/bin/ip addr add 192.168.216.1/24 dev dummy0
/system/bin/ip addr add 192.168.217.1/24 dev dummy0
/system/bin/ip addr add 192.168.218.1/24 dev dummy0
/system/bin/ip addr add 192.168.219.1/24 dev dummy0
/system/bin/ip addr add 192.168.220.1/24 dev dummy0
/system/bin/ip addr add 192.168.221.1/24 dev dummy0
/system/bin/ip addr add 192.168.222.1/24 dev dummy0
/system/bin/ip addr add 192.168.223.1/24 dev dummy0
/system/bin/ip addr add 192.168.224.1/24 dev dummy0
/system/bin/ip addr add 192.168.225.1/24 dev dummy0
/system/bin/ip addr add 192.168.226.1/24 dev dummy0
/system/bin/ip addr add 192.168.227.1/24 dev dummy0
/system/bin/ip addr add 192.168.228.1/24 dev dummy0
/system/bin/ip addr add 192.168.229.1/24 dev dummy0
/system/bin/ip addr add 192.168.230.1/24 dev dummy0
/system/bin/ip addr add 192.168.231.1/24 dev dummy0
/system/bin/ip addr add 192.168.232.1/24 dev dummy0
/system/bin/ip addr add 192.168.233.1/24 dev dummy0
/system/bin/ip addr add 192.168.234.1/24 dev dummy0
/system/bin/ip addr add 192.168.235.1/24 dev dummy0
/system/bin/ip addr add 192.168.236.1/24 dev dummy0
/system/bin/ip addr add 192.168.237.1/24 dev dummy0
/system/bin/ip addr add 192.168.238.1/24 dev dummy0
/system/bin/ip addr add 192.168.239.1/24 dev dummy0
/system/bin/ip addr add 192.168.240.1/24 dev dummy0
/system/bin/ip addr add 192.168.241.1/24 dev dummy0
/system/bin/ip addr add 192.168.242.1/24 dev dummy0
/system/bin/ip addr add 192.168.243.1/24 dev dummy0
/system/bin/ip addr add 192.168.244.1/24 dev dummy0
/system/bin/ip addr add 192.168.245.1/24 dev dummy0
/system/bin/ip addr add 192.168.246.1/24 dev dummy0
/system/bin/ip addr add 192.168.247.1/24 dev dummy0
/system/bin/ip addr add 192.168.248.1/24 dev dummy0
/system/bin/ip addr add 192.168.249.1/24 dev dummy0
/system/bin/ip addr add 192.168.250.1/24 dev dummy0
/system/bin/ip addr add 192.168.251.1/24 dev dummy0
/system/bin/ip addr add 192.168.252.1/24 dev dummy0
/system/bin/ip addr add 192.168.253.1/24 dev dummy0
/system/bin/ip addr add 192.168.254.1/24 dev dummy0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment