Site Overlay

Cisco Switch Setup

This article covers steps to set up a basic level cisco switch.

Switch to config mode
1. 	enable
2. 	conf t

Create VLANs
1. VLAN 10,20,30,40
2. end
3. Show vlan to see the vlans you have created
4. wri mem

Grant IP command on SWITCH for each VLAN:
1. Create IP for interface vlan 10 vlan 10
2. Entering ip address 10.196.10.1 255.255.255.0 vlan 10 to ip
3. No shutdown vlan 10 port opening
4. END
5. wri mem

1. Create IP for interface vlan 11 vlan 11
2. Entering ip address 10.196.20.1 for 255.255.255.0 vlan 11
3. No shutdown vlan 11 port opening
4. END
5. wri mem

1. Create IP for interface vlan 12 vlan 12
2. Entering ip address 10.196.30.1 255.255.255.0 ip for vlan 12
3. No shutdown vlan 12 port opening
4. END
5. wri mem

1. Create IP for interface vlan 13 vlan 13
2. Entering ip address 10.196.40.1 255.255.255.0 ip for vlan 13
3. No shutdown vlan 13 port opening
4. END
5. wri mem

Active ROUTING command on SWICH, Grant access between VLANs VLAN routing
1. IP routing
2. end
3. wri mem

Command to assign the physical ports on SWICH to the VLANs we created
2. interface gigabitEthernet 0/1
3. switchport mode access this command turns on communication with other VLANs.
4. switchport access vlan 10
5. No shutdown
6. END
7. wri mem

Define a Default Gateway to the switch (To output multiple VLANs to the internet through a single gateway, the cisco switch e default rout must be entered.)
1. ip route 0.0.0.0 0.0.0 10.196.100.254 (this is the Fortinin Gateway)
2. end
3. Show ip route (*default* to the top* will be the default gateway)
4. wri mem

SO THAT THE CONFIGURATIONS YOU MAKE WHILE WORKING ON CISCO SWITCHES DO NOT GO AWAY
1. wri mem

VLAN DELETION
1. Enable
2. conf t
3. No VLAN 130

------------------------------------------------
* MAKING PORTS TRUNK
1. Enable
2. conf t
3. interface gigabitEthernet 0/1
4. The switchport trunk encapsulation dot1q L3 switch in Cisco needs to set the encapsulation mode before making the trunk.
5. switchport mode trunk
6. Show interfaces trunk displaying Defined Trunk Ports

What is TRUNK? Access Ports move data from devices in a VLAN between Switches. Access Ports only pass traffic from VLAN defined to port 1 on the Switch. Dozens of Vlans can be defined on Cisco switches. In this case, defining an Access Port for each Vlan would not be a logical and useful option. In switches with a large number of Vlan configurations, it is possible to move the data of many Vlans through the Trunk Port by defining the Trunk Mode between the two interfaces. The VLAN information undergoes encapsulation before it passes through the Trunk Port.  This encapsulation is ISL or 802.1Q.

Where is TRUNK used? If you add one more Switch to the network environment, the ports connected to the Switch from the Switch are 

------------------------------------------------
* Making PORTS Access in Switchport Mode
2. interface gigabitEthernet 0/1
3. switchport mode access this command turns on communication with other VLANs.
4. switchport access vlan 10
5. No shutdown
6. END
7. wri mem

What is Switchport Mode Access? In short, all computers that will be connected to the Switch are configured as access modes!
------------------------------------------------

image 3
Arif Akyüz Content Producer Cyber Security Expert

Arif Akyüz
Content Producer & Cyber Security Expert
[email protected]