-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_ovs.sh
More file actions
executable file
·28 lines (22 loc) · 874 Bytes
/
setup_ovs.sh
File metadata and controls
executable file
·28 lines (22 loc) · 874 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
### load modules
#modprobe gre
modprobe openvswitch
#modprobe libcrc32c
#### setup ovsdb
#ovsdb-tool create /usr/local/etc/openvswitch/conf.db /usr/local/share/openvswitch/vswitch.ovsschema
### open ovsdb server (no SSL)
ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock \
--remote=db:Open_vSwitch,Open_vSwitch,manager_options \
--pidfile --detach --log-file
#### open ovsdb server (SSL)
#ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock \
# --remote=db:Open_vSwitch,Open_vSwitch,manager_options \
# --private-key=db:Open_vSwitch,SSL<Plug>PeepOpenrivate_key \
# --certificate=db:Open_vSwitch,SSL,certificate \
# --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert \
# --pidfile --detach --log-file
### open ovsctl
ovs-vsctl --no-wait init
### open switched
ovs-vswitchd --pidfile --detach --log-file