Basic Switch Configuration Guide for Setting Up VLANs

Slide Note
Embed
Share

Configuring switches from basic settings to creating 3 VLANs using subnet 192.168.100.0/24. Follow the commands provided for setting up VLANs, trunk links, and default gateways on switches for efficient network communication.


Uploaded on Sep 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. Zkladn konfigurace switche.

  2. een: 1. V p ilo en s ti nakonfigurujte switche od z kladn ho nastaven a po vytvo en 3 VLAN. Pou ijte subnet 192.168.100.0/24

  3. Switch>enable Switch#config t Switch(config)#hostname 2950A 2950A(config)#enable password todd 2950A(config)#enable secret routersim 2905A(config)#line console 0 2950A(config-line)#password console 2950A(config-line)#login 2950A(config-line)#line vty 0 15 2950A(config-line)#password todd 2950A(config-line)#login 2950A(config-line)#exit 2950A(config)#ip default-gateway 192.168.100.1 2950A(config)#interface VLAN 1 2950A(config-if)#ip address 192.168.100.2 255.255.255.0 2950A(config-if)#interface fastethernet 0/10 2950A(config-if)#description Trunk Link to 2600A 2950A(config-if)#switchportmode trunk 2950A(config-if)#speed 100 2950A(config-if)#duplex full 2950A(config-if)#interface fastethernet 0/11 2950A(config-if)#description Link to 2950B 2950A(config-if)#switchportmode trunk 2950A(config-if)#speed 100 2950A(config-if)#duplex full 2950A(config-if)#interface fastethernet 0/12 2950A(config-if)#description Trunk Link to 2950C 2950A(config-if)#switchportmode trunk 2950A(config-if)#speed 100 2950A(config-if)#duplex full 2950A(config-if)#exit 2950A(config)#exit 2950A#ping 192.168.100.1

  4. Router>enable Router#config Router(config)#hostname 2600A hostname 2600A 2600A(config)#enable secret enable secret todd 2600A(config)#line console 0 line console 0 2600A(config-line)# password 2600A(config-line)#login 2600A(config-line)#line aux 0 2600A(config-line)#password 2600A(config-line)#login 2600A(config-line)#line 2600A(config-line)#password 2600A(config-line)#login 2600A(config-line)#interface 2600A(config-if)#ip ip address 192.168.100.1 255.255.255.0 address 192.168.100.1 255.255.255.0 2600A(config-if)#description connection to LAN 100 description connection to LAN 100 2600A(config-if)#no shutdown no shutdown 2600A(config-if)#exit exit 2600A(config)#banner banner motd motd# # This is the 2600A router # This is the 2600A router # 2600A(config)#exit exit 2600A#copy run start copy run start enable configt t todd password todd login line aux 0 password todd login line vty vty0 4 password todd login interface fastethernet fastethernet0/0 todd todd 0 4 todd 0/0

  5. Switch>enable Switch#config Switch(config)#hostname 2950B hostname 2950B 2950B(config)#enable password enable password todd 2950B(config)#enable secret enable secret routersim 2950B(config)#line console 0 line console 0 2950B(config-line)#password console 2950B(config-line)#login 2950B(config-line)#line 2950B(config-line)#password 2950B(config-line)#login 2950B(config-line)#exit 2950B(config)#ip ip default default- -gateway 192.168.100.1 2950B(config)#interface vlan1 interface vlan1 2950B(config-if)#ip ip address 192.168.100.3 255.255.255.0 address 192.168.100.3 255.255.255.0 2950B(config-if)#interface interface fastethernet fastethernet0/11 2950B(config-if)#description Trunk Link to 2950A description Trunk Link to 2950A 2950B(config-if)#switchport switchportmode trunk mode trunk 2950B(config-if)#speed 100 speed 100 2950B(config-if)#duplex full duplex full 2950B(config-if)#interface interface fastethernet fastethernet0/12 2950B(config-if)#description Trunk Link to 2950C description Trunk Link to 2950C 2950B(config-if)#switchport switchportmode trunk 2950B(config-if)#speed 100 speed 100 2950B(config-if)#duplex full duplex full 2950B(config-if)#exit exit 2950B(config)#exit exit 2950B#ping 192.168.100.1 ping 192.168.100.1 enable configt t todd routersim password console login line vty vty0 15 0 15 password todd login exit gateway 192.168.100.1 todd 0/11 0/12 mode trunk

  6. Switch#config Switch(config)#hostname 2950C hostname 2950C 2950C(config)#enable password enable password todd 2950C(config)#enable secret enable secret routersim 2950C(config)#line console 0 line console 0 2950C(config-line)#password console 2950C(config-line)#login 2950C(config-line)#line 2950C(config-line)#password 2950C(config-line)#login 2950C(config-line)#exit 2950C(config)#ip ipdefault default- -gateway 192.168.100.1 2950C(config)#interface vlan1 interface vlan1 2950C(config-if)#ip ipaddress 192.168.100.4 255.255.255.0 address 192.168.100.4 255.255.255.0 2950C(config-if)#interface interface fastethernet fastethernet0/11 2950C(config-if)#description Trunk Link to 2950B description Trunk Link to 2950B 2950C(config-if)#switchport switchportmode trunk mode trunk 2950C(config-if)#speed 100 speed 100 2950C(config-if)#duplex full duplex full 2950C(config-if)#interface interface fastethernet fastethernet0/12 2950C(config-if)#description Trunk Link to 2950A description Trunk Link to 2950A 2950C(config-if)#switchport switchportmode trunk 2950C(config-if)#speed 100 speed 100 2950C(config-if)#duplex full duplex full 2950C(config-if)#exit exit 2950C(config)#exit exit 2950C#ping 192.168.100.1 ping 192.168.100.1 configt t todd routersim password console login line vty vty0 15 0 15 password todd login exit gateway 192.168.100.1 todd 0/11 0/12 mode trunk

  7. 2950A#config t 2950A(config)#interface fastethernet 0/2 2950A(config-if)#switchport access vlan 3 2950A(config-if)#switchport mode access 2950A#vlan database vlan database 2950A(vlan)#vlan 2950A(vlan)#vlan vlan2 name Sales 2 name Sales vlan3 name Marketing 3 name Marketing 2950A(vlan)#vlan vlan4 name Finance 4 name Finance config t 2950A#config 2950A(config)#interface fastethernet 0/1 2950A(config-if)#switchport access vlan 2 2950A(config-if)#switchport mode access 2950B#config t 2950B(config)#interface fastethernet 0/1 2950B(config-if)#switchport access vlan 2 2950B(config-if)#switchport mode access

  8. Nrodn pedagogick institut esk republiky modernizace odborn ho vzd l v n www.projektmov.cz

  9. Projekt Modernizace odbornho vzdlvn (MOV) rozvj kvalitu odbornho vzdlvn a podporuje uplatnitelnost absolvent na trhu pr ce. Je financov n z Evropsk ch struktur ln ch a investi n ch fond a jeho realizaci zaji uje N rodn pedagogick institut esk republiky.

Related


More Related Content