Skip to content

Instantly share code, notes, and snippets.

View sauravrana646's full-sized avatar
🎯
Focusing

Saurav Rana sauravrana646

🎯
Focusing
View GitHub Profile
@sauravrana646
sauravrana646 / netnamespace.sh
Created April 17, 2023 19:08
Linux network namespace
#!/bin/bash
set -o pipefail
string="$1"
if [ "$string" = "up" ]; then
ip netns add net1
ip netns add net2
#!/bin/bash
set -o pipefail
string="$1"
if [ "$string" = "up" ]; then
ip netns add net1
ip netns add net2