Error on restarting networking :SIOCSIFFLAGS

Posted by Paddington on Ask Ubuntu See other posts from Ask Ubuntu or by Paddington
Published on 2012-10-15T08:15:27Z Indexed on 2012/10/15 9:49 UTC
Read the original article Hit count: 448

Filed under:
|

I have a sever with 2 network cards, an internal IP on one card (eth0) and external IPs (aliased) on the other card (eth1). I lost connection the public network and I tried to restart networking with /etc/init.d/networking restart and got the error "SIOCSIFFLAGS: cannot assing requested IP and Failed to bring up eth1". I even added the IPs in the interfaces file but still got an error on restarting. I could not ping my default gateway. A work around was to add

ifconfig eth 0 x.x.x.x

route -add default gw x.x.x.z

I could then connect to the public network.

What could be the issue here?

© Ask Ubuntu or respective owner

Related posts about networking

Related posts about server