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

switch configuration for bridging or routing by Linux commands #20

Closed
jimmymagemtek opened this issue Sep 6, 2018 · 3 comments
Closed
Assignees
Labels

Comments

@jimmymagemtek
Copy link

Does Linux commands (like brctl addbr, or ip route) will let the underlying switch silicon perform bridging or routing ? How can OPX help it ?

Thanks.

@atanu-mandal
Copy link

Hi @jimmymagemtek , yes,OPX would propagate the information configured through Linux utilities like brctl addbr, ip route to underlying switch silicon. There is few restrictions like bridge (i.e. vlan) has to have one tagged port to be programmed into NPU.

e,g. below configuration will program the NPU with VLAN 100 (e101-001-0 as tagged member)

brctl addbr br100

ip addr flush dev e101-001-0

ip link add link e101-001-0 name e101-001-0.100 type vlan id 100

brctl addif br100 e101-001-0.100

Thanks,
-Atanu

@q2dg
Copy link

q2dg commented Feb 21, 2019

Current configuration guide (http://archive.openswitch.net/docs/3.0.0/openswitch_opx_300_config_guide.pdf) shows the use of ifconfig command. Maybe you could consider its deprecation state.
Moreover, you could consider replacing brctl command (which is deprecated, too, at least in Fedora) by bridge command (from iproute suite)
Thanks

@jeff-yin
Copy link
Member

Opened #25 to track this.

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

No branches or pull requests

5 participants