Closed lpailhas closed 3 months ago
Hi @lpailhas yeah, this is likely cause by the install step
I think you can remove the make.install make include from the make file.
@kaelemc, maybe we should document this and make it configurable (make INSTALL=false
)
@lpailhas You should be able to use the mac-address
command under the interface configuration I believe?
Another work around is to attach the launch.py
and/or vrnetlab.py
for each node, which in theory should dynamically generate different MACs for each node on boot.
name: dev
topology:
nodes:
xrv:
kind: cisco_xrv9k
image: vrnetlab/vr-xrv9k:7.7.1
binds:
- /path/to/vrnetlab/common/vrnetlab.py:/vrnetlab.py
- /path/to/vrnetlab/xrv9k/docker/launch.py:/launch.py
Remember that removing the install step and rebuilding the image will mean your node boot times will greatly increase (around 10-20 minutes or more).
@hellt Yes I agree, we should add and document this to make it easier for users..
Nevermind, I misinterpreted the issue. My suggested fixes will not work. On each launch each node interface gets a randomly generated MAC address regardless. It just looks like the macpool is burnt in on install.
@lpailhas I'm unable to test, but if you try in admin
mode
activate advanced
conf t
virtual-macaddr-range
and then perform reload
you should be able to change the macpool. Although this would not be persistent and whenever the topology is recreated you'd have to perform this.
It might just be easier to follow @hellt suggestion.
@kaelemc, I tried you command and execute reload of all locations but this didn't work, i still have the same macpool for chassis 0.
I'm sad of this, preinstall was a big improvement for me...
Yes, it is a shame. Unfortunately I think this is just something that the xrv9k hard codes during the install process.
it looks like in #239 the installation step becomes an option. The readme has been updated
thanks @kaelemc
@lpailhas you may want to give it a go
Hey,
Since xvr9k are preinstalled during vrnetlab packaging, all xrv9k container based from this image have the same macpool used for Bundle interfaces and ipv6 link-local addresses associated to theses bundles. Probably other things are impacted.
This cause some issues, for exemple when two devices using the same bundle id between them, we have the same system ID, lag doesn't going up.
I didn't found way to edit this mac pool post install... Issue detected in version 7.11.2.