...
Set OVSDB listening mode in your compute nodes. There are two ways to do.
| Code Block |
|---|
$ ovs-appctl -t ovsdb-server ovsdb-server/add-remote ptcp:6640:host_ip |
...
| Code Block |
|---|
$ sudo ip addr flush eth1
$ ip addr show eth1
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 04:01:7c:f8:ee:02 brd ff:ff:ff:ff:ff:ff |
ONOS Settings
...
:ff:ff:ff |
ONOS Settings
Add the following configurations to your ONOS network-cfg.json. If you don't have fabric controller and vRouter setups, you may want to read "SSH to VM/Access Internet from VM" part also before creating network-cfg.json file.
| Config Name | Descriptions |
|---|---|
| gatewayMac | MAC address of virtual network gateway |
| nodes | list of compute node information |
| nodes: hostname | hostname of the compute node, should be unique throughout the service |
| nodes: ovsdbIp | IP address to access OVSDB of compute node |
| nodes: ovsdbPort | Port number to access OVSDB (OVSDB uses 6640 by default) |
| nodes: bridgeId | Device ID of the integration bridge (br-int) |
| nodes: phyPortName | Name of physical interface for data plane |
| nodes: localIp | IP address of the physical interface, this IP will be used for VXLAN tunneling |
| Code Block | ||
|---|---|---|
| ||
{
"apps" : {
"org.onosproject.cordvtn" : {
"cordvtn" : {
"gatewayMac" : "00:00:00:00:00:01",
"nodes" : [
{
"hostname" : "compute-01",
"ovsdbIp" : "10.55.25.244",
"ovsdbPort" : "6640",
"bridgeId" : "of:0000000000000001",
"phyPortName" : "eth0",
"localIp" : "10.134.34.222"
},
{
"hostname" : "compute-02",
"ovsdbIp" : "10.241.229.42",
"ovsdbPort" : "6640",
"bridgeId" : "of:0000000000000002",
"phyPortName" : "eth0",
"localIp" : "10.134.34.223"
}
]
}
},
"org.onosproject.openstackswitching" : {
"openstackswitching" : {
"do_not_push_flows" : "true",
"neutron_server" : "http://10.243.139.46:9696/v2.0/",
"keystone_server" : "http://10.243.139.46:5000/v2.0/",
"user_name" : "admin",
"password" : "passwd"
}
}
}
} |
...
| Code Block |
|---|
$ sudo brctl addbr fabric |
And create a veth pair. veth0 will be used as a "physicalPort" now.
| Code Block |
|---|
$ ip link add veth0 type veth peer name veth1 |
...
Check the physical interface MAC address and set the address to br-int. And br-int also have to have "localIP" address specified in network-cfg.json.
...
Set fabric bridge MAC address to the virtual gateway MAC address. Since you don't have vRouter, set any MAC address and just put the same address to "gatewayMac" field of network-cfg.json described in "ONOS Settings" part.
...