Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
multicast-study
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
multicast-study
Commits
4449c823
Commit
4449c823
authored
May 04, 2022
by
Thomas Gambier
🚴🏼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set netns in the same command line
parent
75c59e24
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
16 deletions
+8
-16
namespace_demo/topo-square.sh
namespace_demo/topo-square.sh
+8
-16
No files found.
namespace_demo/topo-square.sh
View file @
4449c823
...
...
@@ -29,14 +29,12 @@ PID=$$
# A-br0-B
xunshare B
--
ip
link set
lo up
xnsenter B
--
ip
link
add ba
type
veth peer BA
xnsenter B
--
ip
link set
BA netns
$PID
xnsenter B
--
ip
link
add ba
type
veth peer BA netns
$PID
xnsenter B
--
ip
link set
ba up
ip
link set
BA up
xunshare A
--
ip
link set
lo up
xnsenter A
--
ip
link
add ab
type
veth peer AB
xnsenter A
--
ip
link set
AB netns
$PID
xnsenter A
--
ip
link
add ab
type
veth peer AB netns
$PID
xnsenter A
--
ip
link set
ab up
ip
link set
AB up
...
...
@@ -46,14 +44,12 @@ ip link set AB master br0
ip
link set
br0 up
# A-br1-C
xnsenter A
--
ip
link
add ac
type
veth peer AC
xnsenter A
--
ip
link set
AC netns
$PID
xnsenter A
--
ip
link
add ac
type
veth peer AC netns
$PID
xnsenter A
--
ip
link set
ac up
ip
link set
AC up
xunshare C
--
ip
link set
lo up
xnsenter C
--
ip
link
add ca
type
veth peer CA
xnsenter C
--
ip
link set
CA netns
$PID
xnsenter C
--
ip
link
add ca
type
veth peer CA netns
$PID
xnsenter C
--
ip
link set
ca up
ip
link set
CA up
...
...
@@ -63,14 +59,12 @@ ip link set AC master br1
ip
link set
br1 up
# C-br2-D
xnsenter C
--
ip
link
add
cd type
veth peer CD
xnsenter C
--
ip
link set
CD netns
$PID
xnsenter C
--
ip
link
add
cd type
veth peer CD netns
$PID
xnsenter C
--
ip
link set cd
up
ip
link set
CD up
xunshare D
--
ip
link set
lo up
xnsenter D
--
ip
link
add dc
type
veth peer DC
xnsenter D
--
ip
link set
DC netns
$PID
xnsenter D
--
ip
link
add dc
type
veth peer DC netns
$PID
xnsenter D
--
ip
link set
dc up
ip
link set
DC up
...
...
@@ -80,13 +74,11 @@ ip link set DC master br2
ip
link set
br2 up
# B-br3-D
xnsenter B
--
ip
link
add bd
type
veth peer BD
xnsenter B
--
ip
link set
BD netns
$PID
xnsenter B
--
ip
link
add bd
type
veth peer BD netns
$PID
xnsenter B
--
ip
link set
bd up
ip
link set
BD up
xnsenter D
--
ip
link
add db
type
veth peer DB
xnsenter D
--
ip
link set
DB netns
$PID
xnsenter D
--
ip
link
add db
type
veth peer DB netns
$PID
xnsenter D
--
ip
link set
db up
ip
link set
DB up
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment