linux_ws2122/solutions/03-network.sh
Markus Pesch 5fe18ba80a
All checks were successful
continuous-integration/drone/push Build is passing
fix(network): routing solution
2022-01-23 16:04:03 +01:00

47 lines
1.3 KiB
Bash

# Aufgabe 2a
ip route
# Aufgabe 2b
## Server A (ROUTER)
Zielnetz Interface Gateway
10.0.1.0/24 eth0 -
172.16.0.0/24 eth0 10.0.1.4
172.16.2.0/24 eth0 10.0.1.4
192.168.178/24 eth0 10.0.1.4
77.48.44.198/32 pppoe1 -
0.0.0.0/0 pppeo1 77.48.44.198
## Server B
Zielnetz Interface Gateway
10.0.1.0/24 eth0 -
172.16.0.0/24 eth1 -
172.16.2.0/24 eth1 172.16.0.254
192.168.178.0/24 eth1 172.16.0.254
0.0.0.0/0 eth0 10.0.1.1
## PC A
Zielnetz Interface Gateway
172.16.0.0/24 enp3s11 -
172.16.2.0/24 enp4s1 -
192.168.178.0/24 enp4s1 172.16.2.10
0.0.0.0/0 enp3s11 172.16.0.100
## PC B
Zielnetz Interface Gateway
172.16.2.0/24 ens11 -
192.168.178.0/24 ens8 -
0.0.0.0/0 ens11 172.16.2.254
## PC C
Zielnetz Interface Gateway
192.168.178.0/24 ens3 -
0.0.0.0/0 ens3 192.168.178.1