...
Code Block |
---|
sudo cp targets/ivs/build/gcc-local/bin/ivs targets/ivs-ctl/build/gcc-local/bin/ivs-ctl /usr/sbin |
Running IVS
Controller configuration
You'll need an OpenFlow controller to use IVS. We suggest Floodlight, which should work out of the box. Follow your controller's instructions to get it running and note down its IP address.
Run the IVS daemon
You'll need to tell it the IP address of the controller (-c) and the initial set of network interfaces to connect (-i). Here's an example command line:
Code Block |
---|
sudo ivs -c 192.168.1.10 -i eth1 -i eth2
|
IVS will immediately begin communicating with the controller and, depending on your controller's configuration, forwarding traffic between eth1 and eth2.
Code Block |
---|
ivs-ctl add-port |
and
Code Block |
---|
ivs-ctl del-port |
can be used to add and remove ports at runtime (for example, this is used by hypervisors when a VM is started). See the
Code Block |
---|
ivs-ctl man page |
for more details.