AP client, used bridged mode or DMZ?

Discussion about my Wifi Radio project at http://mightyohm.com/wifiradio/ or my WL-520gU talk at NOTACON.
Post Reply
hub.martin
Posts: 13
Joined: Wed Oct 27, 2010 11:48 am

AP client, used bridged mode or DMZ?

Post by hub.martin »

Hello, I would like to configure my OpenWRT to configuration explained balow. I read lot pages on OpenWRT wiki but I'm not sure if I have to configure VLANs or use DMZ.. It's ok if anyone just shows me the right direction. I configured my router perfectly and I don't want to experiment and mess up something with network configuration...

I'm using network configuration from this site. The router connects and starts playing music after boot over a wifi or over ethernet cable (if there's no wifi) on ports WAN, LAN1-LAN5. What I want is to configure some port to be bridged (I hope that's the right term) with wifi. Simply I want to connect my PC to let's say LAN4 port and use my network over router which is connected over WiFi. I prefer no NAT there.. if it's possible.

There's my network configuration.
Thank you

Code: Select all

#### VLAN configuration
config switch eth0
        option vlan0    "1 2 3 4 5*"
        option vlan1    "0 5"

#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0

#### LAN configuration
config interface lan
        option type     bridge
        option ifname   "eth0.0"
        option  proto   dhcp

#### WAN configuration
config interface        wan
        option ifname   "eth0.1"
        option proto    dhcp
hub.martin
Posts: 13
Joined: Wed Oct 27, 2010 11:48 am

Re: AP client, used bridged mode or DMZ?

Post by hub.martin »

I made some progress myself. I changed option-network in wifi configuration from "wan" to "lan":

Code: Select all

config wifi-device  wl0
        option type     broadcom
        option channel  1
        option disabled 0


config wifi-iface
        option device   wl0
        option network  lan
        option mode     sta
        option ssid     hub_indoor
        option encryption none
With this configuration, when the router is connected to my AP, I can connect my laptop po LAN1-4 and I get DHCP adress from my AP and it works as I wanted.
But when I connect the router to my network only by WAN port, radio plays but I'm not able to obtain any IP address over DHCP when my laptop is connected to LAN1-4.

I'm quite happy now. But I'm courious why it doesn't work by WAN...
Thanks
Post Reply