Configuring your NeXT for a class B network

Posted on June 11, 2004 by Chris Lumens in NeXTSTEP.

At my house, we do networking a little differently. We’ve assigned ourselves each a class C network under the 192.168.0.0 address space, with the router on 192.168.0.1. My assigned network is the 192.168.4.0 block, with my NeXT specifically being 192.168.4.12. Now, I need to set up the machine such that anything for the internal network goes to the internal network, and anything for the outside world goes through the router. You’d think this would be an easy thing to set up using all the graphical tools, but apparently not.

Here’s the sequence of commands I issued to undo the networking when the machine boots up and configuring it to play nice with the home network. At the very least, the first two commands need to be entered in this order.

# route delete 192.168.4.0 192.168.4.12
# ifconfig en0 netmask 0xffff0000
# route add net 192.168.0.0 192.168.4.12 0
# route add net 0.0.0.0 192.168.0.1 1