Forum Discussion
Julian_Grunnell
Nimbostratus
Jul 11, 2008LINK::vlan_id + tcpdump
Hi - hoping there's a simple answer to this, but I was mucking around with the iRule that "when CLIENT_ACCEPTED" logs the vlan_id via [LINK::vlan_id], this appears to work BUT why does the vlan_id get...
JRahm
Admin
Jul 11, 2008I'm on 9.4.3 HF2, and I don't see that issue. Perhaps one of your vlanID's overlaps the vlangroupID, and that's why the locally-unique bit is being set? Anyway, you can strip that bit off:
when CLIENT_ACCEPTED {
log local0. "VLAN ID as is: [LINK::vlan_id]"
log local0. "VLAN ID as desired: [expr 0x[format %x [LINK::vlan_id]] & 0xdfff]"
}
Here's the log output from my test box:
Jul 11 09:11:12 Rule vlanidtest-rule: VLAN ID as is: 12285
Jul 11 09:11:12 Rule vlanidtest-rule: VLAN ID as desired: 4093
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects