I add interface using ovs-vsctl add-port br0 vi0 -- set Interface vi0 type=internal

vi0
vif1
vif2
vif3

To br0 I add eth1

But when I dissconnect cable from eth0 all ping to virtual insterface (vi0,vif1.....) stop - Whay??

Routing should going via eth1 -> br0 -> virtual interfaces

Whay br0 and virtual interfaces have state UNKNOWN?
What I going wrong?


deb64:~# ovs-vsctl list-ports br0
eth1
vi0
vif1
vif2
vif3



deb64:~# ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:50:56:ba:00:01 brd ff:ff:ff:ff:ff:ff
    inet 193.34.215.4/22 brd 193.34.215.255 scope global eth0
    inet6 fe80::250:56ff:feba:1/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:50:56:ba:00:11 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::250:56ff:feba:11/64 scope link
       valid_lft forever preferred_lft forever
4: br0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether 00:50:56:ba:00:11 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::250:56ff:feba:11/64 scope link
       valid_lft forever preferred_lft forever
5: vi0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether 00:23:20:b8:5c:76 brd ff:ff:ff:ff:ff:ff
    inet 193.34.213.20/22 brd 193.34.215.255 scope global vi0
    inet6 fe80::223:20ff:feb8:5c76/64 scope link
       valid_lft forever preferred_lft forever
6: vif1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether 00:23:20:fe:2e:fd brd ff:ff:ff:ff:ff:ff
    inet 193.34.213.21/22 brd 193.34.215.255 scope global vif1
    inet6 fe80::223:20ff:fefe:2efd/64 scope link
       valid_lft forever preferred_lft forever
7: vif2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether 00:23:20:f5:df:ad brd ff:ff:ff:ff:ff:ff
    inet 193.34.213.22/22 brd 193.34.215.255 scope global vif2
    inet6 fe80::223:20ff:fef5:dfad/64 scope link
       valid_lft forever preferred_lft forever
8: vif3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
    link/ether 00:23:20:c2:cb:00 brd ff:ff:ff:ff:ff:ff
    inet 193.34.213.23/22 brd 193.34.215.255 scope global vif3
    inet6 fe80::223:20ff:fec2:cb00/64 scope link
       valid_lft forever preferred_lft forever



deb64:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface 193.XX.212.0 * 255.255.252.0 U 0 0 0 eth0
193.XX.212.0    *               255.255.252.0   U     0      0        0 vi0
193.XX.212.0 * 255.255.252.0 U 0 0 0 vif1 193.XX.212.0 * 255.255.252.0 U 0 0 0 vif2 193.XX.212.0 * 255.255.252.0 U 0 0 0 vif3 default 193.XX.215.254 0.0.0.0 UG 0 0 0 eth0

Tome

Dnia 19-08-2010 o 19:12:21 Ben Pfaff <b...@nicira.com> napisaƂ(a):

On Thu, Aug 19, 2010 at 06:59:17PM +0200, Admin HRD.pl wrote:
I use Openvswitch 1.0.1

How to create virtual interfeces for Debian on vSwitch?

You can create a virtual interface named vi0 on a bridge named br0 with:
        ovs-vsctl add-port br0 vi0 -- set Interface vi0 type=internal
After that, you can configure an IP address on vi0 with "ifconfig" as
usual.

_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org

Reply via email to