작성자:김주홍
초기접속은 콘솔로 접속한다.
enable -> 관리자 모드로 들어간다
Switch#configure terminal -> 터미널 구성모드로 들어간다.
Switch(config)#interface vlan 1 -> 디폴트 Vlan 1 구성모드로 들어간다.
*기본 디폴트 VLan은 1인데..여기에 모든포트가 여기에 구성되어 있다.
Switch#show vlan ->아래와같이 모든 포트가 1에 들어있네요~~~
VLAN Name                   Status   Ports
---- -------------------------------- --------- -------------------
1   default                     active Fa0/1, Fa0/2, Fa0/3, Fa0/4
                                     Fa0/5, Fa0/6, Fa0/7, Fa0/8
                                     Fa0/9, Fa0/10, Fa0/11, Fa0/12
                                     Fa0/13, Fa0/14, Fa0/15, Fa0/16
                                     Fa0/17, Fa0/18, Fa0/19, Fa0/20
                                     Fa0/21, Fa0/22, Fa0/23, Fa0/24
                                     Gi0/1, Gi0/2
------------------------------------------------------------------

Switch(config-if)#ip address 192.168.1.112 255.255.255.0 ->스위치 IP설정 ->Vlan1에 설정

Switch(config-if)#no shutdown -> 인터페이스 활성화 반드시 해줘야 함

Switch(config-if)#exit

Switch(config)#exit 빠져나온다.

Switch#configure terminal -> 다시 터미널 모드로 들어간다.

Switch(config)#ip default-gateway 192.168.1.1 -> 디폴트 게이크웨이적용
Switch(config)#exit

Switch#ping 168.126.63.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 168.126.63.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
-> 핑이 나간다.
여기까지 관리를 위해 IP를 적용한다. 스위체에 IP를 부여하는것은 관리를 위함이다.


이제 원격관리를 위한 텔넷을 스위치에 적용한다.

Switch#configure 구성모드로 들어간다.
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#line vty 0 4 -> 라인적용 모드로 들어간다.
Switch(config-line)#password XXXXX ->패스워드 적용
Switch(config-line)#exit
Switch(config)#exit
*여기까지 셋팅하면 텔넷으로 스위치에 붙을수 있다..붙더라도 프리빌리지모드를 사용하려면 아래 명령어 하나를 더 추가해줘야 한다.

Switch(config)#enable password XXXXX
Switch#sh run -> 스위치에 구성된 정보를 알수있다.

*여기까지면 스위치 원격관리가 가능하다. 이제 각 포트의 듀플렉스 모드와 속도를 셋팅


Switch#show interfaces status -> 현재 인터페이스 상태를 확인 다 오토로 되엉 있다.
Port   Name          Status     Vlan     Duplex Speed Type
Fa0/1               notconnect  1        auto  auto 10/100BaseTX
Fa0/2               notconnect  1        auto  auto 10/100BaseTX
Fa0/3               notconnect  1        auto  auto 10/100BaseTX
Fa0/4               notconnect  1        auto  auto 10/100BaseTX
Fa0/5               notconnect  1        auto  auto 10/100BaseTX
Fa0/6               notconnect  1        auto  auto 10/100BaseTX
Fa0/7               notconnect  1        auto  auto 10/100BaseTX
Fa0/8               notconnect  1        auto  auto 10/100BaseTX
Fa0/9               notconnect  1        auto  auto 10/100BaseTX
Fa0/10              notconnect  1        auto  auto 10/100BaseTX
Fa0/11              notconnect  1        auto  auto 10/100BaseTX
Fa0/12              notconnect  1        auto  auto 10/100BaseTX
Fa0/13              notconnect  1        auto  auto 10/100BaseTX

Switch#configure terminal
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#speed 100
Switch(config-if)#duple
Switch(config-if)#duplex ?
auto Enable AUTO duplex configuration
full Force full duplex operation
half Force half-duplex operation

Switch(config-if)#duplex full
Switch(config-if)#exit
Switch(config)#exit

Switch#show interfaces status ->변경되었다.
Port   Name          Status     Vlan     Duplex Speed Type
Fa0/1               notconnect  1        full   100 10/100BaseTX



*구성초기화 시키기
Switch#erase startup-config
Switch#reload
|

샹콤홍쓰's Blog is powered by Daum & tistory