Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My Laptop has Wired and wireless connection capabilities. I want to disable my Wired connection when my wireless is up and running ? How can i proceed ? I used nmcli tool to establish my connection.

nmcli con up id nmcli con up id

Currently i have Wired and Wireless up and running I also try to use nmcli con down id but unsucess


share|improve this question
Not the answer you're looking for, I'm sure... but I just unplug the Ethernet cable. That shuts down the wired connection very effectively. – divegeek Jan 6 '11 at 15:19

A raw solution could be to create an if-up script in /etc/network/if-up.d/, something like this:


if [ "$IFACE" = "wlan0" ]; then
  ifconfig eth0 down

Remeber to give it execution permissions.

share|improve this answer
And something in /etc/network/if-down.d/ to counter. – Oli Jan 6 '11 at 16:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.