Read 2 John 1:6 Using Other Translations
And this is love, that we walk after his commandments. This is the commandment, That, as ye have heard from the beginning, ye should walk in it.
And this is love, that we walk according to his commandments; this is the commandment, just as you have heard from the beginning, so that you should walk in it.
Love means doing what God has commanded us, and he has commanded us to love one another, just as you heard from the beginning.