From 8820c4e89c4ddf3940570359b0e4d4342ccdba03 Mon Sep 17 00:00:00 2001 From: medusa Date: Sat, 30 Mar 2024 04:21:01 +0000 Subject: [PATCH] Update docs/tech_docs/linux/linux_troubleshooting2.md --- .../tech_docs/linux/linux_troubleshooting2.md | 41 ++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/docs/tech_docs/linux/linux_troubleshooting2.md b/docs/tech_docs/linux/linux_troubleshooting2.md index f6a2ea2..ab61a6f 100644 --- a/docs/tech_docs/linux/linux_troubleshooting2.md +++ b/docs/tech_docs/linux/linux_troubleshooting2.md @@ -141,4 +141,43 @@ Check kernel ring buffer messages for the `enp6s0` interface. - **Consistent Naming Convention:** This guide uses `enp6s0` as an example network interface name. Replace `enp6s0` with your actual interface name as necessary. - **Permissions:** Some commands may require `sudo` to execute with administrative privileges. -This guide aims to be a comprehensive resource for networking issues on Debian-based Linux systems, following a systematic approach from the physical layer up to the application layer. \ No newline at end of file +This guide aims to be a comprehensive resource for networking issues on Debian-based Linux systems, following a systematic approach from the physical layer up to the application layer. + +--- + +To enable (bring up) or disable (bring down) a network interface on a Debian-based Linux system, similar to performing a `shut` or `no shut` on a Cisco IOS device, you can use the `ip` command. This command is part of the `iproute2` package, which is installed by default on most Linux distributions. + +### To Disable (Bring Down) the Interface: + +```bash +sudo ip link set enp6s0 down +``` + +This command effectively "shuts down" the interface `enp6s0`, making it inactive and unable to send or receive traffic, similar to the `shutdown` command in Cisco IOS. + +### To Enable (Bring Up) the Interface: + +```bash +sudo ip link set enp6s0 up +``` + +This command activates the interface `enp6s0`, allowing it to send and receive traffic, akin to the `no shutdown` command in Cisco IOS. + +### Verifying the Interface Status: + +After enabling or disabling the interface, you may want to verify its status: + +```bash +ip addr show enp6s0 +``` +or +```bash +ip link show enp6s0 +``` + +These commands display the current status of the `enp6s0` interface, including whether it is `UP` (enabled) or `DOWN` (disabled), along with other details like its IP address if it is configured and active. + +### Note: + +- These commands need to be executed with `sudo` or as the root user, as changing the state of network interfaces requires administrative privileges. +- The changes made using these commands are temporary and will be reverted upon system reboot. To make permanent changes to the network interface state, you would need to configure the interface's startup state in the system's network configuration files or use a network manager's configuration tools. \ No newline at end of file