1. A method for network accessing, comprising: receiving a request of a new rule with a system identification (â€œSIDâ€) for network access; identifying a first wildcard in a first predefined field of the SID; retrieving a first specific prefix in accordance with the first wildcard in the first predefined field of the SID; replacing the first wildcard with the first specific prefix in the first predefined field of the SID to form a modified first rule; and inserting the modified first rule into a memory structure; performing a first lookup to match a first lookup key with information stored in the memory structure; and performing a second lookup to match a first modified key with the information stored in the memory structure.