Home > Communication Service Provider Solutions > Telecom Multicloud Foundation > Red Hat > Guides > Red Hat Open Shift Container Platform Guides > Deployment Guide: Red Hat OpenShift Container Platform Reference Architecture for Telecom > Enabling SR-IOV
Note: Ensure that the SR-IOV feature is enabled globally from iDRAC.
The following steps show how to create multiple VFs by using a single physical function (PF), which is a single network device that is present in the compute node:
[core@csah-pri ~]$ oc get pods -n openshift-operators
NAME READY STATUS RESTARTS AGE
nfd-operator-6f7d99b8c6-mqtkp 1/1 Running 0 41s
Note: Ensure that the project is set to openshift-sriov-network-operator before selecting Install.
[core@csah-pri ~]$ oc get pods -n openshift-sriov-network-operator -n openshift-sriov-network-operator
[core@csah-pri ~]$ oc get SriovNetworkNodeState
The output lists all the compute nodes that are part of the cluster. This guide shows examples for only one compute node. Follow the same steps for other compute nodes.
[core@csah-pri sriov]$ oc get SriovNetworkNodeState com-1.demo.lab -o yaml -n openshift-sriov-network-operator
Note: The command output includes deviceID, pciAddress, and vendor information for each NIC. For a list of SR-IOV-supported network devices, see About Single Root I/O Virtualization (SR-IOV) hardware networks.
[core@csah-pri sriov]$ oc create -f <YAML file>
[core@csah-pri sriov]$ oc get sriovnetworknodepolicies -n openshift-sriov-network-operator
As a functionality test, the NICs that are used as part of network node policy are connected to a separate VLAN 150 that is created in S5232F-1 and S5232F-2 with the IP addresses 192.168.150.1/24 and 192.168.150.2/24.
[core@csah-pri sriov]$ oc create -f <YAML file>
[core@csah-pri sriov]$ oc get sriovnetwork
In the example, IP address 192.168.150.51/24 is assigned to the network device.
[core@csah-pri sriov]$ oc create -f <YAML file>
[core@csah-pri sriov]$ oc get pod r650-1-vf0-pod -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
r650-1-vf0-pod 1/1 Running 0 5m21s 10.131.2.8 com-1.demo.lab <none> <none>
[core@csah-pri sriov]$ oc exec -it r650-1-vf0-pod -- ip a s
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
3: eth0@if41: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP group default
link/ether 0a:58:0a:83:02:08 brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 10.131.2.8/23 brd 10.131.3.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::8c0b:d0ff:fe54:d04d/64 scope link
valid_lft forever preferred_lft forever
37: net1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether da:b0:ca:69:be:b2 brd ff:ff:ff:ff:ff:ff
inet 192.168.150.51/24 brd 192.168.150.255 scope global net1
valid_lft forever preferred_lft forever
inet6 fe80::d8b0:caff:fe69:beb2/64 scope link
valid_lft forever preferred_lft forever
[core@csah-pri sriov]$ oc exec -it r650-1-vf0-pod -- ping 192.168.150.1
PING 192.168.150.1 (192.168.150.1) 56(84) bytes of data.
64 bytes from 192.168.150.1: icmp_seq=1 ttl=64 time=0.308 ms
64 bytes from 192.168.150.1: icmp_seq=2 ttl=64 time=0.337 ms
64 bytes from 192.168.150.1: icmp_seq=3 ttl=64 time=0.307 ms
^C
--- 192.168.150.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2078ms
rtt min/avg/max/mdev = 0.307/0.317/0.337/0.020 ms
[core@csah-pri sriov]$ oc exec -it r650-1-vf0-pod -- ping 192.168.150.2
PING 192.168.150.2 (192.168.150.2) 56(84) bytes of data.
64 bytes from 192.168.150.2: icmp_seq=1 ttl=64 time=0.480 ms
64 bytes from 192.168.150.2: icmp_seq=2 ttl=64 time=0.340 ms
64 bytes from 192.168.150.2: icmp_seq=3 ttl=64 time=0.304 ms
64 bytes from 192.168.150.2: icmp_seq=4 ttl=64 time=0.387 ms
^C
--- 192.168.150.2 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3101ms
rtt min/avg/max/mdev = 0.304/0.377/0.480/0.070 ms