Forum Discussion
Mac-address Field
Hi,
I want to know that can i add the mac-address field in F5 header. if this is possible kindly guide me in that. ?
5 Replies
- Leonardo_Souza
Cirrocumulus
Depends with protocol you want to add the information. HTTP is easy, as you can add custom headers like is common done to add the source IP.
 
HTTP::header insert X-Forwarded-For [IP::remote_addr] 
https://clouddocs.f5.com/api/irules/http__header.html
 
For UDP or TCP read this question/answers:
 
https://devcentral.f5.com/s/feed/0D51T00006i7elUSAQ
 
- faizan123_23330
Nimbostratus
this is for the remote ip address. Can we add the remote mac-address field in the F5 header?
- Leonardo_Souza
Cirrocumulus
What do you mean by F5 header?
- Leonardo_Accor1
Nimbostratus
Depending on network design may be that F5 can't know the remote MAC ADDRESS, because MAC is related to LAYER 2. ES: If the F5 and remote host are on different VLANS, F5 can't know remote MAC address. Moreover i guess that don't exist a iRule command to catch remote MAC ADDRESS, so you would create a separate script (es iCall script) to enetually catch this information. I guess is a great effort.
Leonardo
- Jinshu
Cirrus
You can insert the mac address of 'last-hop' and 'next-hop' using the LINK command.
Please read below wiki for more details.
https://devcentral.f5.com/wiki/iRules.LINK.ashx
-Jinshu
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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