{"action":"created","issue":{"url":"https://api.github.com/repos/gopher-net/ipvlan-docker-plugin/issues/27","repository_url":"https://api.github.com/repos/gopher-net/ipvlan-docker-plugin","labels_url":"https://api.github.com/repos/gopher-net/ipvlan-docker-plugin/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/gopher-net/ipvlan-docker-plugin/issues/27/comments","events_url":"https://api.github.com/repos/gopher-net/ipvlan-docker-plugin/issues/27/events","html_url":"https://github.com/gopher-net/ipvlan-docker-plugin/issues/27","id":133867138,"number":27,"title":"need help for Ipvlan L3 mode !!!","user":{"login":"prateekgogia","id":5033759,"avatar_url":"https://avatars.githubusercontent.com/u/5033759?v=3","gravatar_id":"","url":"https://api.github.com/users/prateekgogia","html_url":"https://github.com/prateekgogia","followers_url":"https://api.github.com/users/prateekgogia/followers","following_url":"https://api.github.com/users/prateekgogia/following{/other_user}","gists_url":"https://api.github.com/users/prateekgogia/gists{/gist_id}","starred_url":"https://api.github.com/users/prateekgogia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prateekgogia/subscriptions","organizations_url":"https://api.github.com/users/prateekgogia/orgs","repos_url":"https://api.github.com/users/prateekgogia/repos","events_url":"https://api.github.com/users/prateekgogia/events{/privacy}","received_events_url":"https://api.github.com/users/prateekgogia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-16T02:33:54Z","updated_at":"2016-03-08T03:13:02Z","closed_at":"2016-02-23T03:09:32Z","body":"Hi \r\n\r\nI added this comment originally in #6. I am opening this as a new issue, since, the title for that bug is different. Can someone guide me through this, I am not sure what am I missing. \r\n\r\nI am still seeing this error when trying to use ipvlan in L3 mode. I have added disable default gw setting in docker network create command as well.\r\ndocker: Error response from daemon: Cannot start container 2dcb35966fcce550050fbe0e781c7328e94a6cd68953536e68cc1a9c375c253f: [9] System error: failed to set gateway while updating gateway: file exists.\r\n\r\nSteps:\r\n## *Step 1 *- Run ipvlan binary:\r\n./ipvlan-docker-plugin-0.2-Linux-x86_64 -d --mode=\"l3\" --ipvlan-subnet=\"192.169.57/24\" --host-interface=\"enp0s3\" --gateway=\"192.169.57.1\"&\r\n\r\n## Step 2 - Create Docker network:\r\ndocker network create -d ipvlan --subnet=192.169.57.0/24 --gateway=192.169.57.1 -o host_iface=enp0s3 -o mode=l3 -o com.docker.network.driver.disable_default_gateway net1\r\n\r\nDEBU[0015] Network Create Called: [ {NetworkID:5a6c6ff0a97e9cf712165a6670445b55995c232e7528e521ae0a2f44f3ebaf48 Options:map[com.docker.network.generic:map[com.docker.network.driver.disable_default_gateway: host_iface:enp0s3 mode:l3]] IpV4Data:[{AddressSpace: Pool:192.169.57.0/24 Gateway:192.169.57.1/24 AuxAddresses:map[]}] ipV6Data:[]} ]\r\nDEBU[0015] Libnetwork Opts Sent: [ com.docker.network.driver.disable_default_gateway ] Value: [ ]\r\nDEBU[0015] Libnetwork Opts Sent: [ host_iface ] Value: [ enp0s3 ]\r\nDEBU[0015] Libnetwork Opts Sent: [ mode ] Value: [ l3 ]\r\nDEBU[0015] Ipvlan mode is L3 [ l3 ]\r\nDEBU[0015] Adding route for the local ipvlan subnet [ 192.169.57.0/24 ] in the default namespace using the specified host interface [ enp0s3]\r\n\r\n## Step 3: Start the contaiener, this is where it fails -\r\ndocker run --net=net1 -it --rm myubuntu bash DEBU[0019] The container subnet for this context is [ 192.169.57.2/24 ]\r\nINFO[0019] Allocated container IP: [ 192.169.57.2/24 ]\r\nDEBU[0019] Create endpoint response: &{Interface:{Address: AddressIPv6: MacAddress:7a:42:00:00:00:00}}\r\nDEBU[0019] Create endpoint 1410ccd52f0b32401bebf404caedb68a3753613d302d917d48886f9b624f6cb5 &{Interface:{Address: AddressIPv6: MacAddress:7a:42:00:00:00:00}}\r\nDEBU[0019] Join request: &{NetworkID:5a6c6ff0a97e9cf712165a6670445b55995c232e7528e521ae0a2f44f3ebaf48 EndpointID:1410ccd52f0b32401bebf404caedb68a3753613d302d917d48886f9b624f6cb5 SandboxKey:/var/run/docker/netns/0add445bda28 Options:map[]}\r\nINFO[0019] Created ipvlan link: [ 1410c ] with a mode: [ l3 ]\r\nDEBU[0019] Join response: &{Gateway: InterfaceName:{SrcName:1410c DstName: DstPrefix:eth} StaticRoutes:[0xc8201ab830] DisableGatewayService:false}\r\nDEBU[0019] Join endpoint 5a6c6ff0a97e9cf712165a6670445b55995c232e7528e521ae0a2f44f3ebaf48:1410ccd52f0b32401bebf404caedb68a3753613d302d917d48886f9b624f6cb5 to /var/run/docker/netns/0add445bda28\r\nDEBU[0020] Leave request: &{NetworkID:5a6c6ff0a97e9cf712165a6670445b55995c232e7528e521ae0a2f44f3ebaf48 EndpointID:1410ccd52f0b32401bebf404caedb68a3753613d302d917d48886f9b624f6cb5 Options:map[]}\r\nDEBU[0020] Leave 5a6c6ff0a97e9cf712165a6670445b55995c232e7528e521ae0a2f44f3ebaf48:1410ccd52f0b32401bebf404caedb68a3753613d302d917d48886f9b624f6cb5\r\nDEBU[0020] Delete endpoint request: &{NetworkID:5a6c6ff0a97e9cf712165a6670445b55995c232e7528e521ae0a2f44f3ebaf48 EndpointID:1410ccd52f0b32401bebf404caedb68a3753613d302d917d48886f9b624f6cb5}\r\nDEBU[0020] Delete endpoint 1410ccd52f0b32401bebf404caedb68a3753613d302d917d48886f9b624f6cb5\r\nDEBU[0020] The requested interface to delete [ 1410c ] was not found on the host: route ip+net: no such network interface\r\nERRO[0020] The requested interface to delete [ 1410c ] was not found on the host.\r\ndocker: Error response from daemon: Cannot start container 2dcb35966fcce550050fbe0e781c7328e94a6cd68953536e68cc1a9c375c253f: [9] System error: failed to set gateway while updating gateway: file exists.\r\n\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/gopher-net/ipvlan-docker-plugin/issues/comments/193580673","html_url":"https://github.com/gopher-net/ipvlan-docker-plugin/issues/27#issuecomment-193580673","issue_url":"https://api.github.com/repos/gopher-net/ipvlan-docker-plugin/issues/27","id":193580673,"user":{"login":"nerdalert","id":1711674,"avatar_url":"https://avatars.githubusercontent.com/u/1711674?v=3","gravatar_id":"","url":"https://api.github.com/users/nerdalert","html_url":"https://github.com/nerdalert","followers_url":"https://api.github.com/users/nerdalert/followers","following_url":"https://api.github.com/users/nerdalert/following{/other_user}","gists_url":"https://api.github.com/users/nerdalert/gists{/gist_id}","starred_url":"https://api.github.com/users/nerdalert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nerdalert/subscriptions","organizations_url":"https://api.github.com/users/nerdalert/orgs","repos_url":"https://api.github.com/users/nerdalert/repos","events_url":"https://api.github.com/users/nerdalert/events{/privacy}","received_events_url":"https://api.github.com/users/nerdalert/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T03:13:02Z","updated_at":"2016-03-08T03:13:02Z","body":"He @prateekgogia wanted to update with these notes. If you test it out and have any issues or use cases it doesn't solve don't hesitate to ping. [Macvlan, Ipvlan and 802.1q Trunk Driver Notes](https://gist.github.com/nerdalert/c0363c15d20986633fda#getting-started) \r\nThanks!"}}