After talking about enjoying communion with God in the first section of his epistle, in verses 1Jn 2:3-11, John goes on to talk about obeying the commandments of God. The second appearance of the word "know" in this passage is the Greek word ginosko, which speaks of intimacy. Thus, we know we are walking in intimacy with God if we keep His commandments.