My structure of the two wrt54g-v2.2 is like this:
     routerA is used as a master ,this is its nvram configuration:
                     
                     ( my outer gateway is 192.168.1.100;netmask is 255.255.255.0;dns is 202.120.2.102)
                     
                     lan_ifname=br0;lan_ifnames=vlan0,eth1;lan_ipaddr=192.168.2.1;
                     wan_ifname=vlan1;
                     wan_ipaddr=192.168.1.30;wan_gateway=192.168.1.100;
                     wan_dns=202.120.2.102;wan_netmask=255.255.255.0;
                     wl0_lazywds=1;wl0_mode=ap;wl0_infra=1;wl0_ssid=linksys;wl0_channel=6;wl0_macmode=0;
                     wl0_wep=disabled;wl0_akm=open;wl0_closed=0;

   
    routerB is used as a client ,this is its nvram configuration:
                   
                      lan_ifname=br0;lan_ifnames=vlan0;lan_ipaddr=192.168.3.1;
                     wan_ifname=eth1;
                     wan_ipaddr=192.168.2.30;wan_gateway=192.168.2.1;
                     wan_dns=202.120.2.102;wan_netmask=255.255.255.0;
                     wl0_lazywds=1;wl0_mode=ap;wl0_infra=1;wl0_ssid=linksys;wl0_channel=6;wl0_macmode=0;
                     wl0_wep=disabled;wl0_akm=open;wl0_closed=0;

    my pc' configuration ip:192.168.3.30;netmask:255.255.255.0;gateway:192.168.3.1;dns:202.120.2.102
                     my pc is connected to the lan port 1 of routerB
         
    then I telnet 192.168.3.1 to connect with routerB,then I entered:iwlist eth1 scanning ,in the scanning result ,I can  find the signal of routerA(about -10dbm), then I  entered:wl join linksys,link this:
      "root@openwrt#wl join linksys
       root@openwrt#           
       "
this is the result of the command,but I still don't know whether or not I have been connected with routerA,so I ping routerA like this"ping 192.168.2.1" ,but  this is the result:


Pinging 192.168.2.1 with 32 bytes of data:

Reply from 192.168.2.30: Destination host unreachable.
Request timed out.
Reply from 192.168.2.30: Destination host unreachable.
Reply from 192.168.2.30: Destination host unreachable.

Ping statistics for 192.168.2.1:
    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

where is the fault I have made? many thanks!