>> Edit article
이름
제목
패스워드
안녕하세요 IP공유에 관한 질문좀 드리겠습니다. 3COM 랜카드 2개로 eth0,eth1 사용합니다. 헌데 eth0,1 둘다 적재시키면 리눅스박스에서 외부로 핑이 나가질 않습니다. 물론 /etc/sysconfig/network 에서 GATEWAYDEV=eth0으로 설정해 주었습니다. (저는 한국통신 ADSL 라이트를 씁니다.) ifconfig 를 보면 eth1을 활성화 시켰을때 eth1 정보 나오구요. /etc/sysconfig/network-script/ifcfg-eth1 파일정보는 DEVICE=eth1 IPADDR=10.0.0.2 NETMASK=255.255.255.0 GATEWAY=10.0.0.1 ONBOOT=yes BOOTPROTO=none 입니다. ifcfg-eth0 파일정보는 DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=10.0.0.1 NETMASK=255.255.255.0 입니다. /etc/sysconfig/network 는 NETWORKING=yes HOSTNAME=호스트명 GATEWAYDEV=eth0 이구요. /etc/rc.d/rc.local 정보는 #!/bin/sh # # This script will be executed *after* all the other init scripts. # You can put your own initialization stuff in here if you don't # want to do the full Sys V style init stuff. touch /var/lock/subsys/local /sbin/depmod -a /sbin/modprobe ipt_MASQUERADE echo 1 > /proc/sys/net/ipv4/ip_forward /sbin/iptables -A input -i eth0 -s 10.0.0.1/24 -d 0/0 -j DROP /sbin/iptables -P forward DROP /sbin/iptables -A forward -o eth0 -s 10.0.0.1/24 -p tcp -d 0/0 -j DROP /sbin/iptables -A forward -o eth0 -s 10.0.0.1/24 -p udp -d 0/0 -j DROP /sbin/iptables -A forward -o eth0 -s 10.0.0.1/24 -p tcp -d 0/0 -j DROP /sbin/iptables -A forward -o eth0 -s 10.0.0.1/24 -p udp -d 0/0 -j DROP /sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE 입니다. 제 설정중 틀린 부분이 있다면 가르쳐 주십시오. 제가 지금 의심가는부분은 /etc/modules.conf 를 해보면 alias parport_lowlevel parport_pc alias eth0 3c59x << eth0 밖에 없다는겁니다. alias sound-slot-0 via82cxxx_audio post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || : pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || : alias usb-controller usb-uhci 고수님들의 현답 기다리겠습니다. -- 이 곳에 서명을 적어주십시오. Happy Linuxing~★
Copyleft
1999-2026 by
JSBoard Open Project
Theme Designed by
IDOO
All right reserved