2. OpenvSwitch의 가상 네트워크 현황을 확인해 보겠습니다. ovs-vsctl show 명령어를 이용해 네트워크 현황을 살펴보면 br-int와 br-enp0s3 브리지를 확인할 수 있습니다. br-enp0s3에 enp0s3이라는 실제 네트워크 디바이스가 포트로 포함되어 있는데 br-enp0s3이 외부와 통신할 때 실제로 사용되는 네트워크 디바이스가 바로 enp0s3입니다. 이때 실제 네트워크 디바이스가 다음과 같이 포함되지 않았다면 ovs-vsctl add-port 명령어를 이용해 추가할 수 있습니다.
[root@centos ~]# ovs-vsctl show c653d86f-687d-4f42-81c9-457b9a93f49a Bridge br-int fail_mode: secure Port “int-br-enp0s3” Interface “int-br-enp0s3” type: patch options: {peer=“phy-br-enp0s3”} Port br-int Interface br-int type: internal Port “qr-3c95392f-93” tag: 1 Interface “qr-3c95392f-93” type: internal Port “tap4202b385-a0” tag: 1 Interface “tap4202b385-a0” type: internal Bridge “br-enp0s3” fail_mode: secure Port “br-enp0s3” Interface “br-enp0s3” type: internal Port “enp0s3” Interface “enp0s3” Port “phy-br-enp0s3” Interface “phy-br-enp0s3” type: patch options: {peer=“int-br-enp0s3”} Port “qg-db7917e8-e4” Interface “qg-db7917e8-e4” type: internal ovs_version: “2.5.0”