Ich habe ein Problem beim Routing.
Im Rahmen meiner Ausbildung zum Fachinformatiker für Systemkonfiguration muss ich ein Projekt machen bei dem ich nicht weiter komme.
In der Firma in der ich bin gibt es ein Netzwerk mit einem PXE Server welcher dafür zuständig ist PC automatisch zu installieren.
Meine Aufgabe ist es nun ein Netzwerk zu erstellen in dem sich das Ganze abspielt, der PXE Server bleibt aber im alten Netzwerk.
Software habe ich Bedien 9.3.0
Netzwerk A:
40.4.200.0/24
PXE/SCCM SERVER:40.4.200.218
Netzwerk B(neues Netzwerk):
10.5.200.0/24
um später PCs im Netzwerk B zu installieren benötige ich ja dass ich von einem Client mit der Bsp. IP:10.5.200.100 auf die 40.4.200.218 pingen muss.
Das fun ktioniert bei mir nicht.
Ich habe in der rc.local ein masquerade befehl was ja allerdings nicht der sinn ist da die IP ja verschleiert wird und dass dann ja ein Problem mit dem späteren teilprojekt IP-Helper wird.
Netwzerk:https://imgur.com/lBEKeCB
Also brauche ich eine andere Lösung dafür.
Meine configs:
Code: Alles auswählen
# BOOTP or DHCP. Hosts for which no fixed address is specified can only
# be booted with DHCP, unless there is an address range on the subnet
# to which a BOOTP client is connected which has the dynamic-bootp flag
# set.
#host fantasia {
# hardware ethernet 08:00:07:26:c0:a5;
# fixed-address fantasia.example.com;
#}
# You can declare a class of clients and then do address allocation
# based on that. The example below shows a case where all clients
# in a certain class get addresses on the 10.17.224/24 subnet, and all
# other clients get addresses on the 10.0.29/24 subnet.
#class "foo" {
# match if substring (option vendor-class-identifier, 0, 4) = "SUNW";
#}
#shared-network 224-29 {
# subnet 10.17.224.0 netmask 255.255.255.0 {
# option routers rtr-224.example.org;
# }
# subnet 10.0.29.0 netmask 255.255.255.0 {
# option routers rtr-29.example.org;
# }
# pool {
# allow members of "foo";
# range 10.17.224.10 10.17.224.250;
# }
# pool {
# deny members of "foo";
# range 10.0.29.10 10.0.29.230;
# }
#}
subnet 10.5.200.0 netmask 255.255.255.0 {
option domain-name-servers 10.5.200.254;
option broadcast-address 10.5.200.255;
option subnet-mask 255.255.255.0;
option routers 10.5.200.254;
range 10.5.200.100 10.5.200.200;
host ubuntu { hardware ethernet 08:00:07:26:c0:a5; fixed-address 10.5.200.10; }
}
Code: Alles auswählen
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
#test
#WAN
allow-hotplug enp0s25
iface enp0s25 inet static
address 40.4.200.252
netmask 255.255.255.0
gateway 40.4.200.254
#LAN
allow-hotplug enp16s0
iface enp16s0 inet static
address 10.5.200.254
netmask 255.255.255.0
post-up ip route change default via 40.4.200.254 dev enp0s25
post-up ip route change 40.4.200.0/24 via 40.4.200.252 dev enp0s25
post-up ip route change 10.5.200.0/24 via 10.5.200.254 dev enp16s0
Code: Alles auswählen
Kernel-IP-Routentabelle
Ziel Router Genmask Flags Metric Ref Use Iface
default 40.4.200.254 0.0.0.0 UG 0 0 0 enp0s25
10.5.200.0 10.5.200.254 255.255.255.0 UG 0 0 0 enp16s0
40.4.200.0 40.4.200.252 255.255.255.0 UG 0 0 0 enp0s25