What's new

VLAN Configuration questions

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

bgsmith

Occasional Visitor
Greetings

I have an ASUS RT-N66R running Merlin 3.0.0.4.374.39.

I would like to create a VLAN for one of the LAN ports that will allow another user to share the internet connection but not have access to the main VLAN.

Based on what I have gleaned from the readme and other threads I need to create services.start in /jffs/scripts with the following content:

#!/bin/sh
#separate port 3 from other ports
robocfg vlan 3 ports "3 8t"
#create vlan3
vconfig add eth0 3
#we'll use a bridge to get internet access
brctl addif br0 vlan3
#bring up vlan3
ifconfig vlan3 up
#add rule for vlan3
iptables -I INPUT 1 -i vlan3 -j ACCEPT
# end of config

Is this all that is needed to create the VLAN? Did I capture the syntax correctly? Are there any other commands needed?

thank you

Brad
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top