connecting two solaris machines
Two solaris sun boxes; V490, V890.
I have connectivity established to both local (ten dot) and external networks.
I have on the 890 a single-headed nic; on the 490 I have an open connection port on the integrated nic.I want to connect the two with a direct cable (cross over). The two boxes are at most 18" from each other in the same rack.
Have had no joy thus far; used ifconfig to plumb and up both cards; they are alive to a ping. They complain to the console when the cable is removed ((am using a known tested good xover cable).
used route add to add a route; fired up routed, nothing. The route is present to a netstat -rn. IPv4 routing is enabled.
Cannot seem to get the two cards to recognize each other.
This should be trivial; in fact its a major pain; any ideas?
thanks,
prof48
[844 byte] By [
prof48] at [2007-11-26 11:40:27]

# 1
Please show output of 'ifconfig -a' and 'netstat -nr' from both hosts along with a sample ping that does not work.
Can you 'snoop -d <interface>' from each host on the connected interface while you try to ping? Do you see outbound packets on that interface? Do you see inbound packets on that iterface?
If you snoop the other interface on the mulit-homed machine, do you see outbound packets for the other host?
--
Darren
# 2
You don't need a route to do that, and I would think that setting a route may even hinder the connection - can't tell you for sure without testing it, though. You may also want to check your netmasks, make sure they match.
# 3
ce1: flags=1100843<UP,BROADCAST,RUNNING,MULTICAST,ROUTER,IPv4> mtu 1500 index 3
inet 192.168.0.246 netmask ffffff00 broadcast 192.168.0.255
ether 0:3:ba:8c:40:3d
This is on the 490; the 890 is identical but has an IP of 192.168.0.248 (of course the MAC is diff).
A snoop -d shows nothing. It just sits there forever.
A traceroute (From 490 to 890 but same vice/versa):
# traceroute 192.168.0.248
traceroute: Warning: Multiple interfaces found; using 192.168.0.246 @ ce1
traceroute to 192.168.0.248 (192.168.0.248), 30 hops max, 40 byte packets
1 * * *
2 * * *
This goes on for 30 (attempted) hops.
The netstat -rn on the 490
# netstat -rn
Routing Table: IPv4
DestinationGatewayFlags RefUseInterface
-- -- -- --
192.168.0.248192.168.0.246UH126 ce1
10.110.49.0 10.110.49.87 U 159 ce0
224.0.0.010.110.49.87 U 10 ce0
default 10.110.49.100UG1143
127.0.0.1127.0.0.1UH21 302305 lo0
Same on 890 except 8890 shows destination as 192.168.0.246 as a destination and the gateway as 192.168.0.248 (vice versa on each machine).
I will try 1) using with no route add and 2) doing snoop on ce1 while traceroute is running.
tanks,
prof
# 4
Hmmm: some interesting happening.
Without a route being added on the 890 (or the 490) I ran a traceroute to 192.168.0.246 (490) in one window and a snoop -d on ce0 (interface to local network).
Everytime I had a send on the traceroute I got a UDP packet to 192.168.0.248 on the snoop. Looks like its sending over the wrong interface - these are two separate cards not a dual head. This should be going out over ce1 - is the machine looking for a router somewhere (/etc/defaultrouter has two listings - maybe i should add another at the bottom for the card in the other box?)
mo' later
# 5
ifconfig (set nics to be a router?)
ce1: flags=1100843<UP,BROADCAST,RUNNING,MULTICAST,ROUTER,IPv4> mtu 1500 index 4
inet 192.168.0.246 netmask ffffff00 broadcast 192.168.0.0
ether 0:3:ba:8c:40:3d
With this setting on each machine I have window running traceroute and another doing snoop -d ce1.
The snoops shows
# snoop -d ce1
Using device /dev/ce (promiscuous mode)
coltraneFTP -> (broadcast) ARP C Who is 192.168.0.248, 192.168.0.248 ?
coltraneFTP -> (broadcast) ARP C Who is 192.168.0.248, 192.168.0.248 ?
coltraneFTP -> (broadcast) ARP C Who is 192.168.0.248, 192.168.0.248 ?
So each NIC is sending an arp packet trying to find where the target is (in this case 192.168.0.248).
I used ifconfig ce1 to disable arp (-arp arg).
When I disable arp the traceroute/snoop combo shows nothing.This explains why I cannot get connection between the two machines; both NICs are trying to use ARP to find the other.
Now how do I get ARP to work?
# 6
> Now how do I get ARP to work?Just bypass it. On each machine do a ifconfig -a to get the info that you need to build an arp cache entry. man arp for details.alan
# 7
Hi , I have same problem , any idea how to solve this pain.Ehab