<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Hello,</p>
<p><br>
</p>
<p>I am using the ovs-sandbox&nbsp;to run ovs-vswitchd in gdb&nbsp;and am having some trouble adding ports to a bridge I've created. The port is added to the bridge, however the link state is down and neither the bridge nor the added&nbsp;port&nbsp;appear in the list of system
 interfaces.&nbsp;Therefore, it isn't able to process any traffic.&nbsp;</p>
<p><br>
</p>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p></p>
<div>root@magma-dev:/home/vagrant/ovs/tutorial# <b>ovs-vsctl -V</b></div>
<p></p>
<p></p>
<div>ovs-vsctl (Open vSwitch) 2.8.0</div>
<p></p>
<p></p>
<div>DB Schema 7.15.0<br>
<br>
</div>
<div>
<div>root@magma-dev:/home/vagrant/ovs/tutorial# <b>uname -a</b></div>
<div>Linux magma-dev 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux</div>
</div>
<p></p>
</blockquote>
<p></p>
<div></div>
<div><br>
</div>
<p></p>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p></p>
<div>root@magma-dev:/home/vagrant/ovs/tutorial#<b> ovs-vsctl add-port gtp_br0 gtp0 -- set interface gtp0 ofport_request=32768 type=gtp option:remote_ip=flow options:key=flow</b></div>
<div><br>
</div>
<p></p>
<p></p>
<div>root@magma-dev:/home/vagrant/ovs/tutorial# <b>ovs-ofctl show gtp_br0</b></div>
<p></p>
<p></p>
<div>OFPT_FEATURES_REPLY (xid=0x2): dpid:0000cedec4698b43</div>
<p></p>
<p></p>
<div>n_tables:254, n_buffers:0</div>
<p></p>
<p></p>
<div>capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP</div>
<p></p>
<p></p>
<div>actions: output enqueue set_vlan_vid set_vlan_pcp strip_vlan mod_dl_src mod_dl_dst mod_nw_src mod_nw_dst mod_nw_tos mod_tp_src mod_tp_dst</div>
<p></p>
<p></p>
<div>&nbsp;32768(gtp0): addr:aa:55:aa:55:00:1b</div>
<p></p>
<p></p>
<div>&nbsp; &nbsp; &nbsp;config: &nbsp; &nbsp; PORT_DOWN</div>
<p></p>
<p></p>
<div>&nbsp; &nbsp; &nbsp;state: &nbsp; &nbsp; &nbsp;LINK_DOWN</div>
<p></p>
<p></p>
<div>&nbsp; &nbsp; &nbsp;speed: 0 Mbps now, 0 Mbps max</div>
<p></p>
<p></p>
<div>&nbsp;LOCAL(gtp_br0): addr:ce:de:c4:69:8b:43</div>
<p></p>
<p></p>
<div>&nbsp; &nbsp; &nbsp;config: &nbsp; &nbsp; PORT_DOWN</div>
<p></p>
<p></p>
<div>&nbsp; &nbsp; &nbsp;state: &nbsp; &nbsp; &nbsp;LINK_DOWN</div>
<p></p>
<p></p>
<div>&nbsp; &nbsp; &nbsp;speed: 0 Mbps now, 0 Mbps max</div>
<p></p>
<p></p>
<div>OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0</div>
<div><br>
</div>
<p></p>
<p></p>
<div>
<div>root@magma-dev:/home/vagrant/ovs/tutorial# <b>ip a</b></div>
</div>
<p></p>
<p></p>
<div>
<div>1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; inet 127.0.0.1/8 scope host lo</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;valid_lft forever preferred_lft forever</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; inet6 ::1/128 scope host&nbsp;</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;valid_lft forever preferred_lft forever</div>
</div>
<p></p>
<p></p>
<div>
<div>2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast master unmanaged_br0 state UP group default qlen 1000</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; link/ether 08:00:27:06:49:4f brd ff:ff:ff:ff:ff:ff</div>
</div>
<p></p>
<p></p>
<div>
<div>3: eth1: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; link/ether 08:00:27:f4:93:02 brd ff:ff:ff:ff:ff:ff</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; inet 192.168.60.142/24 brd 192.168.60.255 scope global eth1</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;valid_lft forever preferred_lft forever</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; inet6 fe80::a00:27ff:fef4:9302/64 scope link&nbsp;</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;valid_lft forever preferred_lft forever</div>
</div>
<p></p>
<p></p>
<div>
<div>4: eth2: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state UP group default qlen 1000</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; link/ether 08:00:27:67:d7:c8 brd ff:ff:ff:ff:ff:ff</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; inet 42.42.42.1/24 brd 42.42.42.255 scope global eth2</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;valid_lft forever preferred_lft forever</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; inet6 fe80::a00:27ff:fe67:d7c8/64 scope link&nbsp;</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;valid_lft forever preferred_lft forever</div>
</div>
<p></p>
<p></p>
<div>
<div>5: veth0_ovs@veth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UP group default qlen 1000</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; link/ether a6:0a:c5:a6:f6:d9 brd ff:ff:ff:ff:ff:ff</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; inet6 fe80::a40a:c5ff:fea6:f6d9/64 scope link&nbsp;</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;valid_lft forever preferred_lft forever</div>
</div>
<p></p>
<p></p>
<div>
<div>6: veth0@veth0_ovs: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue master unmanaged_br0 state UP group default qlen 1000</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; link/ether 0e:62:49:8c:e8:c6 brd ff:ff:ff:ff:ff:ff</div>
</div>
<p></p>
<p></p>
<div>
<div>7: unmanaged_br0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UP group default qlen 1000</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; link/ether 08:00:27:06:49:4f brd ff:ff:ff:ff:ff:ff</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; inet 10.0.2.15/24 brd 10.0.2.255 scope global unmanaged_br0</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;valid_lft forever preferred_lft forever</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; inet6 fe80::a00:27ff:fe06:494f/64 scope link&nbsp;</div>
</div>
<p></p>
<p></p>
<div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;valid_lft forever preferred_lft forever</div>
</div>
<p></p>
</blockquote>
<p></p>
<div></div>
<div>
<div><br>
</div>
<div>Thanks for the help,</div>
<div>Omar</div>
<br>
</div>
<br>
<p></p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
</div>
</body>
</html>