Network configuration only works with DHCP

Bug #35328 reported by Giorgos
6
Affects Status Importance Assigned to Milestone
ifupdown (Ubuntu)
New
Medium
Unassigned

Bug Description

My network was working perfectly with breezy.

When I boot the dapper livecd, if I have dhcp disabled on my router then I can't connect to the net, I can't even get to my router's web interface. If I enable dhcp (by booting back into breezy) then it works and I can choose a static ip too.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

I'm sorry, I don't understand what you mean by this bug.

The LiveCD will default to DHCP on boot, but you can change to a static IP using the Networking control panel.

What behaviour did you expect instead?

Revision history for this message
Giorgos (pinkisntwell) wrote :

Yes, I can change to a static ip but then I won't have internet nevertheless. And since that even my router's web interface is unreachable, I had to boot into breezy to re-enable my router's dhcp server.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Why don't you have internet access if you change to a static IP?

Revision history for this message
Giorgos (pinkisntwell) wrote :

That's the bug I'm submitting.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Is the static IP in the block your router expects to answer on?
Is the broadcast address set correctly?

Can you ping the router?

Revision history for this message
Giorgos (pinkisntwell) wrote :

Right now I'm on breezy, so I'll check later on the ping part, although the fact that I couldn't reach the web interface from firefox (using ip address) must be an indication.

The other two questions I didn't understand, but I assume everything is set up properly since if I boot with dhcp enabled and change to static address it works.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

On breezy, please attach your /etc/network/interfaces file and the output of "ifconfig -a" run from a terminal.

Then do the same on dapper after making the change to a static IP address.

Revision history for this message
Giorgos (pinkisntwell) wrote :

Sorry for the delay.

On breezy:

/etc/network/interfaces:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
 script grep
 map eth0

# The primary network interface
iface eth0 inet static
address 10.0.0.2
netmask 255.0.0.0
gateway 10.0.0.138

auto eth0

iface dsl-provider inet ppp
provider dsl-provider

ifconfig -a output:

eth0 Link encap:Ethernet HWaddr 00:0A:E6:AC:11:3E
          inet addr:10.0.0.2 Bcast:10.255.255.255 Mask:255.0.0.0
          inet6 addr: fe80::20a:e6ff:feac:113e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:9063 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9344 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7045245 (6.7 MiB) TX bytes:2092521 (1.9 MiB)
          Interrupt:19 Base address:0xd400

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:1632 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1632 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:454764 (444.1 KiB) TX bytes:454764 (444.1 KiB)

sit0 Link encap:IPv6-in-IPv4
          NOARP MTU:1480 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

In dapper:

/etc/network/interfaces:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.0.0.2
netmask 255.0.0.0
gateway 10.0.0.138

ifconfig is unspupported on dapper

Revision history for this message
Giorgos (pinkisntwell) wrote :

Forgot to mention that on dapper I couldn't ping my router's ip.

All the above is with the dhcp server disabled on my router, then booting dapper's livecd and selecting static ip from system->administration->networking and setting all the parameters.

If I boot with the dhcp server enabled everything works perfect.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

ifconfig is NOT unsupported on dapper, please run "ifconfig -a" and give its output.

Revision history for this message
Giorgos (pinkisntwell) wrote :

I thought it was weird too, but are you sure? I tried several times and it wouldn't find it.

I even tried typing "if" and then tab to list it, but no luck.

I will check again.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Try giving the full path "sudo /sbin/ifconfig -a"

Revision history for this message
Giorgos (pinkisntwell) wrote :

It worked using sudo and the full path... Weird. Here it is, output of ifconfig -a from dapper while the problem exists:

eth0 Link encap:Ethernet HWaddr 00:0A:E6:AC:11:3E
          inet addr:169.254.132.125 Bcast:169.254.255.255 Mask:255.255.0.0
          inet6 addr: fe80::20a:e6ff:feac:113e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:396 errors:0 dropped:0 overruns:0 frame:0
          TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:36232 (35.3 KiB) TX bytes:8110 (7.9 KiB)
          Interrupt:193 Base address:0xd400

lo Link encap:Local Loopback
          inet addr:127.0.0.1 Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING MTU:16436 Metric:1
          RX packets:41 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2840 (2.7 KiB) TX bytes:2840 (2.7 KiB)

sit0 Link encap:IPv6-in-IPv4
          NOARP MTU:1480 Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Please purge the "zeroconf" package from your system.

Revision history for this message
Giorgos (pinkisntwell) wrote :

Is the problem fixed? Will it be working for dapper?

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Did you purge the zeroconf package from your system, and then reboot? Did it work then?

Revision history for this message
Giorgos (pinkisntwell) wrote :

I can't reboot, it's a livecd.

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.