기존 이솝 임베디드 포럼의 지식인 서비스가 게시판 형태로 변경되었습니다.

telnet localhost 80 처럼 자기자신에게 접속이 가능한지 확인해보니 안되네요..

ping 도 자기자신에는 안되고..


kernel 에 무언가 작업을 해주거나 하는게 있는지요..?

고수님들의 조언 부탁드립니다.


관리자

2012.09.25 05:49:14
*.200.239.210

localhost가 등록이 안된것 아닌가요?


그리고..........질문이 제가 이해가 약간 이해가 안되네요...ㅠ.ㅠ

뭘 어디서 어떻게 해 봤다는지에 대한 글이 없어서요...

동수아빠

2012.09.25 18:45:26
*.53.79.146

제가 너무 자세히 질문드리지 않았나보네요.. 죄송합니다.

ping 127.0.0.1 이나 ping localhost 를 하게 되면 자기자신에게 ping 이 가잖아요..

그런데 오류가 나더라구요..

ping localhost 를 하니까 PING localhost (127.0.0.1) : 56 data bytes 라고 나오는걸 보니 찾아가는것 같기는 한데..

이렇게 자기자신으로의 루프백을 하기위해 별도로 해주어야 하는게 있는지 질문드렸습니다.

수고하세요.



관리자

2012.09.25 20:14:42
*.200.239.210

network stack이 disable 상태가 아니면 위 증상이 발생하기 힘듭니다.


자기 자신한테 보내는 packet은 ethernet이 없더라도 발생은 해야합니다.

device drivers 설정에서 loopback device가 활성화 되었는지 확인 부탁드립니다.

동수아빠

2012.09.25 20:44:10
*.53.79.146

했는데도 그러네요 

컴파일할때 보면 driver/net/loopback.o 도 컴파일되는거 보면 정상적으로 포함된것 같긴한데..

좀더 찾아봐야겠네요..

감사합니다.

고도리

2012.09.26 00:22:13
*.200.239.210

ifconfig -a 해서


eth0      Link encap:Ethernet  HWaddr 48:5b:39:a6:be:17
          inet addr:192.168.0.199  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::4a5b:39ff:fea6:be17/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:154472911 errors:0 dropped:0 overruns:0 frame:0
          TX packets:169068176 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:121966982272 (121.9 GB)  TX bytes:178739579762 (178.7 GB)
          Interrupt:42 Base address:0xe000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:10283546 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10283546 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1980163161 (1.9 GB)  TX bytes:1980163161 (1.9 GB)

이렇게 확인 하셨나요?????

동수아빠

2012.09.26 00:41:56
*.53.79.146

eth0      Link encap:Ethernet  HWaddr F0:D1:4F:00:00:55  
          inet addr:192.168.20.20  Bcast:192.168.20.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1641 errors:0 dropped:0 overruns:0 frame:0
          TX packets:173 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:127486 (124.4 KiB)  TX bytes:20148 (19.6 KiB)
          Interrupt:38 

lo        Link encap:Local Loopback  
          LOOPBACK  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

이렇게 출력되네요.. 어떻게 해야 하나요..?

고도리

2012.09.26 01:05:44
*.200.239.210

외부 디바이스는 동작하네요......


음.....이럼 커널 옵션 중에 머가 하나 빠진 것인데요....쩝


kernel network option 이 제거는 이렇게 되어 있습니다.


#

# Networking options

#

CONFIG_PACKET=y

CONFIG_UNIX=y

CONFIG_XFRM=y

# CONFIG_XFRM_USER is not set

# CONFIG_XFRM_SUB_POLICY is not set

# CONFIG_XFRM_MIGRATE is not set

# CONFIG_XFRM_STATISTICS is not set

CONFIG_XFRM_IPCOMP=y

CONFIG_NET_KEY=y

# CONFIG_NET_KEY_MIGRATE is not set

CONFIG_INET=y

CONFIG_IP_MULTICAST=y

CONFIG_IP_ADVANCED_ROUTER=y

# CONFIG_IP_FIB_TRIE_STATS is not set

CONFIG_IP_MULTIPLE_TABLES=y

# CONFIG_IP_ROUTE_MULTIPATH is not set

# CONFIG_IP_ROUTE_VERBOSE is not set

CONFIG_IP_PNP=y

CONFIG_IP_PNP_DHCP=y

CONFIG_IP_PNP_BOOTP=y

CONFIG_IP_PNP_RARP=y

CONFIG_NET_IPIP=y

CONFIG_NET_IPGRE_DEMUX=y


앞부분만요.......

동수아빠

2012.09.26 01:41:13
*.53.79.146

아~


ifconfig lo up 하니까 제대로 되네요..

답변주신 모든 분들께 감사드립니다.~

혹시 비슷한 경우 있으시면 참고하세요~~

고도리

2012.09.26 04:13:40
*.200.239.210

ㅠ.ㅠ.....................


root filesystem 누가 구성했는지 잡아다가 족치세요.......ㅠ.ㅠ

(본인이시면..........참회를....ㅎㅎ)


여하튼 잘되었네요.

고도리

2012.09.26 04:20:54
*.200.239.210

저는 부팅 때.....이런 스크립트를 사용합니다. 


참고하시기 바랍니다.

------------------------------------------------------------


#! /bin/sh

#

# rc.inet1 This shell script boots up the base INET system.

#

# Version: @(#)/etc/rc.d/rc.inet1 2.00 10/06/1999

#


HOSTNAME=`cat /etc/HOSTNAME`


# Attach the loopback device.

/sbin/ifconfig lo 127.0.0.1

/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo


# IF YOU HAVE AN ETHERNET CONNECTION, use these lines below to configure the 

# eth0 interface.


# Edit these values to set up a static IP address:

IPADDR="220.78.49.205" # REPLACE with YOUR IP address!

NETMASK="255.255.255.128" # REPLACE with YOUR netmask!

NETWORK="220.78.49.0" # REPLACE with YOUR network address!

BROADCAST="220.78.49.255" # REPLACE with YOUR broadcast address, if you

# have one. If not, leave blank and edit below.

GATEWAY="220.78.49.252" # REPLACE with YOUR gateway address!


# To use DHCP instead of a static IP, set this value to "yes":

DHCP="no"            # Use DHCP ("yes" or "no")


# OK, time to set up the interface:

if [ "$DHCP" = "yes" ]; then # use DHCP to set everything up:

  echo "Attempting to configure eth0 by contacting a DHCP server..."

  /sbin/dhcpcd 

elif [ ! "$IPADDR" = "127.0.0.1" ]; then # set up IP statically:

  # Set up the ethernet card:

  echo "Configuring eth0 as ${IPADDR}..."

  /sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}


  # If that didn't succeed, give the system administrator some hints:

  if [ ! $? = 0 ]; then

    cat << EOF

Your ethernet card was not initialized properly.  Here are some reasons why this

may have happened, and the solutions:

1. Your kernel does not contain support for your card.  Including all the 

   network drivers in a Linux kernel can make it too large to even boot, and

   sometimes including extra drivers can cause system hangs.  To support your

   ethernet, either edit /etc/rc.d/rc.modules to load the support at boottime,

   or compile and install a kernel that contains support.

2. You don't have an ethernet card, in which case you should comment out this

   section of /etc/rc.d/rc.inet1.  (Unless you don't mind seeing this error...)

EOF

  fi


  # Older kernel versions need this to set up the eth0 routing table:

  KVERSION=`uname -r | cut -f 1,2 -d .`

  if [ "$KVERSION" = "1.0" -o "$KVERSION" = "1.1" \

   -o "$KVERSION" = "1.2" -o "$KVERSION" = "2.0" -o "$KVERSION" = "" ]; then

    /sbin/route add -net ${NETWORK} netmask ${NETMASK} eth0

  fi


  # If there is a gateway defined, then set it up:

  if [ ! "$GATEWAY" = "" ]; then

    /sbin/route add default gw ${GATEWAY} netmask 0.0.0.0 metric 1

  fi

fi


# End of rc.inet1

동수아빠

2012.09.26 18:39:32
*.53.79.146

감사합니다.. 많은 도움 되었습니다.

List of Articles
번호 제목 글쓴이 날짜 조회 수
5548 커널에서 CPU속도를 설정하는 부분이 있나요? [2] 혜민아빠 2012-10-10 1170
5547 android usb host 기능 문의 [2] 이크이크 2012-10-10 1375
5546 Application(Daemon)에서 Kernel Module 로드 방법 문의 [1] acedon 2012-10-09 1187
5545 android filesystem을 TortoiseSVN을 통해 import시킬때 에러 나는... [2] 김민욱 2012-10-09 1258
5544 android packages/apps/phone 관련문의 분노팟 2012-10-08 667
5543 쭈암님 native에 ts input 받는 API라는 것에 대해 조금더 알려... [4] whiterub 2012-10-08 1218
5542 타겟보드에서 logcat 을 보려면 어떻게 해야 하나요? [1] aesopfrog 2012-10-07 1244
5541 [코드바이저가격] [1] 밥줘잉 2012-10-06 1476
5540 미디어 플레이어의 네트워크 스트림 구현에 대한 문의 [6] whiterub 2012-10-05 1512
5539 NDK 로 빌드시 에러 해결방법 좀 도움 부탁드립니다 ... [2] 파란새 2012-10-05 1195
5538 ICS 이동식 디스크 구현에 대한 조언좀....ㅠ.ㅠ [3] 칼마 2012-10-05 1454
5537 JNI를 통해 SurfaceFlinger예제 실행 file [2] MESL 2012-10-03 2115
5536 고도리님, v210 문의입니다. yama 2012-09-28 796
5535 리눅스 파일 시스템을 만들려고 합니다. [3] 혜민아빠 2012-09-27 1578
5534 Tizen 2.0 Alpha SDK와 소스코드 발표 [1] Kilio 2012-09-26 1381
5533 그래픽 가속센서가 없으면 안드로이드 움직이는게 느려지나요 [1] 칼마 2012-09-26 1337
5532 오디오 hal부분 audio_hw.c파일의 in_read함수에서 질문 [3] ljcg 2012-09-25 1591
5531 v210 froyo powervr 할당address확인 방법좀부탁드립니다. yama 2012-09-25 745
5530 busybox 등 라이센스 관련 (기타 다른 명령어도) [2] 동수아빠 2012-09-25 1424
» ping localhost 등 자기자신으로의 접속이 안되네요. [11] 동수아빠 2012-09-25 1450

사용자 로그인