{"action":"created","issue":{"url":"https://api.github.com/repos/troglobit/smcroute/issues/36","repository_url":"https://api.github.com/repos/troglobit/smcroute","labels_url":"https://api.github.com/repos/troglobit/smcroute/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/troglobit/smcroute/issues/36/comments","events_url":"https://api.github.com/repos/troglobit/smcroute/issues/36/events","html_url":"https://github.com/troglobit/smcroute/issues/36","id":156482960,"number":36,"title":"Daemon error: Failed adding VIF for iface eth1: Cannot assign the requested address","user":{"login":"spyhunter99","id":1975321,"avatar_url":"https://avatars.githubusercontent.com/u/1975321?v=3","gravatar_id":"","url":"https://api.github.com/users/spyhunter99","html_url":"https://github.com/spyhunter99","followers_url":"https://api.github.com/users/spyhunter99/followers","following_url":"https://api.github.com/users/spyhunter99/following{/other_user}","gists_url":"https://api.github.com/users/spyhunter99/gists{/gist_id}","starred_url":"https://api.github.com/users/spyhunter99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyhunter99/subscriptions","organizations_url":"https://api.github.com/users/spyhunter99/orgs","repos_url":"https://api.github.com/users/spyhunter99/repos","events_url":"https://api.github.com/users/spyhunter99/events{/privacy}","received_events_url":"https://api.github.com/users/spyhunter99/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2016-05-24T11:23:32Z","updated_at":"2016-05-27T20:58:11Z","closed_at":"2016-05-27T20:58:11Z","body":"Not sure what's going on here. I have a centos machine with 2 network cards on 2 different networks and my goal is to use this computer as a router between the 2 networks (network A 192.168.1.0/24 and network B 10.1.1.0/24). The machines are connected via a simple unmanaged switch (there's no router in the picture besides the cenos machine with 2 nics). I've already setup and have basic routing (ping, udp, tcp, etc) between the 2 networks. \r\n\r\nI think smcroute is the right solution to route multicast traffic produced from network A to network B. (is it?)\r\n\r\niptables is cleared and stopped on all 3 machines in the picture\r\n\r\nLong story short, my smcroute.conf look like this\r\n````\r\nphyint eth0 enable ttl-threshold 11\r\nphyint eth1 enable ttl-threshold 11\r\n\r\nmgroup from eth0 group 224.0.1.1\r\nmroute from eth0 group 224.0.1.1 to eth1\r\n\r\nmgroup from eth1 group 224.0.1.1\r\nmroute from eth1 group 224.0.1.1 to eth0\r\n````\r\n\r\nAfter saving and starting the daemon, I don't get any errors to stdout. At this point multicast traffic is still not being routed. So I issued the following command\r\n````\r\nsmcroute -j eth0 224.0.1.1\r\nSending commands....Daemon error: Failed adding VIF for iface eth1: Cannot assign the requested address\r\n````\r\nwhich is where i get the error message on the subject line.\r\n\r\nQuestion, is smcroute the right tool for what I'm trying to accomplish? if so, what am I doing wrong (in terms the error message) and what else do i need to do in order to get this setup working?"},"comment":{"url":"https://api.github.com/repos/troglobit/smcroute/issues/comments/222251648","html_url":"https://github.com/troglobit/smcroute/issues/36#issuecomment-222251648","issue_url":"https://api.github.com/repos/troglobit/smcroute/issues/36","id":222251648,"user":{"login":"spyhunter99","id":1975321,"avatar_url":"https://avatars.githubusercontent.com/u/1975321?v=3","gravatar_id":"","url":"https://api.github.com/users/spyhunter99","html_url":"https://github.com/spyhunter99","followers_url":"https://api.github.com/users/spyhunter99/followers","following_url":"https://api.github.com/users/spyhunter99/following{/other_user}","gists_url":"https://api.github.com/users/spyhunter99/gists{/gist_id}","starred_url":"https://api.github.com/users/spyhunter99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spyhunter99/subscriptions","organizations_url":"https://api.github.com/users/spyhunter99/orgs","repos_url":"https://api.github.com/users/spyhunter99/repos","events_url":"https://api.github.com/users/spyhunter99/events{/privacy}","received_events_url":"https://api.github.com/users/spyhunter99/received_events","type":"User","site_admin":false},"created_at":"2016-05-27T20:58:10Z","updated_at":"2016-05-27T20:58:10Z","body":"ok great news, i was able to resolve all the issues on bare metal. For future readers\r\ncentos6 works with smcroute 2.0.0\r\n\r\nthese are needed since i'm using centos as a software router\r\n/etc/sysctl.conf\r\n\r\n````\r\nnet.ipv4.conf.default.rp_filter=2\r\nnet.ipv4.ip_forward=1\r\n````\r\n\r\n/etc/smcroute.conf\r\n````\r\nmroute from eth1 group 224.0.1.1 to eth2\r\n````\r\n\r\nstart smcroute \r\n\r\n````\r\n./smcroute -d\r\n````\r\n\r\n\r\n`netstat -gn` will not show multicast group membership unless you explicit need to join the that group for some reason, however the routing still works.\r\n\r\nThe final issue i have had was that when i add a pipeline for dummynet, smc stops routing traffic. In fact, all traffic was blocked. Turns out that dummynet behaves differently when the computer is configured as a router. \r\n\r\n`ipfw add pipe 1 ip from any to any`\r\nno multicast routing\r\n`ipfw flush`\r\nmulticast routing is restored\r\n\r\nthe solution was to add an explicit allow rule for dummynet, which is also a firewall.\r\n`ipfw add 100 allow all from any to any`\r\n\r\nIn my case I had to play around with the number to get it equal to the rule sets for traffic shaping. Not sure why but that did the trick.\r\n\r\nThanks again for your help!"}}
{"actor":{"display_login":"spyhunter99"}}