title: mongodb - All nodes in replica set are primary
body: <p>I am trying to configure a replica set with two nodes but when I execute <code>rs.add("node2")</code> and then <code>rs.status()</code> both nodes are set to PRIMARY. Also when I run <code>rs.status()</code> on the other node the only node that appears is the local one. </p>
  
  <p>Edit1:
  <code>rs.status()</code> output:</p>
  
  <pre><code>    {
          "set" : "rs0",
          "date" : ISODate("2012-09-22T01:01:12Z"),
          "myState" : 1,
          "members" : [
                  {
                          "_id" : 0,
                          "name" : "node1:27017",
                          "health" : 1,
                          "state" : 1,
                          "stateStr" : "PRIMARY",
                          "uptime" : 70968,
                          "optime" : Timestamp(1348207012000, 1),
                          "optimeDate" : ISODate("2012-09-21T05:56:52Z"),
                          "self" : true
                  },
                  {
                          "_id" : 1,
                          "name" : "node2:27017",
                          "health" : 1,
                          "state" : 1,
                          "stateStr" : "PRIMARY",
                          "uptime" : 68660,
                          "optime" : Timestamp(1348205568000, 1),
                          "optimeDate" : ISODate("2012-09-21T05:32:48Z"),
                          "lastHeartbeat" : ISODate("2012-09-22T01:01:11Z"),
                          "pingMs" : 0
                  }
          ],
          "ok" : 1
  }
  </code></pre>
  
  <p>Edit2: I tried doing the same thing with 3 different nodes and I got the same result (<code>rs.status()</code> says I have a replica set with three primary nodes). Is it possible that this problem is caused by some specific configuration of the network?</p>