한 대의 PC에서 내부망과 외부망을 동시에 사용해야할 경우,
두 개의 랜카드를 설치하고 각각 내부망/외부망용 IP를 세팅한뒤 아래와 같이 설정하여 동시 사용이 가능합니다.
1. 내부망의 라우팅을 위해 명령행에서 route -p add 99.0.0.0 mask 255.0.0.0 99.1.52.1 metric 2 를 입력합니다.
(위 명령은 99번대의 IP는 99.1.52.1 게이트웨이를 사용하도록 설정하는 것입니다.
-p 옵션은 재부팅후에도 이 설정을 영속적으로 저장하기 위한 옵션이고, metric은 최적 라우팅을 나타내며 숫자가 낮을 수록 우선 순위가 높습니다.)
2. 제대로 설정되었다면 아무런 메시지 없이 프롬프트가 뜰 것입니다. route print 명령을 입력하면 설정된 정보를 확인할 수 있습니다.
3. 네트워크 연결 -> 속성 -> 일반탭의 인터넷 프로토콜(TCP/IP)의 속성 -> 고급 선택
4. 자동 메트릭의 체크를 해제하고 인터페이스 메트릭 값을 설정합니다.
외부망 랜카드의 경우 1, 내부망 랜카드의 경우 2 (1번에서 설정한 것과 같은 값으로)를 설정합니다.
(사실 이 부분은 꼭 위의 값을 넣어야 하는 것은 아니며 각각의 메트릭 값이 서로 다르기만 하면 문제없습니다. 아무래도 외부망사용이 더 많을 테니 우선 순위를 높게 준 것입니다.)
아래 블로그에 이미지가 첨부된 원문이 있습니다.
원문에서는 route 명령과 네트워크 연결의 속정설정 중 하나만 선택하여 설정하면 되는 것으로 나와있으나
실제 세팅해보면 둘 다 설정해줘야 합니다.
출처 : http://blog.naver.com/knbaram?Redirect=Log&logNo=150017027818
컴퓨터2009/06/08 17:33
컴퓨터2009/04/09 10:34
html 코드중에서 주석문을 이용해 IE 버전별로 작동하는 코드를 만들 수 있다.
예를 들어,
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="../include/css/menu.css" />
<![endif]-->
이런식으로 코딩하면 IE 6에서만 menu.css가 적용된다.
gt = selects greater than 보다큰 : if gt IE 6 -> 현재버전 > 6
lt = selects less than 보다 작은 : if lt IE 6 -> 현재버전 < 6
gte = selects greater than or equal to 같거나 큰 : if gte IE 6 -> 현재버전 >= 6
lte = selects less than or equal to 같거나 작은 : if lte IE 6 -> 현재버전 <= 6
예시 :
<!--[if IE 6]> html <![endif]-->
<!--[if IE 7.0]> html <![endif]-->
<!--[if !IE 6]><![if !IE 5.5000]> html <![endif]><![endif]-->
출처 : http://www.positioniseverything.net/articles/multiIE.html
예를 들어,
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="../include/css/menu.css" />
<![endif]-->
이런식으로 코딩하면 IE 6에서만 menu.css가 적용된다.
gt = selects greater than 보다큰 : if gt IE 6 -> 현재버전 > 6
lt = selects less than 보다 작은 : if lt IE 6 -> 현재버전 < 6
gte = selects greater than or equal to 같거나 큰 : if gte IE 6 -> 현재버전 >= 6
lte = selects less than or equal to 같거나 작은 : if lte IE 6 -> 현재버전 <= 6
예시 :
<!--[if IE 6]> html <![endif]-->
<!--[if IE 7.0]> html <![endif]-->
<!--[if !IE 6]><![if !IE 5.5000]> html <![endif]><![endif]-->
출처 : http://www.positioniseverything.net/articles/multiIE.html
컴퓨터2009/02/26 21:57
ConfigMgr.java
package soriwa.util;
import java.util.Enumeration;
import java.util.ResourceBundle;
public class ConfigMgr {
private ResourceBundle configInfo;
public ConfigMgr() {
// soriwa.prop 패키지에 messages.properties 파일이 위치함
configInfo = ResourceBundle.getBundle("soriwa.prop.messages");
}
public Enumeration getConfigKeys() {
return this.configInfo.getKeys();
}
public String getConfigValue(String key) {
return configInfo.getString(key);
}
}
messages.properties
# Location into soriwa.prop package
Test.0=aaa
test1=bbb
prop=333
# Location into soriwa.prop package
Test.0=aaa
test1=bbb
prop=333
ConfigRead.java
package soriwa.util;
import java.util.Enumeration;
import java.util.MissingResourceException;
public class ConfigRead {
public static void main(String[] args) {
try {
ConfigMgr configMgr = new ConfigMgr();
Enumeration keys = configMgr.getConfigKeys();
while(keys.hasMoreElements()) {
String key = null;
String value = null;
key = (String) keys.nextElement();
value = configMgr.getConfigValue(key);
System.out.println(key + "=" + value);
}
} catch (MissingResourceException e) {
System.err.println("properties파일이 없거나 해당 키가 없을 때 발생");
e.printStackTrace();
}
}
}
package soriwa.util;
import java.util.Enumeration;
import java.util.MissingResourceException;
public class ConfigRead {
public static void main(String[] args) {
try {
ConfigMgr configMgr = new ConfigMgr();
Enumeration keys = configMgr.getConfigKeys();
while(keys.hasMoreElements()) {
String key = null;
String value = null;
key = (String) keys.nextElement();
value = configMgr.getConfigValue(key);
System.out.println(key + "=" + value);
}
} catch (MissingResourceException e) {
System.err.println("properties파일이 없거나 해당 키가 없을 때 발생");
e.printStackTrace();
}
}
}
이올린에 북마크하기
