안녕하세요
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
//////////////////////////////////////////
전문가님들의 도움이 필요합니다. ㅜ.ㅜ