Cisco Switch Configuration

To configure #Virtual LAN (VLAN) with Switch#, there is a need to set up an IP Address, subnet mask, and default gateway (router to direct switch management traffic for remote access such as Telnet and Secure Shell (SSH)) in a switch. The configuration could be done in IOS# with the command vlan {number} in Interface Configuration Mode follows by the IP address assigned to the VLAN. We can attach a name to a VLAN by simply running the command name {vlan-name} right after vlan {number} command in Global Configuration Mode. Define the VLAN membership mode for the assigned interface (port) as access (see Dynamic Trunking Protocol (DTP)# for other possible modes) with switchport mode {mode} and assign VLAN to it by switchport access vlan {number} in the Interface Configuration Mode.

Note: Remember to run no shutdown on the VLAN interface to keep it alive.

Note: The VLAN membership mode should be set as access on all ports that the network administrator doesn’t want them to be a trunk port.

Note: If two switches can support both ISL and IEEE 802.1Q, there is a need to run switchport trunk encapsulation {trunk-protocol} (value can be dot1q or isl) before switchport mode trunk.

The default gateway could be set with the command ip default-gateway {router-ip-addr} in Global Configuration Mode, which could be used for administration purpose to ping another device in other network.

Links to this page
#networking