[Xorp-hackers] comm_sock_open error!

Mike Horn mhorn at vyatta.com
Tue May 23 08:04:25 PDT 2006


Hi Robin,

You are missing two small pieces in your configuration.  You need to add a
vif and an IP address for eth0 (XORP does not support IP unnumbered today)
and you need to add the same vif and IP address under the the "interface"
statement in the OSPF area you need to add the IP address on the interface.
So your config should look more like:

    interfaces {
        interface eth0 {
            vif eth0 {
                address 10.0.0.45 {
                    prefix-length: 24
                }
            }
        }
    }
    protocols {
        ospf4 {
            router-id: 10.0.0.45
            area 0.0.0.0 {
                interface eth0 {
                    vif eth0 {
                        address 10.0.0.45 {
                        }
                    }
                }
            }
        }
    }

Let us know if that doesn't resolve the socket error.

-mike

-----Original Message-----
From: xorp-hackers-bounces at icir.org [mailto:xorp-hackers-bounces at icir.org]
On Behalf Of Li Chuanhuang
Sent: Tuesday, May 23, 2006 8:24 AM
To: xorp-hackers
Subject: [Xorp-hackers] comm_sock_open error!

Hi,
   I'm a new user of XORP.I have compiled  XORP in my Linux
machine(kernel:2.4.20),it seems no problem,but when I run it with my config
file,There are some fatal errors!!
I attach the config.boot and the error message:

My config:

interfaces {
    restore-original-config-on-shutdown: false
    interface eth0 {
	description: "ethernet interface"
	disable: false
	default-system-config
    }
}

fea {
    unicast-forwarding4 {
	disable: false
    }
}

protocols {
    ospf4 {
	router-id: 10.10.10.1
	area 0.0.0.0 {
	    interface eth0 {
	    }
	}
    }
}

error message:
	
[ 2006/05/23 22:17:46  INFO xorp_rtrmgr:4966 RTRMGR +240 master_conf_tree.cc
exe cute ] Changed modules: interfaces, fea, rib, policy, ospf4 [ 2006/05/23
22:17:46  INFO xorp_rtrmgr:4966 RTRMGR +99 module_manager.cc execut e ]
Executing module: interfaces (fea/xorp_fea) [ 2006/05/23 22:17:46  ERROR
xorp_fea:4967 LIBCOMM +110 comm_sock.c comm_sock_op en ] Error opening
socket (domain = 10, type = 2, protocol = 0): Address family not supported
by protocol [ 2006/05/23 22:17:46  ERROR xorp_fea:4967 LIBCOMM +110
comm_sock.c comm_sock_op en ] Error opening socket (domain = 10, type = 2,
protocol = 0): Address family not supported by protocol

why the "domain" was setted  to "10"(AF_CCITT)!? Is there somewhere I
haven't configured?
can you give me some suggestions?

Thanks and best regards! 

        Robin
        chuanhuang_li at pop.zjgsu.edu.cn
          05-23-2006

_______________________________________________
Xorp-hackers mailing list
Xorp-hackers at icir.org
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers




More information about the Xorp-hackers mailing list