- 
    Type:
Bug
 - 
    Resolution: Duplicate
 - 
    Priority:
Major - P3
 - 
    None
 - 
    Affects Version/s: 2.4.8
 - 
    Component/s: Networking, Replication
 - 
    Environment:Debian squeeze / Debian wheezy
 
- 
        Linux
 - 
        
- create server, configure bind_ip to be an IPv6 address, set ipv6 = true in config
 - connect to mongo shell, create replica set configuration with ipv6 addresses and ports
 
 - 
        None
 
- 
        None
 - 
        None
 - 
        None
 - 
        None
 - 
        None
 - 
        None
 
I have clean servers that should run on ipv6 only. I have enabled ipv6 in config as follows:
ipv6 = true bind_ip = 2a01:2a01:2a01:2a01::2 port = 63333
now I try to create a replica set as follows:
> config = {
    _id: "rs0", 
    members:[
        {_id: 0, host: "[2a01:2a01:2a01:2a01::2]:63333"}, 
        {_id: 1, host: "[2a01:2a01:2a01:2a01::3]:63333"},
        {_id: 2, host: "[2a01:2a01:2a01:2a01::4]:63333"}
]}
> rs.initiate(config)
{
        "ok" : 0,
        "errmsg" : "couldn't initiate : can't find self in the replset config my port: 63333"
}
I don't want to use DNS ans I don't want to use /etc/hosts.
- duplicates
 - 
                    
SERVER-5436 IPv6 address ambiguity in HostPort syntax
-         
 - Closed
 
 -         
 
- is related to
 - 
                    
SERVER-9612 Mongos not parsing correctly IPV6 address
-         
 - Closed
 
 -