SIOCSIFNETMASK: Cannot assign requested address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When I want to use a static IP-address for a temporary need I disable networking i NetworkManager and run ifconfig manually from console.
First run with ifconfig I get a error.
$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:17:08:3E:AF:12
inet6 addr: fe80::217:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:199 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:13616 (13.2 KB) TX bytes:324 (324.0 b)
$ sudo ifconfig eth0 inet 33.33.33.33/24
SIOCSIFNETMASK: Cannot assign requested address
$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:17:08:3E:AF:12
inet addr:33.33.33.33 Bcast:33.33.33.255 Mask:255.255.255.0
inet6 addr: fe80::217:
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:347 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:23528 (22.9 KB) TX bytes:324 (324.0 b)
$ ping 33.33.33.254
PING 33.33.33.254 (33.33.33.254) 56(84) bytes of data.
64 bytes from 33.33.33.254: icmp_seq=1 ttl=255 time=3.04 ms
64 bytes from 33.33.33.254: icmp_seq=2 ttl=255 time=0.642 ms
$ sudo ifconfig eth0 inet 33.33.33.33/24
$
Question is; Why do I get this error when in fact it indeed can assign the address?
Cannot reproduce, probably fixed..