LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-08-2020, 04:23 AM   #1
themanwhowas
Member
 
Registered: Nov 2005
Distribution: CentOS 5, Fedora 23
Posts: 218

Rep: Reputation: 29
Prevent eth0 on boot


Hi all

I've got a raspberry pi which is running Debian Buster (is it ok to post pi questions here?) and I want to have eth0 down until I call it with ifconfig eth0 up.
Only way I can get it to happen is to have a @reboot line in crontab with ifconfig eth0 down which brings it up during boot then puts it back down which is not ideal.

For the life of me I can not figure this out. Any help appreciated

Thanks
 
Old 05-08-2020, 04:38 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,889

Rep: Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207
Blacklist the driver ?.
 
Old 05-08-2020, 04:42 AM   #3
ferrari
Senior Member
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 4,612

Rep: Reputation: 839Reputation: 839Reputation: 839Reputation: 839Reputation: 839Reputation: 839Reputation: 839
Configure /etc/network/interfaces accordingly ie leave out any reference to eth0

It is possible to bring the interface up but with no IP address configured...
Code:
iface eth0 inet manual
      pre-up ifconfig $IFACE up
      post-down ifconfig $IFACE down
Reference:
https://wiki.debian.org/NetworkConfiguration
 
Old 05-08-2020, 07:58 AM   #4
dc.901
Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 772

Rep: Reputation: 240Reputation: 240Reputation: 240
Quote:
Originally Posted by themanwhowas View Post
I want to have eth0 down until I call it with ifconfig eth0 up.
So to clarify, you want to login to console and bring up the interface after reboot?

If so, do you not have "ONBOOT" option in: /etc/sysconfig/network-scripts/ifcfg-eth0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fix:UDP packet send through vlan(eth0.4092), reaching at both eth0 and eth0.4092 arjuncr Linux - Networking 1 02-19-2019 02:37 PM
vnStat - if pointed to eth0 will it aggregate eth0 and eth0:1 alias stardotstar Linux - Networking 0 07-20-2010 07:49 PM
[SOLVED] Network eth0 activated upon boot in ifcfg-eth0; but no network connection after login TomRaaijmakers Linux - Networking 1 06-17-2010 08:29 AM
How to prevent ENOBUFS failures in eth0 interface rylan76 Linux - Networking 3 12-31-2006 03:52 AM
Prevent firewire as eth0 Kocil Slackware 7 11-28-2006 12:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration