I can easily grant access to one IP using this code:
$ mysql -u root -p Enter password: mysql> use mysql mysql> GRANT ALL ON *.* to root@\'192.
You would just use '%' as your wildcard like this:
GRANT ALL ON *.* to root@'192.168.1.%' IDENTIFIED BY 'your-root-password';