Switches
reconfigure the switches¶
login/passwd¶
all 5 switches are configured identically in terms of login/passwd
workflow¶
here theswitchname is one of control, data, reboot, radio or c0007
push to faraday¶
change the config in the
switches/folder ofr2lab-misc(theswitch-theswitchname.conffile)make push-confto push (all) the configs onto faraday’s tftpboot/
push to the switch¶
log into the switch from faraday
ssh switch-theswitchnamefrom the switch’s repl, fetch the config file from faraday’s tftpboot/ folder
running-configallows to test the new config without rebooting the switchstartup-configis the one that will be used after a reboot
to do so:
on the
radioswitch, useoob_tftpinstead oftftp
# warning, on switch-radio we need to use oob_tftp (wtf?) # # copy oob_tftp://192.168.4.100/switch-radio.conf running-config # copy oob_tftp://192.168.4.100/switch-radio.conf startup-configon the other switches, uses
tftplike so
# once you have made a make push you can run from the switch something like e.g. # # copy tftp://192.168.4.100/switch-c007.conf running-config # copy tftp://192.168.4.100/switch-c007.conf startup-config # # copy tftp://192.168.4.100/switch-data.conf running-config # copy tftp://192.168.4.100/switch-data.conf startup-config # # copy tftp://192.168.4.100/switch-control.conf running-config # copy tftp://192.168.4.100/switch-control.conf startup-config # # copy tftp://192.168.4.100/switch-reboot.conf running-config # copy tftp://192.168.4.100/switch-reboot.conf startup-configstill from the switch, reload the config with
reload
save your work¶
once you’re happy, do not forget to save, commit and push
so that your changes will be available for the next change
misc notes¶
as of 2025 March, faraday can no longer ssh into the switches
# ssh switch-control ssh_dispatch_run_fatal: Connection to 192.168.4.103 port 22: error in libcryptothis appears to be due to an OS upgrade (fedora41) that comes with stricter security settings
in order to circumvent that, I did
update-crypto-policies --set LEGACYhere are a few relevant links;
there seemed to be no good way to tweak this only for a specific subset of nodes;
the most relevant recipe would have required to use a sentence likeOPENSSL_CONF=/var/tmp/openssl.cnf ssh rhel5or6-hostwhich, well, is not really practical in our case
Dell cheatsheet¶
hostnames¶
From faraday’s /etc/hosts through ssh (usual credentials)
ssh switch-data(62xx)ssh switch-control(55xx)ssh switch-reboot(55xx)ssh switch-c007(????)
entering from faraday¶
Legacy note¶
with a recent fedora, it is necessary to explicitly offer these algorithms in order to go through
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oCiphers=+aes256-cbc switch-rebootthis is now configured in .ssh/config for the 4 dell switches
connecting¶
when everything is set up, use ssh from faraday, and user name root, usual password for DRACs and the like:
reboot and control
root@faraday ~ # ssh switch-reboot
User Name:root
Password:*********
switch-reboot# exit
Connection to switch-reboot closed.and on data
root@faraday ~ # ssh switch-data
root@switch-data's password:
switch-data>en
switch-data#virtual terminal¶
As of Oct. 2016, I used the following setup
host wlab49 - aka arduino under ubuntu
together with the COM to USB adapter (in the chamber)
apt-get install -y minicomneed to turn off hardware flow-control (was hard to spot)
run
minicom -s, select/dev/ttyUSB0and speed9600 8N1as detailed below, saved as standard configit does not matter which USB port is used (see
dmesg -wwhen plugging the adapter to make sure)all this is OK on wlab49 as of Oct. 28 2016, it’s easy to redo on a fresh ubuntu install
run
minicom, you should be good
Stacking & general¶
look at the current config
show running-configBaudrates
| Type | Where | speed |
|---|---|---|
| PowerConnect 62xx | faraday - data | 9600 8N1 |
| PowerConnect 55xx | faraday - others | 9600 8N1 |
| Linksys SRW0248(outdated?) | bemol | 38400 8N1 |
can be changed (on both types) using e.g.
speed 38400but we don’t want to do thatStacking
It feels like the 2 models we have cannot be stacked together in any case
We could still stack the 2 55xx boxes but what sense would that make ?
Paging
the 55xx can use
terminal datadumpto turn off paging (i.e. displaying a-more-prompt);could not find the same on 62.xx
ssh
all 4 switches run an ssh server; enter with user
rootand usual passwordpreparation for SSH server: not appearing in either config are the following 2 commands that I ran once to create keypairs attached to host identification of the switch itself. ssh server won’t start - even after
ip ssh serverif any of both keys is missing
crypto key generate rsa
crypto key generate dsaWorkflow¶
All 4 config files are managed under git in the
switches/folder ofr2lab-miscrunning
make push-confin that folder pushes them onto the tftp server on faradaythen use one of these commands to fetch that config from the switch
copy tftp://192.168.4.100/switch-data.conf startup-config
copy tftp://192.168.4.100/switch-control.conf startup-config
copy tftp://192.168.4.100/switch-reboot.conf startup-config
copy tftp://192.168.4.100/switch-c007.conf startup-configand then
reloadData Switch - 6248¶
config management¶
For resetting to factory defaults, I found only one method for now, which is to reboot the box, and from the console you first hit a menu that lets you restore the factory defaults
it could be that deleting the startup-config would do the trick as well but I have not tried that at this point.
in order to save the running config for next reboot:
copy running-config startup-config(62xx)write memory(55xx)
addressing¶
interfaces get addressed by strings like
interface ethernet 1/g44or by range
interface range ethernet 1/g1-1/g37example, inspecting
switch-data#show interfaces status ethernet 1/g4
Port Type Duplex Speed Neg Link Flow Control
State Status
----- ------------------------------ ------ ------- ---- --------- ------------
1/g4 Gigabit - Level Full 1000 Auto Up Active
Flow Control:EnabledMirroring/monitoring¶
monitor session 1 source interface 1/g<x>
monitor session 1 destination interface 1/g<z>At that point the session is not active; you can check this with (exit config mode of course)
show monitor session 1Turn on
monitor session 1 modeTurn off
no monitor session 1 modeIGMP¶
ip igmp snooping
show bridge multicast address-tableinspecting the MAC address table¶
show bridge address-tableReboot and Control switches - 5548¶
config management¶
reset to factory defaults (do not save when prompted)
delete startup-config
reloadsave current config
write memoryaddressing¶
interfaces get addressed by strings like
interface gigabitethernet 1/0/4c007 :
te1/0/1(to faraday) andte1/0/2(to switch-data)data :
1/xg3(to swtich-data)reboot :
control
example, inspecting
switch-reboot# show interfaces status gigabitethernet 1/0/4
Flow Link Back Mdix
Port Type Duplex Speed Neg ctrl State Pressure Mode
-------- ------------ ------ ----- -------- ---- ----------- -------- -------
gi1/0/4 1G-Copper Full 100 Enabled On Up Disabled OffMirroring/monitoring¶
status
show ports monitorExample
The following example copies traffic for both directions (Tx and Rx) from the source port 1/8 to destination port 1/1.
Console(config)# interface gi1/0/1
Console(config-if)# port monitor gi1/0/8
-- or --
Console(config)# interface gigabitethernet 1/0/1
Console(config-if)# port monitor 1/8turn off with
Console(config)# interface gi1/0/1
Console(config-if)# no port monitor gi1/0/8IGMP¶
ip igmp snoopinginspecting the MAC address table¶
show mac address-table