렌카드 2장을 설치했습니다.

gauibauibo의 이미지

gentoo사용자 입니다.

렌카드 하나는 공유기 뒷단의 내부ip를 받고

다른 하나는 고정ip로 외부 ip를 받을려고 렌카드 2장을 설치했습니다.

설정은

#/etc/conf.d/net
 config_eth0=( "192.168.1.231 netmask 255.255.255.0" )
 routes_eth0=("default via 192.168.1.1")
 
config_eth1=( "211.232.xxx.xxx netmask 255.255.255.128" )
routes_eth1=("default via 211.232.xxx.xxx")


ln -s net.lo net.eth1

이렇게 하고

ifconfig로 확인을 해보면

eth0      Link encap:Ethernet  HWaddr 00:19:D1:3E:29:8D  
          inet addr:192.168.1.231  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:48981 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1739 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4068997 (3.8 Mb)  TX bytes:322980 (315.4 Kb)
 
eth1      Link encap:Ethernet  HWaddr 00:50:04:BB:xx:xx  
          inet addr:211.232.xxx.xxx  Bcast:211.232.xxx.255  Mask:255.255.255.128
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:139418 errors:0 dropped:0 overruns:0 frame:0
          TX packets:247 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:10413838 (9.9 Mb)  TX bytes:49612 (48.4 Kb)
          Interrupt:22 Base address:0xa000 
 
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:149 errors:0 dropped:0 overruns:0 frame:0
          TX packets:149 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:14247 (13.9 Kb)  TX bytes:14247 (13.9 Kb)

로 ip는 다 받아온것 같은데

외부에서 고정 ip에 ping을 보내보면 아무런 응답이 없습니다.

그래서 route로 확인 해보니

Kernel IP routing table
Destination                   Gateway           Genmask                     Flags   Metric    Ref    Use   Iface
211-232-xxx-xxx.         *                       255.255.255.128      U          0              0        0     eth1
192.168.1.0                  *                      255.2255.55.0          U          0              0        0     eth0
loopback                        *                      255.0.0.0                U          0              0        0       lo
default                        192.168.1.1     0.0.0.0                    UG      0        0          0     eth0

eth1의 gateway번호가 안올라와서

route add default gw 211.232.xxx.xxx

로 gateway를 다시 올린후 다시 route로 확인해보니
Kernel IP routing table
Destination                   Gateway           Genmask                     Flags   Metric    Ref    Use   Iface
211-232-xxx-xxx.         *                       255.255.255.128      U          0              0        0     eth1
192.168.1.0                  *                      255.2255.55.0          U          0              0        0     eth0
loopback                        *                      255.0.0.0                U          0              0        0       lo
default                        211-232-xxx-xxx. 0.0.0.0               UG          0            0         0     eht1
default                        192.168.1.1     0.0.0.0                    UG      0        0          0     eth0

로 gateway 올라온거 확인하고

다시 외부에서 고정 ip로 ping해봐도 응답이 없습니다.

ip도 받아온것 같고 gateway도 설정했는데 왜 ping이 안되는지 모르겟습니다.

그리고 net 에서

routes_eth1=("default via 211.232.xxx.xxx")

로 eth1의 gateway를 설정해줬는데 왜 기본으로 gateway가 설정이 안되는지도 궁금합니다.

해야 할일은 많은데 모르는게 너무 많네요.... 에휴~~~

많은 조언 부탁드리겠습니다.

aiko의 이미지

routes_eth0=("default via 192.168.1.1")

이부분을 제외하고 해보세요!!