본문 바로가기

Network

[CCNA]Switch Console 설정(vlan)

반응형

(ㅍ1. Latop RS232 <-> Switch Console 연결

 

https://ko.wikipedia.org/wiki/RS-232

 

RS-232 - 위키백과, 우리 모두의 백과사전

RS-232 표준 문서에 기술된 25핀(DB25) 커넥터 RS-232(Recommended Standard 232[1])는 1960년에 도입된 표준의 하나로[2], PC와 음향 커플러, 모뎀 등을 접속하는 직렬 방식의 인터페이스의 하나이다. 인터페이스

ko.wikipedia.org

 

2. Laptop - Terminal 실행

 

3. Terminal 연결

 

4. Switch Hostname 설정

Switch>en
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#hostname S-1
S-1(config)#

 

5. password 설정

S-1(config)#enable password cisco
S-1(config)#

 

6. password 설정 확인

 

7. vlan 확인(여러개의 분리된 스위치 처럼 사용 가능 하도록 지원해 주는 기능)

S-1(config)#do sh ip int b

 

8. IP 설정

S-1(config)#int vlan1
S-1(config-if)#ip add 192.168.1.254 255.255.255.0
S-1(config-if)#no sh

S-1(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up

S-1(config-if)#exi
S-1(config)#do sh ip int b
Interface              IP-Address      OK? Method Status                Protocol 
FastEthernet0/1        unassigned      YES manual down                  down 
FastEthernet0/2        unassigned      YES manual down                  down 
FastEthernet0/3        unassigned      YES manual down                  down 
FastEthernet0/4        unassigned      YES manual down                  down 
FastEthernet0/5        unassigned      YES manual down                  down 
FastEthernet0/6        unassigned      YES manual down                  down 
FastEthernet0/7        unassigned      YES manual down                  down 
FastEthernet0/8        unassigned      YES manual down                  down 
FastEthernet0/9        unassigned      YES manual down                  down 
FastEthernet0/10       unassigned      YES manual down                  down 
FastEthernet0/11       unassigned      YES manual down                  down 
FastEthernet0/12       unassigned      YES manual down                  down 
FastEthernet0/13       unassigned      YES manual down                  down 
FastEthernet0/14       unassigned      YES manual down                  down 
FastEthernet0/15       unassigned      YES manual down                  down 
FastEthernet0/16       unassigned      YES manual down                  down 
FastEthernet0/17       unassigned      YES manual down                  down 
FastEthernet0/18       unassigned      YES manual down                  down 
FastEthernet0/19       unassigned      YES manual down                  down 
FastEthernet0/20       unassigned      YES manual down                  down 
FastEthernet0/21       unassigned      YES manual down                  down 
FastEthernet0/22       unassigned      YES manual down                  down 
FastEthernet0/23       unassigned      YES manual down                  down 
FastEthernet0/24       unassigned      YES manual down                  down 
GigabitEthernet0/1     unassigned      YES manual down                  down 
GigabitEthernet0/2     unassigned      YES manual down                  down 
Vlan1                  192.168.1.254   YES manual up                    down
S-1(config)#

 

9. PC 설정

 

10. Gateway Ping

C:\>ping 192.168.1.254

Pinging 192.168.1.254 with 32 bytes of data:

Reply from 192.168.1.254: bytes=32 time<1ms TTL=255
Reply from 192.168.1.254: bytes=32 time<1ms TTL=255
Reply from 192.168.1.254: bytes=32 time<1ms TTL=255
Reply from 192.168.1.254: bytes=32 time<1ms TTL=255

Ping statistics for 192.168.1.254:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\>

 

11. Switch telnet 설정

S-1(config)#line vty 0 4
S-1(config-line)#password cisco
S-1(config-line)#

 

12. 설정 저장

S-1#copy run start
Destination filename [startup-config]? 
Building configuration...
[OK]
S-1#

 

13. telnet 연결

C:\>telnet 192.168.1.254
Trying 192.168.1.254 ...Open


User Access Verification

Password: 
S-1>en
Password: 
S-1#

 

반응형