반응형

텔레칩스 ip설정은 sqlite3 DB에 저장하게 되어 있다.

그래서 아래와 같이 바꾸면 된다.


고정 ip쓸때

sqlite3 /data/data/com.android.providers.settings/databases/settings.db


update system set value='게이트웨이ip' where name='eth_route';

update system set value='dnsip' where name='eth_dns';

update system set value='서브넷ip' where name='eth_mask';

update system set value='보드ip' where name='eth_ip';

update system set value='menual' where name='eth_mode';


select * from system;

.quit


dhcp쓸때

sqlite3 /data/data/com.android.providers.settings/databases/settings.db


update system set value='1' where name='eth_conf';

update system set value='eth0' where name='eth_ifname';

update system set value='' where name='eth_ip';

update system set value='dhcp' where name='eth_mode';

update system set value='' where name='eth_dns';

update system set value='' where name='eth_route';

update system set value='' where name='eth_mask';

update system set value='2' where name='eth_on';


select * from system;

.quit


아예 처음.

sqlite3 /data/data/com.android.providers.settings/databases/settings.db

insert into system values(NULL,'eth_conf',1);

insert into system values(NULL,'eth_ifname','eth0');

insert into system values(NULL,'eth_ip','');

insert into system values(NULL,'eth_mode','dhcp');

insert into system values(NULL,'eth_dns','');

insert into system values(NULL,'eth_route','');

insert into system values(NULL,'eth_mask','');

insert into system values(NULL,'eth_on',2);

select * from system;

.quit


고정ip 쓸 때  ip 만 바꿀 때

sqlite3 /data/data/com.android.providers.settings/databases/settings.db

update system set value='172.16.133.20' where name='eth_ip';

select * from system;

.quit



초기에는 원래 db에 없다가 설정에 들어가서 save 한번 해주면 생김.


DHCP 모드일 때

47|eth_conf|1

48|eth_ifname|eth0

49|eth_ip|

50|eth_mode|dhcp

51|eth_dns|

52|eth_route|

53|eth_mask|

54|eth_on|2  <-- 세팅에서 ethernet 체크하면 이렇게 됨  //체크 해제하면 1

STATIC IP 일 때
49|eth_conf|1
50|eth_ifname|eth0
60|eth_ip|172.16.133.19
61|eth_mode|manual
62|eth_dns|211.233.28.41
63|eth_route|172.16.133.1
64|eth_mask|255.255.255.0
65|eth_on|2


반응형
Posted by Real_G