[Bug 663352] Re: No way to stop/start networking without network management
Amber
amber at macromgt.com
Fri Dec 13 16:47:11 UTC 2013
I've recently created a VM running ubuntu server 12.04. I've configured
the networking with a static IP. For some reason the networking says "
networking stop/waiting". I then manually input the IP with the netmask
as well at the default gateway and then issue a "sudo
/etc/init.d/networking restart" and the network comes up and I am able
to ping the gateway as well as the outside. Unfortunately this doesn't
stay and eventually it disconnects from the network and changes my IP .
my /etc/network/interfaces is configured as follows
#The loopback network interface
auto lo
iface lo inet loopback
#the primary network interface
auto eth0
iface eth0 inet static
address x.x.x.x
netmask x.x.x.x
gateway x.x.x.x
Is there a reason why the server is changing the network as if its set
to dhcp when i set the interface statically?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifupdown in Ubuntu.
https://bugs.launchpad.net/bugs/663352
Title:
No way to stop/start networking without network management
Status in “ifupdown” package in Ubuntu:
Fix Released
Status in “ifupdown” source package in Precise:
Confirmed
Bug description:
Hi,
Converted from question to bug, from
https://answers.launchpad.net/ubuntu/+source/gnome-nettool/+question/130070
I want to remove all network management related packages and keep only
a dhcp client (preferably pump). In plain Debian, I just need to
properly config /etc/network/interfaces, then
/etc/init.d/networking restart
Vola, I'm done. But there is no way in Ubuntu to stop/start
networking.
/etc/init.d/networking restart
* Reconfiguring network interfaces...
Operation failed.
^^^^^^^^^^^^^^^^^^^^^
ssh stop/waiting
ssh start/running, process 19500
[ OK ]
At some previous moments, it was working before, and I cannot bring
the networking to a full stop then start again.
Reposting comments from other bug reports, because I'm still getting
the same results in Ubuntu 10.10 Maverick.
=== From https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/430883
. . . There is no way to stop/start a [networking] service:
root at quimerix:~# status networking
networking stop/waiting
root at quimerix:~# start networking
networking stop/waiting
root at quimerix:~# stop networking
stop: Unknown instance:
root at quimerix:~# stop networking
stop: Unknown instance:
root at quimerix:~# start networking
networking stop/waiting
?????????
And the old but working /etc/init.d says
root at quimerix:~# /etc/init.d/networking start
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service networking start
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start networking
networking stop/waiting
So explain me how its supossed that i can restart a [networking]
service?
=== From https://bugs.launchpad.net/ubuntu/+source/netbase/+bug/492160
. . . I cannot start my network:
$sudo service networking restart
restart: Unknown instance
$sudo service networking start
networking stop/waiting
$sudo /etc/init.d/networking restart
(ifconfig does not show eth0 interface)
$ping www.google.com
ping: unknown host www.google.com
$sudo ifup eth0
(ping works)
Bottom line: No configuration will automatically start the network--I
have to manually run "ifup" to get the network to start.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/663352/+subscriptions
More information about the foundations-bugs
mailing list