[질문] 1개의 인터넷 eth2 / 2개 내부 네트워크 (eth0,eth1) 설정 질문입니다

안녕하세요

ubuntu server 12.04 사용하고 있는데요.

인터넷 연결용 eth2

내부 네트워크용(dhcpd) eth0,eth1을 사용하는데 eht0나 eth1로는 잘 작동하는데
두개를 같이 사용할려고 하니 어렵습니다.

내부 사이트 가 192.168.10.1 이라
네트워크를 따로 설정( eth0-192.168.10.1 / eth1-192.168.20.1) 이런식으로 사용하면
안될것 같아서

bonding 이 있다고 해서 그것도 사용해 보았더니
하나만 연결시 (eth0,eth1) 잘되는데 두개 동시 사용하니 작동하지가 않더군요.

route 개념을 잘몰라서 그러는데

어떻게 해야 될까요?

지금 세팅은 다음과 같습니다.
/etc/network/interfaces

auto eth0
iface eth0 inet static
address 192.168.10.1
netmask 255.255.255.0

auto eth1
iface eth1 inet static
address 192.168.10.241
netmask 255.255.255.0

The third

auto eth2
iface eth2 inet dhcp

//////////////////////////////////////////

/etc/dhcp/dhcpd.conf
//////////////////////////////////////////

ddns-update-style none;
option domain-name "vodserver.kr";
option domain-name-servers 210.94.0.73, 211.47.128.1;
option routers 192.168.10.1;
authoritative;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;

subnet 192.168.10.0 netmask 255.255.255.0{
range 192.168.10.3 192.168.10.240;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.10.255;

}

//////////////////////////////////////////

/etc/default/isc-dhcp-server
//////////////////////////////////////////
INTERFACES="eth0 eth1"
//////////////////////////////////////////

/etc/sysctl.conf
//////////////////////////////////////////
net.ipv4.ip_forward=1
//////////////////////////////////////////

vi /etc/rc.local
//////////////////////////////////////////
/sbin/iptables -P FORWARD ACCEPT
/sbin/iptables --table nat -A POSTROUTING -o eth2 -j MASQUERADE
//////////////////////////////////////////

전문가님들의 도움이 필요합니다. ㅜ.ㅜ

안녕하세요.

[quote="paradius":2fbfvf73]
auto eth0
iface eth0 inet static
address 192.168.10.1
netmask 255.255.255.0

auto eth1
iface eth1 inet static
address 192.168.10.241
netmask 255.255.255.0
[/quote:2fbfvf73]

말씀하신 것처럼 위의 설정으로는
두 인터페이스를 사용하기는 힘들 것 같습니다.

eth2가 인터넷 접속에 사용하신다면
eth0과 eth1의 목적은 무엇인가요?

답변 달아주셔서 고맙습니다.

답변없어서 아무도 모르시는줄알고

몇일 더 테스트 해보니 지금은 작동합니다.

내용은

eth0,eth1은 내부 내트워크로 eth2를 통해 외부인터넷과 내부 사이트(192.168.10.1)을 사용하려고 만들었습니다.

interface에서

eth0 192.168.10.1

eth1 192.168.20.1

로 세팅해서 하니 dhcp에서 설정하니

내부 사이트(192.168.10.1)도 잘되는것 같습니다.

아직 테스트 중입니다.

고맙습니다.^^