Currently, I have a media PC running Ubuntu 10.04 that I am trying to connect via a wired network cable directly to a NAS box, and wirelessly to the router.

This works no problem after I run sudo /etc/init.d/networking restart but I can't get both interfaces to come up on system startup.

My /etc/network/interfaces file reads as follows:

auto eth0
iface eth0 inet static
    address 10.0.1.2
    netmask 255.255.254.0
    broadcast 10.0.1.255
    network 10.0.1.0

auto wlan2
iface wlan2 inet dhcp

As I say, I know this works, because I can get it to work by restarting the network interfaces, but I can't bring them both up on system startup. Does anyone know why this might be?

link|improve this question
You say "you can't bring them both up on system startup"... so what does happen on system startup? – pjz May 27 '10 at 18:01
It brings up the wired interface only. – Gary Chambers May 29 '10 at 13:56
What address does wireless network have? If wired and wireless networks are bridged then that might be an issue. – 0xFF Oct 22 '11 at 10:12
feedback

1 Answer

System startup just calls 'ifup -a' ; does this work correctly (bringing them both up) after the system has started?

  • If not, figure out why.
  • If so, then the issue may be that an interface (like the wifi interface) may not be ready for configuration immediately upon startup ; one solution might be to put in a delay with something like 'pre-up sleep 5' under the wlan2 iface entry.
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.