What's new
  • 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!

Add VLAN on LAN Interface

Jess

New Around Here
I've tried several different ways to accomplish what seems to be a very simple task. My design goals are simply:

  • Create VLAN 11 and assign to ports 1 & 2 (tagging)
  • Create a virtual interface for VLAN 11, and give it the ip address of 192.168.203.1
I'm attempting to use the following script:
robocfg vlan 11 ports "1t 2t"
vconfig add eth1 11
brctl addif br0 vlan11
ifconfig vlan11 192.168.203.1

I set my laptop interface to tagged VLAN 11 with IP address of 192.168.203.2 and I am unable to ping 192.168.203.1

Does anyone have any experience with this and could help me out?
 
Perhaps you forgot to adjust the settings of iptables?
I have encountered similar issue just moment, and fixed it with following commands:

Code:
iptables -I INPUT 1 -p icmp -j ACCEPT

Hope it is useful for you.
 

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!
Back
Top