OpenWrt Forum Archive

Topic: Netgear WNDR3700: multiple WAN-ports ; IP assigned by DHCP cable modem

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

Hi guys,

I have a problem configuring my WNDR3700 ; I woud like to become the following configuration:

http://www.lavieenroselogis.com/tmp/wndr3700-problem.png


The red-coloured text is my problem. My setupbox needs to receive an IP-address from the cable modem.
Infact, it is not the cable modem who's providing an IP by DHCP, but my internet-provider.
Normally, my internet provider places a switch after the cable modem. They connect cable modem, setupbox and router to this switch.

I would like to get rid of that switch.

With my former linksys WRT54G2, this was not a problem. Just putting the port where the STB was attached to, into the WAN-vlan. With my WNDR3700, I don't see a solution for now. Perhaps DHCP-relaying, or being inventive with creating vlan's and bridges?

Any help would be appreciated.

Thanks in advance.

Steven

(Last edited by drlektro on 26 Oct 2010, 20:06)

You could make wan (eth1) a bridge, add a dedicated vlan for port 1 and put it into the wan bridge.

Thanx, my problem is solved!!!

I used the WAN-port for the connection to my lan ; check my configuration.

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'ifname' 'eth1'
        option 'proto' 'static'
        option 'type' 'bridge'
        option 'netmask' '255.255.255.0'
        option 'ipaddr' '192.168.25.1'

config 'interface' 'wan'
        option 'ifname' 'eth0.1'
        option 'proto' 'dhcp'

config 'interface' 'digitv'
        option 'proto' 'dhcp'
        option 'ifname' 'eth0.2'

config 'switch'
        option 'name' 'rtl8366s'
        option 'reset' '1'
        option 'enable_vlan' '1'
        option 'blinkrate' '2'

config 'switch_vlan'
        option 'device' 'rtl8366s'
        option 'vlan' '1'
        option 'ports' '0 1 3 5t'

config 'switch_vlan'
        option 'device' 'rtl8366s'
        option 'vlan' '2'
        option 'ports' '2 5t'

PS: I already saw the topic about the VLAN's and wndr3700 ; apparently I missed the solution who was in front of me.

I was attempting to do the same thing, and had luck eventually. Dlink DIR-825-B1 running Backfire (r22689). I have a server connected directly to the Internet. Rather than using a septate switch, I wanted to simply add a VLAN to bridge one of the LAN ports to the WAN port.

I had to add the WLAN interfaces to a LAN bridge. If not using WLAN, you can leave the LAN interface unbridged.

My network config is as so:


config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'
        option 'defaultroute' '0'
        option 'peerdns' '0'
        option 'type' 'bridge'
        option 'ifname' 'eth0.1 wlan0 wlan1'

config 'interface' 'wan'
        option 'proto' 'dhcp'
        option 'type' 'bridge'
        option 'ifname' 'eth1 eth0.2'
        option 'defaultroute' '0'
        option 'peerdns' '0'

config 'switch'
        option 'name' 'rtl8366s'
        option 'reset' '1'
        option 'enable_vlan' '1'

config 'switch_vlan'
        option 'device' 'rtl8366s'
        option 'vlan' '1'
        option 'ports' '0 1 2 5t'

config 'switch_vlan'
        option 'device' 'rtl8366s'
        option 'vlan' '2'
        option 'ports' '3 5t'

(Last edited by jjeff1 on 20 Nov 2010, 19:21)

It took me a while, but eventually I figured it out. I'm using Netgear wndr3700 and wanted one of the LAN ports to put directly on the WAN network. Actually the same use case as drlektro, but I didn't understand why drlektro switched eth0 & eth1 - it confused me.

I created two VLANs on the rtl8366s switch (see switch_vlan sections). This creates eth0.0 and eth0.1
The lan interface is a bridge between eth0.0 and the wlan# interfaces. I didn't had to add the "wlan0 wlan1" to the ifname parameter, this bridge was made automatically. The wan interface is a bridge between eth0.1 (port 3) and eth1 (my WAN port).

This might seem like the same solution the others posted, but I think I changed less of the defaults. I just posted my config to help others.


config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'ifname' 'eth0.0'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'

config 'interface' 'wan'
        option 'ifname' 'eth1 eth0.1'
        option 'type' 'bridge'
        option 'proto' 'dhcp'

config 'switch' 'rtl8366s'
        option 'name' 'rtl8366s'
        option 'reset' '1'
        option 'enable_vlan' '1'
        option 'blinkrate' '2'

config 'switch_vlan' 'vlan0'
        option 'device' 'rtl8366s'
        option 'vlan' '0'
        option 'ports' '0 1 2 5t'

config 'switch_vlan' 'vlan1'
        option 'device' 'rtl8366s'
        option 'vlan' '1'
        option 'ports' '3 5t'

gueuselambix wrote:

It took me a while, but eventually I figured it out. I'm using Netgear wndr3700 and wanted one of the LAN ports to put directly on the WAN network. Actually the same use case as drlektro, but I didn't understand why drlektro switched eth0 & eth1 - it confused me.

There's performance difference between software bridge and hardware vlan.

The discussion might have continued from here.