+
1 4 4
  1. #1
    hangover       hangover
    11.05.2007
    8
    ()
    0
    : 0 (: 0).

     Ad-Hoc WiFi D-Link DWL-G132

    , !
    , . D-Link DWL-G132 Ubuntu 7.10, WiFi . ndiswrapper:
    :
    hangover@hangover-ubuntu:~$ ndiswrapper -l
    neta5agu : driver installed
            device (2001:3A03) present
    , , , .
    wlan0.


    :
    hangover@hangover-ubuntu:~$ sudo /etc/init.d/networking restart
     * Reconfiguring network interfaces...                                                                                                       wlan0: ERROR while getting interface flags: No such device
    Error for wireless request "Set Encode" (8B2A) :
        SET failed on device wlan0 ; No such device.
    Error for wireless request "Set ESSID" (8B1A) :
        SET failed on device wlan0 ; No such device.
    SIOCSIFADDR: No such device
    wlan0: ERROR while getting interface flags: No such device
    SIOCSIFNETMASK: No such device
    wlan0: ERROR while getting interface flags: No such device
    Failed to bring up wlan0.
    : wlan0?

    : , wlan0
    :
    hangover@hangover-ubuntu:~$ ifconfig
    eth0      Link encap:Ethernet  HWaddr 00:19:D1:83:C3:3D  
              inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::219:d1ff:fe83:c33d/64 :Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:663 errors:0 dropped:0 overruns:0 frame:0
              TX packets:723 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:100 
              RX bytes:80162 (78.2 KB)  TX bytes:68664 (67.0 KB)
              Base address:0x30c0 Memory:92200000-92220000 
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 :Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
    
    wlan0     Link encap:Ethernet  HWaddr 00:17:9A:0B:BE:8C  
              inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
    ...

    5 10

    , , wlan0 :
    :
    root@hangover-ubuntu:~# iwconfig
    lo        no wireless extensions.
    
    eth0      no wireless extensions.
    
    wlan0     IEEE 802.11g  ESSID:"mywirelessnet"  
              Mode:Ad-Hoc  Frequency:2.437 GHz  Cell: 52:65:9E:0A:BE:74   
              Bit Rate=108 Mb/s   
              Encryption key:off
              Power Management:off
              Link Quality:56/100  Signal level:-60 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
    Windows XP, . . ,
    :
    :
    root@hangover-ubuntu:~# iptables-save
    # Generated by iptables-save v1.3.6 on Sun Feb 17 21:32:53 2008
    *mangle
    :PREROUTING ACCEPT [7180:1369049]
    :INPUT ACCEPT [7143:1363877]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [6845:529603]
    :POSTROUTING ACCEPT [6937:549288]
    COMMIT
    # Completed on Sun Feb 17 21:32:53 2008
    # Generated by iptables-save v1.3.6 on Sun Feb 17 21:32:53 2008
    *filter
    :INPUT ACCEPT [351:19938]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [304:16025]
    COMMIT
    # Completed on Sun Feb 17 21:32:53 2008
    # Generated by iptables-save v1.3.6 on Sun Feb 17 21:32:53 2008
    *nat
    :PREROUTING ACCEPT [4502:256519]
    :POSTROUTING ACCEPT [83:7765]
    :OUTPUT ACCEPT [87:8113]
    -A POSTROUTING -s 192.168.0.0/255.255.255.0 -o eth0 -j MASQUERADE 
    COMMIT
    # Completed on Sun Feb 17 21:32:53 2008
    !! , ? , ? !
    hangover; 17.02.2008 18:03.

  2. #2
    themylogin       themylogin
    31.03.2007
    1,178
    ()
    0
    : 0 (: 0).

    madwifi.org ?
    When it rains, it pours. .

  3. #3
    hangover       hangover
    11.05.2007
    8
    ()
    0
    : 0 (: 0).

    , ... , 2 ..
    , - , .

  4. #4
    hangover       hangover
    11.05.2007
    8
    ()
    0
    : 0 (: 0).

    , .

    ndiswrapper', /etc/network/interfaces :
    :
    iface wlan0 inet static
    address 192.168.0.1
    netmask 255.255.255.0
    
    wireless-essid mywirelessnetwork
    wireless-mode ad-hoc
    wireless-key 1234567890
    
    auto wlan0
    , NAT .
    (D-Link DWL-G132).
    :
    , - ; , - ;
    ..