학교/네트워크 통신망
스위치 설정
Salmons
2021. 5. 10. 12:53
스위치 초기 설정시 콘솔 케이브로 PC에는 RS 232, 스위치는 콘솔
pc Terminal
Switch>
Switch>en
Switch#
Switch#conf t
Switch(config)#
Switch(config)#ling con 0
Switch(config-line)#
Switch(config-line)#password cisco
Switch(config-line)#login
Switch(config-line)#exit
Switch(config)#exit
Switch#exit
Switch#conf t
Switch(config)#int vlan 1
Switch(config-if)#ip address 192.168.0.1 255.255.255.0
Switch(config-if)#shutdown
PC>telnet 192.168.0.1
커멘드 창에서 ~~~
Switch>en
Switch#conf t
Switch(config)#enable password class
*문제점
PC 커맨드 창에 enable password가 보인다.
-> hash화 해준다.
Switch(config)#enable password class
Switch(config)#enable secret class
Switch(config)#no enable password
Switch(config)#enable secret class
이렇게 하면 enable secret hash 암호 로 나온다.
스위치도 암호화하기 위해 아래 명령어를 써야한다.
Switch(config)#servicepassword-encryption
Switch(config)#hostname hisec
Switch(config)#ip dmain-name hoseo.ac.kr
//키 만들어주기
Switch(config)#crypto key generate rsa
Switch(config)#show run
Switch(config)#ip ssh version
Switch(config)#line vty 0 15
Switch(config-line)#login local //내부의 계정을 씀
Switch(config-line)#transport
Switch(config-line)#transport in
Switch(config-line)#transport input SSH
Switch(config-line)#exit
Switch(config)#user
Switch(config)#username cisco password 1234