Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
emulab-devel
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
emulab
emulab-devel
Commits
bffd5ebe
Commit
bffd5ebe
authored
20 years ago
by
Robert Ricci
Browse files
Options
Downloads
Patches
Plain Diff
Added notes on porting switchmac, previously sent to Keith Sklower @
Berkeley in email.
parent
3ca16939
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/snmpit-internals.txt
+26
-0
26 additions, 0 deletions
doc/snmpit-internals.txt
with
26 additions
and
0 deletions
doc/snmpit-internals.txt
+
26
−
0
View file @
bffd5ebe
...
@@ -240,3 +240,29 @@ not possible to do through SNMP something we'd been doing for years.
...
@@ -240,3 +240,29 @@ not possible to do through SNMP something we'd been doing for years.
You can, of course, try out the OIDs we use in snmpit_cisco and snmpit_intel -
You can, of course, try out the OIDs we use in snmpit_cisco and snmpit_intel -
some of them may be supported on your switch.
some of them may be supported on your switch.
#####
##### switchmac
#####
wwitchmac is a script, used at installation time, to print out all the MAC
adresses a switch has learned, and what ports they're on. The idea is to
eliminate the need for the testbed administrators to manually enter which nodes
are connected to which ports on which switches.
The stuff in this should be pretty standard - ie. this script has support for
Intel, Nortel, and Cisco switches, and I suspect that one of these should work
pretty similarly to whatever switch you're trying to port it to.
In your switch vendor's documentation, take a look for the dot1dTpFdbTable in
the BRIDGE-MIB (which is a standard one.)
The main ickiness in this script is something called 'Community String
Indexing' - see, the MIB is designed for switches that store one MAC table that
is VLAN-independant (ie. you can't use the same MAC in two different VLANs at
once.) Cisco keeps a MAC table per-VLAN. So, the way they get around this is to
change the community string you use to get access to the MAC table for each
VLAN. So, if your community string is 'public', and you want to look at the
MAC table for VLAN 42, you talk to the switch with the community string
'public@42'. Terrible. I don't know if other switch vendors use this same hack,
or if they will have some other hack of their own.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment