LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-01-2021, 07:30 AM   #1
ktpmm17
LQ Newbie
 
Registered: Mar 2021
Posts: 6

Rep: Reputation: Disabled
problems with NAT on Deb 10 box


I've got a Deb10 VM on a laptop and would like this to do the NAT'ing for a Dell server with VM's on the backside. Here is how I have my Deb10 interfaces set up:

Code:
iface enp0s17 inet dhcp (usually gets 192.168.1.191)
iface enp0s8 inet static
   address 10.0.0.20
   netmask 255.255.255.0
The results of "ip route show" on Deb10 laptop are:

Code:
default via 192.168.1.1 dev enp0s17 
10.0.0.0/24 dev enp0s8 proto kernel scope link src 10.0.0.20 
192.168.1.0/24 dev enp0s17 proto kernel scope link src 192.168.1.191

The Deb10 laptop can reach the Internet, but cannot ping the other VM's in the 10.0.0.X range. IPTables allows everything.


On my Dell server VM, I have the following network set up:

Code:
iface eth0 inet static
   address 10.0.0.30
   netmask 255.255.255.0
   gateway 10.0.0.20
IPTables allow everything through. I should be able to ping my laptop but cannot.

Pretty basic set up but I am obviously missing something. Any help would be appreciated
 
Old 03-01-2021, 07:56 AM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
To comment, I would need more information. What hypervisor you use for the VMs. What is the VM host's OS. What kind of network is 10.0.0/24. Can the other VMs connect to each other?

Re-reading your question, you seem to have VMs running on a Dell server which is connected to the 10.0.0/24 network. The main question is how the Debian10 VM on your laptop is connected to this network.

Last edited by berndbausch; 03-01-2021 at 08:00 AM.
 
Old 03-01-2021, 08:27 AM   #3
ktpmm17
LQ Newbie
 
Registered: Mar 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
To comment, I would need more information. What hypervisor you use for the VMs. What is the VM host's OS. What kind of network is 10.0.0/24. Can the other VMs connect to each other?

Re-reading your question, you seem to have VMs running on a Dell server which is connected to the 10.0.0/24 network. The main question is how the Debian10 VM on your laptop is connected to this network.
I'm using qemu/kvm for my VM's. VM's are mostly Linux (Debian, Ubuntu and CentOS) with one Windows that will be my domain controller. The VM's are on the 10.0.0.x network and can talk to each other.

My laptop is on the 192.168.1.x network and as the Dell server.

FIOS Router -> Network Orbi (doing DHCP) -> laptop (192.168.1.x)
FIOS Router -> Network Orbi (doing DHCP) -> Dell server (192.168.1.x)

I'd like to add a second network and have the Dell server come through the laptop, or at the very least, have all the VM's come through qemu then to the Internet.

Last edited by ktpmm17; 03-01-2021 at 08:32 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NAT and NAT Server behind its own NAT(private network) zeusys Linux - Networking 1 06-08-2011 06:22 PM
Can I use NAT and some local hosts without NAT on linux box? tkmbe Linux - Networking 1 08-12-2010 02:38 PM
How can I run this .deb file: install_flash_player_10_linux.deb abefroman Linux - Desktop 1 11-04-2009 10:02 AM
Is "kernel-image-x_i386.deb or i586.deb the right image for P4 processor? davidas Debian 1 04-06-2004 03:50 AM
Can apt4rpm use deb repositories or install .deb packages? raylpc Linux - General 0 08-18-2003 01:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration