Limetime's TimeLine
article thumbnail
반응형

Cisco Catalyst Switch OS

  • CatOS : 옛날
  • IOS : Cisco가 스위치 회사를 인수 합병하여 현재는 CISCO IOS를 사용 (라우터와 명령어가 같음)

 

기본(Default) 구성

  • 아무것도 구성하지 않은 스위치의 구성 상태
Switch# show interface status
Port     Name     Status     Vlan     Duplex     Speed     Type
--------------------------------------------------------------------------
Fa0/1          Not Connect     1       Auto       Auto    100Base TX/RX
Fa0/2          Not Connect     1       Auto       Auto    100Base TX/RX
...
Fa0/12         Not Connect     1       Auto       Auto    100Base TX/RX

 

Duplex

  • Duplex => 통신 방식
  • Half Duplex (반이중 방식) : 통신 시 송신ㆍ수신중 어느 한 순간에는 둘 중 하나만 일어날 수 있는 방식
    • ex) 무전기
  • Full Duplex (전이중 방식) : 통신하는 양 쪽에서 동시에 송ㆍ수신이 일어나는 방식
    • ex) 전화
  • ※ 스위치 포트의 Duplex와 Speed를 Auto로 설정했을 때, 상대방 장비도 Auto이면 서로 상대방 모드에 맞추려고 기다리게 된다. 그러면 접속 시 에러가 발생할 수 있으므로 Speed나 Duplex를 미리 세팅하는 경우도 있다.

 

스위치에서의 IP 세팅

  • 스위치는 IP주소를 할당할 필요가 없다.
  • 단, 원격 접속(텔넷 등)하여 네트워크 관리 시스템(NMS)으로 관리를 하거나 스위치 구성 셋팅할 때는 필요하다.

 

STP

  • 스위치에서는 인터페이스(포트) 별로 IP주소를 할당하는 것이 아니라 대표 주소만 부여한다.
  • 스패닝 트리 프로토콜은 세팅하지 않아도 자동으로 활성화되어 있다.
  • 즉, 자동으로 루핑을 방지한다.

 


모드 / IP주소 세팅하기

  • User Mode (유저 모드) : Switch>
    • 스위치의 상태보기 가능
  • Privileged Mode (프리빌리지드 모드) : Switch#
    • 스위치의 구성을 확인ㆍ변경 가능
    • 진입 방법 : Switch> enable (User mode에서 enable 명령어로 진입 가능)
  • Configuration Mode (구성 모드) : Switch(config)#
    • 구성 파일을 변경 가능
    • 진입 방법 : Switch# configure terminal
Switch> enable
Password : ******      // 패스워드를 설정한 경우
Switch# configure terminal
Switch(config)# interface vlan 1   // VLAN 1번 인터페이스 접근
switch(config-if)# ip address 192.168.100.1 255.255.255.0    // ip주소와 서브넷 마스크 세팅
switch(config-if)# exit
switch(config)# ip default-gateway 192.168.1.1    // 게이트웨이 주소 설정 (라우터 주소)
switch(config)# exit   // disable도 가능
switch# show interface vlan 1
VLAN 1 is up, line protocol is up
	Hardware is CPU Interface, address is 0004.c073.f300 (bia 0004.c073.f300)
    Internet address is 192.168.100.1/24
    MTU 1500 bytes, BW 10000Kbit, DLY 1000 usec,
    	reliability 255/255, txload 1/255, rxload 1/255
        ...

 


포트의 Speed와 Duplex 세팅

Switch> enable
Switch# Configure terminal
Switch(config)# interface fastethernet0/1
Switch(config-if)# speed 10
Switch(config-if)# duplex half
Switch(config-if)# exit
Switch(config)# exit
Switch# show interface fastethernet0/1
FastEthernet 0/1 is up, line protocol is up
	Hardware is Fast Ethernet, address is 0005.c073.f301(bia 0004.c073.f301)
    MTU 1500 bytes, BW 10000kbit, DLY 1000 usec,
    ...
    Half-dulplex, 10Mb/s, 100BaseTX/RX
Speed (속도) 10 Force 10Mbps Operation
100 Force 100Mbps Operation
auto Enable Auto Speed Configuration
Duplex half Force half-duplex operation
full Force full-duplex operation
auto enable Auto Duplex configuration

 

반응형
profile

Limetime's TimeLine

@Limetime

포스팅이 좋았다면 "공감❤️" 또는 "구독👍🏻" 해주세요!