|  | 
			
				| 
			
				| #------------------------------------------------------------ # 테스트 장비
 #------------------------------------------------------------
 ServerIronXL  16P
 #------------------------------------------------------------
 # 장비 초기화 상태로 만든다.
 #------------------------------------------------------------
 ServerIron #erase startup-config
 ServerIron #Erase flash Done.
 #------------------------------------------------------------
 # show
 #------------------------------------------------------------
 |  | 
			
				|  | 
			
				| 
			
				| #------------------------------------------------------------ # config 초기화
 #------------------------------------------------------------
 ServerIron #conf(figure) t(erminal)
 ServerIron (config)#crypt key zeroize rsa
 ServerIron (config)#^Z
 ServerIron #reload
 
 Are you sure? (enter 'y' or 'n'): y
 Running Config data has been changed.   Do you want to continue
 the reload without saving the running config? (enter 'y' or 'n'): y
 Halt and reboot
 Enter 'b' to go to boot monitor ...
 BOOT INFO: load from primary copy
 BOOT INFO: bootparam at 05ffffe0, mp_flash_size = 00165273
 BOOT INFO: code decompression completed
 BOOT INFO: branch to 04001500
 INFO: empty config data in the primary area, try to read from backup
 INFO: empty config data in the backup area also
 
 SW: Version 07.4.01fT12 Copyright (c) 1996-2002 Foundry Networks, Inc.
 Compiled on Dec 09 2005 at 19:37:02 labeled as SLB07401f
 (1462899 bytes) from Primary SLB07401f.bin
 HW: ServerIron Switch, serial number 62ac4e
 400 MHz Power PC processor 740 (revision 8) with 32756K bytes of       DRAM
 16 100BaseT interfaces with Level 1 Transceiver LXT975
 0  uplink interfaces
 256 KB PRAM and 8*2048 CAM entries for DMA 1, version 0807
 256 KB PRAM and 8*2048 CAM entries for DMA 2, version 0807
 128 KB boot flash memory
 4096 KB code flash memory
 2048 KB BRAM, BM version 02
 128 KB QRAM
 512 KB SRAM
 Octal System, Maximum Code Image Size Supported: 1965568 (0x001dfe00)
 The system : started=warm start   reloaded=by "reload"
 
 FSecure SSH is included in this product
 ServerIron>
 |  | 
			
				|  | 
			
				| ① SLB 설정 순서 | 
			
				| 
			
				| 1. Switch의 IP address 설정 2. Real server 설정
 3. Real server에 load balancing할 port 설정
 4. Virtual server 설정
 5. Virtual server에 load balancing할 port 설정
 6. Load balancing할 port bind설정
 7. Server router-ports 지정(순서 상관 없음)
 |  
 
				
					| ServerIron>enable Password:****
 
 ServerIron#config term
 ServerIron(config)#ip add 209.157.22.10/24 : switch의 IP Address를 설정하는 명령
 ServerIron(config)#ip default-gateway 209.157.22.10 : switch의 default-gateway를 설정하는 명령
 ServerIron(config)#server router-port 1 : router가 연결되어 있는 port를 지정하는 명령
 |  | 
			
				| ② 리얼서버 설정 | 
			
				| 
					
						| ServerIron(config)#server real server1 209.157.22.1  : real server를 설정하는 명령 ServerIron(config-rs-server1)#port http                : load balancing할 port를 지정하는 명령
 ServerIron(config-rs-server1)#port default disable
 ServerIron(config-rs-server1)#port http keepalive  : http port  health check를 enable시킴
 ServerIron(config-rs-server1)#port http url “HEAD /”
 ServerIron(config-rs-server1)#port http status-code 200 206 300 305
 
 ServerIron(config-rs-server1)#server real server2 209.157.22.2
 ServerIron(config-rs-server2)#port http
 ServerIron(config-rs-server2)#port default disable
 ServerIron(config-rs-server1)#port http keepalive
 ServerIron(config-rs-server1)#port http url “HEAD /”
 ServerIron(config-rs-server1)#port http status-code 200 206 300 305
 |  | 
			
				| ③ 버추얼서버 설정 | 
			
				| 
					
						| ServerIron(config-vs-server2)#server virtual virtual1 209.157.22.101 : virtual server를 설정하는 명령 ServerIron(config-vs-virtual1)#predictor round-robin
 ServerIron(config-vs-virtual1)#port http
 ServerIron(config-vs-virtual1)#port default disable
 ServerIron(config-vs-virtual1)#port dsr fast-delete
 ServerIron(config-vs-virtual1)#bind http server1 http server2 http : virtual server virtual1의 http
 ServerIron(config-vs-virtual1)#end             port에 real server 1, 2의 http port를 bind하는 명령(real server 1개씩 추가/삭제 가능)
 |  | 
			
				| ④ vlan 설정 | 
			
				| 
					
						| ServerIron(config)# vlan 1 name DEFAULT-VLAN ServerIron(config-vlan-1)# no spanning-tree
 
 ServerIron#write memory
 ServerIron#.Write startup-config in progress.
 .Write startup-config done.
 ServerIron#
 |  | 
			
				| ⑤ Real Server에서 Loadbalancing Port를 추가/삭제하는 방법 | 
			
				| 
					예 )
						| ServerIron>enable Password:****
 
 ServerIron#config term
 
 ServerIron(config)#server  real < real-server name >  : Real server로 들어가는 명령
 ServerIron(config-rs-Real server name)#port < Port name >  : Port 추가 시키는 명령
 ServerIron(config-rs- Real server name)#no port < Port name >  : Port  삭제 시키는 명령
 
 |  
 
					
						| ServerIron(config-rs-Real server name)#port  http 또는 port  80 ServerIron(config-rs-Real server name)#no port  http 또는 port  80al server name)#no port < Port name >  : Port  삭제 시키는 명령
 |  | 
			
				| ⑥ Vitrual Server에서 Loadbalancing Port를 추가/삭제하는 방법 | 
			
				| 
					예 )
						| ServerIron>enable Password:****
 
 ServerIron#config term
 
 ServerIron(config)#server  virtual < virtual-server name > : Virtual server로 들어가는 명령
 ServerIron(config-vs-virtual server name)#bind  < port name >< real server name >< port name >…….
 
 :  Port binding 시키는 명령
						ServerIron(config-vs-virtual server name)#no bind  < port name >< real server name >< port name >…….
 
 :  Port  unbinding 시키는 명령
 |  
 
					
						| ServerIron(config)#server  virtual  WWW ServerIron(config-vs-WWW)# bind  http  real-1  http  real-2  http    : Loadbalancing할 real server가 real-1과 real-2 두개가 있다고 할 때
 ServerIron(config-vs-WWW)# no  bind  http  real-2  http    : real-2라는 real server에 http port를 unbinding 시키는 명령
 |  | 
			
				| ⑦ logging 및 buffer 설정 | 
			
				| 
					
						| ServerIron(config)#logging 192.168.0.241 ServerIron(config)#logging 192.168.0.225
 ServerIron(config)#logging buffered 100
 |  | 
			
				| ⑧ snmp 설정 | 
			
				| 
					
						| ServerIron(config)#snmp-server ServerIron(config)#snmp-server community "커뮤니티 이름" ro 100
 ServerIron(config)#snmp-server community "커뮤니티 이름" rw 200
 ServerIron(config)#snmp-server host 192.168.0.241 .....
 ServerIron(config)#snmp-server host 192.168.0.225 .....
 |  | 
			
				| ⑨ time 및 ntp 서버 설정 | 
			
				| 
					
						| ServerIron(config)#clock timezone gmt GMT+09 ServerIron(config)#sntp server 192.168.0.241
 ServerIron(config)#ssh access-group 10
 |  | 
			
				| ⑩ network 설정 | 
			
				| 
					
						| ServerIron(config)#int e 1 to 16 ServerIron(config)#speed-du 100-full
 ServerIron(config)#no span
 ServerIron(config)#show conf
 :
 interface ethernet 1
 port-name =xef65lb1s=
 load-interval 30
 no spanning-tree
 
 interface ethernet 2
 load-interval 30
 no spanning-tree
 
 interface ethernet 3
 port-name << xef65sw11 >>
 load-interval 30
 no spanning-tree         -> 꼭 해 줘야 루핑이 방지됨.
 :
 access-list 10 permit 10.121.254.0 0.0.0.255
 access-list 20 permit host 10.10.10.253
 access-list 20 permit host 10.10.10.254
 access-list 40 permit 10.10.10.0 0.0.0.255
 |  | 
			
				| ⑪ ssh raa 키 및 key login 설정 | 
			
				| 
					
						| ServerIron(config)#crypto key generate rsa ServerIron(config)#ip ssh rsa-authentication no
 |  |