NIS client cannot connect to NIS Master

From: Rick von Richter (rickv@mwh.com)
Date: Fri Apr 26 2002 - 11:58:58 EDT


Strange problem here. Two systems; Scorpio is the NIS client and Atlas is
the NIS master.

Specs
=====
Scorpio
-------
Ultra 10
Solaris 8 patched
hme0 = 172.25.209.158 255.255.255.0
the ypservers file contains 'atlas'

Atlas
-----
Ultra 2
Solaris 2.6 patched
be0 = 172.25.250.23 255.255.255.128 -> Atlasadmin
hme0 = 191.41.100.203 255.255.0.0 -> Atlas

Problem
-------
I am snooping on both Atlas and Scorpio.
When I run /usr/lib/netsvc/yp/ypstart on Scorpio I see the packets go to
and return from Atlas. I have included the snoops below (2 packets each).
The wierd thing is that Atlas puts the IP address of the be0 interface in
the RPCB section of the packet instead of the hme0 IP. Look at the RPCB
section of packet 2 in each snoop to see what I mean. Hence, Scorpio cannot
connect.
My netmasks are correct and all other traffic
(ICMP,telnet,rsh,rlogin,etc...) works fine. It appears that the NIS master
(Atlas) is looking at my IP address and seeing a class B (even though it is
subnetted out) and simply choosing it's closest match instead of seeing
what interface the packet came in on.

Any help would be greatly appreciated.

Thanks, Rick

Snoop on Scorpio
----------------
ETHER: ----- Ether Header -----
ETHER:
ETHER: Packet 1 arrived at 15:07:44.58
ETHER: Packet size = 106 bytes
ETHER: Destination = 0:0:c:7:ac:9, Cisco
ETHER: Source = 8:0:20:fd:c0:60, Sun
ETHER: Ethertype = 0800 (IP)
ETHER:
IP: ----- IP Header -----
IP:
IP: Version = 4
IP: Header length = 20 bytes
IP: Type of service = 0x00
IP: xxx. .... = 0 (precedence)
IP: ...0 .... = normal delay
IP: .... 0... = normal throughput
IP: .... .0.. = normal reliability
IP: Total length = 92 bytes
IP: Identification = 18547
IP: Flags = 0x4
IP: .1.. .... = do not fragment
IP: ..0. .... = last fragment
IP: Fragment offset = 0 bytes
IP: Time to live = 255 seconds/hops
IP: Protocol = 17 (UDP)
IP: Header checksum = 9170
IP: Source address = 172.25.209.158, scorpio
IP: Destination address = 191.41.100.203, atlas
IP: No options
IP:
UDP: ----- UDP Header -----
UDP:
UDP: Source port = 32858
UDP: Destination port = 111 (Sun RPC)
UDP: Length = 72
UDP: Checksum = E217
UDP:
RPC: ----- SUN RPC Header -----
RPC:
RPC: Transaction id = 1020250951
RPC: Type = 0 (Call)
RPC: RPC version = 2
RPC: Program = 100000 (PMAP), version = 3, procedure = 3
RPC: Credentials: Flavor = 0 (None), len = 0 bytes
RPC: Verifier : Flavor = 0 (None), len = 0 bytes
RPC:
RPCB: ----- RPC Bind -----
RPCB:
RPCB: Proc = 3 (Get address)
RPCB: Program = 100004
RPCB: Version = 2
RPCB: Netid = udp
RPCB:

ETHER: ----- Ether Header -----
ETHER:
ETHER: Packet 2 arrived at 15:07:44.58
ETHER: Packet size = 90 bytes
ETHER: Destination = 8:0:20:fd:c0:60, Sun
ETHER: Source = 0:7:4f:f2:f8:fc,
ETHER: Ethertype = 0800 (IP)
ETHER:
IP: ----- IP Header -----
IP:
IP: Version = 4
IP: Header length = 20 bytes
IP: Type of service = 0x00
IP: xxx. .... = 0 (precedence)
IP: ...0 .... = normal delay
IP: .... 0... = normal throughput
IP: .... .0.. = normal reliability
IP: Total length = 76 bytes
IP: Identification = 54828
IP: Flags = 0x4
IP: .1.. .... = do not fragment
IP: ..0. .... = last fragment
IP: Fragment offset = 0 bytes
IP: Time to live = 254 seconds/hops
IP: Protocol = 17 (UDP)
IP: Header checksum = 04c7
IP: Source address = 191.41.100.203, atlas
IP: Destination address = 172.25.209.158, scorpio
IP: No options
IP:
UDP: ----- UDP Header -----
UDP:
UDP: Source port = 111
UDP: Destination port = 32858 (Sun RPC)
UDP: Length = 56
UDP: Checksum = DF1D
UDP:
RPC: ----- SUN RPC Header -----
RPC:
RPC: Transaction id = 1020250951
RPC: Type = 1 (Reply)
RPC: This is a reply to frame 1
RPC: Status = 0 (Accepted)
RPC: Verifier : Flavor = 0 (None), len = 0 bytes
RPC: Accept status = 0 (Success)
RPC:
RPCB: ----- RPC Bind -----
RPCB:
RPCB: Proc = 3 (Get address)
RPCB: Uaddr = 172.25.250.23.2.237
RPCB:

Snoop on Atlas
--------------
ETHER: ----- Ether Header -----
ETHER:
ETHER: Packet 1 arrived at 15:07:45.58
ETHER: Packet size = 106 bytes
ETHER: Destination = 8:0:20:7e:d6:22, Sun
ETHER: Source = 0:7:4f:f2:f8:fc,
ETHER: Ethertype = 0800 (IP)
ETHER:
IP: ----- IP Header -----
IP:
IP: Version = 4
IP: Header length = 20 bytes
IP: Type of service = 0x00
IP: xxx. .... = 0 (precedence)
IP: ...0 .... = normal delay
IP: .... 0... = normal throughput
IP: .... .0.. = normal reliability
IP: Total length = 92 bytes
IP: Identification = 18547
IP: Flags = 0x4
IP: .1.. .... = do not fragment
IP: ..0. .... = last fragment
IP: Fragment offset = 0 bytes
IP: Time to live = 254 seconds/hops
IP: Protocol = 17 (UDP)
IP: Header checksum = 9270
IP: Source address = 172.25.209.158, scorpio
IP: Destination address = 191.41.100.203, atlas
IP: No options
IP:
UDP: ----- UDP Header -----
UDP:
UDP: Source port = 32858
UDP: Destination port = 111 (Sun RPC)
UDP: Length = 72
UDP: Checksum = E217
UDP:
RPC: ----- SUN RPC Header -----
RPC:
RPC: Transaction id = 1020250951
RPC: Type = 0 (Call)
RPC: RPC version = 2
RPC: Program = 100000 (PMAP), version = 3, procedure = 3
RPC: Credentials: Flavor = 0 (None), len = 0 bytes
RPC: Verifier : Flavor = 0 (None), len = 0 bytes
RPC:
RPCB: ----- RPC Bind -----
RPCB:
RPCB: Proc = 3 (Get address)
RPCB: Program = 100004
RPCB: Version = 2
RPCB: Netid = udp
RPCB:

ETHER: ----- Ether Header -----
ETHER:
ETHER: Packet 2 arrived at 15:07:45.58
ETHER: Packet size = 90 bytes
ETHER: Destination = 0:0:c:7:ac:1, Cisco
ETHER: Source = 8:0:20:7e:d6:22, Sun
ETHER: Ethertype = 0800 (IP)
ETHER:
IP: ----- IP Header -----
IP:
IP: Version = 4
IP: Header length = 20 bytes
IP: Type of service = 0x00
IP: xxx. .... = 0 (precedence)
IP: ...0 .... = normal delay
IP: .... 0... = normal throughput
IP: .... .0.. = normal reliability
IP: Total length = 76 bytes
IP: Identification = 54828
IP: Flags = 0x4
IP: .1.. .... = do not fragment
IP: ..0. .... = last fragment
IP: Fragment offset = 0 bytes
IP: Time to live = 255 seconds/hops
IP: Protocol = 17 (UDP)
IP: Header checksum = 03c7
IP: Source address = 191.41.100.203, atlas
IP: Destination address = 172.25.209.158, scorpio
IP: No options
IP:
UDP: ----- UDP Header -----
UDP:
UDP: Source port = 111
UDP: Destination port = 32858 (Sun RPC)
UDP: Length = 56
UDP: Checksum = DF1D
UDP:
RPC: ----- SUN RPC Header -----
RPC:
RPC: Transaction id = 1020250951
RPC: Type = 1 (Reply)
RPC: This is a reply to frame 1
RPC: Status = 0 (Accepted)
RPC: Verifier : Flavor = 0 (None), len = 0 bytes
RPC: Accept status = 0 (Success)
RPC:
RPCB: ----- RPC Bind -----
RPCB:
RPCB: Proc = 3 (Get address)
RPCB: Uaddr = 172.25.250.23.2.237
RPCB:

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Rick von Richter Production Support Manager       Voice: 858-831-2222
  rickv@mwh.com    Maintenance Warehouse/Home Depot   Fax: 858-831-2221
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  The box says: Win98, WinNT or BETTER. That's why I installed Linux.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:15 EDT