| 1 |
#!/usr/bin/env bash |
| 2 |
# -------------------------------------------------------------------------- |
| 3 |
# |
| 4 |
# //===// //===== //===// // // //===// |
| 5 |
# // // // // // // // // // |
| 6 |
# //===// //===== //===// // // //===<< |
| 7 |
# // \\ // // // // // // |
| 8 |
# // \\ =====// // //===== // //===// Version III |
| 9 |
# |
| 10 |
# ------------- An Efficient RSerPool Prototype Implementation ------------- |
| 11 |
# |
| 12 |
# Copyright (C) 2002-2026 by Thomas Dreibholz |
| 13 |
# |
| 14 |
# This program is free software: you can redistribute it and/or modify |
| 15 |
# it under the terms of the GNU General Public License as published by |
| 16 |
# the Free Software Foundation, either version 3 of the License, or |
| 17 |
# (at your option) any later version. |
| 18 |
# |
| 19 |
# This program is distributed in the hope that it will be useful, |
| 20 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 |
# GNU General Public License for more details. |
| 23 |
# |
| 24 |
# You should have received a copy of the GNU General Public License |
| 25 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 26 |
# |
| 27 |
# Contact: [email protected] |
| 28 |
|
| 29 |
|
| 30 |
modprobe dummy |
| 31 |
|
| 32 |
|
| 33 |
# dummy0 abschalten |
| 34 |
ip addr flush dev dummy0 |
| 35 |
ip link set dummy0 down |
| 36 |
|
| 37 |
# Achtung: Multicast-Flag muß gesetzt werden, sonst wird das |
| 38 |
# Interface für sendMulticastOverAllInterfaces() nicht genutzt! |
| 39 |
ip link set dummy0 up multicast on |
| 40 |
|
| 41 |
|
| 42 |
# IPv4-Adresse |
| 43 |
ip addr add 10.255.255.1/24 dev dummy0 |
| 44 |
|
| 45 |
# IPv6-Adresse |
| 46 |
ip addr add 3ffe:ab:cd:ef:123:45:67:89a/64 dev dummy0 |
| 47 |
|
| 48 |
|
| 49 |
# IPv4-Adresse und Route; Default-Metrik: 0 |
| 50 |
# ip route add metric 0xffff default via 10.255.255.2 |
| 51 |
|
| 52 |
# IPv6-Adresse und Route; Default-Metrik: 1024 |
| 53 |
# ip route add metric 0xffff default via 3ffe:ab:cd:ef:aabb:ccdd:dead:beef |
| 54 |
|
| 55 |
# Zeige Routingtabellen |
| 56 |
# ip -f link route |