Network Switch Configuration Guide

Slide Note
Embed
Share

Learn how to configure a network switch with tasks such as setting default gateways, assigning IP addresses, designating ports as trunk or access, adding or removing VLANs from trunk ports, and using various show commands for network management.


Uploaded on Oct 08, 2024 | 0 Views


Download Presentation

Please find below an Image/Link to download the presentation.

The content on the website is provided AS IS for your information and personal use only. It may not be sold, licensed, or shared on other websites without obtaining consent from the author. Download presentation by click this link. If you encounter any issues during the download, it is possible that the publisher has removed the file from their server.

E N D

Presentation Transcript


  1. Switch Commands

  2. Basic configuration Switch Default Gateway switch# configure terminal switch(config)# ip default-gateway 192.168.11.254 Switch IP Address switch# configure terminal switch(config)# interface vlan 1 switch(config-if)# ip add 192.168.11.254 255.255.255.0

  3. VLAN Configuration Manually designate ports as trunk switch#configure terminal switch(config)#interface range fa0/8, fa0/23 25 switch(config-if)#switchport mode trunk Manually designate ports as access switch#configure terminal switch(config)#int range fa0/8, fa0/23 25 switch(config-if)#switchport mode access

  4. Adding or Removing VLANs from a trunk switchport trunk allowed vlan To configure the allowed VLANs for a virtual Ethernet interface, use the switchport trunk allowed vlan command. To remove the configuration, use the no form of this command. switchport trunk allowed vlan {{ add | except | remove } vlan_list | all | none } no switchport trunk allowed vlan Syntax Description add Specifies the VLANs to be added to the current list. except Specifies all VLANs to be added to the current list, except the specified VLANs. remove Specifies the VLANs to be removed from the current list. vlan_list VLAN IDs of the allowed VLANs when the interface is in trunking mode. The range is from 1 to 4094, except for the VLANs reserved for internal use. Use a hyphen (-) to separate the beginning and ending IDs of a range of VLAN IDs; for example, 70-100. Use a comma (,) to separate individual VLAN IDs and ranges of VLAN IDs; for example, 20,70-100,142. all Specifies all VLANs to be added to the current list. none Specifies that no VLANs be added to the current list.

  5. Adding or Removing VLANs from a trunk Creating a list of allowed VLANs for a given trunk port switch#conf t switch(config)#int gi0/1 switch(config-if)#switchport mode trunk switch(config-if)#switchport trunk allowed vlan 5-15 Removing a VLAN from the list given trunk port switch#configure terminal switch(config)#int gi0/1 switch(config-if)#switchport trunk allowed vlan remove 6

  6. Other commands show run show vlan show int trunk show ip route show ip int brief

Related


More Related Content