Newbie help please (port 4 switch as vlan2)

Discussion in 'DD-WRT Firmware' started by davibou, May 8, 2006.

  1. davibou

    davibou Guest

    Hello everyone !!!

    i have a wrt54g v1 with firmware dd-wrt.v23_wrt54g.bin and want to put port 4 switch on a different Vlan ( vlan 2 ) with this rules.

    - LAN can ping Vlan2
    - Vlan2 can't ping LAN
    - both LAN and Vlan 2 have INTERNET acces
    - INTERNET have acces to Vlan2

    So i try this trick
    4Access solution ( thanks 4Access you are great)

    After reboot:

    - my LAN can ping VLAN2 (ok thats what i wan't)
    - LAN have internet acces (ok thats what i wan't)
    - INTERNET have no acces to LAN (ok thats what i wan't)
    - VLAN2 can't ping LAN machine but still ping LAN router ip ( ( strange that VLAN2 in can ping LAN router ip in )
    - INTERNET have no acces to VLAN2 (That's not what i want )

    Please help me to finish configuration
    Regards David
  2. BigDog_UMG

    BigDog_UMG Network Guru Member

    This will put port 4 on subnet 192.168.200.xx

    ** set the following nvram variables **
    nvram set vlan0ports="1 2 3 5*"
    nvram set vlan2hwname=et0
    nvram set vlan2ports="4 5"

    ** set nvram variable 'rc_firewall' to the following: **
    ifconfig vlan2 netmask
    iptables -I INPUT 9 -i vlan2 -p udp --dport 67:68 --sport 67:68 -j logaccept
    iptables -I INPUT 9 -i vlan2 -p udp --dport 53 -j logaccept
    iptables -I FORWARD 5 -i vlan2 -j lan2wan
    iptables -I FORWARD 11 -i vlan2 -m state --state NEW -j logaccept

    in the web interface Administration -> Management
    ** set DNSMasq additional options **

    The dnsmasq entries allow port4 to get a dynamic address.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice