| 79 | {{{ |
| 80 | root@node1-7:/opt/openvswitch-1.1.0pre2# insmod datapath/linux-2.6/openvswitch_mod.ko |
| 81 | root@node1-7:/opt/openvswitch-1.1.0pre2# lsmod |
| 82 | Module Size Used by |
| 83 | openvswitch_mod 61272 0 |
| 84 | root@node1-7:/opt/openvswitch-1.1.0pre2# ip link add type veth |
| 85 | root@node1-7:/opt/openvswitch-1.1.0pre2# ovs-dpctl add-dp dp0 |
| 86 | root@node1-7:/opt/openvswitch-1.1.0pre2# ovs-dpctl add-if dp0 veth0 |
| 87 | root@node1-7:/opt/openvswitch-1.1.0pre2# ovs-dpctl show |
| 88 | system@dp0: |
| 89 | flows: cur:0, soft-max:1024, hard-max:1048576 |
| 90 | ports: cur:2, max:1024 |
| 91 | groups: max:16 |
| 92 | lookups: frags:0, hit:0, missed:0, lost:0 |
| 93 | queues: max-miss:100, max-action:100 |
| 94 | port 0: dp0 (internal) |
| 95 | port 1: veth0 |
| 96 | }}} |
| 97 | |
| 98 | We can verify all the drivers and modules are working with ifconfig. |
| 99 | |
| 100 | {{{ |
| 101 | root@node1-7:/opt/openvswitch-1.1.0pre2# ifconfig -a |
| 102 | dp0 Link encap:Ethernet HWaddr 00:23:20:88:f5:b8 |
| 103 | BROADCAST MULTICAST MTU:1500 Metric:1 |
| 104 | RX packets:0 errors:0 dropped:0 overruns:0 frame:0 |
| 105 | TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 |
| 106 | collisions:0 txqueuelen:0 |
| 107 | RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
| 108 | |
| 109 | eth0 Link encap:Ethernet HWaddr 00:0f:ea:4a:8a:fe |
| 110 | BROADCAST MULTICAST MTU:1500 Metric:1 |
| 111 | RX packets:0 errors:0 dropped:0 overruns:0 frame:0 |
| 112 | TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 |
| 113 | collisions:0 txqueuelen:1000 |
| 114 | RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
| 115 | Interrupt:11 |
| 116 | |
| 117 | eth1 Link encap:Ethernet HWaddr 00:0f:ea:4a:8a:ff |
| 118 | inet addr:10.40.1.7 Bcast:10.40.255.255 Mask:255.255.0.0 |
| 119 | inet6 addr: fe80::20f:eaff:fe4a:8aff/64 Scope:Link |
| 120 | UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 |
| 121 | RX packets:89811 errors:0 dropped:0 overruns:2 frame:0 |
| 122 | TX packets:6729 errors:0 dropped:0 overruns:0 carrier:0 |
| 123 | collisions:0 txqueuelen:1000 |
| 124 | RX bytes:68247118 (68.2 MB) TX bytes:1171359 (1.1 MB) |
| 125 | Interrupt:10 |
| 126 | |
| 127 | eth2 Link encap:Ethernet HWaddr 00:0e:35:9e:52:e6 |
| 128 | BROADCAST MULTICAST MTU:1500 Metric:1 |
| 129 | RX packets:0 errors:0 dropped:0 overruns:0 frame:0 |
| 130 | TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 |
| 131 | collisions:0 txqueuelen:1000 |
| 132 | RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
| 133 | Interrupt:7 Base address:0xa000 Memory:eb018000-eb018fff |
| 134 | |
| 135 | lo Link encap:Local Loopback |
| 136 | inet addr:127.0.0.1 Mask:255.0.0.0 |
| 137 | inet6 addr: ::1/128 Scope:Host |
| 138 | UP LOOPBACK RUNNING MTU:16436 Metric:1 |
| 139 | RX packets:0 errors:0 dropped:0 overruns:0 frame:0 |
| 140 | TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 |
| 141 | collisions:0 txqueuelen:0 |
| 142 | RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
| 143 | |
| 144 | veth0 Link encap:Ethernet HWaddr b2:13:3e:6a:16:bc |
| 145 | UP BROADCAST MULTICAST MTU:1500 Metric:1 |
| 146 | RX packets:0 errors:0 dropped:0 overruns:0 frame:0 |
| 147 | TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 |
| 148 | collisions:0 txqueuelen:1000 |
| 149 | RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
| 150 | |
| 151 | veth1 Link encap:Ethernet HWaddr a2:da:ae:0c:31:c9 |
| 152 | BROADCAST MULTICAST MTU:1500 Metric:1 |
| 153 | RX packets:0 errors:0 dropped:0 overruns:0 frame:0 |
| 154 | TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 |
| 155 | collisions:0 txqueuelen:1000 |
| 156 | RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
| 157 | |
| 158 | wlan0 Link encap:Ethernet HWaddr 00:60:b3:ac:a1:ce |
| 159 | BROADCAST MULTICAST MTU:1500 Metric:1 |
| 160 | RX packets:0 errors:0 dropped:0 overruns:0 frame:0 |
| 161 | TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 |
| 162 | collisions:0 txqueuelen:1000 |
| 163 | RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) |
| 164 | }}} |
| 165 | |
| 166 | Finally We can start the openflow client in deamon mode with: |
| 167 | {{{ |
| 168 | root@node1-7:/opt/openvswitch-1.1.0pre2# ovs-openflowd dp0 tcp:10.50.0.13 --out-of-band --detach |
| 169 | Sep 22 19:56:05|00001|openflowd|INFO|Open vSwitch version 1.1.0pre2 |
| 170 | Sep 22 19:56:05|00002|openflowd|INFO|OpenFlow protocol version 0x01 |
| 171 | Sep 22 19:56:05|00003|ofproto|INFO|using datapath ID 000000232080fc2d |
| 172 | Sep 22 19:56:05|00004|rconn|INFO|dp0<->tcp:10.50.0.13: connecting... |
| 173 | }}} |