I have added 1 USB2ETHERNET TPLINK NIC on Ubuntu server 20.04 running on raspberry pi for home DHCP server for HOME LAB purpose.
My Raspberry Pi ubuntu server, eth0 (main nic) is receiving IP (192.168.0.2) address from my TP-LINK router, On My TP-LINK router I have set the static lease for my pi nic.
And I have set static ip (192.168.10.1)for my eth1 (usb nic) via netplan (details below).
On My TP-LINK Router I have also added a static route to send/forward request for 192.168.10.0 network on pi main nic (192.168.0.2).
I am able to ping 192.168.10.1 from my latop with is on 192.168.0.0 network. 192.168.0.1/24 is being managed by TP-LINK router dhcp server.
I have a desktop running ESXI, and it's main NIC is connect over wired cable to pi USB NIC.
ESXI desktop has received its IP from PI dhcp server running on eth1 also set as static lease on isc-dhcp-server config file (details below).
- I'm able to ping 192.168.10.1 (pi usbnic) from my laptop on 192.168.0.170
- I'm not able to ping 192.168.10.10 (esxi) from my laptop on 192.168.0.170
- I'm able to ping 192.168.10.10 from pi
Let me know what have I missed in routing as I'm not able to access ESXI WEBUI from laptop.
What more routing do i need to set on PI so I can access my ESXI.
TP-LINK Router static route set
NETPLAN STATIC IP address assign to eth1 & route
network:
version: 2
ethernets:
eth0:
dhcp4: true
optional: true
eth1:
dhcp4: false
addresses: [192.168.10.1/24]
gateway4: 192.168.0.1
nameservers:
addresses: [192.168.10.1, 8.8.8.8]
routes:
- to: 192.168.0.0/24
via: 192.168.0.1
metric: 100
thank in advance.