{"id":1580,"date":"2019-09-02T21:58:49","date_gmt":"2019-09-02T13:58:49","guid":{"rendered":"http:\/\/www.eumz.com\/?p=1580"},"modified":"2019-09-02T21:58:49","modified_gmt":"2019-09-02T13:58:49","slug":"%e6%b5%aa%e6%bd%aenf5280m5%e5%ae%89%e8%a3%85redhat7-2%e4%b8%8b%e7%bd%91%e5%8d%a1%e9%a9%b1%e5%8a%a8","status":"publish","type":"post","link":"https:\/\/www.wxcn.com\/?p=1580","title":{"rendered":"\u6d6a\u6f6eNF5280M5\u5b89\u88c5redhat7.2\u4e0b\u7f51\u5361\u9a71\u52a8"},"content":{"rendered":"\n<p>\u9a71\u52a8\u6587\u6863\u5982\u4e0b\uff1a<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Building and Installation<\/h2>\n\n\n\n<p>To build a binary RPM* package of this driver, run \u2018rpmbuild -tb<br>i40e-.tar.gz\u2019, where is the version number for the driver tar file.<\/p>\n\n\n\n<p>NOTES:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>For the build to work properly, the currently running kernel MUST match<br>the version and configuration of the installed kernel sources. If you have<br>just recompiled the kernel reboot the system before building.<\/li><li>RPM functionality has only been tested in Red Hat distributions.<\/li><\/ul>\n\n\n\n<ol class=\"wp-block-list\"><li>Move the base driver tar file to the directory of your choice. For<br>example, use \u2018\/home\/username\/i40e\u2019 or \u2018\/usr\/local\/src\/i40e\u2019.<\/li><li>Untar\/unzip the archive, where is the version number for the<br>driver tar file:<br>tar zxf i40e-.tar.gz<\/li><li>Change to the driver src directory, where is the version number<br>for the driver tar:<br>cd i40e-\/src\/<\/li><li>Compile the driver module:<br>make install<br>The binary will be installed as:<br>\/lib\/modules\/\/updates\/drivers\/net\/ethernet\/intel\/i40e\/i40e.ko<br>The install location listed above is the default location. This may differ<br>for various Linux distributions.<\/li><li>Load the module using the modprobe command:<br>modprobe [parameter=port1_value,port2_value]<br>Make sure that any older i40e drivers are removed from the kernel before<br>loading the new module:<br>rmmod i40e; modprobe i40e<\/li><li>Assign an IP address to the interface by entering the following,<br>where ethX is the interface name that was shown in dmesg after modprobe:<br>ip address add \/ dev ethX<\/li><li>Verify that the interface works. Enter the following, where IP_address<br>is the IP address for another machine on the same subnet as the interface<br>that is being tested:<br>ping<\/li><\/ol>\n\n\n\n<p>NOTE:<br>For certain distributions like (but not limited to) RedHat Enterprise<br>Linux 7 and Ubuntu, once the driver is installed the initrd\/initramfs<br>file may need to be updated to prevent the OS loading old versions<br>of the i40e driver. The dracut utility may be used on RedHat<br>distributions:<br># dracut \u2013force<br>For Ubuntu:<br># update-initramfs -u<\/p>\n\n\n\n<p>\u5177\u4f53\u64cd\u4f5c\u4e3b\u8981\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p>[root@host ~]# unzip PHY_i40e-2.0.23.zip<\/p>\n\n\n\n<p>[root@host ~]# cd PHY_i40e-2.0.23\/src<\/p>\n\n\n\n<p>[root@host ~]# make install<\/p>\n\n\n\n<p>[root@host ~]# rmmod i40e<\/p>\n\n\n\n<p>[root@host ~]# modprobe i40e<\/p>\n\n\n\n<p>[root@host ~]# dracut \u2013force<\/p>\n\n\n\n<p>[root@host ~]# service network restart<\/p>\n\n\n\n<p>rmmod i40e\u7684\u4f5c\u7528\u662f\u5220\u9664\u7cfb\u7edf\u4e2d\u4ee5\u524d\u7248\u672c\u9a71\u52a8\uff0c\u8fd9\u4e00\u64cd\u4f5c\u5f88\u5173\u952e\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8e\u6d6a\u6f6eNF5280M5\u670d\u52a1\u5668\uff0c\u5efa\u8bae\u5b89\u88c5redhat7.4\u53ca\u4ee5\u4e0a\u7248\u672c\u3002\u4f4e\u7248\u672c\u53ef\u80fd\u51fa\u73b0\u7f51\u7edc\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9a71\u52a8\u6587\u6863\u5982\u4e0b\uff1a Building and Installation To build a binary RPM [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[100,157,202,238,243,545],"class_list":["post-1580","post","type-post","status-publish","format-standard","hentry","category-operating-system","tag-dracut","tag-i40e","tag-nf5280m5","tag-redhat7-2","tag-rmmod","tag-545"],"_links":{"self":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/posts\/1580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1580"}],"version-history":[{"count":0,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=\/wp\/v2\/posts\/1580\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1580"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1580"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wxcn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}