{"action":"created","issue":{"url":"https://api.github.com/repos/vincentbernat/lldpd/issues/131","labels_url":"https://api.github.com/repos/vincentbernat/lldpd/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/vincentbernat/lldpd/issues/131/comments","events_url":"https://api.github.com/repos/vincentbernat/lldpd/issues/131/events","html_url":"https://github.com/vincentbernat/lldpd/issues/131","id":100771038,"number":131,"title":"lldp under ubuntu VM, not sending lldp packets.","user":{"login":"AJNOURI","id":1716020,"avatar_url":"https://avatars.githubusercontent.com/u/1716020?v=3","gravatar_id":"","url":"https://api.github.com/users/AJNOURI","html_url":"https://github.com/AJNOURI","followers_url":"https://api.github.com/users/AJNOURI/followers","following_url":"https://api.github.com/users/AJNOURI/following{/other_user}","gists_url":"https://api.github.com/users/AJNOURI/gists{/gist_id}","starred_url":"https://api.github.com/users/AJNOURI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AJNOURI/subscriptions","organizations_url":"https://api.github.com/users/AJNOURI/orgs","repos_url":"https://api.github.com/users/AJNOURI/repos","events_url":"https://api.github.com/users/AJNOURI/events{/privacy}","received_events_url":"https://api.github.com/users/AJNOURI/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-13T13:37:13Z","updated_at":"2015-08-13T15:58:27Z","closed_at":null,"body":"I have issue make lldp send packets under ubuntu vm\r\n\r\nlldp & cdp protocols enabled \r\n\r\n**lldpd -c -dd**\r\n>2015-08-13T11:12:36 [INFO/main] protocol LLDP enabled\r\n>2015-08-13T11:12:36 [INFO/main] protocol CDPv1 enabled\r\n>2015-08-13T11:12:36 [INFO/main] protocol CDPv2 enabled\r\n>2015-08-13T11:12:36 [INFO/main] protocol SONMP disabled\r\n>2015-08-13T11:12:36 [INFO/main] protocol EDP disabled\r\n>2015-08-13T11:12:36 [INFO/main] protocol FDP disabled\r\n>2015-08-13T11:12:36 [INFO/event] libevent 2.0.21-stable initialized with epoll method\r\n>2015-08-13T11:12:36 [INFO/lldpctl] cannot find configuration file/directory /etc/lldpd.conf\r\n>2015-08-13T11:12:36 [INFO/lldpctl] cannot find configuration file/directory /etc/lldpd.d\r\n>2015-08-13T11:12:36 [INFO/localchassis] change detected for port eth0, resetting its timer\r\n>2015-08-13T11:12:36 [INFO/localchassis] change detected for port eth1, resetting its timer\r\n>2015-08-13T11:12:36 [INFO/lldpctl] lldpd should resume operations\r\n>\r\nThe host is connected to 3 Cisco routers through a host bridge interface\r\nOnly one out of 3 devices is detected in ubuntu\r\n\r\n***lldpctl***\r\n>LLDP neighbors:\r\n> \r\n>Interface:    eth1, via: LLDP, RID: 2, Time: 0 day, 00:00:20\r\n>  Chassis:     \r\n>    ChassisID:    mac aa:bb:cc:00:01:00\r\n>    SysName:      IOU1\r\n>    SysDescr:     Cisco IOS Software, Linux Software (I86BI_LINUX-ADVENTERPRISEK9-M), Version >15.2(2.15)T, ENGINEERING WEEKLY BUILD, synced to V151_4_M3_5\r\n>Copyright (c) 1986-2012 by Cisco Systems, Inc.\r\n>Compiled Sun 29-Jan-12 02:33 by \r\n>    MgmtIP:       192.168.11.100\r\n>    Capability:   Bridge, off\r\n>    Capability:   Router, on\r\n>  Port:        \r\n>    PortID:       ifname Et0/0\r\n>    PortDescr:    Ethernet0/0\r\n> \r\n># \r\n\r\nWireshark shows lldp traffic from one Cisco routers and nothing from ubuntu\r\n[Wireshark capture](https://drive.google.com/file/d/0BzYXUSsUVFR_d0tSSWVXYm9oeTQ/view?usp=sharing)\r\n\r\n**lldpcli**\r\n>[lldpcli] $ show configuration \r\n>\r\n>Global configuration:\r\n>\r\n>Configuration:\r\n>  Transmit delay: 30\r\n>  Transmit hold: 4\r\n>  Receive mode: no\r\n>  Pattern for management addresses: (none)\r\n>  Interface pattern: (none)\r\n>  Interface pattern for chassis ID: (none)\r\n>  Override description with: (none)\r\n>  Override platform with: (none)\r\n>  Advertise version: yes\r\n>  Update interface descriptions: no\r\n>  Disable LLDP-MED inventory: yes\r\n>  LLDP-MED fast start mechanism: yes\r\n>  LLDP-MED fast start interval: 1\r\n>  Source MAC for LLDP frames on bond slaves: fixed\r\n>\r\n>[lldpcli] $ \r\n\r\nThrough, eth1 shows lldp being sent\r\n\r\nEven when forcing updates, nothing shown from the linux host outside\r\n\r\n**lldpd update**\r\n\r\nAll cisco 3 routers see each other:\r\n>IOU1#show cdp neighbors \r\n>Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge\r\n>                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone, \r\n>                  D - Remote, C - CVTA, M - Two-port Mac Relay \r\n>\r\n>Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID\r\n>IOU3             Eth 0/0            172              R    Linux Uni Eth 0/0\r\n>IOU2             Eth 0/0            148              R    Linux Uni Eth 0/0\r\n>IOU1#\r\n"},"comment":{"url":"https://api.github.com/repos/vincentbernat/lldpd/issues/comments/130738139","html_url":"https://github.com/vincentbernat/lldpd/issues/131#issuecomment-130738139","issue_url":"https://api.github.com/repos/vincentbernat/lldpd/issues/131","id":130738139,"user":{"login":"vincentbernat","id":631446,"avatar_url":"https://avatars.githubusercontent.com/u/631446?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentbernat","html_url":"https://github.com/vincentbernat","followers_url":"https://api.github.com/users/vincentbernat/followers","following_url":"https://api.github.com/users/vincentbernat/following{/other_user}","gists_url":"https://api.github.com/users/vincentbernat/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentbernat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentbernat/subscriptions","organizations_url":"https://api.github.com/users/vincentbernat/orgs","repos_url":"https://api.github.com/users/vincentbernat/repos","events_url":"https://api.github.com/users/vincentbernat/events{/privacy}","received_events_url":"https://api.github.com/users/vincentbernat/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T15:58:27Z","updated_at":"2015-08-13T15:58:27Z","body":" ❦ 13 août 2015 08:50 -0700, AJ NOURI <notifications@github.com> :\n\n> $ cat /sys/class/net/br1/bridge/group_fwd_mask\n>\n>     0x0\n>\n> $ uname -a\n>\n>     Linux gns3-iouvm 3.13.0-61-generic #100-Ubuntu SMP Wed Jul 29\n>     11:21:34 UTC 2015 x86_64 x86_64 >x86_64 GNU/Linux\n\nThe code handling forwarding is here:\n http://lxr.free-electrons.com/source/net/bridge/br_input.c?v=3.13#L178\n\nAnd in your case, I don't see why LLDP traffic is forwarded.\n\nHowever, assuming that it is in fact forwarded, I think that your Ubuntu\ncontainer is receiving 3 CDP frames but only one LLDP (maybe LLDP is\ndisabled on two of the IOU instances?) and in this case, only the LLDP\none is displayed (because the 3 CDP ones are assumed to come from a\nleaky switch).\n\n`show neighbors hidden` should show you the 3 IOU.\n-- \nMake sure special cases are truly special.\n            - The Elements of Programming Style (Kernighan & Plauger)\n"}}