[Prism54-users] Difference between Ad-hoc and master mode

Laurent Decreusefond decreuse@enst.fr
Wed, 24 Dec 2003 11:39:15 +0100 (MET)


What are the differences between Ad-hic and Master mode ? Can the card
work under Ah-hoc mode.
The man iwconfig says that
mode   Set  the operating mode of the device, which depends on the net-
              work topology. The mode can be Ad-hoc (network composed of  o=
nly
              one  cell and without Access Point), Managed (node connects t=
o a
              network composed of many Access Points,  with  roaming),  Mas=
ter
              (the  node  is  the  synchronisation  master or act as an Acc=
ess
              Point), Repeater (the node forward packets between  other  wi=
re-
              less   nodes),   Secondary  (the  node  act  as  a  backup  m=
as-
              ter/repeater), Monitor (the node act as a  passive  monitor  =
and
              only receives packets) or Auto.

Since I am at home and have only one router (Netgear WGR614), I guess that
I have only one cell without any access point so that I should use Ad-hoc
mode. The problem is then that the green LED is kept flashing and
iwconfig eth1 yields to
eth1      Netgear WG511  ESSID:"versailles"
          Mode:Ad-Hoc  Channel:11  Cell: 42:E6:25:C9:59:B7
          Bit Rate:54Mb/s   Sensitivity=3D20/0
          Retry min limit:8   RTS thr:2347 B   Fragment thr:2346 B
          Encryption key:off
          Link Quality:198  Signal level:0  Noise level:48
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

If I switch to mode Master I then get
eth1      Lien encap:Ethernet  HWaddr 00:09:5B:65:CB:5F
          inet adr:192.168.0.5  Bcast:192.168.0.255  Masque:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          RX bytes:0 (0.0 b)  TX bytes:2736 (2.6 Kb)
          Interruption:11
 and a stable green LED  and
eth1      Lien encap:Ethernet  HWaddr 00:09:5B:65:CB:5F
          inet adr:192.168.0.5  Bcast:192.168.0.255  Masque:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          RX bytes:0 (0.0 b)  TX bytes:2736 (2.6 Kb)
          Interruption:11

So everything seems OK meanwhile I can't use network. May be it is a
problem with my route. Before anything I have
Destination     Passerelle      Genmask         Indic   MSS Fen=C3=AAtre ir=
tt
Iface
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0
eth0
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0
eth1
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0
eth1
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0
lo
0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0
eth0


eth0 is my wired Ethernet card and it works. If I issue
route del default
route add default eth1 gw 192.168.0.1

Routes are the same as previously but the last one where eth0 is replaced
by eth1 but every ping remains stuck. Is it a network config problem or a
problem with the card ?


+-------------------------------o---------------------------------+
| P-mail: E.N.S.T.              | E-mail: decreuse@enst.fr        |
|   46, rue Barrault            | Tel   : +33 1 45 81 75 01       |
|   75634 Paris cedex 13        | Fax   : +33 1 45 81 31 19       |
|   France                      | www.infres.enst.fr/~decreuse    |
+-------------------------------o---------------------------------+