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.
mysql> GRANT ALL ON *.* to root@'192.168.1.%' IDENTIFIED BY 'your-root-password';
The wildcard character is a "%" instead of an "*"