FG
💻 Software

How do you boot linux with networking disabled?

Fresh5 days ago
Mar 15, 202611950 views
Confidence Score0%
0%

Problem

Is there some way to disable networking by passing a kernel option through grub? Prefereably I could only disable 2 interfaces, but disabling all networking would be okay also. My use case is that I am working on a SELinux operating system and want to disable network access when the system is in pe…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do you boot linux with networking disabled?

Low Risk

Many distros will disable network access in runlevel 2, and most will disable it in runlevel 1, also called "single mode" since only a single root console/shell is started. Add or to the kernel boot line as desired.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment