Results 1 to 4 of 4

Thread: Ubuntu 20.04 IP Link Virtual Function command

  1. #1
    Join Date
    Feb 2010
    Beans
    4

    Ubuntu 20.04 IP Link Virtual Function command

    Hi, I am running KVM on Ubuntu 20.04 & using SR-IOV with an Intel x520 and have an issue were i trying to set Virtual fuctions Spoof checking off & trust on.
    I should be able to use the command "IP link set PF VF NUM " to change these setting but VF is not seen as an option. Is this function enabled on a specific Kernel Version?
    i’m curently running 5.4.0 or has this funtion been moved to NetPlan, I don’t seem to be able to find any Documentation either way.


    Thanks in advanced.

  2. #2
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Ubuntu 20.04 IP Link Virtual Function command

    Quote Originally Posted by paullautier View Post
    I should be able to use the command "IP link set PF VF NUM " to change these setting but VF is not seen as an option.
    You didn't type it as posted did you? You know that Linux is case sensitive... so "VF" does not exist, but "vf" does... right?
    Code:
    ip link set { DEVICE | group GROUP }
                   [ vf NUM [ mac LLADDR ]
                            [ VFVLAN-LIST ]
                            [ rate TXRATE ]
                            [ max_tx_rate TXRATE ]
                            [ min_tx_rate TXRATE ]
                            [ spoofchk { on | off } ]
                            [ query_rss { on | off } ]
                            [ state { auto | enable | disable } ]
                            [ trust { on | off } ]
                            [ node_guid eui64 ]
                            [ port_guid eui64 ] ]    }
    For example:
    Code:
    ip link set ens801f0 vf 0 trust on
    ip link set ens801f0 vf 0 spoofchk off
    Correct me if I'm mistaken... But just an observation.
    Last edited by MAFoElffen; June 10th, 2021 at 07:31 AM.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  3. #3
    Join Date
    Feb 2010
    Beans
    4

    Re: Ubuntu 20.04 IP Link Virtual Function command

    Hi MAFoElffen;
    Correct in the post I used captials but wasn't when using the command in Linux terminal. I did get it working though I miss understood the syntax of the command
    I was putting the physical name and number of the virtual function so like “ip link set enps50 vf enps50v3” It should be ip link set enps50 vf 3 Not my best moment for sure felt like a bit of an idiot once i realised it not sure why I thought it was that in the first place the documentation is quite clear.
    Last edited by paullautier; June 26th, 2021 at 05:24 PM.

  4. #4
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Ubuntu 20.04 IP Link Virtual Function command

    I understand. LOL. Good that it's working for you now.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •