On Wed, May 8, 2013 at 12:29 AM, jekie <[email protected]> wrote:
> Dear All:
> I have installed openvswitch without openflow as a 3-layer switch,now
> i want to configure a vlan port as a subnet's gateway,so i connected
> openvswitch and a centos pc with a hub:
>
> openvswitch (eth1)----------------hub----------------------(eth1)pc
>
> all the nic cards are TP-LINK TG-3269C with 802.1q protocol supported and
> linux kernel 8021q module is also enabled.
> openvswitch vlan configuration as below:
> ovs-vsctl add-br br0
> ovs-vsctl add-port br0 eth1
> ovs-vsctl add-port br0 eth1:50 tag=50
> ifconfig eth1:50 192.168.50.254 netmask 255.255.255.0 up
> service iptables stop
>From the FAQ:
Q: Can I configure an IP address on a VLAN?
A: Yes. Use an "internal port" configured as an access port. For
example, the following configures IP address 192.168.0.7 on VLAN 9.
That is, OVS will forward packets from eth0 to 192.168.0.7 only if
they have an 802.1Q header with VLAN 9. Conversely, traffic
forwarded from 192.168.0.7 to eth0 will be tagged with an 802.1Q
header with VLAN 9:
ovs-vsctl add-br br0
ovs-vsctl add-port br0 eth0
ovs-vsctl add-port br0 vlan9 tag=9 -- set interface vlan9 type=internal
ifconfig vlan9 192.168.0.7
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss