Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
19 views3 pages

Enable

The document outlines the configuration steps for two switches (S1 and S2) and a router (RouterA), including setting up VLANs, IP addresses, and trunking. It details commands for enabling interfaces, configuring EtherChannel, and securing access with passwords. Additionally, it includes commands for saving configurations and setting default gateways.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views3 pages

Enable

The document outlines the configuration steps for two switches (S1 and S2) and a router (RouterA), including setting up VLANs, IP addresses, and trunking. It details commands for enabling interfaces, configuring EtherChannel, and securing access with passwords. Additionally, it includes commands for saving configurations and setting default gateways.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Enable ,config t S1(config)# interface vlan 10

switch(config)# hostname S1 S1(config-if)# ip address 192.168.10.11


255.255.255.0
S1(config)# no ip domain-lookup
S1(config-if)# no shutdown
S1(config)# enable secret class
S1(config-if)# exit
S1(config)# line console 0

S1(config-line)# password cisco


S2(config)# interface vlan 10
S1(config-line)# login
S2(config-if)# ip address 192.168.10.12
S1(config)# line vty 0 15
255.255.255.0
S1(config-line)# password cisco
S2(config-if)# no shutdown
S1(config-line)# login
S2(config-if)# exit
S1(config)# service password-encryption
S1(config)# interface f0/6
S1(config)# banner motd $ Authorized
S1(config-if)# switchport mode access
Users Only! $
S1(config-if)# switchport access vlan 20
S1# copy running-config startup-config

S2(config)# interface f0/18


S1(config)# vlan 10
S2(config-if)# switchport mode access
S1(config-vlan)# name Management
S2(config-if)# switchport access vlan 20
S1(config-vlan)# vlan 20
S1(config)# interface range f0/1-2
S1(config-vlan)# name Clients
S1(config-if-range)# switchport mode trunk
S1(config-vlan)# vlan 999

S1(config-vlan)# name Parking_Lot


S2(config)# interface range f0/1-2
S1(config-vlan)# vlan 1000
S2(config-if-range)# switchport mode trunk
S1(config-vlan)# name Native
S1(config-if-range)# switchport trunk native
S1(config-vlan)# exit di s2 juga
vlan 1000
S2(config-if-range)# switchport trunk native the configuration of the first physical port
vlan 1000 added to the EtherChannel.

c. As another part of trunk configuration, c. Issue the show interfaces


specify that VLANs 10, 20, and 1000 are trunk command to verify trunking is still in
allowed to cross the trunk. place

S1(config-if-range)# switchport trunk S1# show interfaces trunk


allowed vlan 10,20,1000

Router> enable
S2(config-if-range)# switchport trunk
Router# configure terminal
allowed vlan 10,20,1000
Router(config)# hostname RouterA
d. Issue the show interfaces
trunk command to verify the trunking ports,
Native VLAN and allowed VLANs across the
! Konfigurasi interface ke LAN1
trunk.
RouterA(config)# interface gigabitEthernet
S1# show interfaces trunk
0/0
S1(config)# interface range f0/1-2
RouterA(config-if)# ip address 192.168.1.1
S1(config-if-range)# channel-group 1 mode 255.255.255.0
active
RouterA(config-if)# no shutdown
S1(config-if-range)# exit

! Konfigurasi interface ke LAN2


S2(config)# interface range f0/1-2
RouterA(config)# interface gigabitEthernet
S2(config-if-range)# channel-group 1 mode 0/1
active
RouterA(config-if)# ip address 192.168.2.1
S2(config-if-range)# exit 255.255.255.0

b. After the EtherChannel is configured, a RouterA(config-if)# no shutdown


virtual Port-Channel interface is
automatically created. Now interface Port-
Channel 1 represents the logical interface of ! Aktifkan routing (jika diperlukan)
the bundled physical ports F0/1 and F0/2.
RouterA(config)# ip routing
Additionally, the Port-Channel will inherit
! (Opsional) Tambah default route SwitchA(config-if)# ip address 192.168.1.2
255.255.255.0
RouterA(config)# ip route 0.0.0.0 0.0.0.0
[ip_gateway] SwitchA(config-if)# no shutdown

! Simpan konfigurasi ! Default gateway

RouterA(config)# exit SwitchA(config)# ip default-gateway


192.168.1.1
RouterA# write memory
SwitchA# write memory

SwitchA(config)# vlan 10
Switch> enable
SwitchA(config-vlan)# name Admin
Switch# configure terminal
SwitchA(config)# vlan 20
Switch(config)# hostname SwitchA
SwitchA(config-vlan)# name Staff
SwitchA(config)# no ip domain-lookup
SwitchA(config)# vlan 30
SwitchA(config)# enable secret cisco123
SwitchA(config-vlan)# name Student

! Console access
! Assign port ke VLAN
SwitchA(config)# line console 0
SwitchA(config)# interface fa0/1
SwitchA(config-line)# password cisco123
SwitchA(config-if)# switchport mode access
SwitchA(config-line)# login
SwitchA(config-if)# switchport access vlan
10
! VTY access (Telnet/SSH)

SwitchA(config)# line vty 0 4


SwitchA(config)# interface fa0/2
SwitchA(config-line)# password cisco123
SwitchA(config-if)# switchport mode access
SwitchA(config-line)# login
SwitchA(config-if)# switchport access vlan
20

! VLAN interface IP (for management)

SwitchA(config)# interface vlan 1

You might also like