<p>In a shellscript, I'd like to set the IP of my box, run a command, then move to the next IP. The IPs are an entire C block.</p>

<p>The question is how do I set the IP of the box without editing a file? What command sets the IP on Slackware?</p>

<p>Thanks</p>

It should be something like:
```
ifconfig eth0 192.168.0.42 up
```
Replace eth0 by the network interface of your network card, obviously adapt the ip address to your needs and the up is only necessary once, but doesn't hurt if you run it each time.