Routing or ISP Problem

28 views
Skip to first unread message

José Sanabria

unread,
May 17, 2017, 12:32:53 AM5/17/17
to VGLUG
Hi people!
I need your help to solve the next problem.
I have an conection ADSL, one fiber and one more by coaxial cable.
The first two connection I have run with pppoe.. and run fine and the he coaxial cable work fine. Both works without problems.
But, in the ADSL conection I have 2 Publics IP, and on the Fiber conection have other 2 Public IP. And on the coaxial conection have 1 Public IP.

My configuration:
OS: Centos 7 x64

My IP's:
Fiber - IP1: 201.217.200.177
Fiber - IP2: 201.217.200.178
ADSL - IP1: 201.217.40.113
ADSL - IP2: 201.217.40.114
Coxial - IP1: 192.135.126.214 (Connected to the server with DMZ - IP: 192.168.2.1)

[root@orion ~]# ifconfig
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.2.2  netmask 255.255.255.252  broadcast 192.168.2.3
        inet6 fe80::1aa6:f7ff:fe00:8bde  prefixlen 64  scopeid 0x20<link>
        ether 18:a6:f7:00:8b:de  txqueuelen 1000  (Ethernet)
        RX packets 2841698  bytes 2604496089 (2.4 GiB)
        RX errors 0  dropped 16  overruns 0  frame 0
        TX packets 2166431  bytes 374843488 (357.4 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp3s5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.1  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::9ade:d0ff:fe02:4e21  prefixlen 64  scopeid 0x20<link>
        ether 98:de:d0:02:4e:21  txqueuelen 1000  (Ethernet)
        RX packets 7290829  bytes 1519331662 (1.4 GiB)
        RX errors 0  dropped 2891  overruns 0  frame 0
        TX packets 8379288  bytes 6885545072 (6.4 GiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp3s6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::32b5:c2ff:fe02:cc97  prefixlen 64  scopeid 0x20<link>
        ether 30:b5:c2:02:cc:97  txqueuelen 1000  (Ethernet)
        RX packets 2314477  bytes 1773978865 (1.6 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1580784  bytes 458121935 (436.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp3s7: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::32b5:c2ff:fe02:dc1d  prefixlen 64  scopeid 0x20<link>
        ether 30:b5:c2:02:dc:1d  txqueuelen 1000  (Ethernet)
        RX packets 2833733  bytes 2516008101 (2.3 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2212207  bytes 579000151 (552.1 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 279076  bytes 38305358 (36.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 279076  bytes 38305358 (36.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo:1: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 201.217.200.177 netmask 255.255.255.252
        loop  txqueuelen 1  (Local Loopback)

lo:2: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 201.217.200.178 netmask 255.255.255.252
        loop  txqueuelen 1  (Local Loopback)

lo:3: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 201.217.40.113 netmask 255.255.255.252
        loop  txqueuelen 1  (Local Loopback)

lo:4: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 201.217.40.114 netmask 255.255.255.252
        loop  txqueuelen 1  (Local Loopback)

ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1492
        inet 177.250.211.84  netmask 255.255.255.255  destination 201.217.1.7
        ppp  txqueuelen 3  (Point-to-Point Protocol)
        RX packets 2217508  bytes 1719366392 (1.6 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1483802  bytes 419658294 (400.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ppp1: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1492
        inet 190.23.233.68  netmask 255.255.255.255  destination 201.217.1.8
        ppp  txqueuelen 3  (Point-to-Point Protocol)
        RX packets 2638848  bytes 2445890749 (2.2 GiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2115164  bytes 526637726 (502.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@orion ~]# ip route ls
default
        nexthop via 192.168.2.1  dev enp2s0 weight 15
        nexthop via 201.217.1.8  dev ppp1 weight 3
        nexthop via 201.217.1.7  dev ppp0 weight 2
192.135.126.214 via 192.168.2.1 dev enp2s0
192.168.0.0/24 dev enp3s5  proto kernel  scope link  src 192.168.0.1
192.168.2.0/30 dev enp2s0  proto kernel  scope link  src 192.168.2.2
201.217.1.7 dev ppp0  proto kernel  scope link  src 177.250.211.84
201.217.1.8 dev ppp1  proto kernel  scope link  src 190.23.233.68
201.217.31.10 via 201.217.1.7 dev ppp0 (One destination over Fiber)
201.217.200.176/30 dev lo  proto kernel  scope link  src 201.217.200.176
201.217.40.113/30 dev lo  proto kernel  scope link  src 201.217.40.113
[root@orion ~]#

The problem:
I can't ping all Public IPs.

Any idea?
Thanks!

Jatin Parmar

unread,
May 17, 2017, 5:55:08 AM5/17/17
to vg...@googlegroups.com
Dear José,

Install the traceroute pkg and check with that command where the request is getting stuck.

root@server:~$ traceroute 201.217.1.8

also check with source ping in which you are facing the issue.

root@server:~$ ping 201.217.1.8 -c 192.168.0.1 (For example only)
root@server:~$ ping 201.217.1.8 -c 192.168.2.2 (For example only)





JATIN PARMAR
M.Tech BITS Pilani



--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG+unsubscribe@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG

---
You received this message because you are subscribed to the Google Groups "VGLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vglug+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

José Sanabria

unread,
May 18, 2017, 12:22:20 AM5/18/17
to VGLUG
Dear Jatin!
Thanks for your help.. but, that's not my problem: I have internet conection to navigate..
I paste my network map, for explain with graphics. Please note: I not have a ping or conection from external networks to any of the publics ip.
That's my problem.
Thanks in advance!
To stop receiving emails from this group, mail to VGLUG+un...@googlegroups.com

To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG

---
You received this message because you are subscribed to the Google Groups "VGLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vglug+un...@googlegroups.com.

José Sanabria

unread,
May 18, 2017, 12:22:20 AM5/18/17
to VGLUG
My network
                                                                                                          __________***
                                                                                                         /
                                                                                +----------------+       |
                                                                                | Provider 01    |       |
                                                           +-------eth1+--------| PUBLIC IP.1:13 |-------|
                                                           |       lo:1         | PUBLIC IP.2:14 |       |
                                                           |       lo:2         |   TYPE=ADSL    |       |
                                                           |                    +----------------+       |
                                                           |                                             |
                                                           |                    +-----------------+      |
+--------------------+                +--------------+     |                    |   Provider 02   |      |
| LAN                |                | LINUX ROUTER |-----+------eth2+---------| PUBLIC IP.1:177 |------| INTERNET
| IP:192.168.0.1     |-----+eth0+-----+ OS: CENTOS 7 |     |      lo:3          | PUBLIC IP.2:178 |      |
| MASK:255.255.255.0 |                | X64          |     |      lo:4          |   TYPE=FIBER    |      |
+--------------------+                +--------------+     |                                             |                                             |
                                                           |                    +-----------------+      |
                                                           |                    |   Provider 03   |      |
                                                           +------eth3+---------|   PUBLIC IP:1   |------|
                                                                  by DMZ        |     COAXIAL     |      |
                                                                                +-----------------+      |
                                                                                                         \__________***

José Sanabria

unread,
May 18, 2017, 12:22:20 AM5/18/17
to VGLUG
FROM ADSL.PPP1:
[root@orion ~]# ping 201.217.40.113 -I ppp1 -c 2
PING 201.217.40.113 (201.217.40.113) from 177.251.54.95 ppp1: 56(84) bytes of data.

--- 201.217.40.113 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms

FROM FIBER.PPP0:
[root@orion ~]# ping 201.217.40.113 -I ppp0 -c 2
PING 201.217.40.113 (201.217.40.113) from 177.250.60.193 ppp0: 56(84) bytes of data.

--- 201.217.40.113 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1000ms

FROM LAN.ETH:
[root@orion ~]# ping 201.217.40.113 -I enp3s5 -c 2
PING 201.217.40.113 (201.217.40.113) from 192.168.0.1 enp3s5: 56(84) bytes of data.

--- 201.217.40.113 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms

FROM COAXIAL:
[root@orion ~]# ping 201.217.40.113 -I enp2s0 -c 2
PING 201.217.40.113 (201.217.40.113) from 192.168.2.2 enp2s0: 56(84) bytes of data.

--- 201.217.40.113 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms

FROM LOCALHOST:
[root@orion ~]# ping 201.217.40.113 -I lo -c 2
ping: Warning: source address might be selected on device other than lo.
PING 201.217.40.113 (201.217.40.113) from 201.217.40.113 lo: 56(84) bytes of data.
64 bytes from 201.217.40.113: icmp_seq=1 ttl=64 time=0.072 ms
64 bytes from 201.217.40.113: icmp_seq=2 ttl=64 time=0.057 ms

--- 201.217.40.113 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.057/0.064/0.072/0.011 ms
[root@orion ~]#

Jatin Parmar

unread,
May 18, 2017, 2:29:05 AM5/18/17
to vg...@googlegroups.com
Dear Jose,

Suspecting the internal routing issue.

Would you please crosscheck the configuration?





JATIN PARMAR
M.Tech BITS Pilani



To stop receiving emails from this group, mail to VGLUG+unsubscribe@googlegroups.com

To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG

---
You received this message because you are subscribed to the Google Groups "VGLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vglug+unsubscribe@googlegroups.com.

José Sanabria

unread,
May 18, 2017, 8:49:40 AM5/18/17
to VGLUG
Now, I have:


[root@orion ~]# ifconfig
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.2.2  netmask 255.255.255.252  broadcast 192.168.2.3
        inet6 fe80::1aa6:f7ff:fe00:8bde  prefixlen 64  scopeid 0x20<link>
        ether 18:a6:f7:00:8b:de  txqueuelen 1000  (Ethernet)
        RX packets 387320  bytes 447015661 (426.3 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 228276  bytes 50054698 (47.7 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp3s5: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.1  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::9ade:d0ff:fe02:4e21  prefixlen 64  scopeid 0x20<link>
        ether 98:de:d0:02:4e:21  txqueuelen 1000  (Ethernet)
        RX packets 366846  bytes 53091956 (50.6 MiB)
        RX errors 0  dropped 12  overruns 0  frame 0
        TX packets 487038  bytes 454551915 (433.4 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp3s6: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::32b5:c2ff:fe02:cc97  prefixlen 64  scopeid 0x20<link>
        ether 30:b5:c2:02:cc:97  txqueuelen     1000  (Ethernet)
        RX packets 62769  bytes 16108236 (15.3 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 44021  bytes 24620619 (23.4 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp3s7: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::32b5:c2ff:fe02:dc1d  prefixlen 64  scopeid 0x20<link>
        ether 30:b5:c2:02:dc:1d  txqueuelen 1000  (Ethernet)
        RX packets 40211  bytes 3167112 (3.0 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8337  bytes 561712 (548.5 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 38136  bytes 4018818 (3.8 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 38136  bytes 4018818 (3.8 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo:1: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 201.217.200.177  netmask 255.255.255.252
        loop  txqueuelen 1  (Local Loopback)

lo:2: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 201.217.200.178  netmask 255.255.255.252
        loop  txqueuelen 1  (Local Loopback)

lo:3: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 201.217.40.113  netmask 255.255.255.252
        loop  txqueuelen 1  (Local Loopback)

lo:4: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 201.217.40.114  netmask 255.255.255.252
        loop  txqueuelen 1  (Local Loopback)

ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1492
        inet 177.250.60.193  netmask 255.255.255.255  destination 201.217.1.7

        ppp  txqueuelen 3  (Point-to-Point Protocol)
        RX packets 55142  bytes 14436450 (13.7 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 36387  bytes 23361782 (22.2 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ppp1: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 1492
        inet 177.251.54.95  netmask 255.255.255.255  destination 201.217.1.8

        ppp  txqueuelen 3  (Point-to-Point Protocol)
        RX packets 22849  bytes 1596220 (1.5 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 702  bytes 87885 (85.8 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

[root@orion ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         192.168.2.1     0.0.0.0         UG    0      0        0 enp2s0
169.254.0.0     0.0.0.0         255.255.0.0     U     1002   0        0 enp2s0
169.254.0.0     0.0.0.0         255.255.0.0     U     1003   0        0 enp3s5
169.254.0.0     0.0.0.0         255.255.0.0     U     1004   0        0 enp3s6
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 enp3s5
192.168.2.0     0.0.0.0         255.255.255.252 U     0      0        0 enp2s0
201.217.1.7     0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
201.217.1.8     0.0.0.0         255.255.255.255 UH    0      0        0 ppp1
201.217.31.10   201.217.1.7     255.255.255.255 UGH   0      0        0 ppp0
201.217.200.176  0.0.0.0         255.255.255.252 U     0      0        0 lo
201.217.40.12   0.0.0.0         255.255.255.252 U     0      0        0 lo
[root@orion ~]# ip route ls

default
        nexthop via 192.168.2.1  dev enp2s0 weight 15
        nexthop via 201.217.1.7  dev ppp0 weight 2
        nexthop via 201.217.1.8  dev ppp1 weight 3
169.254.0.0/16 dev enp2s0  scope link  metric 1002
169.254.0.0/16 dev enp3s5  scope link  metric 1003
169.254.0.0/16 dev enp3s6  scope link  metric 1004

192.168.0.0/24 dev enp3s5  proto kernel  scope link  src 192.168.0.1
192.168.2.0/30 dev enp2s0  proto kernel  scope link  src 192.168.2.2
201.217.1.7 dev ppp0  proto kernel  scope link  src 177.250.60.193
201.217.1.8 dev ppp1  proto kernel  scope link  src 177.251.54.95

201.217.31.10 via 201.217.1.7 dev ppp0
201.217.200.176/30 dev lo  proto kernel  scope link  src 201.217.200.177
201.217.40.12/30 dev lo  proto kernel  scope link  src 201.217.40.113
[root@orion ~]#
Reply all
Reply to author
Forward
0 new messages