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

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
번호 제목 글쓴이 날짜 조회 수sort
5548 Alsa 환경 구성중 alsa-util compile 시 에러발생에 대한 질문(조언요... [2] 로이1024 2012-03-16 1624
5547 origen 4412 board 의 android building error에 대한 조언요청 [2] 김경식 2013-09-28 1623
5546 S5PV310 카메라 모듈 [1] 정용석 2011-12-07 1621
5545 리눅스 선점형, 비선점형 차이... --;; [3] 이경준 2009-06-19 1620
5544 gcc 어셈블리 컴파일 에러 [5] 쿨한넘 2012-08-29 1620
5543 spec2006을 arm용으로 컴파일하고 있습니다. [4] 김영준 2013-12-11 1620
5542 sd_fusing tool [1] frog 2012-07-22 1619
5541 임베디드 보드에 udev가 동작하고 있는지 어떻게 확인할 수 있나요? [2] ice179 2014-03-19 1617
5540 sound 관련 문의 드립니다. [6] 리오살다 2013-04-12 1616
5539 overlay(HWComposer) 에 대해서... [2] 안심돈까스 2012-10-14 1614
5538 보드에 있는 카메라 모듈을 제어할려고 하는데요 [2] pedor 2013-09-04 1614
5537 sd 카드 체크 어떻게 하나요? ㅠㅠ [2] 딴따라 2013-01-09 1613
5536 임베디드 리눅스에 방화벽 구축 질문 라파엘르 2013-12-24 1613
5535 바이너리파일을 아스키파일로 변환하는걸 도와주세요 ... [8] 장석원 2006-09-09 1611
5534 V310 부팅시 커널 패닉 [1] 훌러덩 2011-08-22 1611
5533 MMC 관련문의 [2] 동이다 2013-06-22 1611
5532 ORIGEN 4412 보드 부팅 관련 건 file [5] 램퍼 2012-09-20 1610
5531 OPENGL-ES 를 사용해서 렌더링이 어떻게 처리되는지 궁금해서요 ?... 장석원 2010-03-26 1609
5530 scp 명령어 사용에 대한 질문하나 할게요! [1] 짜라빠빠 2013-04-10 1609
5529 센서 관련 질문 드립니다. [3] 강유 2013-10-03 1609

사용자 로그인