- Switch and end device can communicate with MAC Address
- But when two end devices needs to communicate, they need an IPv4 address
- switch is layer 2 device so it does not need to be configured
- however, router needs to be configured.
- show startup-config - to show the startup config
- copy running-config startup-config - to store the running config into the startup-config
- another command is write memory which performs same function.
- show run or show running-config
- enable secret 123456
- conf t - short form to get inside configure terminal
- SWITCH only has VLAN
- Virtual Local Area Network
- to enter into interface just write:
- interface vlan1
- to configure ip address just write
- ip address 192.168.1.253 255.255.255.0
- write no shutdown so that the port can start running
- description thedescription
- the ip address is given to the switch so that it can be remotely accessed and unique identity is given to it.
- line vty 0 4
- 5 users should be able to virtually access.
- password 1234567
- login
- telnet is used to remotely access
- ALL STEPS TO SETUP SWITCH 1:
- SWITCH_1#show running-config
- Building configuration...
- Current configuration : 1287 bytes
- !
- version 15.0
- no service timestamps log datetime msec
- no service timestamps debug datetime msec
- no service password-encryption
- !
- hostname SWITCH_1
- !
- enable secret 5 $1$mERr$H7PDxl7VYMqaD3id4jJVK/
- enable password 1234
- !
- !
- !
- no ip domain-lookup
- !
- !
- !
- spanning-tree mode pvst
- spanning-tree extend system-id
- !
- interface FastEthernet0/1
- !
- interface FastEthernet0/2
- !
- interface FastEthernet0/3
- !
- interface FastEthernet0/4
- !
- interface FastEthernet0/5
- !
- interface FastEthernet0/6
- !
- interface FastEthernet0/7
- !
- interface FastEthernet0/8
- !
- interface FastEthernet0/9
- !
- interface FastEthernet0/10
- !
- interface FastEthernet0/11
- !
- interface FastEthernet0/12
- !
- interface FastEthernet0/13
- !
- interface FastEthernet0/14
- !
- interface FastEthernet0/15
- !
- interface FastEthernet0/16
- !
- interface FastEthernet0/17
- !
- interface FastEthernet0/18
- !
- interface FastEthernet0/19
- !
- interface FastEthernet0/20
- !
- interface FastEthernet0/21
- !
- interface FastEthernet0/22
- !
- interface FastEthernet0/23
- !
- interface FastEthernet0/24
- !
- interface GigabitEthernet0/1
- !
- interface GigabitEthernet0/2
- !
- interface Vlan1
- description VLAN-IPv4
- ip address 192.168.1.253 255.255.255.0
- !
- banner motd ^CAuthorized access only^C
- !
- !
- !
- line con 0
- password 1234
- login
- !
- line vty 0 4
- password 1234567
- login
- line vty 5 15
- login
- !
- !
- !
- !
- end
Recent Pastes