스위치 - CSMA/CD -- 2계층 Datalink
Router // 3계층
Frame == Switch
Switch // --5분동안 유지
└PC
스위치 관리목적으로 IP배정 가능 (Vlan1)
enable
conf t
-- 기말고사
빠진부분을 명령어를 통해서 찾기
conf t
line con 0
password ip
login
do wr
line vty 0 15
password ip
login
en
sh run
-- Setting for hostname
Switch(config)# hostname SW2
SW2(config)#
-- Setting for password
SW2(config)# enable password [PASSWORD]
SW2(config)# enable secret [PASSWORD]
-- Setting console password
SW2(config)# line con 0
SW2(config-line)# password [PASSWORD]
SW2(config-line)# login
-- VTY Setting
SW2(config)# line vty 0 15
SW2(config-line)# password [PASSWORD]
SW2(config-line)# login
SW2(config-line)# exit
-- translaton dlsable
SW1(config)# no ip domain-lookup
-- 원격지에서 telnet 사용
SW1(config)# ip default-gateway 192.168.1.1
-- 맥주소 테이블
SW2# show mac-address-table
Switch(config)# hostname SW2
SW2(config)# enable sec
SW2(config)# enable secret tcp
SW2(config)# line con 0
SW2(config-line)# password ip
SW2(config-line)# login
SW2(config-line)# line vty 0 15
SW2(config-line)# password ip
SW2(config-line)# login
SW2(config-line)# do wr
Building configuration...
[OK]
SW2(config-line)# int vlan1
SW2(config-if)# ip add 192.168.2.2 255.255.255.0
스위치는 맥주소를 가지고 학습을 한다.
-- 초기화
erase tartup-config
delete flash:vlan.dat
reload