The "right" way to route dummy & localhost?

The "right" way to route dummy & localhost?

Post by Myles Uye » Wed, 05 Jun 1996 04:00:00



Okay so in my rc.inet1 I have the lines to configure loopback and dummy:
# Attach the loopback device.
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0

# Attach dummy driver for micron.pixi.com
/sbin/ifconfig dummy 192.168.1.1
/sbin/route add -net 192.168.1.0 dev dummy
-------------------------------------------------------

[/etc/hosts]
127.0.0.1       localhost       loopback
192.168.1.1     micron.myles.net        myles
-------------------------------------------------------

Now my question is this: must the loopback device be routed in that manner?
I tried variations to this setup, in which I attached my devices with:
/sbin/route add -host 127.0.0.1
/sbin/route add -host 192.168.1.1

These seem to work just fine too.  Are they in essence alike or is there
something hidden that I do not understand about routing these special
devices?

Myles Uyema