Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vEOS MLAG won't come up due to auto generated mac addresses #276

Open
nanisyako opened this issue Nov 15, 2021 · 3 comments
Open

vEOS MLAG won't come up due to auto generated mac addresses #276

nanisyako opened this issue Nov 15, 2021 · 3 comments

Comments

@nanisyako
Copy link

nanisyako commented Nov 15, 2021

it seems auto-generated macs causing mlag issues:

GNS3/gns3-gui#2475

I tried to change that in /vrnetlab/veos/docker/vrnetlab.py

def gen_mac(last_octet=None):
""" Generate a random MAC address that is in the qemu OUI space and that
has the given last octet.
"""
return "0C:54:00:%02x:%02x:%02x" % (
random.randint(0x00, 0xff),
random.randint(0x00, 0xff),
last_octet
)

but somehow after running "make" it returns to the original value and the device booted from that image still has the macs that start with 52:54 instead of 0C:54 . I think after running make, the docker image installs a new vrnetlab.py

@nanisyako
Copy link
Author

@monrad , could you have a look please?

@plajjan
Copy link
Collaborator

plajjan commented Nov 15, 2021

vrnetlab.py is copied in from common/vrnetlab.py by the Makefiles so you would need to modify common/vrnetlab.py or the better way is to override the gen_mac function specifically for veos.

@nanisyako
Copy link
Author

Awesome, thanks a lot, @plajjan. Yeap, that fixed it. Once I figure out how to selectively do it for vEOS, I can create a pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants