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
Kirill Smelkov
multicast-study
Commits
f2a6886c
Commit
f2a6886c
authored
Apr 28, 2022
by
Kirill Smelkov
Committed by
Léo-Paul Géneau
Apr 29, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2eb0a34a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
namespace_demo/topo-B-A-C.sh
namespace_demo/topo-B-A-C.sh
+10
-0
No files found.
namespace_demo/topo-B-A-C.sh
100644 → 100755
View file @
f2a6886c
...
...
@@ -6,11 +6,15 @@
#
# B --- br0 --- A --- br1 --- C
# b1 a1 a2 c1
# B1 A1 A2 C1
#
# should be run under unshare -mrun .
# use nsenter --net={A,B,C} to enter into network namespace of A/B/C.
#
# Based on https://github.com/troglobit/smcroute/tree/master/test
touch
A B C
PID
=
$$
ip
link
add br0
type
bridge
# vlan_filtering 1 mcast_snooping 0
ip
link
add
type
a1 veth peer b1
...
...
@@ -18,3 +22,9 @@ ip link set b1 master br0
ip
link set
a1 up
ip
link set
b1 up
ip
link set
br0 up
unshare
--net
=
B
--
ip
link set
lo up
nsenter
--net
=
B
--
ip
link
add B1
type
veth peer B
nsenter
--net
=
B
--
ip
link set
B netns
$PID
ip
link set
B 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