본문 바로가기

네트워크

[네트워크] switch 기본 설정

반응형

Switch 기본 설정

◐ 스위치에 관리용 IP 주소 지정 ◑

Switch> en
Switch# conf t
Switch(Config)# int vlan1
Switch(Config-if)# ip addr 192.168.0.1 255.255.255.0
Switch(Config-if)# no shut
Switch(Config-if)# end
Switch#


◐ 스위치에 텔넷 접속 설정 ◑

Switch> en
Switchc# conf t
Switch(Config)# line vty 0 4
Switch(Config-line)# password 12345
Switch(Config-line)# login
Switch(Config-line)# end
Switch#


◐ 스위치에 가상랜 설정 ◑

Switch> show vlan 가상랜 구성 보기
Switch> en
Switchc# conf t
Switch(Config)# valn 100 가상랜 100 만들기
Switch(Config-vlan)# vlan 200 가상랜 200 만들기
Switch(Config-vlan)# end
Switch#
Switchc# conf t
Switch(Config)# int fa0/1
Switch(Config-if)# switchport access vlan 100 포트0/1을 가상랜 100에 할당
Switch(Config-if)# int fa0/2
Switch(Config-if)# switchport access vlan 200 100 포트0/1을 가상랜 200에 할당
Switch(Config-if)# end
Switch# sh vlan


◐ 스위치에 트렁크 포트 설정 ◑

Switch(Config)# int fa0/23 스위치와 스위치가 연결된 포트
Switch(Config-if)# switchport mode trunk
Switch(Conifg-if)# end
Switch#

 

728x90
반응형