기본지식
1. > : 유저모드
2. # : 프리빌리지 모드
3. (config)# : 구성모드
4. (config-if)# : 인터페이스 구성모드
스위치의 IP 주소할당하는법
1. en입력(프리빌리지 모드로 변경) = switch> → switch#
Switch> en
Switch#
2. configure terminal 입력(구성모드로 변경) = switch# → switch(config)#
Switch# configure terminal
Enter the configuration commands, one per line. End with CNTL/Z.
Switch(config)#
3. interface vlan숫자 interface(원하는 vlan의 인터페이스 구성모드로 들어가기)
= switch(config)# → switch(config-if)#
Switch(config)# interface vlan1
Switch(config-if)#
4 ip주소 입력(서브넷마스크도 같이)
Switch(config-if)# ip address 192.162.100.2 255.255.0.0
5. exit 2번
Switch(config-if)# exit
Switch(config)# exit
Switch #
6. show interface vlan숫자 후 바뀐 ip 주소 확인
Switch # show interface vlan1
주소 할당 전과 주소 할당 후 IP show interface vlan1
할당전
IP주소가 없다.
할당 후
내가 지정한 IP주소가 스위치 VLAN의 IP 주소로 할당 되어있다.
스위치의 IP주소가 할당이 되었더라도 다른 네트워크와 통신을 하기 위해서는 default gateway 설정을 해야한다
Default-gateway 설정하기
1. 구성모드 진입
Switch# configure terminal
Switch(config)#
2.. 디폴트 게이트웨이 값 넣어주기
3. exit
Switch#
이로써 IP주소에 대한 기본적인 구성이 끝났다.
스위치는 IP주소 세팅, 서브넷 마스크, 디폴트-게이트웨이 구성만 있으면 네트워크에서 관리가 가능하다.
'낙서장- 네트워크 ' 카테고리의 다른 글
네트워크 실습 3(라우터,스위치의 이름 변경, 주소할당) (0) | 2019.01.23 |
---|---|
네트워크 실습2(스위치 포트의 속도와 통신방식 변경) (0) | 2019.01.08 |
네트워크 7일차 (0) | 2019.01.08 |
네트워크 6일차 (0) | 2019.01.06 |
네트워크 공부 5일차 (0) | 2019.01.04 |