Loading ...
Sorry, an error occurred while loading the content.

Re: [solarisx86] a dumb networking question

Expand Messages
  • Al Hopper
    ... ^^^^^^^^ Is this for real? Hi Marc. Something that few appear to be aware of, is that you can specify the netmask in /etc/inet/hosts like this:
    Message 1 of 8 , Oct 1, 2006
    View Source
    • 0 Attachment
      On Sun, 1 Oct 2006, Marc Lobelle wrote:

      > > In message <20061001183914.74C2611E133@...>, Marc Lobelle
      > > writes:
      > > >- put a name in /etc/hostname.bge0 and in /etc/nodename and give its address
      > > >in /etc/hosts
      > >
      > > As well as ipnodes(4)
      >
      > Thanks, I had forgotten that. The name is now in the 2 files
      > >
      > > >- put the netmask in /etc/netmasks
      > >
      > > Read netmasks(4) if you're doing variable length subnetting.
      >
      > My netmask file includes the 2 folliwing lines
      > 130.104.230.224 255.255.255.240
      > 130.104.0.0 255.155.155.120
      ^^^^^^^^
      Is this for real?

      Hi Marc. Something that few appear to be aware of, is that you can
      specify the netmask in /etc/inet/hosts like this:

      192.168.20.10/25 (equivalent to a 255.255.255.128 netmask)

      A useful tool is called ipcalc, which is a Perl script and very useful to
      "sanity" check your work with ip networking and netmasks. You can
      download a copy from:

      http://jodies.de/ipcalc-archive/

      Used on your suspicious entry above:

      $ ipcalc 130.104.0.0 255.155.155.120
      Corrected illegal netmask: 255.155.155.120

      Address: 130.104.0.0 10000010.0 1101000.00000000.00000000
      Netmask: 255.128.0.0 = 9 11111111.1 0000000.00000000.00000000
      Wildcard: 0.127.255.255 00000000.0 1111111.11111111.11111111
      =>
      Network: 130.0.0.0/9 10000010.0 0000000.00000000.00000000 (Class B)
      Broadcast: 130.127.255.255 10000010.0 1111111.11111111.11111111
      HostMin: 130.0.0.1 10000010.0 0000000.00000000.00000001
      HostMax: 130.127.255.254 10000010.0 1111111.11111111.11111110
      Hosts/Net: 8388606

      I think you typoed the netmask??

      > and the computer (130.104.230.232) gets 255.255.0.0
      > >
      > > >- put the necessary info in /etc/resolv.conf
      > >
      > > Not sure if DHCP munges nsswitch.conf(4), but you should confirm
      > > that the hosts uses files and dns.
      > No, this one was untouched
      >
      > Marc
      > >
      > > John
      > > groenveld@...

      Regards,

      Al Hopper Logical Approach Inc, Plano, TX. al@...
      Voice: 972.379.2133 Fax: 972.379.2134 Timezone: US CDT
      OpenSolaris.Org Community Advisory Board (CAB) Member - Apr 2005
      OpenSolaris Governing Board (OGB) Member - Feb 2006
    • Marc Lobelle
      ... no, I mistyped it i: the netmask is 255.255.255.128 and all this worked fine with older versions of solaris. Should I sys-unconfig the system and
      Message 2 of 8 , Oct 2, 2006
      View Source
      • 0 Attachment
        > On Sun, 1 Oct 2006, Marc Lobelle wrote:
        >
        > > > In message <20061001183914.74C2611E133@...>, Marc Lobelle
        > > > writes:
        > > > >- put a name in /etc/hostname.bge0 and in /etc/nodename and give its address
        > > > >in /etc/hosts
        > > >
        > > > As well as ipnodes(4)
        > >
        > > Thanks, I had forgotten that. The name is now in the 2 files
        > > >
        > > > >- put the netmask in /etc/netmasks
        > > >
        > > > Read netmasks(4) if you're doing variable length subnetting.
        > >
        > > My netmask file includes the 2 folliwing lines
        > > 130.104.230.224 255.255.255.240
        > > 130.104.0.0 255.155.155.120
        > ^^^^^^^^
        > Is this for real?

        no, I mistyped it i: the netmask is 255.255.255.128 and all this worked fine
        with older versions of solaris. Should I sys-unconfig the system and
        reconfigure it without dhcp ?

        >
        > Hi Marc. Something that few appear to be aware of, is that you can
        > specify the netmask in /etc/inet/hosts like this:

        I'll try this. should this also be in /etc/inet/inodes ?

        Marc
        >
        > 192.168.20.10/25 (equivalent to a 255.255.255.128 netmask)
        >
        > A useful tool is called ipcalc, which is a Perl script and very useful to
        > "sanity" check your work with ip networking and netmasks. You can
        > download a copy from:
        >
        > http://jodies.de/ipcalc-archive/
        >
        > Used on your suspicious entry above:
        >
        > $ ipcalc 130.104.0.0 255.155.155.120
        > Corrected illegal netmask: 255.155.155.120
        >
        > Address: 130.104.0.0 10000010.0 1101000.00000000.00000000
        > Netmask: 255.128.0.0 = 9 11111111.1 0000000.00000000.00000000
        > Wildcard: 0.127.255.255 00000000.0 1111111.11111111.11111111
        > =>
        > Network: 130.0.0.0/9 10000010.0 0000000.00000000.00000000 (Class B)
        > Broadcast: 130.127.255.255 10000010.0 1111111.11111111.11111111
        > HostMin: 130.0.0.1 10000010.0 0000000.00000000.00000001
        > HostMax: 130.127.255.254 10000010.0 1111111.11111111.11111110
        > Hosts/Net: 8388606
        >
        > I think you typoed the netmask??
        >
        > > and the computer (130.104.230.232) gets 255.255.0.0
        > > >
        > > > >- put the necessary info in /etc/resolv.conf
        > > >
        > > > Not sure if DHCP munges nsswitch.conf(4), but you should confirm
        > > > that the hosts uses files and dns.
        > > No, this one was untouched
        > >
        > > Marc
        > > >
        > > > John
        > > > groenveld@...
        >
        > Regards,
        >
        > Al Hopper Logical Approach Inc, Plano, TX. al@...
        > Voice: 972.379.2133 Fax: 972.379.2134 Timezone: US CDT
        > OpenSolaris.Org Community Advisory Board (CAB) Member - Apr 2005
        > OpenSolaris Governing Board (OGB) Member - Feb 2006
        >
        >
        >
        >
        > Please check the Links page before posting:
        > http://groups.yahoo.com/group/solarisx86/links
        > Post message: solarisx86@yahoogroups.com
        > UNSUBSCRIBE: solarisx86-unsubscribe@yahoogroups.com
        >
        >
        > Yahoo! Groups Links
        >
        >
        >
        >
        >
        >
        >
        >
        >
      • Al Hopper
        ... Thats the most goof-proof way to set it up. Everything will be consistant - with the downside that you ll have to reboot the machine. sys-unconfig will
        Message 3 of 8 , Oct 4, 2006
        View Source
        • 0 Attachment
          On Mon, 2 Oct 2006, Marc Lobelle wrote:

          > > On Sun, 1 Oct 2006, Marc Lobelle wrote:
          > >
          > > > > In message <20061001183914.74C2611E133@...>, Marc Lobelle
          > > > > writes:
          > > > > >- put a name in /etc/hostname.bge0 and in /etc/nodename and give its address
          > > > > >in /etc/hosts
          > > > >
          > > > > As well as ipnodes(4)
          > > >
          > > > Thanks, I had forgotten that. The name is now in the 2 files
          > > > >
          > > > > >- put the netmask in /etc/netmasks
          > > > >
          > > > > Read netmasks(4) if you're doing variable length subnetting.
          > > >
          > > > My netmask file includes the 2 folliwing lines
          > > > 130.104.230.224 255.255.255.240
          > > > 130.104.0.0 255.155.155.120
          > > ^^^^^^^^
          > > Is this for real?
          >
          > no, I mistyped it i: the netmask is 255.255.255.128 and all this worked fine
          > with older versions of solaris. Should I sys-unconfig the system and
          > reconfigure it without dhcp ?

          Thats the most goof-proof way to set it up. Everything will be consistant
          - with the downside that you'll have to reboot the machine. sys-unconfig
          will fill in the masks in /etc/netmasks.

          > >
          > > Hi Marc. Something that few appear to be aware of, is that you can
          > > specify the netmask in /etc/inet/hosts like this:
          >
          > I'll try this. should this also be in /etc/inet/inodes ?

          Yes. The only difference I see between /etc/inet/hosts and
          /etc/inet/ipnodes in an IPv4 environment is the the first line of the
          ipnodes file:

          ::1 localhost


          Al Hopper Logical Approach Inc, Plano, TX. al@...
          Voice: 972.379.2133 Fax: 972.379.2134 Timezone: US CDT
          OpenSolaris.Org Community Advisory Board (CAB) Member - Apr 2005
          OpenSolaris Governing Board (OGB) Member - Feb 2006
        Your message has been successfully submitted and would be delivered to recipients shortly.