리눅스 보드에서 네트워크 설정관련 질문드립니다.

qmfflwj의 이미지

안녕하세요. 정말 한달정도를 고민하다가 질문을 남깁니다.

제가 네트워크 지식이 부족해서 일지돌 모르기만 상황은 아래와 같습니다.

리눅스 보드가 하나 있습니다. 리눅스 보드에는 Ethernet 카드가 3개가 붙어 있습니다.

SGMII Ethernet 2개와 L2 Switch Ethernet(8 port) 1개가 있습니다.

그래서 리눅스에서는 eth0, eth1, eth2(switch)가 잡힙니다.

eth1에는 외부 ip가 들어옵니다. 외부 공유기에서 들어오므로 192.168.1.0/24 대역의 ip가 들어옵니다.

그래서 리눅스 설정으로 dhcp or static 하게 eth1의 ip를 설정하면 모두 eth1을 통해 외부와 통신이 가능합니다.

제가 하고 싶은 것은 eth2에 있는 8port switch에 dhcp or static으로 ip를 할당해서 리눅스 보드에서 8 port

에 꼽힌 Device와 내부적으로 통신하며, 그 상태 값들을 저장해서 최종적으로는 eth1을 통해 외부로 보낼려고 합니다.

다음과 같은 문제가 저를 계속 괴롭히고 있습니다.

1. 8 port switch의 각 port에 ip를 할당하는 방법과 할당된 ip확인하기

dhcp-server로 eth2를 192.168.100.1로 설정하고 돌려보아도 dhcp는 할당되지 않았습니다.(이거는 제가 부족한거 같습니다.)

혹시 리눅스 보드에서 8port L2 Switch에 ip를 할당 또는 확인하는 방법이 있을 까요?

아래는 ethtool로 확인한 각 ethernet 속성값입니다.

Settings for eth0:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 1
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Current message level: 0x0000003f (63)
drv probe link timer ifdown ifup
Link detected: no

Settings for eth1:
Supported ports: [ MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 3
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Current message level: 0x0000003f (63)
drv probe link timer ifdown ifup
Link detected: yes

Settings for eth2:
Supported ports: [ MII ]
Supported link modes: 1000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Advertised link modes: 1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Link partner advertised link modes: 1000baseT/Full
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: No
Speed: 1000Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Transceiver: external
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Current message level: 0x0000003f (63)
drv probe link timer ifdown ifup
Link detected: yes

shint의 이미지

관련 있는지는 모르겠네요. ㅇ_ㅇ;;
IPTIME 중고 2만원 공유기 써도 쓸만 하드라구요.

//오픈소스 공유기'로 찾아보시면. OpenWRT 프로그램이 있는거 같습니다.
https://search.naver.com/search.naver?sm=tab_hty.top&where=nexearch&query=%EC%98%A4%ED%94%88%EC%86%8C%EC%8A%A4+%EA%B3%B5%EC%9C%A0%EA%B8%B0&oquery=%EB%A6%AC%EB%88%85%EC%8A%A4+dhcp+server&tqi=TlKghwpySD0ssaO9pP0ssssssm4-155634

https://www.google.co.kr/search?ei=mRIDWtf-OMWj0QSV_6OoCw&q=%EC%98%A4%ED%94%88%EC%86%8C%EC%8A%A4+%EA%B3%B5%EC%9C%A0%EA%B8%B0&oq=%EC%98%A4%ED%94%88%EC%86%8C%EC%8A%A4+%EA%B3%B5%EC%9C%A0%EA%B8%B0&gs_l=psy-ab.3..0i30k1l2.713602.713602.0.713950.1.1.0.0.0.0.342.342.3-1.1.0....0...1.1.64.psy-ab..0.1.341....0.i0XPCa7ZEBE

//SSLShader
A GPU-accelerated SSL Proxy
http://shader.kaist.edu/sslshader/

//리눅스 dhcp server - 네이버 검색

리눅스 dhcp server ip 캐쉬 제거
http://blog.drs.pe.kr/120199080165

[리눅스] DHCP
http://blog.naver.com/jypit/221120702384

리눅스 dhcp server ip 캐쉬 제거
http://blog.naver.com/kimbyumkyu/110031782275

리눅스 DHCP 설정
http://musalyh.blog.me/220689561508

리눅스 DHCP 서버 구성하기
http://arcworld.tistory.com/23

//linux board dhcp server - 구글 검색

Configure a DHCP Server on Linux
https://www.mindchasers.com/dev/dhcpserver

DHCP Server Configuration:
www.yolinux.com/TUTORIALS/DHCP-Server.html

How to setup Networking for Embedded Linux Application Development
http://developer.toradex.com/knowledge-base/how-to-setup-networking-for-embedded-linux-application-development

----------------------------------------------------------------------------
젊음'은 모든것을 가능하게 만든다.

매일 1억명이 사용하는 프로그램을 함께 만들어보고 싶습니다.
정규 근로 시간을 지키는. 야근 없는 회사와 거래합니다.

각 분야별. 좋은 책'이나 사이트' 블로그' 링크 소개 받습니다. shintx@naver.com

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.