<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>실전삽질</title>
<link>http://www.linux.co.kr/blog/nazin</link>
<description>실전삽질을 통한 리눅스 배우기</description>
<language>ko</language>
<pubDate>Thu, 10 Jul 2008 17:25:47 +0900</pubDate>
<generator>The Simplog (http://thesimplog.com)</generator>
<managingEditor>nazin@superuser.co.kr</managingEditor>
<copyright>Copyright 2008 나진아빠</copyright>
<docs>http://www.linux.co.kr/blog/nazin/rss.xml</docs>
<item>
<title>LVM 마운트</title>
<link>http://www.linux.co.kr/blog/nazin/index.php/post/62</link>
<description><![CDATA[ volume group확인: pvdisplay /dev/hdd2<br>volume group활성화: vgchange -a y VolGroup00<br>logical volume확인: lvdisplay -v /dev/VolGroup00<br>logical volume mount: mount -t ext3 /dev/VolGroup00/LogVol00 /mnt/hdd ]]> </description>
<category>Linux</category>
<author>nazin@superuser.co.kr</author>
<pubDate>Thu, 10 Jul 2008 17:25:47 +0900</pubDate>
<guid>http://www.linux.co.kr/blog/nazin/index.php/post/62</guid>
</item>
<item>
<title>라우터 기초 명령어</title>
<link>http://www.linux.co.kr/blog/nazin/index.php/post/59</link>
<description><![CDATA[ # 라우터 초기화 하기<br>Router&gt;en<br>Router#erase startup-config<br><br>Erasing the nvram filesystem will remove all configuration files! Continue? [confirm] &lt;enter&gt;<br><br>[OK]<br>Erase of nvram: complete<br><br>&nbsp;<br><br>Router#reload<br>Proceed with reload? [confirm] &lt;enter&gt;<br><br><br>## 라우터에 각 정보 확인하기 위한 명령어들...<br><br>&gt;&gt; Flash에 IOS 정보 확인하기<br><br>Router#show flash<br><br>System flash directory:<br>File&nbsp; Length&nbsp;&nbsp; Name/status<br>&nbsp; 1&nbsp;&nbsp; 16124776&nbsp; /c2500-jk8s-l.122-1d.bin <br>[16124840 bytes used, 652376 available, 16777216 total]<br>16384K bytes of processor board System flash (Read ONLY)<br><br>&nbsp;<br><br>&gt;&gt; DRAM에 Active Config File 정보 보기<br><br>Router#show running-config 단축명령: sh run<br><br>Router#sh run<br>Building configuration...<br><br>Current configuration : 572 bytes<br>!<br>version 12.2<br>no service single-slot-reload-enable<br>service timestamps debug uptime<br>service timestamps log uptime<br>no service password-encryption<br>!<br>hostname Router<br>&lt;생략&gt;<br>.....<br><br><br>&gt;&gt; VNRAM에 Backup Config File 정보 보기<br><br>Router#show startup-config 단축명령: sh star<br><br>Router#sh start<br>Using 565 out of 32762 bytes<br>!<br>version 12.2<br>no service single-slot-reload-enable<br>service timestamps debug uptime<br>service timestamps log uptime<br>no service password-encryption<br>!<br>hostname Router<br>&lt;생략&gt;<br>.......<br><br><br>&gt;&gt; 라우터에 하드웨어 및 소프웨어 정보를 확인하는 명령<br><br>Router#show version 단축명령: sh ver<br>Router#sh ver<br>Cisco Internetwork Operating System Software<br>IOS (tm) 2500 Software (C2500-JK8S-L), Version 12.2(1d), RELEASE SOFTWARE (fc1)<br>Copyright (c) 1986-2002 by cisco Systems, Inc.<br>Compiled Sun 03-Feb-02 18:14 by srani<br>Image text-base: 0x0307C2FC, data-base: 0x00001000<br><br>ROM: System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE<br>BOOTFLASH: 3000 Bootstrap Software (IGS-RXBOOT), Version 10.2(8a), RELEASE SOFTWARE (fc1)<br><br>Router uptime is 5 minutes<br>System returned to ROM by power-on<br>System image file is "flash:/c2500-jk8s-l.122-1d.bin"<br><br>cisco 2509 (68030) processor (revision D) with 16384K/2048K bytes of memory.<br>Processor board ID 01756284, with hardware revision 00000000<br>Bridging software.<br>X.25 software, Version 3.0.0.<br>SuperLAT software (copyright 1990 by Meridian Technology Corp).<br>TN3270 Emulation software.<br>1 Ethernet/IEEE 802.3 interface(s)<br>2 Serial network interface(s)<br>8 terminal line(s)<br>32K bytes of non-volatile configuration memory.<br>16384K bytes of processor board System flash (Read ONLY)<br><br>Configuration register is 0x2102<br><br>&nbsp;<br><br>&nbsp;<br><br>&gt;&gt; Terminal (작업창) 설정 상태 확인 명령<br><br>&nbsp;<br><br>Router#show terminal 단축명령: sh ter<br><br>Router#show term<br>Line 0, Location: "", Type: ""<br>Length: 24 lines, Width: 80 columns<br>Status: PSI Enabled, Ready, Active, Automore On<br>Capabilities: none<br>Modem state: Ready<br>Group codes:&nbsp;&nbsp;&nbsp; 0<br>Special Chars: Escape&nbsp; Hold&nbsp; Stop&nbsp; Start&nbsp; Disconnect&nbsp; Activation<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^^x&nbsp;&nbsp;&nbsp; none&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp; -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; none&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<br>Timeouts:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Idle EXEC&nbsp;&nbsp;&nbsp; Idle Session&nbsp;&nbsp; Modem Answer&nbsp; Session&nbsp;&nbsp; Dispatch<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:10:00&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; never&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; none&nbsp;&nbsp;&nbsp;&nbsp; not set<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Idle Session Disconnect Warning<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; never<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Login-sequence User Response<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 00:00:30<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Autoselect Initial Wait<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; not set<br>Modem type is unknown.<br>Session limit is not set.<br>Time since activation: 00:04:03<br>Editing is enabled.<br>History is enabled, history size is 10.<br>DNS resolution in show commands is enabled<br>Full user help is disabled<br>Allowed input transports are none.<br>Allowed output transports are lat pad v120 mop telnet rlogin nasi.<br>Preferred transport is lat.<br>No output characters are padded<br>No special data dispatching characters<br><br>&nbsp;<br><br><br>&gt;&gt; History Buffer 정보 보기<br>Router#show history<br>Router#sh his<br>&nbsp; en<br>&nbsp; sh flash<br>&nbsp; sh run<br>&nbsp; sh start<br>&nbsp; sh ver<br>&nbsp; show term<br>&nbsp; sh his<br>Router#<br><br><br>**********************************<br>라우터 기초 설정을 위한 기본 명령어<br>**********************************<br>&gt;&gt; Hostname 설정<br>Router#conf t<br>Router(config)#hostname R1<br>R1(config)#<br><br>&nbsp;<br><br>&gt;&gt; UserMode -&gt; PrivilegedMode로 이동시 암호 제어하기<br><br>R1(config)#enable ? &nbsp;<br>&nbsp; last-resort&nbsp;&nbsp;&nbsp;&nbsp; Define enable action if no TACACS servers respond<br>&nbsp; password&nbsp;&nbsp;&nbsp;&nbsp; Assign the privileged level password<br>&nbsp; secret&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Assign the privileged level secret<br>&nbsp; use-tacacs&nbsp;&nbsp; Use TACACS to check enable passwords<br><br>&nbsp;<br><br>예제&gt;<br>Router(config)#enable secret cisco&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ! 암호화된 문자로 기본 저장된다.<br><br>&nbsp;<br><br>R1(config)#enable password 12345&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ! password로 할당한 암호는 기본적으로 암호화 되지 않고 저장된다.<br><br>R1(config)#service password-encryption&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ! Password로 할당한 암호화되지 않은 문자를 암호화 해준다.<br><br>&nbsp;<br><br>&nbsp;<br><br>&gt;&gt; Console Log 동기화 하기<br>R1(config)#line console 0<br>R1(config-line)#logging synchronous<br><br>&nbsp;<br><br>&gt;&gt; Console에 Timeout 시간 변경<br>R1(config)#line console 0<br>R1(config-line)#exec-timeout 8 0<br><br>&nbsp;<br><br>******************<br>Interface 구성하기<br>******************<br><br>Ethternet/fastethernet/serial/loopback<br><br>&gt;&gt;&gt;&gt; 라우터에 인터페이스 요약정보를 확인하기<br>R1#show ip interface brief ! 현재 라우터에 각 인터페이스 Name, IP, State를 보여준다.<br><br>&nbsp;<br><br>&gt;&gt; LAN Interface<br><br>&gt; Ethernet Inetface (10baseT)<br>R1(config)#interface ethernet 0&nbsp; 단축명령: int e0<br>R1(config-if)#ip address &lt;IP&gt; &lt;subnetmask&gt;<br>R1(config-if)#no shutdown&nbsp; ! 인터페이스 활성화<br><br>&nbsp;<br><br>&gt; Fastethernet&nbsp; (100BaseTx)<br>R1(config)#interface fastethernet 0/0<br>R1(config-if)#ip address &lt;IP&gt; &lt;subnetmask&gt;<br>R1(config-if)#speed {auto|100|10}<br>R1(config-if)#duplex {auto|Full|Half}<br>R1(config-if)#no shutdown<br><br><br>&gt;&gt; WAN Interface <br>Serial interface는 Leased-Line/Frame-relay/X25 와 같은 네트워크에 연결해서 사용한다.<br><br>&nbsp;<br><br>&gt; DTE Type Serial Interface 설정<br>R1(config)#interface serial 0<br>R1(config-if)#ip address &lt;IP&gt; &lt;Subnetmask&gt;<br>R1(config-if)#encapsulation {HDLC|PPP|Frame-relay...}<br>R1(config-if)#bandwidth 1024&nbsp; ! 설정하지 않으면 1544k 가 기본값이다.<br>R1(config-if)#no shutdown<br><br><br>&gt; DCE Type Serial Interface 설정<br>R1(config)#interface serial 0<br>R1(config-if)#ip address &lt;IP&gt; &lt;Subnetmask&gt;<br>R1(config-if)#encapsulation {HDLC|PPP|Frame-relay...}<br>R1(config-if)#bandwidth 1024&nbsp; ! 설정하지 않으면 1544k 가 기본값이다.<br>R1(config-if)#clock rate 1000000&nbsp;&nbsp; ! speed를 기준으로 bps 단위로 List에 있는 값을 할당.<br>R1(config-if)#no shutdown<br><br>&nbsp;<br><br>*** DCE/DTE Type Cable을 구분하는 방법<br><br>R1#sh controllers serial 0<br>HD unit 0, idb = 0x27326C, driver structure at 0x27A830<br>buffer size 1524&nbsp; HD unit 0, V.35 DTE cable<br>cpb = 0x1, eda = 0x4940, cda = 0x4800<br><br>&nbsp;<br><br>&gt;&gt; Logical Interface (가상인터페이스)<br><br>&nbsp;<br><br>&gt; Loopback Interface&nbsp; (생성후 설정을 한다.)<br>R1(config)#interface loopback 0 <br>R1(config-if)#ip address &lt;IP&gt; &lt;subnetmask&gt;<br><br>[출처] CISCO IOS 기본 명령어 |작성자 노막 ]]> </description>
<category>etc</category>
<author>nazin@superuser.co.kr</author>
<pubDate>Mon, 07 Jul 2008 17:17:00 +0900</pubDate>
<guid>http://www.linux.co.kr/blog/nazin/index.php/post/59</guid>
</item>
<item>
<title>src rpm</title>
<link>http://www.linux.co.kr/blog/nazin/index.php/post/58</link>
<description><![CDATA[ shell&gt;rpm -Uvh *.src.rpm<br><br>shell&gt;cd /usr/src/배포판이름/SPEC<br><br>shell&gt;rpmbuild -ba *.SPEC<br><br>shell&gt;cd /usr/src/배포판이름/RPMS/i386<br> ]]> </description>
<category>Linux</category>
<category>src rpm</category>
<author>nazin@superuser.co.kr</author>
<pubDate>Sat, 05 Jul 2008 22:17:55 +0900</pubDate>
<guid>http://www.linux.co.kr/blog/nazin/index.php/post/58</guid>
</item>
<item>
<title>파티션 정보 복사</title>
<link>http://www.linux.co.kr/blog/nazin/index.php/post/57</link>
<description><![CDATA[ sfdisk -d /dev/sda | sfdisk /dev/sdb<br><br>같은 크기의 디스크가 있을때 원본 디스크 파티션과 똑 같은 디스크 파티션을 생성 할때<br><br>사용 한다.<br><br><br>sfdisk -d /dev/sda | sfdisk /dev/sdb<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 원본디스크&nbsp; |&nbsp; 대상 디스크<br><br>위와 같이 실행 되면 원본과 똑같은 파티션 크기을 가지는 대상 디스크 파티션을 만들수 있다.<br><br>대상 디스크는 원본 디스크와 똑같거나 크면 된다. <br><br> ]]> </description>
<category>Linux</category>
<category>파티션 fdisk sfdisk</category>
<author>nazin@superuser.co.kr</author>
<pubDate>Sat, 05 Jul 2008 22:16:37 +0900</pubDate>
<guid>http://www.linux.co.kr/blog/nazin/index.php/post/57</guid>
</item>
<item>
<title>TCP: Treason uncloaked!</title>
<link>http://www.linux.co.kr/blog/nazin/index.php/post/56</link>
<description><![CDATA[ TCP: Treason uncloaked! Peer xxx.xxx.xxx.xxx:5103/80 shrinks window 737122723:737124183. Repaired.<br><br>포트 문제는 아니고 리모트 호스트의 수신윈도우 사이즈 때문이다. tcp로 데이터를 송수신할 때 서로 윈도우 사이즈를 교환하게 되어 있는데 리모트 호스트가 리눅스 서버와 협상하지 않고 윈도우사이즈를 축소할 경우 발생하는 메시지이며 이는 window scaling 을 사용할 때 종종 발생하는 문제이니 무시하여도 무방 ]]> </description>
<category>etc</category>
<category>Treason uncloaked</category>
<author>nazin@superuser.co.kr</author>
<pubDate>Sat, 05 Jul 2008 22:15:09 +0900</pubDate>
<guid>http://www.linux.co.kr/blog/nazin/index.php/post/56</guid>
</item>
<item>
<title>CISCO 3500XL IOS 이미지 복구</title>
<link>http://www.linux.co.kr/blog/nazin/index.php/post/55</link>
<description><![CDATA[ <span class="ct">1.CISCO 3500XL IOS 이미지 복구<br><br>증상)IOS 이미지가 지워졌거나 손장되었을때 스위치 부팅시<br>&nbsp;&nbsp;&nbsp; system LED 깜박 깜박 하면서 1,2번 포트는 LED가 꺼져있고 나머지 포트는 LED 전부 불이 들어와있음<br><br>&nbsp;&nbsp; &nbsp;<br>xmodem을 이용한 복구 방법(IOS xmodem으로 upload 후 복구)<br><br>1)스위치 전원 on<br><br><span style="font-weight: bold;">switch</span>: dir<br><br>List of filesystems currently registered:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; flash[0]: (read-write)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmodem[1]: (read-only)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; null[2]: (read-write)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bs[3]: (read-only)<br><br><span style="font-weight: bold;">switch</span>: dir flash:<br>Directory of flash:/<br><br>2&nbsp;&nbsp;&nbsp; -rwx&nbsp; 42&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; env_vars<br>3&nbsp;&nbsp;&nbsp; -rwx&nbsp; 798&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; config.text<br>4&nbsp;&nbsp;&nbsp; drwx&nbsp; 10240&nbsp;&nbsp;&nbsp;&nbsp; &lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html<br>165&nbsp; -rwx&nbsp; 556&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vlan.dat<br>167&nbsp; -rwx&nbsp; 5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private-config.text<br><br>6453248 bytes available (1288192 bytes used)<br><br>2)하이퍼 터미널을 이용하여 upload<br><br>전송--&gt; 화일 보내기 --&gt; 화일이름 선택, 프로토콜 Xmodem 선택합니다.<br>&nbsp;<br><span style="font-weight: bold;">switch</span>: copy xmodem: flash:c3500XL-c3h2s-mz-120.5.1-XP.bin<br><br>Begin the Xmodem or Xmodem-1K transfer now...<br><br>CCC.............................................................................<br>................................................................................<br>................................................................................<br>................................................................................<br>................................................................................<br>..........................................<br><br>File 'xmodem:' successfully copied to 'flash:/c3500xl-c3h2s-mz.120-5.WC5.bin'<br><br>Switch: boot flash:/c3500XL-c3h2s-mz-120.5.1-XP.bin<br><br><span style="font-weight: bold;">switch</span>: reset<br><br>Are you sure you want to reset the system (y/n)?y<br><br>System resetting...<br><br>///////////////////////////////////////////////////////////////////////////////////////////////////////////// <br><br>2.CISCO 3500XL IOS 이미지 복구(tar)<br><br>1)스위치 전원 on<br><br><span style="font-weight: bold;">switch:</span> dir<br><br>List of filesystems currently registered:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; flash[0]: (read-write)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmodem[1]: (read-only)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; null[2]: (read-write)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bs[3]: (read-only)<br><br><span style="font-weight: bold;">switch</span>: dir flash:<br>Directory of flash:/<br><br>1&nbsp;&nbsp;&nbsp; -rwx 1797756&nbsp;&nbsp;&nbsp;&nbsp; &lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; c3500XL-c3h2s-mz-120.5.1-XP.bin<br>2&nbsp;&nbsp;&nbsp; -rwx&nbsp; 42&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; env_vars<br>3&nbsp;&nbsp;&nbsp; -rwx&nbsp; 798&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; config.text<br>4&nbsp;&nbsp;&nbsp; drwx&nbsp; 10240&nbsp;&nbsp;&nbsp;&nbsp; &lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html<br>165&nbsp; -rwx&nbsp; 556&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vlan.dat<br>167&nbsp; -rwx&nbsp; 5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private-config.text<br><br>6453248 bytes available (1288192 bytes used)<br><br><span style="font-weight: bold;">Switch</span># delete c3500XL-c3h2s-mz-120.5.1-XP.bin<br><br>Delete filename [c3500XL-c3h2s-mz-120.5.1-XP.bin]?<br><br>Delete flash:c3500XL-c3h2s-mz-120.5.1-XP.bin? [confirm]<br><br><br>2)하이퍼 터미널을 이용하여 upload<br><br>전송--&gt; 화일 보내기 --&gt; 화일이름 선택, 프로토콜 Xmodem 선택합니다.<br><br><span style="font-weight: bold;">switch</span>: copy xmodem: flash:c3500xl-c3h2s-mz.tar.120-5.1-XP.tar<br><br>Begin the Xmodem or Xmodem-1K transfer now...<br><br>CCC.............................................................................<br>................................................................................<br>................................................................................<br>................................................................................<br>................................................................................<br>..........................................<br><br>Interrupt within 5 seconds to abort boot proces<br><br>extracting c3500xl-c3h2s-mz.120-5.1-XP.bin (1797756 bytes)!!!!!!!!!!!!!!!!!!!!!!!<br><br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>!!!!!!!!<br><br>html/ (directory)<br><br>extracting html/homepage.htm (3990 bytes)!<br><br>extracting html/not_supported.html (1392 bytes)<br><br>extracting html/common.js (9111 bytes)!!<br><br>extracting html/cms_splash.gif (22062 bytes)!!!!!<br><br>extracting html/cms_12.html (911 bytes)<br><br>extracting html/cms_13.html (1010 bytes)<br><br>extracting html/cluster.html (2823 bytes)!<br><br>extracting html/CMS.jar (1299352 bytes)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br>extracting html/CiscoChartPanel.jar (74146 bytes)!!!!!!!!!!!!!!!<br><br>extracting html/Redirect.jar (1958 bytes)<br><br>extracting info.ver (108 bytes)!<br><br>[OK - 3225600 bytes]<br><br><span style="font-weight: bold;">Switch</span># sh flash<br>Directory of flash:/<br><br>&nbsp; 2&nbsp; -rwx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 108&nbsp;&nbsp; Mar 01 1993 00:38:52&nbsp; info<br><br>&nbsp; 3&nbsp; -rwx&nbsp;&nbsp;&nbsp;&nbsp; 1797756&nbsp;&nbsp; Mar 01 1993 00:39:44&nbsp; c3500xl-c3h2s-mz.120-5.1.XP.bin<br><br>&nbsp; 4&nbsp; -rwx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1094&nbsp;&nbsp; Mar 01 1993 00:32:37&nbsp; config.text<br><br>&nbsp; 5&nbsp; drwx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 640&nbsp;&nbsp; Mar 01 1993 00:40:33&nbsp; html<br><br>&nbsp;16&nbsp; -rwx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 108&nbsp;&nbsp; Mar 01 1993 00:40:33&nbsp; info.ver<br><br>3612672 bytes total (392192 bytes free)</span> ]]> </description>
<category>etc</category>
<category>CISCO 3500XL</category>
<author>nazin@superuser.co.kr</author>
<pubDate>Sat, 05 Jul 2008 22:13:00 +0900</pubDate>
<guid>http://www.linux.co.kr/blog/nazin/index.php/post/55</guid>
</item>
<item>
<title>Catalyst 3500 Series 사용자 매뉴얼</title>
<link>http://www.linux.co.kr/blog/nazin/index.php/post/54</link>
<description><![CDATA[ Catalyst 3500 Series 사용자 매뉴얼<br>&nbsp;<br>&nbsp;<br>[Catalyst 3500Series의 P/W Recovery방법]<br>&nbsp;<br>1 PC의 하이퍼터미널을 아래설정으로 셋팅한다: <br>&nbsp;<br>9600 baud rate<br>No parity<br>8 data bits<br>1 stop bit<br>No flow control&nbsp;&nbsp; 전원을 넣는다. <br>&nbsp;<br>모드버튼을 누른 상태에서 전원을 넣고, 1번 포트가 점멸이 끝날 때 까지 모드버튼을 누른다. <br>Type flash_init. ß 이 명령이 있어야 Dir Flash:명령으로 플레쉬 메모리가 보인다. <br>Type load_helper. <br>Type dir flash:. <br>!--- Make sure to type a colon ":" after the dir flash <br>The switch file system is displayed:<br>Directory of flash: <br>2 -rwx 843947 Mar 01 1993 00:02:18 C2900XL-h-mz-112.8-SA<br>4 drwx&nbsp;&nbsp; 3776 Mar 01 1993 01:23:24 html <br>66 -rwx&nbsp;&nbsp;&nbsp; 130 Jan 01 1970 00:01:19 env_vars<br>68 -rwx 1296&nbsp;&nbsp; Mar 01 1993 06:55:51 config.text<br>1728000 bytes total (456704 bytes free)<br>&nbsp;<br>스위치에 많은 설정이 없을 경우엔 Delete Config.text로 초기화한 다음 다시 설정하면 편리할 때가 많다 <br>&nbsp;<br>아래 설명부터는 config.text에 설정을 보존하면서 복구 하는 방법이다.<br>&nbsp;<br>rename flash:config.text flash:config.old 명령으로 원래 설정 파일명을 바꿔준다. <br>Type boot 로 시스템 재부팅 <br>Enter N at the prompt to start the Setup program, Continue with the configuration dialog? [yes/no] : N <br>&nbsp;en 명령으로 enable mode로 진입. <br>Type rename flash:config.old flash:config.text 명령으로 원래 설정 파일명을 바꿔준다. <br>기존의 설정을 메모리로 올린다: <br>&nbsp;<br>Switch# copy flash:config.text system:running-config<br>Source filename [config.text]? (press Return)<br>Destination filename [running-config]? (press Return)&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;<br>패스워드를 바꿔준다.: <br>switch#configure terminal<br>switch(config)#no enable secret <br>!-- This step is necessary if the switch had an enable secret password<br>switch(config)#enable password Cisco<br>switch#(config)#^Z <br>!--Control/Z<br>&nbsp;<br>새로운 시스템 설정을 저장한다.:<br>switch#write memory<br>&nbsp;<br>&nbsp;<br>[네트워크 연결상태 확인]<br>&nbsp;<br>네트워크의 연결상태는 ping, traceroute 명령을 사용하여 확인 할 수 있다.<br>Step1. Ping으로 네트워크 연결상태 확인&nbsp; Ping [-s] host [packet_size] [packet_count] <br>Step2. Trace명령으로 라우터 경로 추적 확인 Traceroute [-q nqueries] host [data_size] <br>Step3. 스위칭 interface 정보확인<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (IP,Subnet,Broad) Show interface <br>Step4. 기본 게이트웨를 통한 라우트 정보 확인 Show ip route <br>
<p>&nbsp;<br>Console&gt; (enable) ping -s 203.238.149.2 1200 4<br>ING 203.238.149.2: 56 data bytes<br>time=32 ms4 bytes from 203.238.149.2: icmp_seq time=32 ms<br>time=32 ms4 bytes from 203.238.149.2: icmp_seq time=32 ms<br>time=32 ms4 bytes from 203.238.149.2: icmp_seq time=32 ms<br>&nbsp;<br>-----203.238.149.2 PING Statistics -----<br>4 packets transmitted, 4 packets recevied, 0% packet loss<br>&nbsp;<br>round-trip (ms)&nbsp;&nbsp; min/avg/max = 32/32/34<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>Console&gt; (enable) traceroute 203.238.149.2<br>traceroute to <a class="con_link" href="http://www.koreasuncom.co.kr/" target="_blank"><u><font color="#0000ff">www.koreasuncom.co.kr</font></u></a> (203.238.149.2), 30 hops max, 40 byte packets<br>&nbsp;1 210.114.174.4 (210.114.174.4)&nbsp; 1 ms&nbsp; 1 ms&nbsp; 1 ms<br>&nbsp;2 202.30.241.57 (202.30.241.57)&nbsp; 8 ms&nbsp; 8 ms&nbsp; 8 ms<br>&nbsp;3 203.238.128.212 (203.238.128.212)&nbsp; 11 ms&nbsp; 11 ms&nbsp; 10 ms<br>&nbsp;4 203.238.145.98 (203.238.145.98)&nbsp; 13 ms&nbsp; 13 ms&nbsp; 13 ms<br>&nbsp;5 203.238.145.114 (203.238.145.114)&nbsp; 18 ms&nbsp; 18 ms&nbsp; 18 ms<br>&nbsp;6 203.238.149.2 (203.238.149.<br>Console&gt; (enable)<br>&nbsp;<br>[IOS 설치/ 업그레이드 방법]<br>&nbsp;<br>TestSwitch1# show ver&nbsp; &gt; 기본적인 확인<br>Cisco Internetwork Operating System Software <br>IOS (tm) C3500XL Software (C3500XL-C3H2S-M), Version 12.0(5)XU, RELEASE SOFTWARE (fc1)<br>Copyright (c) 1986-2000 by cisco Systems, Inc.<br>Compiled Mon 03-Apr-00 17:31 by swati<br>Image text-base: 0x00003000, data-base: 0x00301398<br>&nbsp;<br>ROM: Bootstrap program is C3500XL boot loader<br>&nbsp;<br>TestSwitch1 uptime is 33 minutes<br>System returned to ROM by power-on<br>System image file is "flash:c3500XL-c3h2s-mz-120.5-XU.bin"<br>&nbsp;<br>cisco WS-C3524-XL (PowerPC403) processor (revision 0x01) with 8192K/1024K bytes of memory.<br>Processor board ID 0x12, with hardware revision 0x00<br>Last reset from power-on<br>&nbsp;<br>Processor is running Enterprise Edition Software<br>Cluster command switch capable<br>Cluster member switch capable<br>15 FastEthernet/IEEE 802.3 interface(s)<br>2 Gigabit Ethernet/IEEE 802.3 interface(s)<br>&nbsp;<br>32K bytes of flash-simulated non-volatile configuration memory.<br>Base ethernet MAC Address: 00:02:FD:69:BD:40<br>Motherboard assembly number: 73-3904-10<br>&nbsp;<br>&nbsp;<br>Power supply part number: 34-0851-02<br>Motherboard serial number: FAA04319CVJ<br>Power supply serial number: NONE<br>Model revision number: A0<br>Motherboard revision number: A0<br>Model number: WS-C3524-XL-EN<br>System serial number: FAA0431W0VK<br>Configuration register is 0xF<br>&nbsp;<br>TestSwitch1# erase flash: &gt; 정상적인 부팅을 하기 위해서 .bin 파일만 존재하는 flash를 초기화<br>Erasing the flash filesystem will remove all files! Continue? [confirm]<br>flashfs[1]: 0 files, 1 directories<br>flashfs[1]: 0 orphaned files, 0 orphaned directories<br>flashfs[1]: Total bytes: 3612672<br>flashfs[1]: Bytes used: 1024<br>flashfs[1]: Bytes available: 3611648<br>flashfs[1]: flashfs fsck took 3 seconds.<br>Erase of flash: complete<br>TestSwitch1#<br>00:33:51: %LINK-3-UPDOWN: Interface FastEthernet0/11, changed state to up<br>00:33:52: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state to up<br>TestSwitch1#ping xxx.xxx.xxx.xxx &gt; 대상 tftp 서버와 통신이 되는 지 테스트<br>&nbsp;<br>Type escape sequence to abort.<br>Sending 5, 100-byte ICMP Echos to xxx.xxx.xxx.xxx, timeout is 2 seconds:<br>!!!!!<br>Success rate is 100 percent (5/5), round-trip min/avg/max = 1/201/1001 ms<br>&nbsp;<br>TestSwitch1#tar /x t<a href="ftp://xxx.xxx.xxx.xxx/c3500XL-c3h2s-mz.120-5.4.WC.1.tar" target="_blank">ftp://xxx.xxx.xxx.xxx/c3500XL-c3h2s-mz.120-5.4.WC.1.tar</a> flash:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; .tar로 압축되어 있는 파일을 tftp를 통해 flash 로 압축을 풀면서 카피<br>Loading c3500XL-c3h2s-mz.120-5.4.WC.1.tar from 210.96.226.154 (via VLAN1): !<br>extracting info (111 bytes)<br>extracting
c3500XL-c3h2s-mz.120-5.4.WC.1.bin (1751538
bytes)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>&nbsp;<br>&nbsp;<br>&nbsp;<br>html/ (directory)<br>extracting html/ClusterBuilder.html.gz (670 bytes)<br>중간생력…<br>extracting html/baudrate.htm.gz (476 bytes)<br>이하생략…<br>[OK - 3112960 bytes]<br>&nbsp;<br>TestSwitch1#sh flash: &gt; 플래쉬에 이미지가 올라간 상태<br>Directory of flash:/<br>&nbsp;<br>&nbsp; 2&nbsp; -rwx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 111&nbsp;&nbsp; Mar 01 1993 00:37:12&nbsp; info<br>&nbsp; 3&nbsp; -rwx&nbsp;&nbsp;&nbsp;&nbsp; 1751538&nbsp;&nbsp; Mar 01 1993 00:38:02&nbsp; c3500XL-c3h2s-mz.120-5.4.WC.1.bin<br>&nbsp; 4&nbsp; drwx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10176&nbsp;&nbsp; Mar 01 1993 00:38:40&nbsp; html<br>164&nbsp; -rwx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 111&nbsp;&nbsp; Mar 01 1993 00:38:40&nbsp; info.ver<br>&nbsp;<br>3612672 bytes total (574976 bytes free)<br>TestSwitch1#<br>&nbsp;<br>지금까지 보면 상당히 간단하게 IOS 이미지를 업그레이드 할 수 있었습니다.<br>주의할 점은 erase flash: 하고서 전원이 나가면 다시 xmodem을 사용 해야만 한다는 위험이 있지만 그런 경우는 거의 없을 것이라 생각이 됩니다.<br>&nbsp;<br>[Catalyst 3500에서 VLAN 설정하는 방법]</p><br>
<p>1.우선은 Cat 3500에서 VLAN 설정이 가능한지를 체크해야 합니다. </p><br>
<p>3524XL#show vtp status <br>VTP Version : 2 <br>Configuration Revision : 0 <br>Maximum VLANs supported locally : 254 <br>Number of existing VLANs : 5 <br>VTP Operating Mode : Server <br>#### 이 부분이 반드시 Server(Transparent)로 설정되어 있어야 함 </p><br>
<p>VTP Domain Name : <br>VTP Pruning Mode : Disabled <br>VTP V2 Mode : Disabled <br>VTP Traps Generation : Disabled </p><br>
<p>&nbsp;</p><br>
<p>2.각각의 포트가 어떤 VLAN에 설정되어 있는지를 체크한다. </p><br>
<p>3524XL#show vlan <br>VLAN Name Status Ports <br>---- -------------------------------- --------- ------------------------------- <br>1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4, <br>Fa0/5, Fa0/6, Fa0/7, Fa0/8, <br>Fa0/9, Fa0/10, Fa0/11, Fa0/12, <br>Fa0/13, Fa0/14, Fa0/15, Fa0/16, <br>Fa0/17, Fa0/18, Fa0/19, Fa0/20, <br>Fa0/21, Fa0/22, Fa0/23, Fa0/24, <br>Gi0/1, Gi0/2 </p><br>
<p>1002 fddi-default active <br>1003 token-ring-default active <br>1004 fddinet-default active <br>1005 trnet-default active </p><br>
<p>VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 <br>---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------ <br>1 enet 100001 1500 - - - - - 1002 1003 <br>1002 fddi 101002 1500 - - - - - 1 1003 <br>1003 tr 101003 1500 1005 0 - - srb 1 1002 <br>1004 fdnet 101004 1500 - - 1 IBM - 0 0 <br>1005 trnet 101005 1500 - - 1 IBM - 0 0 </p><br>
<p>3. 위의 설정에는 오직 VLAN 1만 있는데 VLAN 2를 추가할 경우는 ...... </p><br>
<p><br>1) 3524XL#vlan database <br>###### Cat3500/2900은 특이하게도 VLAN database로 들어가서 VLAN을 설정해야 함 </p><br>
<p>2) VLAN 2를 추가한다. <br>3524XL(vlan)#vlan 2 name cisco_vlan_2 </p><br>
<p>3) VLAN database mode에서 빠져 나온다. <br>3524XL(vlan)#exit </p><br>
<p><br>&nbsp;<br>&nbsp;</p><br>
<p>4) VLAN이 추가되었는지 확인한다. <br>3524XL#show vlan <br>VLAN Name Status Ports <br>---- -------------------------------- --------- ------------------------------- <br>1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4, <br>Fa0/5, Fa0/6, Fa0/7, Fa0/8, Fa0/9, Fa0/10, Fa0/11, Fa0/12, <br>Fa0/13, Fa0/14, Fa0/15, Fa0/16, Fa0/17, Fa0/18, Fa0/19, Fa0/20, <br>Fa0/21, Fa0/22, Fa0/23, Fa0/24, Gi0/1, Gi0/2 </p><br>
<p>2 cisco_vlan_2 active <br>위의 상태를 보면 VLAN 2가 설정되었다는 것을 확인할 수 있음. </p><br>
<p>4. 마지막 단계로 원하는 포트를 VLAN 2에 mapping을 시켜야 함. <br>(Fastethernet 0/2를 VLAN 2에 설정하도록 한다) </p><br>
<p>Switch #configure terminal <br>Enter configuration commands, one per line. End with CNTL/Z. <br>Switch (config)#interface fastEthernet 0/2 <br>Switch (config-if)#switchport access ? <br>vlan Set VLAN when interface is in access mode </p><br>
<p>Switch (config-if) # switchport access vlan 2 <br>Switch (config-if)#end <br>Switch #wr mem (반드시 저장을 하셔야 합니다.) </p><br>
<p>5. VLAN 2에 fastethernet 0/2가 mapping 되어 있는지를 확인한다. </p><br>
<p>3524XL#show vlan <br>VLAN Name Status Ports <br>---- -------------------------------- --------- ------------------------------- <br>1 default active Fa0/1, Fa0/4, Fa0/5, Fa0/6, <br>Fa0/7, Fa0/8, Fa0/9, Fa0/10, <br>Fa0/11, Fa0/12, Fa0/13, Fa0/14, <br>Fa0/15, Fa0/16, Fa0/17, Fa0/18, <br>Fa0/19, Fa0/20, Fa0/21, Fa0/22, <br>Fa0/23, Fa0/24, Gi0/1, Gi0/2 </p><br>
<p>2 cisco_vlan_2 active Fa0/2 </p><br>
<p><br>&nbsp;<br>[스위치에 IP Address 할당하기]<br>&nbsp; <br>1. Enter global configuration mode by typing configure terminal: <br>3524XL #configure terminal<br>Enter configuration commands, one per line. End with CNTL/Z.<br>Switch(config) #<br>2.
Enter interface configuration mode, and enter the VLAN to which the IP
information is assigned. VLAN 1 is the management VLAN in this case.
Type interface vlan 1: <br>3524XL(config)#interface vlan 1<br>3524XL(config-if)#<br>3. Enter the IP address and subnet mask by typing ip address ip_address subnet_mask: <br>&nbsp;3524XL(config-if)#ip address 172.16.84.26 255.255.255.0 (Use the IP address and mask accordingly)<br>4. Run no shutdown command to make sure that VLAN 1 is up administratively: <br>&nbsp;3524XL(config-if)#no shutdown<br>5. Exit from the interface configuration mode by typing exit, this will take you back to the Global Configuration Mode: <br>&nbsp;3524XL(config-if)#exit <br>&nbsp;3524XL(config)#<br>6.
Enter the IP address of the default router by using ip default-gateway
ip_address command. This is needed to access the Management IP of the
switch if you are trying to reach it across the network: <br>&nbsp;3524XL(config)#ip default-gateway 172.16.84.1 (Use the IP Address accordingly)<br>7. Exit out to the privileged EXEC mode by typing end: <br>&nbsp;3524XL(config)#end<br>&nbsp;3524XL#<br>8. Save the configuration by using the write memory command: <br>&nbsp;3524XL#write memory<br>&nbsp;Building configuration...<br>&nbsp;3524XL#<br>9. Use the show running command to verify your configuration: <br>&nbsp;3524XL#show running&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 설정 값 확인<br>&nbsp;Building configuration...<br>&nbsp;Current configuration:<br>&nbsp;!<br>&nbsp;version 12.0<br>&nbsp;...(output suppressed)<br>&nbsp;!<br>&nbsp;<br>&nbsp;<br>&nbsp;hostname Switch<br>&nbsp;!<br>...(output suppressed)<br>&nbsp;!<br>&nbsp;interface VLAN1<br>&nbsp;ip address 172.16.84.26 255.255.255.0<br>&nbsp;no ip directed-broadcast<br>&nbsp;no ip route-cache<br>&nbsp;!<br>&nbsp;ip default-gateway 172.16.84.1<br>&nbsp;!<br>&nbsp;line con 0<br>&nbsp;transport input none<br>&nbsp;stopbits 1<br>&nbsp;line vty 0 4<br>&nbsp;login<br>&nbsp;line vty 5 15<br>&nbsp;login<br>&nbsp;!<br>&nbsp;end<br>&nbsp;Switch#<br>&nbsp;<br>&nbsp;<br>[Trunk Port 설정하기]<br>&nbsp;<br>Switch# configure terminal<br>Enter configuration commands, one per line.&nbsp; End with CNTL/Z.<br>Switch(config)# interface fa0/1 </p><br>
<p>&nbsp;<br>Switch(config-if)# switchport mode trunk&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 트렁크의 VLAN 방식으로 포트를 구성</p><br>
<p>&nbsp;<br>Switch(config-if)# switchport trunk encapsulation isl&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ISL을 지원하는 포트 구성<br>Switch(config-if)# end </p><br>
<p>&nbsp;<br>Switch# show interface fa0/1 switchport&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Configuration 확인<br>Name: Fa0/1<br>&nbsp;<br>Switchport: Enabled<br>&nbsp; Administrative mode: trunk<br>Operational Mode: trunk<br>Administrative Trunking Encapsulation: isl</p><br>
<p><br>Operational Trunking Encapsulation: isl<br>Negotiation of Trunking: Disabled<br>Access Mode VLAN: 0 ((Inactive))<br>Trunking Native Mode VLAN: 1 (default)<br>Trunking VLANs Enabled: 1-3,1002-1005<br>Trunking VLANs Active: 1-3<br>Pruning VLANs Enabled: NONE<br>&nbsp;</p><br>
<p>&nbsp;<br>Switch# copy running-config startup-config&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Configuration 저장<br>Building configuration...<br>[OK]<br>Switch#<br>&nbsp;<br>[SNMP 설정하기]<br>&nbsp;<br>Switch (enable) #conf t<br>Switch (config) # snmp-server host 172.2.128.252 traps1 snmp vlan 2&nbsp;&nbsp;&nbsp; 지정된 호스트에 트렙 설정<br>Switch (config) # end<br>Switch # show running-config&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Configuration 확인<br>&nbsp;<br>[Spanning-Tree 설정하기]<br>&nbsp;<br>Switch # configure terminal<br>Enter configuration commands, one per line.&nbsp; End with CNTL/Z<br>Switch (config)# interface fastethernet 5/8<br>Switch (config-if)# spanning-tree port-priority 100&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 인터페이스에 포트 우선 순위 설정<br>Switch (config-if)# end<br>Switch (config)# interface fastethernet 5/8 <br>Switch (config-if)# spanning-tree vlan 200 port-priority&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 인터페이스에 VLAN포트 우선 순위 설정<br>Switch (config-if)# end<br>Switch# show spanning-tree interface fastethernet 5/8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Configuration 확인<br>Port 264 (FastEthernet5/8) of VLAN200 is forwarding<br>&nbsp;&nbsp; Port path cost 19, Port priority 100, Port Identifier 129.8.<br>&nbsp;&nbsp; Designated root has priority 32768, address 0010.0d40.34c7<br>&nbsp;&nbsp; Designated bridge has priority 32768, address 0010.0d40.34c7<br>&nbsp;&nbsp; Designated port id is 128.1, designated path cost 0<br>&nbsp;&nbsp; Timers: message age 2, forward delay 0, hold 0<br>&nbsp; <br>&nbsp;<br>&nbsp;<br>&nbsp;Number of transitions to forwarding state: 1<br>&nbsp;&nbsp; BPDU: sent 0, received 13513<br>Switch#<br>Switch# show spanning-tree vlan 200&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Configuration 확인 <br>&lt;...output truncated...&gt;<br>&nbsp;<br>Port 264 (FastEthernet5/8) of VLAN200 is forwarding<br>Port path cost 19, Port priority 64, Port Identifier 129.8.<br>&nbsp;&nbsp; Designated root has priority 32768, address 0010.0d40.34c7<br>&nbsp;&nbsp; Designated bridge has priority 32768, address 0010.0d40.34c7<br>&nbsp;&nbsp; Designated port id is 128.1, designated path cost 0<br>&nbsp;&nbsp; Timers: message age 2, forward delay 0, hold 0<br>&nbsp;&nbsp; Number of transitions to forwarding state: 1<br>&nbsp;&nbsp; BPDU: sent 0, received 13513<br>&nbsp;<br>&lt;...output truncated...&gt;<br>Switch#<br>&nbsp;<br>[SPAN 설정하기]<br>&nbsp;<br>Switch # configure terminal<br>Switch (config)# int fa0/1<br>Switch (config-if)# port monitor fastEthernet 0/2<br>Switch (config-if)# port monitor fastEthernet 0/5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 모니터링 할 포트 설정<br>Switch (config-if)# port monitor fastEthernet 0/3<br>&nbsp;<br>Switch (config-if)# port monitor VLAN 1<br>만일 한두개의 포트가 아니고 하나의 vlan인 경우는 해당 인터페이스로 들어가서 같은 vlan으로 설정한 후 port monitor 라고만 쳐주면 된다. 그럼, 스위치가 알아서 같은 vlan의 모든 포트를 잡아줍니다<br>&nbsp;<br>Switch#show port monitor&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ß------ Configuration 확인<br>Monitor Port Port Being Monitored<br>--------------------- ---------------------<br>FastEthernet0/1 FastEthernet0/2<br>FastEthernet0/1 FastEthernet0/5 <br>FastEthernet0/4 FastEthernet0/ </p> ]]> </description>
<category>Linux</category>
<author>nazin@superuser.co.kr</author>
<pubDate>Fri, 27 Jun 2008 16:54:41 +0900</pubDate>
<guid>http://www.linux.co.kr/blog/nazin/index.php/post/54</guid>
</item>
<item>
<title>cisco 3500 ios 복구</title>
<link>http://www.linux.co.kr/blog/nazin/index.php/post/52</link>
<description><![CDATA[ 증상:<br><br>&nbsp;- system LED 깜박 깜박<br><br>&nbsp;- 껏다 켯는데 1,2번 불 안들어옴 나머지 LED 전부 불 들어옴<br><br>&nbsp;- 콘솔로 들어가서 보니 IOS 날라갔음. 프롬프트가 switch: 로 나옴<br><br>&nbsp;<br><br>&nbsp;<br><br>&nbsp;<br><br>&nbsp;<br><br>첫째, IOS upload xmodem으로 upload후 부팅<br><br>&nbsp;<br><br>tftp를 이용할수 없으므로 콘솔케이블을 이용해서 xmodem으로 upload합니다.<br><br>&nbsp;<br><br>아시겠지만.. 콘솔은 9600으로 되어잇죠..<br><br>&nbsp;<br><br>따라서 콘솔 케이블로 업하는 경우 속도가 졸라 느립니다.<br><br>&nbsp;<br><br>tftp로 할경우 몇분 안걸리는 것이지만..<br><br>&nbsp;<br><br>Xmodem으로 IOS 1.5메가 짜리 화일하나 올리는데 30분가까이 걸리더군요..<br><br>&nbsp;<br><br>하이퍼 터니날로 콘솔 연결해서 아래 명령어를 실행한후<br><br>&nbsp;<br><p>switch: dir</p><p>List of filesystems currently registered:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; flash[0]: (read-write)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmodem[1]: (read-only)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; null[2]: (read-write)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bs[3]: (read-only)</p><p>switch: dir flash:<br>Directory of flash:/</p><p>2&nbsp;&nbsp;&nbsp; -rwx&nbsp; 42&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; env_vars<br>3&nbsp;&nbsp;&nbsp; -rwx&nbsp; 798&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; config.text<br>4&nbsp;&nbsp;&nbsp; drwx&nbsp; 10240&nbsp;&nbsp;&nbsp;&nbsp; &lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html<br>165&nbsp; -rwx&nbsp; 556&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vlan.dat<br>167&nbsp; -rwx&nbsp; 5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;date&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private-config.text</p><p>6453248 bytes available (1288192 bytes used)<br>switch: </p><br><p><font color="#0000ff">Switch:</font> <font color="#d41a01">boot flash:/</font>c3500XL-c3h2s-mz-120.5.1-XP.bin</p><br><br>전송--&gt; 화일 보내기 --&gt; 화일이름 선택, 프로토콜 Xmodem 선택합니다.<br><br>&nbsp;<br><br>&nbsp;<br><br><br>switch: copy xmodem: flash:c3500XL-c3h2s-mz-120.5.1-XP.bin<br><br>Begin the Xmodem or Xmodem-1K transfer now...<br><br>CCC.............................................................................<br>................................................................................<br>................................................................................<br>................................................................................<br>................................................................................<br>..........................................<br><br>File 'xmodem:' successfully copied to 'flash:/c3500xl-c3h2s-mz.120-5.WC5.bin'<br><br>switch:<br><br>switch: reset<br><br>Are you sure you want to reset the system (y/n)?y<br><br>System resetting...<br><br>&nbsp;<br><br>&nbsp;<br><br><br>둘째, 기타 환경 설정 화일 upload<br><br><br>여기까지만 있어서 실제로 굴러가는 데는 거의 지장이 없습니다.<br><br><br>&nbsp;<br><br>하지만, 만약 web으로 들어가기 위해서는 html 관련 화일들이 있어야 합니다.<br><br>html 화일들을 하나씩 하나씩 tftp로 올릴수도 있지만...<br><br>&nbsp;<br><br>손이 많이 가죠.. 그래서 시스코에서는 tar로 묶여 있는 것을 올리면서<br><br>&nbsp;<br><br>플래쉬에 설치하는 것을 제공합니다.<br><br><br>&nbsp;<br><br>가지고 있는 화일은 IOS와 환경 설정 화일(html 등)이 tar로 묶여있는 화일입니다.<br><br>&nbsp;<br><br>화일 이름은 c3500xl-c3h2s-tar.120-5.WC5.tar 입니다.<br><br>이화일에 들어있는 모든 것을 사용하기 위해서 기존의 IOS화일을 지웁니다.<br><br>&nbsp;<br><br>지워도 지금 현재 부팅되어있는 상태이기 때문에 아무런 이상은 없습니다.<br><br>그리고 tftp를 이용하기 위하여 ip 셋팅을 합니다.<br><br>&nbsp;<br><br>&nbsp;<br><br>&nbsp;<br><br>Switch(config)# int vlan 1<br><br>Switch(config-if)# ip address 192.168.0.9 255.255.255.0<br><br>Switch(config-if)# no shut<br><br>Switch(config-if)# ^Z<br><br>&nbsp;<br><br>Switch# sh flash<br><br>&nbsp;<br><br>Directory of flash:/<br><br>&nbsp;<br><br>&nbsp; 2&nbsp; -rwx&nbsp;&nbsp;&nbsp;&nbsp; 1797760&nbsp;&nbsp; Jan 01 1970 00:54:07&nbsp; c3500xl-c3h2s-mz.120-5.WC5.bin<br><br>&nbsp; 4&nbsp; -rwx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1094&nbsp;&nbsp; Mar 01 1993 00:32:37&nbsp; config.text<br><br>&nbsp;<br><br>3612672 bytes total (1811968 bytes free)<br><br>&nbsp;<br><br>&nbsp;<br><br>Switch# delete c3500xl-c3h2s-mz.120-5.WC5.bin<br><br>Delete filename [c3500xl-c3h2s-mz.120-5.WC5.bin]?<br><br>Delete flash:c3500xl-c3h2s-mz.120-5.WC5.bin? [confirm]<br><br>&nbsp;<br><br>Switch#<br><br>switch# tar /xtract tftp://192.168.0.99//c3500xl-c3h2s-tar.120-5.WC5.tar flash:<br><br>&nbsp;<br><br>Interrupt within 5 seconds to abort boot proces<br><br>extracting c3500xl-c3h2s-mz.120-5.WC5.bin (1797756 bytes)!!!!!!!!!!!!!!!!!!!!!!!<br><br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br>!!!!!!!!<br><br>html/ (directory)<br><br>extracting html/homepage.htm (3990 bytes)!<br><br>extracting html/not_supported.html (1392 bytes)<br><br>extracting html/common.js (9111 bytes)!!<br><br>extracting html/cms_splash.gif (22062 bytes)!!!!!<br><br>extracting html/cms_12.html (911 bytes)<br><br>extracting html/cms_13.html (1010 bytes)<br><br>extracting html/cluster.html (2823 bytes)!<br><br>extracting html/CMS.jar (1299352 bytes)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!<br><br>extracting html/CiscoChartPanel.jar (74146 bytes)!!!!!!!!!!!!!!!<br><br>extracting html/Redirect.jar (1958 bytes)<br><br>extracting info.ver (108 bytes)!<br><br>[OK - 3225600 bytes]<br><br>&nbsp;<br><br>&nbsp;<br><br>Switch#<br><br>Switch# sh flash<br><br>&nbsp;<br><br>Directory of flash:/<br><br>&nbsp;<br><br>&nbsp; 2&nbsp; -rwx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 108&nbsp;&nbsp; Mar 01 1993 00:38:52&nbsp; info<br><br>&nbsp; 3&nbsp; -rwx&nbsp;&nbsp;&nbsp;&nbsp; 1797756&nbsp;&nbsp; Mar 01 1993 00:39:44&nbsp; c3500xl-c3h2s-mz.120-5.WC5.bin<br><br>&nbsp; 4&nbsp; -rwx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1094&nbsp;&nbsp; Mar 01 1993 00:32:37&nbsp; config.text<br><br>&nbsp; 5&nbsp; drwx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 640&nbsp;&nbsp; Mar 01 1993 00:40:33&nbsp; html<br><br>&nbsp;16&nbsp; -rwx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 108&nbsp;&nbsp; Mar 01 1993 00:40:33&nbsp; info.ver<br><br>&nbsp;<br><br>3612672 bytes total (392192 bytes free)<br><br><br>Switch#<br><br> ]]> </description>
<category>etc</category>
<author>nazin@superuser.co.kr</author>
<pubDate>Fri, 27 Jun 2008 16:07:00 +0900</pubDate>
<guid>http://www.linux.co.kr/blog/nazin/index.php/post/52</guid>
</item>
<item>
<title>dovecot 에러 관련</title>
<link>http://www.linux.co.kr/blog/nazin/index.php/post/51</link>
<description><![CDATA[ <br><br>dovecot: pop3-login: pop3-login: error while loading shared libraries: libsepol.so.1: failed to map segment from shared object: Cannot allocate memory<br><br>구글에서 위의 내용으로 찾아보니<br><br># vi /etc/dovecot.conf<br>login_process_size = 64&nbsp; &lt;--이렇게 수정<br># /etc/init.d/dovecot restart <br> ]]> </description>
<category>etc</category>
<author>nazin@superuser.co.kr</author>
<pubDate>Thu, 26 Jun 2008 17:36:31 +0900</pubDate>
<guid>http://www.linux.co.kr/blog/nazin/index.php/post/51</guid>
</item>
<item>
<title>recordmydesktop 우분투 8.04 beta</title>
<link>http://www.linux.co.kr/blog/nazin/index.php/post/48</link>
<description><![CDATA[ <p style="margin-bottom: 0cm;" align="center">      <font color="#cc0000">“<font face="네이버사전, serif"><font face="Bitstream Charter, serif"><font style="font-size: 11pt;" size="2">Recordmydesktop 우분투8.04베타</font></font></font><font color="#cc0000"><font face="Bitstream Charter, serif"><font style="font-size: 11pt;" size="2">”</font></font></font></font></p>
<p style="margin-bottom: 0cm;" align="center"><font color="#000000"><font face="Bitstream Charter, serif"><font style="font-size: 11pt;" size="2">April
27, 2007  SUPERUSER.CO.KR  </font></font><font face="Bitstream Charter, serif"><font style="font-size: 11pt;" size="2">이창목</font></font></font></p>
<p style="margin-bottom: 0cm;" align="center"><br>
</p>
<ul><p style="margin-bottom: 0cm;" align="left"><font size="2">우분투 </font><font face="네이버사전, serif"><font size="2">8.04
	</font></font><font face="네이버사전, serif">베타버젼에서 윈도우 켐타시아
	처럼 윈도우 화면을 동영상으로 캡쳐 할수 있는</font><font size="2"> 리눅스용
</font><font face="네이버사전, serif"><font size="2">recordmydesktop</font></font><font size="2">의
간단한 사용법에 대해서 알아보도록 하자 </font>
</p></ul>

<p style="margin-bottom: 0cm;" align="left"><br>
</p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="3"><b>1.</b></font></font><font size="3"><b>설치하기</b></font></p>
<p style="margin-bottom: 0cm;" align="left"><br>
</p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">shell&gt;apt-get
install recordmydesktop</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><br>
</p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="3"><b>2.</b></font></font><font size="3"><b>실행하기</b></font></p>
<p style="margin-bottom: 0cm;" align="left"><br>
</p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">shell&gt;sudo
recordmydesktop</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Initial
recording window is set to:
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">X:0
  Y:0    Width:2560    Height:1024
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Adjusted
recording window is set to:
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">X:0
  Y:0    Width:2560    Height:1024
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Your
window manager appears to be Metacity
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Initializing...
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Buffer
size adjusted to 4096 from 4096 frames.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Opened
PCM device hw:0,0
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Playback
frequency 22050Hz is not available...
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Using
44100Hz instead.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Recording
on device hw:0,0 is set to:
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">2
channels at 44100Hz
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Capturing!
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><br>
</p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Saved
116 frames in a total of 114 requests
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Shutting
down.....
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Encoding
started!
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">This
may take several minutes.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Pressing
Ctrl-C will cancel the procedure (resuming will not be possible, but
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">any
portion of the video, which is already encoded won't be deleted).
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Please
wait...
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">[101%]

</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Encoding
finished!
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Wait
a moment please...
</font></font></p>
<p style="margin-bottom: 0cm;" align="left">   <font face="네이버사전, serif"><font size="2">
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Done.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Written
2363212 bytes
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">(2362479
of which were video data and 733 audio data)
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Cleanning
up cache...
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Done!!!
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Goodbye!</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><br>
</p>

<p style="margin-bottom: 0cm;" align="left"><font size="2">캡쳐가 끝이 났으면 </font><font face="네이버사전, serif"><font size="2">Ctr+c</font></font><font size="2">를
누르면 </font><font face="네이버사전, serif"><font size="2">recordmydesktop</font></font><font size="2">을
실행시킨 디렉토리에 </font>
</p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">out.ogg
</font></font><font size="2">파일을 만들어 준다</font><font face="네이버사전, serif"><font size="2">.</font></font></p><p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2"><br></font></font></p>
<p style="margin-bottom: 0cm;" align="left"><img src="http://www.linux.co.kr/blog/_data/nazin/images/20080427/1209303102.png" alt="" border="0"><br>
</p>
<p style="margin-bottom: 0cm;" align="left"><br>
</p>
<p style="margin-bottom: 0cm;" align="left"><br>
</p>
<p style="margin-bottom: 0cm;" align="left"><br>
</p><br><p style="margin-bottom: 0cm;" align="left"><font size="2">토템플레이어로
</font><font face="네이버사전, serif"><font size="2">out.ogg</font></font><font size="2">를
열어보면 동영상으로 캡쳐된 화면을 볼수 있다</font><font face="네이버사전, serif"><font size="2">.</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><br>
</p>
<p style="margin-bottom: 0cm;" align="left"><font size="2">아래 이미지는
토템플레이어로 실행시킨 동영상 캡쳐 화면이다</font><font face="네이버사전, serif"><font size="2">.</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><br>
</p>
<p style="margin-bottom: 0cm;" align="left"><br>
</p>
<p style="margin-bottom: 0cm;" align="left"><br>
</p>
<p style="margin-bottom: 0cm;" align="left"><br>
</p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">recordmydesktop</font></font><font size="2">의
세부옵션</font></p>
<p style="margin-bottom: 0cm;" align="left"><br>
</p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Usage:
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	recordmydesktop
[OPTIONS]^filename
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">General
Options:
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-h
or --help		Print this help and exit.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	--version		Print
program version and exit.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	--print-config		Print
info about options selected during compilation and exit.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Image
Options:
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-windowid
id_of_window	id of window to be recorded.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-display
DISPLAY	Display to connect to.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-x
X			Offset in x direction.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-y
Y			Offset in y direction.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-width
N		Width of recorded window.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-height
N		Height of recorded window.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-dummy-cursor
color	Color of the dummy cursor [black|white]
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	--no-cursor		Disable
drawing of the cursor.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	--no-shared		Disable
usage of MIT-shared memory extension(Not Recommended!).
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	--full-shots		Take
full screenshot at every frame(Not recomended!).
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	--quick-subsampling	Do
subsampling of the chroma planes by discarding,not averaging.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-fps
N(number&gt;0.0)	A positive number denoting desired framerate.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Sound
Options:
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-channels
N			A positive number denoting desired sound channels in recording.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-freq
N				A positive number denoting desired sound frequency.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-buffer-size
N			A positive number denoting the desired sound buffer size (in
frames,when using ALSA or OSS)
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-ring-buffer-size
N		A float number denoting the desired ring buffer size (in
seconds,when using JACK only).
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-device

SOUND_DEVICE		Sound device(default hw:0,0).
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-use-jack
port1 port2... portn	Record audio from the specified
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">					list
of space-separated jack ports.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	--no-sound			Do
not record sound.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Encoding
Options
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	--on-the-fly-encoding	Encode
the audio-video data, while recording.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-v_quality
n		A number from 0 to 63 for desired encoded video quality(default
63).
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-v_bitrate
n		A number from 45000 to 2000000 for desired encoded video
bitrate(default 45000).
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-s_quality
n		Desired audio quality(-1 to 10).
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">Misc
Options:
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	--no-wm-check		Do
not try to detect the window manager(and set options according to
it)
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	--compress-cache	Image
data are cached with light compression.
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-workdir
DIR		Location where a temporary directory will be created to hold
project files(default $HOME).
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-delay
n[H|h|M|m]	Number of secs(default),minutes or hours before capture
starts(number can be float)
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	--overwrite		If
there is already a file with the same name, delete it
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">				(default
is to add a number postfix to the new one).
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	-o
filename		Name of recorded video(default out.ogg).
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">
</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font face="네이버사전, serif"><font size="2">	If
no other options are specified, filename can be given without the -o
switch.</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><br>
</p>
<p style="margin-bottom: 0cm;" align="left"><font size="2">마치며</font><font face="네이버사전, serif"><font size="2">..</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font size="2">윈도우의
캠타시아와 비교해서 시스템자원을 아주 작게 사용한다는게
큰 장점이다</font><font face="네이버사전, serif"><font size="2">.</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font size="2">페도라
</font><font face="네이버사전, serif"><font size="2">8</font></font><font size="2">에서는
</font><font face="네이버사전, serif"><font size="2">GUI</font></font><font size="2">로
컨트롤이 가능하지만 우분투에서는 </font><font face="네이버사전, serif"><font size="2">GUI
</font></font><font size="2">지원이 되지 않아서 세부적인
옵션을</font></p>
<p style="margin-bottom: 0cm;" align="left"><font size="2">적용하는데
불편함이 있었다</font><font face="네이버사전, serif"><font size="2">.</font></font></p>
<p style="margin-bottom: 0cm;" align="left"><font size="2">하지만
간단한 윈도우 동영상을 캡쳐하기에는 쉬운설치와
실행으로 동영상을 만들수 있었다</font><font face="네이버사전, serif"><font size="2">.
  </font></font>
</p>
 ]]> </description>
<category>Linux</category>
<author>nazin@superuser.co.kr</author>
<pubDate>Sun, 27 Apr 2008 22:32:00 +0900</pubDate>
<guid>http://www.linux.co.kr/blog/nazin/index.php/post/48</guid>
</item>
</channel>
</rss>

