jueves, 8 de abril de 2010

Unirse a red Ad-Hoc

las cosas q me toca hacer para tener internet XDDD


un pc con winbugs conecta al cable-modem y este nos da internet a todos (sin saber ^^).

para pegarme a este red q en este caso es una ad-hoc.

# ifconfig wlan0 up
# iwlist wlan0 scan

Cell 01 - Address: 02:E0:2E:D3:A0:88
ESSID:"asdf"
Protocol:IEEE 802.11g
Mode:Ad-Hoc
Frequency:2.457 GHz (Channel 10)
Quality:93/100 Signal level:-36 dBm Noise level:-96 dBm
Encryption key:off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s
Extra:bcn_int=100
Extra:atim=0

# iwconfig wlan0 mode Ad-Hoc
# iwconfig wlan0 ap 02:E0:2E:D3:A0:88

//verifico

# iwconfig

lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:"asdf"
Mode:Ad-Hoc Frequency:2.412 GHz Cell: 02:E0:2E:D3:A0:88
Bit Rate=11 Mb/s Tx-Power:-2147483648 dBm Sensitivity=0/3
RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:100/100 Signal level:-31 dBm Noise level:-96 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

//ahora poner ip y demas

# ifconfig wlan0 192.168.0.2 netmask 255.255.255.0
# route add default gw 192.168.0.1

//casi terminamos, nos faltan los dns :) 80.58.0.33 194.179.1.101

# pico /etc/resolv.conf

// agrega nameserver 80.58.0.33 y nameserver 194.179.1.101

# cat /etc/resolv.conf
nameserver 80.58.0.33
nameserver 194.179.1.101

# ping google.com
PING google.com (209.85.229.99) 56(84) bytes of data.
64 bytes from ww-in-f99.1e100.net (209.85.229.99): icmp_seq=1 ttl=45 time=187 ms
64 bytes from ww-in-f99.1e100.net (209.85.229.99): icmp_seq=2 ttl=45 time=172 ms
64 bytes from ww-in-f99.1e100.net (209.85.229.99): icmp_seq=3 ttl=45 time=175 ms

--- google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2000ms
rtt min/avg/max/mdev = 172.827/178.734/187.547/6.360 ms


ya-ta , juemadre por fin tengo 0% de paquetes perdidos.