Linux2011. 12. 2. 21:03
iptables에서 masquerade만 지원하면 된다는데
부가적으로 dhcp server(공유기에 붙을 녀석을위해)
dhcp client(modem등에서 받기위해)
그리고 iptables 혹은 ipchain(방화벽)

이렇게만 깔면되는것 같은데 흐음...

[링크 : http://wiki.kldp.org/wiki.php/DocbookSgml/Masquerading-Simple-HOWTO]
[링크 : http://nenunena.tistory.com/87] << AP

'Linux' 카테고리의 다른 글

조이스틱 / 조이패드 on ubuntu  (2) 2011.12.23
iptables MASQUERADE (공유기 만들기?)  (0) 2011.12.04
SATA 와 IDE 하드 순서 인식 뒤바뀌는 문제  (0) 2011.11.23
vlan과 ip alias  (0) 2011.11.05
xz 압축프로그램  (2) 2011.10.28
Posted by 구차니
Linux2011. 11. 23. 10:52
IDE 80GB / sda
SATA 500GB / sdb 에 붙어야 하는 시스템인데
(아래는 정상부팅시 mount 상태)

어떤 이유인지 가끔 부팅시에
SATA 500GB / sda
IDE 80GB / sdb
로 붙고 sda는 그나마
파티션도 제대로 인식을 못하는 경우가 있다.



검색을 하다 포기했는데 또 같은일이 벌여져서 우씨! 하고 BIOS 옵션 뒤져봐도 안나오고 -_-
포기한 마음에 한글로 검색해봤는데 똭~!

흐음.. initrd를 공부해 봐야하나?

fedora 9의 커널 버전별로 인식되는 순서가 달라져서
각 커널의 /var/log/dmesg를 비교해보니
nforc4 메인보드라서 libata가 로드되면서 pata_amd와 sata_nv가 로드되는데 
문제가 일어나는 경우는 부팅시 sata_nv가 pata_amd보다 먼저 로드되더군요.
그래서 pata_amd가 sata_nv보다 먼저 로드되도록 /boot/initrd 이미지를 새로 만들었습니다.
mkinitrd --preload=pata_amd initrd-$(uname -r).img_new $(uname -r)
새로 만들어진 initrd 이미지로 부팅하니 문제가 해결됬네요.

[링크 : http://www.ubuntu.or.kr/viewtopic.php?p=1888



음.. 내 시스템에서는 initrd가 문제가 아니고.. SATA 컨트롤러 문제인가?
순서가 바뀌는건 아닌데 하드 인식을 제대로 못하는군...

2011/11/23 - [프로그램 사용/SMB(Samba)] - samba에 갑작스러운 "엑세스 거부"

'Linux' 카테고리의 다른 글

iptables MASQUERADE (공유기 만들기?)  (0) 2011.12.04
리눅스를 라우터로 만들기  (0) 2011.12.02
vlan과 ip alias  (0) 2011.11.05
xz 압축프로그램  (2) 2011.10.28
리눅스에서 파일 복구  (0) 2011.10.24
Posted by 구차니
Linux/Ubuntu2011. 11. 21. 17:05
패키지는 클라이언트용 snmp와 서버용 snmpd가 존재한다.
snmp - SNMP (Simple Network Management Protocol) applications
snmpd - SNMP (Simple Network Management Protocol) agents

$ snmpwalk -v 2c -c public 192.168.10.19
심심해서 복사기에 snmp가 지원한다고 하길래 해봤더니.. -_-
무려 1393라인에 걸쳐 나오는 센스

[링크 : http://www.joinc.co.kr/modules/moniwiki/wiki.php/article/SNMP_%B0%B3%BF%E4]
[링크 : http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/SNMP/document/net_snmp5]
[링크 : http://www.it-slav.net/blogs/2009/02/05/install-and-configure-snmp-on-ubuntu/]

'Linux > Ubuntu' 카테고리의 다른 글

ubuntu server / desktop edition의 차이점  (0) 2011.12.03
ubuntu 64bit server 10.04 LTS 부팅이 안돼!  (0) 2011.12.03
ubuntu 10.04 LTS 최소 디스크 사이즈  (0) 2011.11.15
vlan 1은 지원안함?  (0) 2011.11.06
ip alias on ubuntu  (0) 2011.11.05
Posted by 구차니
Linux/Ubuntu2011. 11. 15. 20:41
2.4 기가는 필요하다고 하네 -ㅁ-
그냥 깔아보니 2기가면 될줄알았는데 일단 무시하고 설치중 ㅋㅋ

 
무시한다고 깔려주지 않는 녹록하지 않은 우분투 ㅠ.ㅠ
512MB의 메모리로 설정을 했는데, 2GB+swap으로 2.4기가 때려잡는것 같은데...
에효~ 3기가로 늘리고 다시 해봐야겠다~

 

'Linux > Ubuntu' 카테고리의 다른 글

ubuntu 64bit server 10.04 LTS 부팅이 안돼!  (0) 2011.12.03
snmp - ubuntu  (0) 2011.11.21
vlan 1은 지원안함?  (0) 2011.11.06
ip alias on ubuntu  (0) 2011.11.05
vlan on ubnutu  (0) 2011.11.05
Posted by 구차니
Linux/Ubuntu2011. 11. 6. 20:30
음.. 기본적으로 10번 VLAN으로 되어있어서 왜 그런가 했는데
1번을 해봤더니 다음과 같은 에러를 뱉어내는군!

$ sudo vconfig add eth0 1
Added VLAN with VID == 1 to IF -:eth0:-
WARNING:  VLAN 1 does not work with many switches,
consider another number if you have problems. 


'Linux > Ubuntu' 카테고리의 다른 글

snmp - ubuntu  (0) 2011.11.21
ubuntu 10.04 LTS 최소 디스크 사이즈  (0) 2011.11.15
ip alias on ubuntu  (0) 2011.11.05
vlan on ubnutu  (0) 2011.11.05
netbeans package - ubuntu  (0) 2011.10.22
Posted by 구차니
Linux/Ubuntu2011. 11. 5. 23:59
ip alias는 동일 MAC에 여러개의 IP를 할당하는 기술이다.
단순하게 ifconfig 만으로 사용이 가능하며 : 구분자를 이용하여 할당한다.
기본적으로 추가된 가상 랜카드의 맥 어드레스는 물리 랜카드의 맥 어드레스와 동일하게 잡히게 된다.

$ sudo ifconfig eth0:0 192.168.1.1 up

$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:e0:91:0b:75:8c  
          inet addr:192.168.0.154  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:91ff:fe0b:758c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1164 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1221 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1306134 (1.3 MB)  TX bytes:139974 (139.9 KB)
          Interrupt:16 

eth0:0    Link encap:Ethernet  HWaddr 00:e0:91:0b:75:8c  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 

[링크 : http://www.cyberciti.biz/tips/ubuntu-linux-creating-ethernet-alias-for-eth0-network-device.html

'Linux > Ubuntu' 카테고리의 다른 글

ubuntu 10.04 LTS 최소 디스크 사이즈  (0) 2011.11.15
vlan 1은 지원안함?  (0) 2011.11.06
vlan on ubnutu  (0) 2011.11.05
netbeans package - ubuntu  (0) 2011.10.22
sudo timeout 늘리기  (0) 2011.10.05
Posted by 구차니
Linux/Ubuntu2011. 11. 5. 23:55
vlan은 우분투에서 vlan 패키지로 vconfig라는 프로그램을 제공하게 된다.

$ vconfig
'vconfig' 프로그램은 현재 설치되어 있지 않습니다.  다음을 입력하여 이를 설치할 수 있습니다:
sudo apt-get install vlan

$ sudo apt-get install vlan
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다       
상태 정보를 읽는 중입니다... 완료
다음 새 패키지를 설치할 것입니다:
  vlan
0개 업그레이드, 1개 새로 설치, 0개 지우기 및 2개 업그레이드 안 함.
40.3k바이트 아카이브를 받아야 합니다.
이 작업 후 180k바이트의 디스크 공간을 더 사용하게 됩니다.
받기:1 http://kr.archive.ubuntu.com/ubuntu/ lucid/main vlan 1.9-3ubuntu3 [40.3kB]
내려받기 40.3k바이트, 소요시간 0초 (242k바이트/초)
전에 선택하지 않은 vlan 패키지를 선택합니다.
(데이터베이스 읽는중 ...현재 185765개의 파일과 디렉토리가 설치되어 있습니다.)
vlan 패키지를 푸는 중입니다 (.../vlan_1.9-3ubuntu3_i386.deb에서) ...
man-db에 대한 트리거를 처리하는 중입니다 ...
vlan (1.9-3ubuntu3) 설정하는 중입니다 ...

$ vconfig
Expecting argc to be 3-5, inclusive.  Was: 1

Usage: add             [interface-name] [vlan_id]
       rem             [vlan-name]
       set_flag        [interface-name] [flag-num]       [0 | 1]
       set_egress_map  [vlan-name]      [skb_priority]   [vlan_qos]
       set_ingress_map [vlan-name]      [skb_priority]   [vlan_qos]
       set_name_type   [name-type]

* The [interface-name] is the name of the ethernet card that hosts
  the VLAN you are talking about.
* The vlan_id is the identifier (0-4095) of the VLAN you are operating on.
* skb_priority is the priority in the socket buffer (sk_buff).
* vlan_qos is the 3 bit priority in the VLAN header
* name-type:  VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),
              DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)
* FLAGS:  1 REORDER_HDR  When this is set, the VLAN device will move the
            ethernet header around to make it look exactly like a real
            ethernet device.  This may help programs such as DHCPd which
            read the raw ethernet packet and make assumptions about the
            location of bytes.  If you don't need it, don't turn it on, because
            there will be at least a small performance degradation.  Default
            is OFF.

$ sudo modprobe 8021q

$ lsmod | grep 8021q
8021q                  18564  0 
garp                    6284  1 8021q

$ sudo vconfig add eth0 10
Added VLAN with VID == 10 to IF -:eth0:-

$ sudo ifconfig eth0.10 10.0.0.1 netmask 255.255.255.0

$ ifconfig
eth0.10   Link encap:Ethernet  HWaddr 00:e0:91:0b:75:8c  
          inet addr:10.0.0.1  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:91ff:fe0b:758c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:2110 (2.1 KB) 

[링크 : https://wiki.ubuntu.com/vlan]

'Linux > Ubuntu' 카테고리의 다른 글

vlan 1은 지원안함?  (0) 2011.11.06
ip alias on ubuntu  (0) 2011.11.05
netbeans package - ubuntu  (0) 2011.10.22
sudo timeout 늘리기  (0) 2011.10.05
리눅스에서 하드 I/O 사용량 측정하는 방법  (0) 2011.09.27
Posted by 구차니
Linux2011. 11. 5. 22:24
vlan은 eth0.1 과 같이 이름이 붙고
ip alias는 eth0:1 과 같이 이름이 붙는다.

vlan은 물리적 네트워크에서 논리적으로 네트워크를 분리하는 기술이고
ip alias는 하나의 NIC에 복수개의 ip를 할당하는 기술이다.
하나의 장치에 여러개의 아이피가 부여된다는 동일하지만
ip alias를 아이피를 부여하는 기반기술이고 그걸 기반으로 vlan이 돌아간다고
해야하니 연관이 없진 않은 것 같기도 하고 흐음...
시간이 흘러 구현이 되었을수도 있지만
wireless에서는 vlan(802.1q)가 지원되지 않는다고 한다.

아무튼 검색할 꺼리를 던져준 동기에게 쌩유! ㅋㅋ

[링크 : https://wiki.ubuntu.com/vlan]
[링크 : http://www.cyberciti.biz/tips/ubuntu-linux-creating-ethernet-alias-for-eth0-network-device.html]

'Linux' 카테고리의 다른 글

리눅스를 라우터로 만들기  (0) 2011.12.02
SATA 와 IDE 하드 순서 인식 뒤바뀌는 문제  (0) 2011.11.23
xz 압축프로그램  (2) 2011.10.28
리눅스에서 파일 복구  (0) 2011.10.24
which 와 whereis  (0) 2011.10.24
Posted by 구차니
Linux2011. 10. 28. 22:33
id-util 이라는걸 받다가 발견한 희한한 확장자
검색을 해보니 bzip2 와 같은 LZMA 방식의 무손실 압축기법이고

리눅스에서 명령어는 xz 이다.
$ xz --help
Usage: xz [OPTION]... [FILE]...
Compress or decompress FILEs in the .xz format.

Mandatory arguments to long options are mandatory for short options too.

  -z, --compress      force compression
  -d, --decompress    force decompression
  -t, --test          test compressed file integrity
  -l, --list          list information about files
  -k, --keep          keep (don't delete) input files
  -f, --force         force overwrite of output file and (de)compress links
  -c, --stdout        write to standard output and don't delete input files
  -0 .. -9            compression preset; 0-2 fast compression, 3-5 good
                      compression, 6-9 excellent compression; default is 6
  -e, --extreme       use more CPU time when encoding to increase compression
                      ratio without increasing memory usage of the decoder
  -q, --quiet         suppress warnings; specify twice to suppress errors too
  -v, --verbose       be verbose; specify twice for even more verbose
  -h, --help          display this short help and exit
  -H, --long-help     display the long help (lists also the advanced options)
  -V, --version       display the version number and exit

With no FILE, or when FILE is -, read standard input.

Report bugs to <lasse.collin@tukaani.org> (in English or Finnish).
XZ Utils home page: <http://tukaani.org/xz/> 

[링크 : http://ftp.gnu.org/gnu/idutils/]
[링크 : http://en.wikipedia.org/wiki/Xz ]
[링크 : http://en.wikipedia.org/wiki/XZ_Utils]

'Linux' 카테고리의 다른 글

SATA 와 IDE 하드 순서 인식 뒤바뀌는 문제  (0) 2011.11.23
vlan과 ip alias  (0) 2011.11.05
리눅스에서 파일 복구  (0) 2011.10.24
which 와 whereis  (0) 2011.10.24
top은 잊어라! htop  (0) 2011.10.07
Posted by 구차니
Linux2011. 10. 24. 22:09
우분투의 경우에는 기본적으로 debugfs가 내장되어 있으니
사용법만 안다면 이걸로 삭제된 파일도 복구가 가능할듯하다.

[링크 : http://blog.foxb.kr/211]              foremost package
[링크 : http://shared.tistory.com/64]      testdisk package
[링크 : http://sharpwork.pe.kr/bbs/board.php?folder=&bo_table=linux&page=1&bbs_id=2366] debugfs

[링크 : http://linux.die.net/man/8/debugfs]

'Linux' 카테고리의 다른 글

vlan과 ip alias  (0) 2011.11.05
xz 압축프로그램  (2) 2011.10.28
which 와 whereis  (0) 2011.10.24
top은 잊어라! htop  (0) 2011.10.07
멀티코어 시스템의 cpu 사용율 체크하기  (0) 2011.10.07
Posted by 구차니