WiFi

Discussion in 'Server Operation' started by av1611, Aug 9, 2009.

  1. av1611

    av1611 New Member

    Hi

    I have a Mint7 setup that acts as DHCP server for my network. I want to eliminate my crappy Netgear WAP.

    I have a WiFi Card that I want to use in place of the WAP.

    Currently, the system is at 192.168.100.101 and the Gateway is 192.168.100.1

    DHCP serves to the clients and works fine on the LAN.

    If I add the WiFi card, is it as simple as giving it a static IP like say 192.168.100.250 then set it in adhoc mode?

    Question 1: Is that all I have to do?
    Question 2: If so, how do I put the card in "Ad Hoc" mode?

    Thanks.
     
  2. av1611

    av1611 New Member

    Ok, I've been reading and can someone tell me if this will work???

    I have 2 NIC's in a box. One of them is external and doesn't matter for this question I don't think.

    The other NIC is 192.168.100.3. It hosts an iSCSI Target and SMB Share on my LAN. It's works great.

    I have another PC that has NIC at 192.168.100.101 and it hosts my DHCP (Scope: 192.168.100.5-25) server for my LAN.

    I have a hardware firewall at 192.168.100.1 and it serves inet to the LAN on a different external connection.

    So...

    I currently have a WAP (cheap p.o.s. netgear router in WAP mode that keeps overheating). I want to eliminate the WAP device and add a WiFi NIC to the Top PC above.

    So, on the first system I would have:

    NIC 1: External IP and External Gateway
    NIC 2: Static IP 192.168.100.3
    Proposed WiFi NIC 3: Static 192.168.100.4

    Question:

    If I bridge NIC 2 and NIC 3 like this:

    # brctl addbr br0
    # brctl addif br0 eth0
    # brctl addif br0 eth1

    Then I simply put the WiFi in Ad Hoc, will another WiFi in Ad Hoc (for example my laptop) be able to "see" 192.168.100.101 (DHCP) & 192.168.100.1 (Gateway) (via WiFI 192.168.100.4 through the bridge to 192.168.100.3 and on to the LAN)?

    Also, can the two NIC's be bridge together even though they are the SAME subnet?

    Thanks.
     
  3. av1611

    av1611 New Member

    Well

    I got this working... kinda...

    brctl addbr br0
    brctl addif br0 eth2
    brctl addif br0 wlan0
    ifconfig eth2 0.0.0.0 promisc
    ifconfig wlan0 0.0.0.0 promisc
    ifconfig br0 192.168.100.3 netmask 255.255.255.0 up

    in /etc/sysconfig/network-scripts/ifcfg-wlan0:

    TYPE=Wireless
    MODE=Ad-Hoc
    ESSID=MYSSID
    //snip

    I am able to connect with my laptop in Linux or Windows and surf the net and my LAN.
    ******************
    Question 1:
    I have to create the server every time I boot. How can I make this permanent?

    Question 2:
    There is no form of security on the ad-hoc. That's bad. I'd either like to not broadcast the ssid or if that's not an option then I'd like to encrypt it. Can someone show me how?

    Thanks...
     
  4. av1611

    av1611 New Member

Share This Page