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

How to modify FRRouting configuration file settings? #129

Open
N26121965 opened this issue Mar 12, 2024 · 3 comments
Open

How to modify FRRouting configuration file settings? #129

N26121965 opened this issue Mar 12, 2024 · 3 comments

Comments

@N26121965
Copy link

Hello I am new to ipmininet. I want to know how to use VTY shell to view the configuration of each router in a simple topology. I tried the example file static_routing.py. Whenever I access the CLI of any router and use vtysh, it always shows the configuration file of the router with the highest number. I would like to know how to change this so that each router corresponds to its own configuration file and can display and perform routing operations.
r1.addDaemon(STATIC, static_routes=[StaticRoute("2042:2b::/64", "2042:12::2"), StaticRoute("10.62.0.0/24", "10.12.0.2")]) r2.addDaemon(STATIC, static_routes=[StaticRoute("2042:1a::/64", "2042:12::1"), StaticRoute("10.51.0.0/24", "10.12.0.1")])
The image below shows that I have opened the terminal for router r1 and used vtysh, but it is displaying the routing information for r2.

q

@jadinm
Copy link
Collaborator

jadinm commented Mar 13, 2024

Hello,

FRRouting's vtysh command line is using unix sockets under /var/run/frr according to https://docs.frrouting.org/en/latest/vtysh.html#permissions-and-setup-requirements
But the unix sockets are not saved there by IPMininet
If you haven't changed the location, it's in /tmp/<node_name>
FYI, its location and name is set by

def zebra_socket(self):
"""Return the path towards the zebra API socket for the given node"""
return os.path.join(self._node.cwd,
'%s_%s.api' % ('quagga', self._node.name))

I am unfamiliar with vtysh configuration and cannot advise you on the best way to configure it to accommodate a different location and names
If you have time to do it, I am open to PR making IPMininet compatible with FRRouting's vtysh command line :-)

In any case, you can still connect to the daemons without the tool by using telnet as shown in the documentation of the examples: https://github.com/cnp3/ipmininet/blob/72cefde536ca02c650875d4b14d93899824af668/ipmininet/examples/README.md

@N26121965
Copy link
Author

Thanks for your help! I will try using telnet first.

@abazh
Copy link

abazh commented Jun 27, 2024

Using vtysh to configure an integrated configuration (frr.conf) is convenient. How to enable it?

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

3 participants