Assigning a subnet is already covered in the example below. Setting a default route via a router is the most common use case of ip route IMHO.