What I want to say is that your classmate blocked your network card address in the router, that is, there is an item on the router that restricts your address through MAC address filtering. Do you understand?
To prove this point is simple, you can unplug the network cable connected to your computer and connect it to your friend's computer. If he can surf the internet, haha, then I can be sure.
Extra points.