Lines Matching +full:link +full:- +full:name

2 # SPDX-License-Identifier: GPL-2.0
10 echo "INFO: Initial validation ping (HSR-SAN/RedBox)."
30 echo "INFO: Longer ping test (HSR-SAN/RedBox)."
48 echo "INFO: preparing interfaces for HSRv${HSRv} (HSR-SAN/RedBox)."
55 # | /-- hsr1 --\ | | [0.41] |
57 # |------------------------| |-------------------|
61 # |------------------------| |-------------------------------|
63 # | \-- hsr2 --/ | | / |
64 # | [0.2] \ | | / | |------------|
65 # | ns2eth3 |---| ns3eth1 -- ns3br1 -- ns3eth3--|--| ns5eth1 |
71 ip link help hsr | grep -q INTERLINK
72 [ $? -ne 0 ] && { echo "iproute2: HSR interlink interface not supported!"; exit 0; }
74 # Create interfaces for name spaces
75 ip link add ns1eth1 netns "${ns1}" type veth peer name ns2eth1 netns "${ns2}"
76 ip link add ns1eth2 netns "${ns1}" type veth peer name ns2eth2 netns "${ns2}"
77 ip link add ns2eth3 netns "${ns2}" type veth peer name ns3eth1 netns "${ns3}"
78 ip link add ns3eth2 netns "${ns3}" type veth peer name ns4eth1 netns "${ns4}"
79 ip link add ns3eth3 netns "${ns3}" type veth peer name ns5eth1 netns "${ns5}"
83 ip -n "${ns1}" link set ns1eth1 up
84 ip -n "${ns1}" link set ns1eth2 up
86 ip -n "${ns2}" link set ns2eth1 up
87 ip -n "${ns2}" link set ns2eth2 up
88 ip -n "${ns2}" link set ns2eth3 up
90 ip -n "${ns3}" link add name ns3br1 type bridge
91 ip -n "${ns3}" link set ns3br1 up
92 ip -n "${ns3}" link set ns3eth1 master ns3br1 up
93 ip -n "${ns3}" link set ns3eth2 master ns3br1 up
94 ip -n "${ns3}" link set ns3eth3 master ns3br1 up
96 ip -n "${ns4}" link set ns4eth1 up
97 ip -n "${ns5}" link set ns5eth1 up
99 ip -net "$ns1" link set address 00:11:22:00:01:01 dev ns1eth1
100 ip -net "$ns1" link set address 00:11:22:00:01:02 dev ns1eth2
102 ip -net "$ns2" link set address 00:11:22:00:02:01 dev ns2eth1
103 ip -net "$ns2" link set address 00:11:22:00:02:02 dev ns2eth2
104 ip -net "$ns2" link set address 00:11:22:00:02:03 dev ns2eth3
106 ip -net "$ns3" link set address 00:11:22:00:03:11 dev ns3eth1
107 ip -net "$ns3" link set address 00:11:22:00:03:11 dev ns3eth2
108 ip -net "$ns3" link set address 00:11:22:00:03:11 dev ns3eth3
109 ip -net "$ns3" link set address 00:11:22:00:03:11 dev ns3br1
111 ip -net "$ns4" link set address 00:11:22:00:04:01 dev ns4eth1
112 ip -net "$ns5" link set address 00:11:22:00:05:01 dev ns5eth1
114 …ip -net "${ns1}" link add name hsr1 type hsr slave1 ns1eth1 slave2 ns1eth2 supervision 45 version …
115 …ip -net "${ns2}" link add name hsr2 type hsr slave1 ns2eth1 slave2 ns2eth2 interlink ns2eth3 super…
117 ip -n "${ns1}" addr add 100.64.0.1/24 dev hsr1
118 ip -n "${ns2}" addr add 100.64.0.2/24 dev hsr2
119 ip -n "${ns3}" addr add 100.64.0.11/24 dev ns3br1
120 ip -n "${ns3}" addr add 100.64.0.3/24 dev ns3eth1
121 ip -n "${ns4}" addr add 100.64.0.41/24 dev ns4eth1
122 ip -n "${ns5}" addr add 100.64.0.51/24 dev ns5eth1
124 ip -n "${ns1}" link set hsr1 up
125 ip -n "${ns2}" link set hsr2 up