| Routername |
Netzwerkkarte |
Netzwerk / IP |
Netzmaske |
Std-Gateway/Route |
Vbox Route / Netz |
|
|
|
|
|
|
| DSL-Router |
FB 6490 Cable |
192.168.0.1 |
255.255.255.0 |
|
|
|
|
|
|
|
|
| ip-router1 |
enp0s3 |
192.168.0.110 |
255.255.255.0 |
192.168.0.1 |
geht ins Internet |
|
enp0s8 |
192.168.1.110 |
255.255.255.0 |
|
ip_netz1 |
|
|
|
|
|
|
| ip-router2 |
enp0s3 |
192.168.1.120 |
255.255.255.0 |
192.168.0.110 |
ip_netz1 |
|
enp0s8 |
192.168.2.110 |
255.255.255.0 |
|
ip_netz2 |
|
|
|
|
|
|
| ip-router3 |
enp0s3 |
192.168.2.120 |
255.255.255.0 |
192.168.1.120 |
ip_netz2 |
|
enp0s8 |
192.168.3.110 |
255.255.255.0 |
|
ip_netz3 |
|
|
|
|
|
|
Alle drei Router sind Debain 11 und ip-router1 hat eine Standrd-Route gesetzt.
net.ipv4.ip_forward=1 und
net.ipv6.ip_forward=1 ist in der /etc/sysctl.conf auf allen Routern gesetzt.
firewalld ist auf allen drei Routern erstmal abgeschaltet.
Das ganze probier ich in Virtualbox, der ip-router1 hat mit enp0s3 eine Netzwerkbrücke.
ip-router1 ist hinter der Fritzbox (FB),
ip-router2 ist hinter ip-router1,
ip-router3 ist hinter ip-router2.
ip-router1 erreicht per 'ping' den DSL-Router und das Internet
ip-router2 erreicht per 'ping' die192.168.0.110, nicht den DSL-Router, nicht das Internet
ip-router3 erreicht per 'ping' 192.168.1.110, nicht ip-router1, nicht den DSL-Router, nicht das Internet
Konfigurationen:
############ ip-router1 ################################
# hosts:
127.0.0.1 localhost
192.168.0.110 ip-router1.localdomain ip-router1
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# interfaces:
# The primary network interface
i#allow-hotplug enp0s3
auto enp0s3
iface enp0s3 inet static
address 192.168.0.110/24
hwaddress 08:00:27:79:a7:46
gateway 192.168.0.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.0.1
dns-search localdomain
auto enp0s8
iface enp0s8 inet static
address 192.168.1.110/24
hwaddress 08:00:27:c9:4a:6d
# resolv.conf:
search localdomain
nameserver 192.168.0.1
############ ip-router2 ################################
# hosts:
127.0.0.1 localhost
192.168.1.120 ip-router2.localdomain ip-router2
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# interfaces:
# The primary network interface
#allow-hotplug enp0s3
auto enp0s3
iface enp0s3 inet static
address 192.168.1.120/24
hwaddress 08:00:27:d8:a8:13
gateway 192.168.0.110
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.0.110
dns-search localdomain
auto enp0s8
iface enp0s8 inet static
address 192.168.2.110/24
hwaddress 08:00:27:2d:a9:be
# resolv.conf:
search localdomain
nameserver 192.168.0.110
############ ip-router2 ################################
# hosts:
127.0.0.1 localhost
192.168.2.120 ip-router3.localdomain ip-router3
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
# interfaces:
# The primary network interface
#allow-hotplug enp0s3
auto enp0s3
iface enp0s3 inet static
address 192.168.2.120/24
hwaddress 08:00:27:44:eb:56
gateway 192.168.2.110
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.2.110
dns-search localdomain
auto enp0s8
iface enp0s8 inet static
address 192.168.2.120/24
hwaddress 08:00:27:99:ce:8c
# resolv.conf:
search localdomain
nameserver 192.168.2.110
Wie müssen die Routen gesetzt werden, damit alle Router ( ip-router2, ip-router3) über den jeweils nächsten
Router das Internet erreichen?
Wie muss eine Route in der Fritzbox gesetzt werden, damit das klappt?
(Warum das überhaupt? Fühlt sich an wie eine Rückwärtsroute.)
Siehe auch:
https://administrator.de/tutorial/routing-von-2-und-mehr-ip-netzen-mit-windows-linux-und-router-56073.html#toc-13
Wie kommen Rechner aus dem Netz 192.168.1.0 ins Internet?
Wie kommen Rechner
aus dem Netz 192.168.2.0 ins Internet?
Wie kommen Rechner
aus dem Netz 192.168.3.0 ins Internet?