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