KONFIGURASI SW1
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW1
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW1
SW1(config)#enable
secret class
SW1(config)#line
console 0
SW1(config-line)#password cisco
SW1(config-line)#login
SW1(config-line)#exit
SW1(config-line)#password cisco
SW1(config-line)#login
SW1(config-line)#exit
SW1(config)#line
vty 0 4
SW1(config-line)#password cisco
SW1(config-line)#login
SW1(config-line)#exit
SW1(config-line)#password cisco
SW1(config-line)#login
SW1(config-line)#exit
SW1(config)#int
vlan1
SW1(config-if)#ip add 192.168.2.253 255.255.255.0
SW1(config-if)#no shutdown
SW1(config-if)#ip add 192.168.2.253 255.255.255.0
SW1(config-if)#no shutdown
SW1(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up
SW1(config-if)#exit
%LINK-5-CHANGED: Interface Vlan1, changed state to up
SW1(config-if)#exit
SW1(config)#ip
default-gateway 192.168.2.254
SW1(config)#interface
fa0/2
SW1(config-if)#switchport mode access
SW1(config-if)#no shutdown
SW1(config-if)#exit
SW1(config-if)#switchport mode access
SW1(config-if)#no shutdown
SW1(config-if)#exit
SW1(config)#interface
fa0/1
SW1(config-if)#switchport mode trunk
SW1(config-if)#no shutdown
SW1(config-if)#end
SW1(config-if)#switchport mode trunk
SW1(config-if)#no shutdown
SW1(config-if)#end
SW1#
%SYS-5-CONFIG_I: Configured from console by console
%SYS-5-CONFIG_I: Configured from console by console
SW1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration…
[OK]
SW1#
Destination filename [startup-config]?
Building configuration…
[OK]
SW1#
KONFIGURASI SW2
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW1
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW1
SW2(config)#enable
secret class
SW2(config)#line
console 0
SW2(config-line)#password cisco
SW2(config-line)#login
SW2(config-line)#exit
SW2(config-line)#password cisco
SW2(config-line)#login
SW2(config-line)#exit
SW2(config)#line
vty 0 4
SW2(config-line)#password cisco
SW2(config-line)#login
SW2(config-line)#exit
SW2(config-line)#password cisco
SW2(config-line)#login
SW2(config-line)#exit
SW2(config)#int
vlan1
SW2(config-if)#ip add 192.168.2.253 255.255.255.0
SW2(config-if)#no shutdown
SW2(config-if)#ip add 192.168.2.253 255.255.255.0
SW2(config-if)#no shutdown
SW2(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up
SW2(config-if)#exit
%LINK-5-CHANGED: Interface Vlan1, changed state to up
SW2(config-if)#exit
SW2(config)#ip
default-gateway 192.168.3.254
SW2(config)#interface
fa0/2
SW2(config-if)#switchport mode access
SW2(config-if)#no shutdown
SW2(config-if)#exit
SW2(config-if)#switchport mode access
SW2(config-if)#no shutdown
SW2(config-if)#exit
SW2(config)#interface
fa0/1
SW2(config-if)#switchport mode trunk
SW2(config-if)#no shutdown
SW2(config-if)#end
SW2(config-if)#switchport mode trunk
SW2(config-if)#no shutdown
SW2(config-if)#end
SW2#
%SYS-5-CONFIG_I: Configured from console by console
%SYS-5-CONFIG_I: Configured from console by console
SW2#copy running-config startup-config
Destination filename [startup-config]?
Building configuration…
[OK]
Destination filename [startup-config]?
Building configuration…
[OK]
Tidak ada komentar:
Posting Komentar