ifconfig eth1 netmask 255.255.255.0 명령어가 안됩니다
몇시간 구글링 해도 해석하기 힘든 영어결과와 씨름하다가
이렇게 글을 올립니다. ㅠ.ㅠ
우분투 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:~#
man ifconfig 씀:NAME
man ifconfig
man iwconfig
master 모드를 지원하지 않는 놈인가보죠.
OTL
댓글 달기