0

Need routing configuration advice (preferably with commands):

I'm trying to somehow forward Internet requests originating on the client through a host (over 192.168.200.0 network) to an Internet router at 192.168.100.1

I have multiple IP address on one interface on the host. - One host IP is on 192.168.100.0 network. - Other host IP is on the 192.168.200.0 network.

Not sure how to pull it off. I've experimented with the routing tables but to no avail. I can login to client from the host over the 192.168.200.0 network and vice versa.

Debian host with the following IPV4 addresses.

2: enp3s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether a8:20:66:57:50:3c brd ff:ff:ff:ff:ff:ff
    inet 192.168.100.72/24 brd 192.168.100.255 scope global dynamic noprefixroute enp3s0f0
       valid_lft 80283sec preferred_lft 80283sec
    inet 192.168.200.1/24 brd 192.168.200.255 scope global enp3s0f0:0
       valid_lft forever preferred_lft forever

Debian host routing table is:

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.100.1   0.0.0.0         UG        0 0          0 enp3s0f0
192.168.100.0   0.0.0.0         255.255.255.0   U         0 0          0 enp3s0f0
192.168.200.0   0.0.0.0         255.255.255.0   U         0 0          0 enp3s0f0

Debian client (VM guest) IPV4 addresses:

2: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 08:00:27:6e:52:92 brd ff:ff:ff:ff:ff:ff
    inet 192.168.200.101/24 brd 192.168.200.255 scope global enp0s8
       valid_lft forever preferred_lft forever

Debian client routing table:

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         192.168.200.1   0.0.0.0         UG        0 0          0 enp0s8
192.168.200.0   0.0.0.0         255.255.255.0   U         0 0          0 enp0s8

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.