SIOCSIFNETMASK: Cannot assign requested address

Bug #159460 reported by Thomas Novin
4
This bug affects 1 person
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:8ff:fe3e:af12/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          RX bytes:13616 (13.2 KB) TX bytes:324 (324.0 b)
          Interrupt:16

$ 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:8ff:fe3e:af12/64 Scope:Link
          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
          collisions:0 txqueuelen:1000
          RX bytes:23528 (22.9 KB) TX bytes:324 (324.0 b)
          Interrupt:16

$ 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?

Revision history for this message
Thomas Novin (thomasn80) wrote :

Cannot reproduce, probably fixed..

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.