HI Fujimoto,
Yes, i guess you are right. i have the following lines of code in
*/etc/sysctl.conf*
/
/
/# Mininet: disable IPv6/
/net.ipv6.conf.all.disable_ipv6 = 1/
/net.ipv6.conf.default.disable_ipv6 = 1/
/net.ipv6.conf.lo.disable_ipv6 = 1/
And the following code in */etc/default/grub*
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 text "
GRUB_CMDLINE_LINUX=""
GRUB_SERIAL_COMMAND="serial --unit=0 --speed=9600 --stop=1"
Is there anything wrong with my settings?.
Thanks
Hadem
On Mon, Jun 26, 2017 at 6:20 AM, Iwase Yusuke <iwase.yusu...@gmail.com
<mailto:iwase.yusu...@gmail.com>> wrote:
Hi Pynbiang,
Excuse me for jumping in.
It's just my guess, is IPv6 disabled on your machine?
Mininet does disable IPv6 automatically on its installation.
https://github.com/mininet/mininet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/install.sh#L615-L639
<https://github.com/mininet/mininet/blob/aa8901268dbb04e11d466732a354b3533e0e138e/util/install.sh#L615-L639>
Could you confirm the IPv6 settings (e.g., "/etc/sysctl.conf" and
"/etc/default/grub")
on your machine?
Thanks,
Iwase
On 2017年06月24日 17:17, Pynbiang Hadem wrote:
Hi, Fujimoto
Tried with as you suggested.
sudo ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
However, the output is still the same.
what could be the issue?.
Thanks
Hadem
On Fri, Jun 23, 2017 at 5:33 AM, Fujimoto Satoshi
<satoshi.fujimo...@gmail.com
<mailto:satoshi.fujimo...@gmail.com> <mailto:satoshi.fujimo...@gmail.com
<mailto:satoshi.fujimo...@gmail.com>>> wrote:
Hi, Pynbiang
Thank you for sending your log messages!
In the messages, I've found:
Error creating socket: [Errno 13] Permission denied
So, "ryu-manager" may not have authority to use well-known port
179,
which is used for BGP protocol.
Please run your command with "sudo", that is:
sudo ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
Thanks,
Fujimoto
On 2017年06月22日 21:50, Pynbiang Hadem wrote:
Hi Fujimoto,
*Pls ignore the last mail. I have corrected the command as
below as pointed out by
you in one
of the other Forum blogs:*
ryu-manager ryu/services/protocols/bgp/application.py
--bgp-app-config-file
ryu/services/protocols/bgp/bgp_sample_conf.py
*Output:*
lzma module is not available
Registered VCS backend: git
Registered VCS backend: hg
Registered VCS backend: svn
Registered VCS backend: bzr
loading app ryu/services/protocols/bgp/application.py
instantiating app ryu/services/protocols/bgp/application.py of
RyuBGPSpeaker
ryu/services/protocols/bgp/bgp_sample_conf.py:1:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
import os
ryu/services/protocols/bgp/bgp_sample_conf.py:3:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V4
ryu/services/protocols/bgp/bgp_sample_conf.py:4:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import RF_VPN_V6
ryu/services/protocols/bgp/bgp_sample_conf.py:5:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import RF_L2_EVPN
ryu/services/protocols/bgp/bgp_sample_conf.py:6:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
RF_VPNV4_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:7:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
RF_VPNV6_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:8:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
RF_L2VPN_FLOWSPEC
ryu/services/protocols/bgp/bgp_sample_conf.py:9:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import EVPN_MAX_ET
ryu/services/protocols/bgp/bgp_sample_conf.py:10:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
ESI_TYPE_LACP
ryu/services/protocols/bgp/bgp_sample_conf.py:11:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
ESI_TYPE_MAC_BASED
ryu/services/protocols/bgp/bgp_sample_conf.py:12:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_ETH_AUTO_DISCOVERY
ryu/services/protocols/bgp/bgp_sample_conf.py:13:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MAC_IP_ADV_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:14:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
TUNNEL_TYPE_VXLAN
ryu/services/protocols/bgp/bgp_sample_conf.py:15:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_MULTICAST_ETAG_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:16:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_ETH_SEGMENT
ryu/services/protocols/bgp/bgp_sample_conf.py:17:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
EVPN_IP_PREFIX_ROUTE
ryu/services/protocols/bgp/bgp_sample_conf.py:18:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_IPV4
ryu/services/protocols/bgp/bgp_sample_conf.py:19:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_IPV6
ryu/services/protocols/bgp/bgp_sample_conf.py:20:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_VPNV4
ryu/services/protocols/bgp/bgp_sample_conf.py:21:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_VPNV6
ryu/services/protocols/bgp/bgp_sample_conf.py:22:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_FAMILY_L2VPN
ryu/services/protocols/bgp/bgp_sample_conf.py:23:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_TA_SAMPLE
ryu/services/protocols/bgp/bgp_sample_conf.py:24:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_TA_TERMINAL
ryu/services/protocols/bgp/bgp_sample_conf.py:25:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_POP
ryu/services/protocols/bgp/bgp_sample_conf.py:26:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_PUSH
ryu/services/protocols/bgp/bgp_sample_conf.py:27:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_SWAP
ryu/services/protocols/bgp/bgp_sample_conf.py:28:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_RW_INNER
ryu/services/protocols/bgp/bgp_sample_conf.py:29:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_VLAN_RW_OUTER
ryu/services/protocols/bgp/bgp_sample_conf.py:30:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_TPID_TI
ryu/services/protocols/bgp/bgp_sample_conf.py:31:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
FLOWSPEC_TPID_TO
ryu/services/protocols/bgp/bgp_sample_conf.py:32:
RuntimeWarning: Parent module
'bgpspeaker.application' not found while handling absolute
import
from ryu.services.protocols.bgp.bgpspeaker import
REDUNDANCY_MODE_SINGLE_ACTIVE
API method core.start called with args: {'router_id':
'172.17.0.1', 'label_range':
(100,
100000), 'waiter': <ryu.lib.hub.Event object at 0xb59c38ac>,
'bgp_server_port': 179,
'local_as': 65001, 'allow_local_as_in_count': 0,
'refresh_stalepath_time': 0,
'cluster_id':
None, 'local_pref': 100, 'refresh_max_eor_time': 0}
Error creating socket: [Errno 13] Permission denied
Error creating socket: [Errno 97] Address family not supported
by protocol
hub: uncaught exception: Traceback (most recent call last):
File
"/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 60, in _launch
return func(*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/base.py",
line 255,
in start
self._run(*args, **kwargs)
File
"/usr/local/lib/python2.7/dist-packages/ryu/services/protocols/bgp/core.py",
line 235,
in _run
server_thread.wait()
AttributeError: 'NoneType' object has no attribute 'wait'
API method neighbor.create called with args: {'connect_mode':
'both',
'cap_mbgp_evpn': False,
'remote_as': 65002, 'cap_mbgp_vpnv6': True,
'cap_mbgp_l2vpnfs': False,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': True,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
'cap_enhanced_refresh':
False,
'peer_next_hop': None, 'password': None, 'ip_address':
'172.17.0.2',
'cap_mbgp_vpnv4fs':
False, 'cap_mbgp_vpnv4': True, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode':
'both',
'cap_mbgp_evpn': True,
'remote_as': 65001, 'cap_mbgp_vpnv6': False,
'cap_mbgp_l2vpnfs': False,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': False,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': False,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': False, 'is_route_server_client': False,
'cap_enhanced_refresh':
False,
'peer_next_hop': None, 'password': None, 'ip_address':
'172.17.0.3',
'cap_mbgp_vpnv4fs':
False, 'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': False}
API method neighbor.create called with args: {'connect_mode':
'both',
'cap_mbgp_evpn': False,
'remote_as': 65001, 'cap_mbgp_vpnv6': False,
'cap_mbgp_l2vpnfs': True,
'cap_four_octet_as_number': True, 'cap_mbgp_ipv6': False,
'is_next_hop_self': False,
'cap_mbgp_ipv4': True, 'cap_mbgp_ipv4fs': True,
'is_route_reflector_client': False,
'cap_mbgp_ipv6fs': True, 'is_route_server_client': False,
'cap_enhanced_refresh':
False,
'peer_next_hop': None, 'password': None, 'ip_address':
'172.17.0.4',
'cap_mbgp_vpnv4fs': True,
'cap_mbgp_vpnv4': False, 'cap_mbgp_vpnv6fs': True}
API method vrf.create called with args: {'import_rts':
['65001:100'],
'route_family': 'ipv4',
'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:100'],
'route_dist':
'65001:100'}
API method vrf.create called with args: {'import_rts':
['65001:150'],
'route_family': 'ipv6',
'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:150'],
'route_dist':
'65001:150'}
API method vrf.create called with args: {'import_rts':
['65001:200'],
'route_family': 'evpn',
'site_of_origins': None, 'multi_exit_disc': None,
'export_rts': ['65001:200'],
'route_dist':
'65001:200'}
API method vrf.create called with args: {'import_rts':
['65001:250'], 'route_family':
'ipv4fs', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts':
['65001:250'],
'route_dist': '65001:250'}
API method vrf.create called with args: {'import_rts':
['65001:300'], 'route_family':
'ipv6fs', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts':
['65001:300'],
'route_dist': '65001:300'}
API method vrf.create called with args: {'import_rts':
['65001:350'], 'route_family':
'l2vpnfs', 'site_of_origins': None, 'multi_exit_disc': None,
'export_rts':
['65001:350'],
'route_dist': '65001:350'}
API method network.add called with args: {'prefix':
'10.10.1.0/24
<http://10.10.1.0/24> <http://10.10.1.0/24>'}
API method prefix.add_local called with args: {'prefix':
'10.20.1.0/24
<http://10.20.1.0/24> <http://10.20.1.0/24>',
'next_hop': '172.17.0.1', 'route_dist': '65001:100',
'route_family': 'ipv4'}
API method network.add called with args: {'prefix':
'2001:db8:1::/64'}
API method prefix.add_local called with args: {'prefix':
'2001:db8:2::/64', 'next_hop':
'::ffff:172.17.0.1', 'route_dist': '65001:150',
'route_family': 'ipv6'}
API method evpn_prefix.add_local called with args:
{'route_type': 'eth_ad',
'redundancy_mode':
'single_active', 'ethernet_tag_id': 4294967295L, 'next_hop':
'0.0.0.0', 'route_dist':
'65001:200', 'esi': {'port_key': 100, 'type': 1, 'mac_addr':
'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with args: {'ip_addr':
'10.30.1.1',
'tunnel_type':
'vxlan', 'route_type': 'mac_ip_adv', 'ethernet_tag_id': 0,
'vni': 200, 'next_hop':
'172.17.0.1', 'route_dist': '65001:200', 'mac_addr':
'aa:bb:cc:dd:ee:ff', 'esi': 0}
API method evpn_prefix.add_local called with args:
{'route_type': 'multicast_etag',
'route_dist': '65001:200', 'next_hop': '0.0.0.0', 'ip_addr':
'10.40.1.1',
'ethernet_tag_id': 0}
API method evpn_prefix.add_local called with args:
{'route_type': 'eth_seg',
'route_dist':
'65001:200', 'next_hop': '0.0.0.0', 'ip_addr': '172.17.0.1',
'esi': {'local_disc': 100,
'type': 3, 'mac_addr': 'aa:bb:cc:dd:ee:ff'}}
API method evpn_prefix.add_local called with args:
{'ip_prefix': '10.50.1.0/24
<http://10.50.1.0/24>
<http://10.50.1.0/24>', 'route_type': 'ip_prefix',
'ethernet_tag_id': 0, 'next_hop':
'0.0.0.0', 'route_dist': '65001:200', 'gw_ip_addr':
'172.16.0.1', 'esi': 0}
API method flowspec.add called with args: {'rules':
{'icmp_code': 6, 'tcp_flags':
'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 | 24',
'packet_len': 1000,
'icmp_type': 0,
'port': '80 | 8000', 'src_port': '>=8500 & <=9000',
'dst_prefix': '10.60.1.0/24
<http://10.60.1.0/24>
<http://10.60.1.0/24>', 'dst_port': '>9000 & <9050',
'ip_proto': 6, 'src_prefix':
'172.17.0.0/24 <http://172.17.0.0/24>'
<http://172.17.0.0/24%27>},
'flowspec_family': 'ipv4fs', 'actions':
{'redirect': {'local_administrator': 100, 'as_number': 10},
'traffic_marking':
{'dscp': 24},
'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
API method flowspec.add_local called with args: {'rules':
{'icmp_code': 6, 'tcp_flags':
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'dscp': '22 |
24', 'packet_len': 1000,
'icmp_type': 0, 'port': '80 | 8000', 'src_port': '>=8500 &
<=9000', 'dst_prefix':
'10.70.1.0/24 <http://10.70.1.0/24> <http://10.70.1.0/24>',
'dst_port': '>9000 &
<9050', 'ip_proto': 6,
'src_prefix': '172.18.0.0/24 <http://172.18.0.0/24>'
<http://172.18.0.0/24%27>},
'flowspec_family': 'vpnv4fs',
'route_dist': '65001:250', 'actions': {'redirect':
{'local_administrator': 100,
'as_number':
10}, 'traffic_marking': {'dscp': 24}, 'traffic_rate':
{'rate_info': 100.0,
'as_number': 0},
'traffic_action': {'action': 3}}}
API method flowspec.add called with args: {'rules':
{'icmp_code': 6, 'tcp_flags':
'SYN+ACK &
!=URGENT', 'fragment': 'LF | ==FF', 'flow_label': 100, 'dscp':
'22 | 24',
'packet_len': 1000,
'icmp_type': 0, 'port': '80 | 8000', 'src_port': '>=8500 &
<=9000', 'dst_prefix':
'2001::1/128/32', 'dst_port': '>9000 & <9050', 'next_header':
6, 'src_prefix':
'3001::2/128'},
'flowspec_family': 'ipv6fs', 'actions': {'redirect':
{'local_administrator': 100,
'as_number':
10}, 'traffic_marking': {'dscp': 24}, 'traffic_rate':
{'rate_info': 100.0,
'as_number': 0},
'traffic_action': {'action': 3}}}
API method flowspec.add_local called with args: {'rules':
{'icmp_code': 6, 'tcp_flags':
'SYN+ACK & !=URGENT', 'fragment': 'LF | ==FF', 'flow_label':
100, 'dscp': '22 | 24',
'packet_len': 1000, 'icmp_type': 0, 'port': '80 | 8000', 'src_port':
'>=8500 & <=9000',
'dst_prefix': '2001::1/128/32', 'dst_port': '>9000 & <9050',
'next_header': 6,
'src_prefix':
'3001::2/128'}, 'flowspec_family': 'vpnv6fs', 'route_dist':
'65001:300', 'actions':
{'redirect': {'local_administrator': 100, 'as_number': 10},
'traffic_marking':
{'dscp': 24},
'traffic_rate': {'rate_info': 100.0, 'as_number': 0},
'traffic_action': {'action': 3}}}
API method flowspec.add_local called with args: {'rules':
{'inner_vlan_id': '<3000',
'dst_mac': 'BE:EF:C0:FF:EE:DD', 'ether_type': 2048,
'llc_dsap': 66,
'inner_vlan_cos': '<=5',
'vlan_id': '>4000', 'llc_ssap': 66, 'vlan_cos': '>=3',
'llc_control': 100, 'snap':
74565,
'src_mac': '12:34:56:78:90:AB'}, 'flowspec_family': 'l2vpnfs',
'route_dist':
'65001:350',
'actions': {'redirect': {'local_administrator': 100,
'as_number': 10}, 'traffic_rate':
{'rate_info': 100.0, 'as_number': 0}, 'traffic_action':
{'action': 3},
'traffic_marking':
{'dscp': 24}, 'tpid_action': {'tpid_2': 300, 'tpid_1': 200,
'actions': 49152},
'vlan_action':
{'cos_1': 3, 'vlan_1': 3000, 'vlan_2': 4000, 'cos_2': 2,
'actions_1': 192,
'actions_2': 32}}}
starting ssh server at localhost:4990
Error creating socket: [Errno 97] Address family not supported
by protocol
Pls point out the problem in my environment
Thanks
Hadem
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!http://sdm.link/slashdot
<http://sdm.link/slashdot>
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
<mailto:Ryu-devel@lists.sourceforge.net>
<mailto:Ryu-devel@lists.sourceforge.net
<mailto:Ryu-devel@lists.sourceforge.net>>
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
<https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net <mailto:Ryu-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel