0

I moved my "proxy PC" from Ubuntu 16 to Ubuntu 18

Until now, I got this configuration file : (/etc/network/interfaces)

===

auto enp4s0                         ; card to Internet
iface enp4s0 inet static
address 192.168.1.254
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
gateway 192.168.1.1                 ; here is the router IP 
dns-nameservers  8.8.8.8  8.8.4.4

auto enp4s5                         ; card to intranet
iface enp4s5 inet static
address 10.139.238.194
netmask 255.255.255.224
broadcast 10.139.238.225 
network 10.139.238.192

up ip route add 10.0.0.0/8 via 10.139.238.193    ; this route provides ping response

===

This is, I have a "proxy" PC with 2 cards.

One goes to a internet router, other to an antena to my intranet

A schema can be :

(intranet, 10.x.y.x) - [antena 10.139.238.193] - [PC] - [router 192.168.1.1] - (internet)
                       pc card #1 10.139.238.194    pc card #2 192.168.1.254

Now I go to Ubuntu version 18, this is netplan

===

$ cat /etc/netplan/50-my.yaml
network:
    ethernets:
        enp4s0:                               # connect to internet router
            dhcp4: no
            dhcp6: no
            addresses: [192.168.1.254/24]
            gateway4:  192.168.1.1 
            nameservers:
                addresses: [8.8.8.8, 8.8.4.4]
        enp4s5:                               # connect to intranet antena
            dhcp4: no
            dhcp6: no
            addresses: [10.139.238.194/27]   
            routes:
            - to: 10.0.0.0/8 
            via: 10.139.238.193           # IP of antena to intranet
version: 2

===

But from a intranet site (10.139.130.117), the "proxy" PC (10.139.238.194) does not answer to "ping 10.139.238.194" ... even "ping 8.8.8.8" works fine !

Why ?

As "ping()" does not work, neither works "putty()" ... and that is very bad ...

Thanks for any clue.

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.