EX-23.1 2 odfl-ex231_12.htm CONSENT OF ERNST & YOUNG LLP

Exhibit 23.1

Consent of Independent Registered Public Accounting Firm

We consent to the incorporation by reference in the following Registration Statements:

| (1) | Registration Statement (Form S-8 No. 333-162695) pertaining to the Old Dominion 401(k) Retirement Plan of Old Dominion Freight Line, Inc. and

| (2) | Registration Statement (Form S-8 No. 333-211464) pertaining to the Old Dominion Freight Line, Inc. 2016 Stock Incentive Plan;

of our reports dated February 24, 2021, with respect to the financial statements and schedule of Old Dominion Freight Line, Inc. and the effectiveness of internal control over financial reporting of Old Dominion Freight Line, Inc. included in this Annual Report (Form 10-K) of Old Dominion Freight Line, Inc. for the year ended December 31, 2020.

/s/ Ernst & Young LLP

Raleigh, North Carolina

February 24, 2021