ifconfig eth1 netmask 255.255.255.0 명령어가 안됩니다

simsiss의 이미지

몇시간 구글링 해도 해석하기 힘든 영어결과와 씨름하다가

이렇게 글을 올립니다. ㅠ.ㅠ

우분투 8.04버전을 사용중이고,

eth1은 무선랜(usb 무선랜 zio 1211)입니다. 이것을 ad-hoc 모드로 설정하고 (iwconfig 이용)

자우르스와 1:1 통신을 하려고 합니다.

아래 명령어를 실행하면 이렇게 에러가 뜹니다.

ifconfig eth1 add 192.168.3.1 netmask 255.255.255.0
SIOCSIFNETMASK: Cannot assign requested address

그래서 add [ip addr] 만 입력해보니 ip는 할당이 됩니다.

netmask 할당에서 왜 에러가 날까요?

그리고

iwconfig eth1 mode master
Error for wireless request "Set Mode" (8B06) :
SET failed on device eth1 ; Invalid argument.

마스터 모드로는 왜 변경되지 않는건가요?

간단한 정보 올립니다.
-----------------------------------------------------------------------------------------------------------------------------------------------

root@200607177:~# lsmod | grep zd
zd1211rw 56964 0
ieee80211softmac 30976 1 zd1211rw
ieee80211 35528 2 zd1211rw,ieee80211softmac
usbcore 146028 5 zd1211rw,usbhid,ehci_hcd,uhci_hcd
root@200607177:~# iwconfig eth1
eth1 IEEE 802.11b/g ESSID:"200607177" Nickname:"zd1211"
Mode:Ad-Hoc Frequency:2.472 GHz Cell: Invalid
Bit Rate=24 Mb/s
Encryption key:off
Link Quality=71/100 Signal level=23/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

root@200607177:~# ifconfig eth1
eth1 Link encap:Ethernet HWaddr 00:11:e2:03:74:ab
inet6 addr: fe80::211:e2ff:fe03:74ab/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:288 errors:2 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:15634 (15.2 KB)

root@200607177:~# ifconfig eth1 add 192.168.3.1
root@200607177:~# ifconfig eth1 <= ip 변경도 되지 않네요..
eth1 Link encap:Ethernet HWaddr 00:11:e2:03:74:ab
inet6 addr: fe80::211:e2ff:fe03:74ab/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:288 errors:2 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:15634 (15.2 KB)

root@200607177:~#

bushi의 이미지

man ifconfig

NAME
       ifconfig - configure a network interface
 
SYNOPSIS
       ifconfig [interface]
       ifconfig interface [aftype] options | address ...
 
...
OPTIONS
...
       add addr/prefixlen
              Add an IPv6 address to an interface.
 
       del addr/prefixlen
              Remove an IPv6 address from an interface.
...
AUTHORS
       Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
       Alan Cox, <Alan.Cox@linux.org>
       Phil Blundell, <Philip.Blundell@pobox.com>
       Andi Kleen

man iwconfig

NAME
       iwconfig - configure a wireless network interface
 
SYNOPSIS
       iwconfig [interface]
       iwconfig interface [essid X] [nwid N] [mode M] [freq F]
                          [channel C][sens S ][ap A ][nick NN ]
                          [rate R] [rts RT] [frag FT] [txpower T]
                          [enc E] [key K] [power P] [retry R]
                          [modu M] [commit]
       iwconfig --help
       iwconfig --version
...
PARAMETERS
...
       mode   Set the operating mode of the device, which depends on the  net-
              work  topology. The mode can be Ad-Hoc (network composed of only
              one cell and without Access Point), Managed (node connects to  a
              network  composed  of  many Access Points, with roaming), Master
              (the node is the synchronisation master or  acts  as  an  Access
              Point),  Repeater (the node forwards packets between other wire-
              less  nodes),  Secondary  (the  node  acts  as  a  backup   mas-
              ter/repeater), Monitor (the node is not associated with any cell
              and passively monitor all packets on the frequency) or Auto.
              Example :
                   iwconfig eth0 mode Managed
                   iwconfig eth0 mode Ad-Hoc
...
AUTHOR
       Jean Tourrilhes - <a href="mailto:jt@hpl.hp.com" rel="nofollow">jt@hpl.hp.com</a>
...

master 모드를 지원하지 않는 놈인가보죠.

OTL

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.