Assigning host route to loopback

From: John Kristoff (jtk_at_northwestern.edu)
Date: 02/16/04

  • Next message: Alan W. Rateliff, II: "Re: Limit NFS on network adapter"
    Date: Mon, 16 Feb 2004 14:49:20 -0600
    To: focus-sun@securityfocus.com
    
    

    I'm attempting to assign a /32 IP address to lo0:1 on a Solaris 8 box and
    am having some difficulty. Hopefully someone here can point me in the
    right direction.

    I don't seem to be able to set the netmask for an IP to 255.255.255.255
    in the /etc/inet/netmasks file. This IP is out of a larger /24, of which
    I've used a /26 on a physical dmfe0 interface. So I want things to look
    something like this:

                                                .-----------------------.
                                                | lo0 127.0.0.1/8 |
      192.0.2.1/26 gw <-- dmfe0:192.0.2.10/26 - + |
                                                | lo0:1 192.0.2.254/32 |
                                                `-----------------------'

    Setting up the interface via ifconfig will get the netmasks I want, but
    I would prefer to store this in the configuration files if possible,
    particularly since I want the configuration to survive across restarts.
    I had set lo0:1 to 192.0.2.65 with a mask of 255.255.255.252 successfully
    so I know VLSM is working at least in part. I've also tried using an
    entirely different IP and a 255.255.255.255 mask, but that didn't appear
    to be any more successful.

    Is the only way to get this configuration to run something like:

      ifconfig lo0 addif 192.0.2.254/32 up

    in a startup script or am I missing? Thanks in advance for any assistance,

    John


  • Next message: Alan W. Rateliff, II: "Re: Limit NFS on network adapter"