OpenWrt Forum Archive

Topic: WRT54G Network setup problem

The content of this topic has been archived on 19 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Situation: Linux PC handles my internet connection and shares it to LAN, 5-port switch is connected to that router PC:s eth1. LAN PC:s are connected to 5-port switch.

What I want: Replace the switch with WRT54G, and get it working like original wired switch + wireless AP to connect laptops to same subnet with wired pc:s.

I already installed WhiteRussian RC3 to my WRT54G. What's next??

I already noticed those docs, but I didnt get straight answer for my situation. Networking terms etc. are bit strange for my. And English is not my native language so its more difficult...

Internet --- RouterPC --- WRT54G --- LanPCs

RouterPC is plugged to the WAN port of the WRT54G
LanPCs are plugged to the 4 LAN ports of the WRT54G

Is this what you want ?

If your linux pc is handling internet firewall, openwrt in default config should do what you want as it bridges the wireless and lan ports. Just replace your switch with the wrt and don't use the wan port.

- DL

Nico wrote:

Internet --- RouterPC --- WRT54G --- LanPCs

RouterPC is plugged to the WAN port of the WRT54G
LanPCs are plugged to the 4 LAN ports of the WRT54G

Is this what you want ?

Yes, thats configuration I mean.

dl wrote:

If your linux pc is handling internet firewall, openwrt in default config should do what you want as it bridges the wireless and lan ports. Just replace your switch with the wrt and don't use the wan port.

- DL

Problem is I have four wired LanPC:s, so I need to use WAN port if it is possible. And I dont want to use old switch to get extra ports. (I already sold it... smile )

No problems, the WRT54G has 4 LAN ports for you LanPCs and the WAN port will be used to connect the WRT54G to your RouterPC.

Nico wrote:

No problems, the WRT54G has 4 LAN ports for you LanPCs and the WAN port will be used to connect the WRT54G to your RouterPC.

hmm... I should be more spesific... I want wired and wireless clients to their ip:s from dhcp server (dnsmasq) running on Linux router.

mico wrote:

... I want wired and wireless clients to their ip:s from dhcp server (dnsmasq) running on Linux router.

Turn off dnsmasq startup script on wrt. Get rid of vlan1/wan, add "0" (wan port) to vlan0ports.

ps: you probably want to set lan_ipaddr to a static on your network block for admin purposes.

- DL

(Last edited by dl on 29 Sep 2005, 21:15)

Got it working like I want. Above are my nvram settigs where I made changes. Hope those are all of them, I was a bit tired when makin them. If anyone sees something to change, please tell it...

lan_dns=192.168.0.1
lan_gateway=192.168.0.1
lan_ifname=br0
lan_ifnames=vlan0 eth1
lan_ipaddr=192.168.0.100
lan_netmask=255.255.255.0
lan_proto=static

wan_ifname=vlan1                #cant get rid of this
wan_proto=none

vlan0hwname=et0
vlan0ports=0 1 2 3 4 5*

The discussion might have continued from here.