Layer 2 Switching in ODL
To enable Layer 2 switching , we have enable following module or feature in ODL .
As soon as we run this command , L2 module gets installed and ODL enables OpenFlow protocol and start listening on TCP port 6633 As shown in below figure.
Now as soon is topology is build all the OpenFlow switch will get registered to ODL via OpenFlow HELLO which is originated from OpenFlow switch to ODL controller.
The below process describes the registration method:
Now lets create another topology in which host 1 and Host 2 are connected to Virtual Switch 2 and Host 3 and Host 4 are connected to Virtual Switch 3 and Virtual switch 1 is connected to switch 2 and switch 3.