
584 N.W.2d 907 (1998)
STATE of Iowa, Appellee,
v.
William Maurice CARNEY, Jr., Appellant.
No. 97-874.
Supreme Court of Iowa.
September 23, 1998.
*908 C. Joseph Coleman, Jr., of Coleman & Enke, Fort Dodge, for appellant.
Thomas J. Miller, Attorney General, Richard J. Bennett, Assistant Attorney General, and James J. Koll, County Attorney, for appellee.
Considered en banc.
PER CURIAM.
Defendant appeals the judgment and sentence entered upon his conviction of operating while intoxicated (OWI), first offense, in violation of Iowa Code section 321J.2 (1995). He argues his guilty plea was invalid because he was not informed that as a consequence of pleading guilty, his driver's license could be revoked for six years and his vehicle impounded. Defendant further asserts his counsel was ineffective for failing to inform him of these consequences. We affirm in part and vacate in part.

I. Background Facts and Proceedings.
Defendant filed a written guilty plea to OWI, first offense. The written plea provided that the maximum penalty for the offense of OWI is one year in jail and/or a $1500 fine plus surcharge. Following a hearing the district court accepted defendant's plea finding it was both knowing and voluntary.
Defendant was sentenced to a one-year jail term, all but two days suspended, fined $500 plus a surcharge, taxed court costs, and ordered to pay $60 in restitution. In addition, the district court found that this was defendant's third lifetime conviction and revoked his driver's license for a period of six years pursuant to Iowa Code section 321J.4(3)(a). It further ordered that defendant's vehicle be impounded pursuant to Iowa Code section 321J.4B (Supp.1995).
On appeal defendant argues his guilty plea was not knowingly and voluntarily entered because he was not informed his punishment could include a six-year license revocation and impoundment of his vehicle. Defendant maintains the court was required to inform him of these consequences pursuant to Iowa Rule of Criminal Procedure 8(2)(b)(2) ("The mandatory minimum punishment, if any, and the maximum possible punishment provided by the statute defining the offense to which the plea is offered."). Defendant further contends his counsel was ineffective in failing to inform him that license revocation and impoundment were consequences of pleading guilty to OWI.

II. Direct and Collateral Consequences.
To the extent defendant alleges the sentencing court failed to inform him fully of the consequences of his plea, he implicates the due process clause of the Fourteenth Amendment to the United States Constitution. See Saadiq v. State, 387 N.W.2d 315, 324 (Iowa 1986). To adhere to the requirements of the Fourteenth Amendment a sentencing court must insure the defendant understands the direct consequences of the plea including the possible maximum sentence, as well as any mandatory minimum punishment. Id. at 324-25. However, the court is not required to inform the defendant of all indirect and collateral consequences of a guilty plea. Id. at 325.
We have explained that:
The distinction between "direct" and "collateral" consequences of a plea, while sometimes shaded in the relevant decisions, turns on whether the result represents a definite, immediate and largely automatic effect on the range of defendant's punishment.
State v. Warner, 229 N.W.2d 776, 782 (Iowa 1975) (quoting Cuthrell v. Director, Patuxent Institution, 475 F.2d 1364, 1366 (4th Cir. 1973)). In the following cases we found that certain consequences of a guilty plea were collateral, and thus the district court had no duty to inform defendant of them: Kinnersley *909 v. State, 494 N.W.2d 698, 700 (Iowa 1993) (limitation on parole eligibility); Mott v. State, 407 N.W.2d 581, 583 (Iowa 1987) (deportation); Saadiq, 387 N.W.2d at 325 (prohibition from carrying a firearm upon conviction of third-degree theft); State v. Woolsey, 240 N.W.2d 651, 653-54 (Iowa 1976) (ineligibility for deferred judgment or suspended sentence and probation due to prior convictions); Warner, 229 N.W.2d at 782 (penal consequences of companion charge or effect of instant charge on the strength of prosecution's proof in companion case); and State v. Christensen, 201 N.W.2d 457, 459 (Iowa 1972) (effect of conviction upon future convictions).

A. License revocation.
Defendant's license was revoked pursuant to Iowa Code section 321J.4(3)(a) which provides:
Upon a plea or verdict of guilty of a third or subsequent violation of section 321J.2, the court shall order the department to revoke the defendant's motor vehicle license or nonresident operating privilege for a period of six years....
The result of revocation upon pleading guilty to OWI (where the defendant has two or more prior lifetime violations of section 321J.2) may be definite, immediate, and largely automatic. However, we do not believe it has an effect on the "range of defendant's punishment," and therefore conclude it is not a direct consequence of a guilty plea.
While license revocation may carry the sting of punishment, we have explained that the "purpose of the license revocation provision in section 321J.4 is `to protect the public by providing that drivers who have demonstrated a pattern of driving while intoxicated be removed from the highways.'" See State v. Moore, 569 N.W.2d 130, 132 (Iowa 1997) (quoting State v. Blood, 360 N.W.2d 820, 822 (Iowa 1985)). We have also concluded license revocation is not punishment for purposes of the double jeopardy clause. State v. Krebs, 562 N.W.2d 423, 424-25 (Iowa 1997).
Other jurisdictions have similarly determined that license revocation is a collateral rather than direct consequence of a guilty plea. Moore v. Hinton, 513 F.2d 781, 782-83 (5th Cir.1975) (license suspension imposed following plea of guilty to OWI was not punishment but collateral consequence of conviction); Villa v. State, 456 A.2d 1229, 1231 (Del.1983) (license revocation is not a criminal penalty or punishment); Stoltz v. State, 657 N.E.2d 188, 192 (Ind.Ct.App.1995) (even though suspension of license was automatic upon plea of guilty to operating while intoxicated, it was a collateral consequence); Commonwealth v. Duffey, 536 Pa. 436, 639 A.2d 1174, 1176 (Pa.1994) (license revocation was collateral consequence to pleading guilty to underage drinking); State v. Madison, 120 Wis.2d 150, 353 N.W.2d 835, 841 (Wis.Ct. App.1984) (no due process right to be informed of collateral consequence of license revocation upon pleading guilty to underlying offense).
Because we find license revocation is a collateral and not a direct consequence of a guilty plea, the district court had no duty to inform the defendant of it. We conclude the defendant's plea was knowingly and voluntarily entered. See Saadiq, 387 N.W.2d at 325.

B. Impoundment.
Defendant similarly contends that the court was required to inform him of the consequence of impoundment in order for his plea to be knowing and voluntary. The State notes that an order of impoundment may not have been proper in this case and that it is unclear whether impoundment occurred because defendant transferred ownership of his vehicle prior to the entry of the order.
The impoundment was ordered pursuant to Iowa Code section 321J.4B which provides:
[i]f a person is convicted of a second, third, or subsequent offense of operating while intoxicated, the court shall order that any motor vehicles owned by the person and used to commit the offense ... be impounded or immobilized....
In State v. Sharp, 572 N.W.2d 917, 918 (Iowa 1997), we held that impoundment is *910 permitted pursuant to section 321J.4B only where a defendant is convicted of the enhanced offense of second, third or subsequent OWI. This section does "not apply with respect to two or more convictions of OWI, first offense." Id. Defendant pleaded guilty to first offense OWI; therefore, the order of impoundment was entered in error.
When a court imposes a sentence which statutory law does not permit, the sentence is illegal, and such a sentence is void and we will vacate it. State v. Hess, 533 N.W.2d 525, 527 (Iowa 1995). We note that defendant does not contend the order of impoundment was improper; however, "[w]e cannot permit a void sentence to stand even when a party does not raise the issue." See Wilson v. Fenton, 312 N.W.2d 524, 529 (Iowa 1981). Because we find the order of impoundment was improper, we need not address whether it was a direct or collateral consequence.

III. Ineffective Assistance.
Defendant next contends his trial counsel was ineffective for failing to advise him of the consequences of revocation and impoundment. "The general test applied to a claim of ineffective assistance of counsel is `whether under the entire record and totality of the circumstances counsel's performance was within the range of normal competency.'" Mott, 407 N.W.2d at 582 (quoting Snethen v. State, 308 N.W.2d 11, 14 (Iowa 1981)). The defendant must show (1) counsel failed to perform an essential duty, and (2) prejudice resulted. Id. To show counsel was ineffective in a guilty plea case, the defendant "must show that counsel's advice was not within the normal range of competency demanded of attorneys in criminal cases." Id.
"When the ineffectiveness claim is based on alleged failure to advise a defendant of the consequences of a guilty plea, the rule is that, if the consequences flow `directly' from the plea, the plea may be held invalid." Id. On the other hand, if "the fallout from the plea is `collateral,' counsel is generally not held to be ineffective for failing to inform the defendant about it." Id. at 582-83.
Having concluded that the consequence of license revocation is collateral, we find counsel was not ineffective in failing to inform defendant of it. The failure to advise a defendant concerning a collateral consequence, even serious ones, cannot provide a basis for a claim of ineffective assistance of counsel. Id. at 583.

IV. Conclusion.
Defendant's guilty plea to the offense of operating while intoxicated was not involuntary or unknowing because of the court's failure to inform him of the collateral consequence of license revocation. Further, counsel was not ineffective for failing to advise defendant of this collateral consequence. We vacate the order of impoundment.
AFFIRMED IN PART; VACATED IN PART.
All justices concur except SNELL, J., and LAVORATO, J., who dissent.
SNELL, Justice (dissenting).
I respectfully dissent.
Defendant's plea of guilty was accepted in violation of his due process rights under the Fourteenth Amendment to the United States Constitution and in violation of Iowa Rule of Criminal Procedure 8(2)(b). The plea should, therefore, be vacated; the case should be reversed and remanded with directions allowing the defendant to plead anew.
The constitutional framework regarding guilty pleas was established by the Supreme Court in Brady v. United States, 397 U.S. 742, 748, 90 S.Ct. 1463, 1469, 25 L.Ed.2d 747, 756 (1970) ("Waivers of constitutional rights not only must be voluntary but must be knowing, intelligent acts done with sufficient awareness of the relevant circumstances and likely consequences."), and Boykin v. Alabama, 395 U.S. 238, 243-44, 89 S.Ct. 1709, *911 1712, 23 L.Ed.2d 274, 279-80 (1969) (In accepting a guilty plea, a court must employ "the utmost solicitude ... in canvassing the matter with the accused to make sure he has a full understanding of what the plea connotes and of its consequences.").
Regarding the Due Process Clause of the Fourteenth Amendment, we said in State v. Boone, 298 N.W.2d 335, 337 (Iowa 1980) (citations omitted):
A defendant who enters a plea of guilty waives several constitutional rights. For the waiver to be valid under the Due Process Clause ..., there must be an intentional relinquishment of known rights or privileges. If a defendant's guilty plea is not equally voluntary and knowing, it has been obtained in violation of constitutional guarantees of due process and is therefore void. The defendant must have a full understanding of the consequences of a plea before constitutional rights can be waived knowingly and intelligently.
In Saadiq v. State, we noted the following:
To insure that the requirements of the fourteenth amendment are satisfied, we have required strict adherence to our guidelines in rule 8 of the Iowa rules of criminal procedure. See also Boykin v. Alabama, 395 U.S. 238, 243-44, 89 S.Ct. 1709, 1712-13, 23 L.Ed. 2d 274, 279-80 (1969); State v. Sisco, 169 N.W.2d 542, 548-51 (Iowa 1969). The sentencing court must insure the defendant understands the "direct consequences of the plea including the possible maximum sentence, as well as any mandatory minimum punishment."
Saadiq v. State, 387 N.W.2d 315, 324-25 (Iowa 1986) (quoting State v. Rand, 268 N.W.2d 642, 648 (Iowa 1978) (citations omitted)).
In Saadiq, we further described the requirements in that judges are not required to inform defendants of all indirect and collateral consequences of guilty pleas. We also said:
"`The distinction between "direct" and "collateral" consequences of a plea, while sometimes shaded in the relevant decisions, turns on whether the result represents a definite, immediate and largely automatic effect on the range of the defendant's punishment.'"
Id. at 325 (quoting State v. Warner, 229 N.W.2d 776, 782 (Iowa 1975) (quoting Cuthrell v. Director, Patuxent Inst., 475 F.2d 1364, 1365-66 (4th Cir.1973))).
Though shaded distinctions may pass constitutional muster through the eye of the court, their utility may be dark as pitch in adding knowledge and understanding to a defendant contemplating a guilty plea. Yet, that is the basis for deciding what the defendant is entitled to know as consequences of pleading guilty and in so doing waiving constitutional rights.
However, as gleaned by the court in Saadiq, a direct consequence, of which the defendant must be informed, is one that is definite, immediate and largely automatic in result on the range of the defendant's punishment. Id. When one looks at our Iowa statutes, it is clear that all these requirements are met.
Iowa Code section 321J.4(3)(a) (1995) states in pertinent part:
Upon a plea or verdict of guilty of a third or subsequent violation of section 321J.2, the court shall order the department to revoke the defendant's motor vehicle license or nonresident operating privilege for a period of six years.
In law the word "shall" is a command, and the statute specifically provides that the revocation is effected by court order, not by the authority or discretion of the state department of transportation. The revocation by court order is definite, immediate, and automatic.
The majority opinion lightly allows that loss of a person's driver's license for six years may carry the "sting of punishment." Most people living in the real world would wonder at the judicial distinction crafted by the majority that a six-year loss of a driver's license is not a direct consequence of a guilty *912 plea because it may be only a sting of punishment, not real punishment. Comparisons by the majority to double jeopardy case distinctions are inapposites that add nothing to the analysis. Jurisdictions cited that hold that license revocation is a collateral consequence have relied on statutes that place the revocation decision not with the court, but with an administrative agency. See Moore v. Hinton, 513 F.2d 781, 782 (5th Cir.1975); Villa v. State, 456 A.2d 1229, 1231 (Del.1983); Stoltz v. State, 657 N.E.2d 188, 190-92 (Ind. Ct.App.1995); Commonwealth v. Johnson, 434 Pa.Super. 1, 641 A.2d 1170, 1175-76 (Pa.Super.Ct.1994). Our statute is not so subtle. The power, authority, and administrative result is statutorily determined by the legislature and meted out by the court. There is nothing indirect, collateral, or uncertain left. Accepting defendant's guilty plea without advising him that his driver's license would be automatically revoked as a direct consequence was invalid because it violated defendant's due process rights under the Fourteenth Amendment to the United States Constitution and violated our own Iowa Rule of Criminal Procedure 8(2)(b).
I also believe defendant received ineffective assistance of counsel in this matter. In Mott v. State, 407 N.W.2d 581 (Iowa 1987), we stated the applicable law. We said:
The general test applied to a claim of ineffective assistance of counsel is "whether under the entire record and totality of the circumstances counsel's performance was within the range of normal competency." Snethen v. State, 308 N.W.2d 11, 14 (Iowa 1981). When the claim is grounded on counsel's failure to take some action, the claimant must show that (1) counsel failed to perform an essential duty; and (2) prejudice resulted. Id. The claimant must rebut the presumption of counsel's competence, Henderson v. Scurr, 313 N.W.2d 522, 524 (Iowa 1981), and establish ineffectiveness by a preponderance of the evidence. Kellogg v. State, 288 N.W.2d 561, 563(Iowa 1980).
We first address the question of whether Mott's attorney failed to perform an essential duty under the first prong of the test. This requires a showing "that counsel made errors so serious that counsel was not functioning as the `counsel' guaranteed the defendant by the Sixth Amendment." Saadiq v. State, 387 N.W.2d 315, 325 (Iowa 1986) (quoting Strickland v. Washington, 466 U.S. 668, 687, 104 S.Ct. 2052, 2064, 80 L.Ed.2d 674, 693 (1984)). To show counsel was ineffective in a guilty plea case, the petitioner must show that counsel's advice was not within the normal range of competency demanded of attorneys in criminal cases. Saadiq, 387 N.W.2d at 325-26 (citing Hawkman v. Parratt, 661 F.2d 1161, 1170 (8th Cir.1981)).
When the ineffectiveness claim is based on alleged failure to advise a defendant of the consequences of a guilty plea, the rule is that, if the consequences flow "directly" from the plea, the plea may be held invalid. Saadiq, 387 N.W.2d at 324-25. If, on the other hand, the fallout from the plea is "collateral," counsel is generally not held to be ineffective for failing to inform the defendant about it. Id. at 326.
Mott, 407 N.W.2d at 582-83.
In Mott, the consequence of deportation after defendant pled guilty to second-degree burglary was held to be collateral. Deportation was not part of the sentencing statute for burglary. In the instant case, the direct consequence of a guilty plea, by statute, for third offense OWI (which applied to defendant Carney), was a six-year revocation of the defendant's driver's license.
When the statute plainly states the consequences, I believe it is within the normal range of competency of an Iowa lawyer to understand the law and so advise the client. That is the situation here. Carney's counsel failed to advise his client of the license revocation consequences of his guilty plea. Counsel failed to perform an essential duty and prejudice obviously resulted. The claim by Carney of ineffective assistance of counsel clearly appears by a preponderance of the evidence. See Snethen v. State, 308 N.W.2d 11, 14 (Iowa 1981).
*913 I would reverse and remand based on violations of the Sixth Amendment, Fourteenth Amendment, and Iowa Rule of Criminal Procedure 8(2)(b).
LAVORATO, J., joins this dissent.
