Exhibit 8.2

NEIL V. BIRKHOFF
(540) 983-7699
neil.birkhoff@wrvblaw.com
March 28, 2024
Frontier Community Bank
400 Lew Dewitt Blvd.
Waynesboro, VA 22980
Attention: Alan J. Sweet
Re: Merger of Frontier Community Bank into The National Bank of Blacksburg, a wholly-owned subsidiary of National Bankshares Inc. pursuant to the Agreement and Plan of Merger dated as of January 23, 2024.
Ladies and Gentlemen:
We have acted as counsel to Frontier Community Bank, a Virginia banking corporation (“FCB”), in connection with the proposed merger (the “Merger”) of Frontier Community Bank with and into The National Bank of Blacksburg, a national banking association and wholly-owned subsidiary of National Bankshares Inc., a Virginia corporation (“NBI”), pursuant to the Agreement and Plan of Merger, dated as of January 23, 2024, between NBI, NBB, and FCB (the “Merger Agreement”). At your request, and in connection with the filing by NBI of a Registration Statement on Form S-4 (as amended or supplemented through the date hereof, the “Registration Statement”), including the Proxy Statement/Prospectus contained therein, with the Securities and Exchange Commission (the “Commission”), we are rendering our opinion concerning certain United States federal income tax consequences of the Merger. Any capitalized term used and not defined herein has the meaning given to it in the Merger Agreement.
For the purposes of delivering this opinion letter, we have examined and relied, with your consent, upon the following:
(a) The Merger Agreement.
(b) The Registration Statement.
(c) A representation letter delivered to us by NBI, dated as of the date hereof (the “NBI Representation Letter”), containing representations made to us by NBI.
(d) A representation letter delivered to us by FCB, dated as of the date hereof (the “FCB Representation Letter”), containing representations made to us by FCB.
P.O. Box 14125, Roanoke, Virginia 24038-4125
10 S. Jefferson Street, Suite 1800, Roanoke VA 24011
P (540) 983-7600 ● F Main (540) 983-7711 Direct (540) 492-4703
w r v b l a w . c o m
Roanoke | Lynchburg | Charlottesville | Richmond | Norfolk