Network Switch Configuration
Unit: 3 Lesson: 2
hijack and configure switch using terminal >:)
Most network switch OS's run in three main modes:
- user mode (readonly)
- privileged
- global
User mode only allows for basic troubleshooting commands. Privileged mode allows for config reports, system status viewing, rebooting/shutdown, performing system backups/restores. Global mode allows for configuration update scripting.
Ports are identified using a formatting system: (type -> slot -> port number) For example GigabitEthernet 0/2 or G0/2 refers to the second port on the first 10/100/1000 slot (or only slot LOL).
Stackable switches have a module ID that goes before the slot ID, pointing to the specific router in the stack.
G3/0/2refers to the second 10/100/1000 port on the third router in the stack.
Switches support a variety of Ethernet standards to ensure compatibility with older network devices. This is usually configured using auto negotiation, but if one devices connection is hardcoded, you should also manually set the connection settings for performance purposes.
Configuration Commands (Cisco IOS)
- Show the current configuration.
show config - Copy the current running configuration to the startup configuration.
copy run start - Enable configuration mode.
config t - Set the default gateway.
ip default-gateway 192.168.0.254e - Select an interface.
interface GigabitEthernet0/1 - Set an IP address.
ip address 192.168.0.100 255.255.255.0 - Show the states, configurations, and traffic statistics of all the interfaces.
show interface - Show the built MAC Address Table (implemented as Content-Addressable-Memory).
show mac address-table - Show the PoE power budget and consumption.
show power inline - Enable/Disable an interface.
no shutdown|shutdown(this is ridiculous, who designed this) - Select a connection speed and type.
speed [auto|int(100)]|duplex [auto|(half|full)] - Configure security mechanisms for an interface.
switchport mode accessandswitchport port-security- Bonus: Set a maximum allowed user count for an interface.
switchport port-security maximum [1|int(5)]
- Bonus: Set a maximum allowed user count for an interface.
#Netplus