You are on page 1of 1

Shows the current configuration of network interfaces (IP, MAC address etc):

iftop
Show version:
uname -a
Lista de comandos disponibles:
ls /system/bin/
Show Network Configuration:
netcfg
IP:
ifconfig eth0 192.168.1.10 netmask 255.255.255.0
Show IPRoutes:
ip route show
Gateway:
route add default gw 192.168.1.1 dev eth0
Show the DNSserver:
getprop net.dns1
getprop net.dns2
Setting the DNS server:
setprop net.eth0.dns1 xx.yy.zz.aa
------------------------------------------------------------
Configuracion para mi Cel:
route add default gw 192.168.42.183 dev rndis0
setprop net.dns1 200.16.81.188
setprop net.dns2 200.16.80.194
DNSOriginales:
setprop net.dns1 172.21.7.7
setprop net.dns2 172.25.7.6
Configuracion para mi PC:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

You might also like