› Forums › Network Management › Linux and Networking › Too Many networks with RIP between Linux and Zeroshell
- This topic is empty.
-
AuthorPosts
-
September 18, 2016 at 3:40 pm #44640
Piduna
Memberi have two Linux-like computers with external and internal ip-addresses.
In first computer (CentOS 7), i have Quagga (ripd):ripd.conf
hostname tl-gateway
password zebra
enable password zebra
log file /var/log/quagga/ripd.log
debug rip events
debug rip packet
key chain tl_key1
key 1
key-string termo
interface eth2
ip rip authentication key-chain tl_key1
ip rip authentication mode text
router rip
network eth1
network tap0
eth1 – it is local network (192.168.110.0/255.255.255.0). It ip is 192.168.110.180. tap0 – OpenVPN network (192.168.112.0/255.255.255.0). eth0 – my ISP.
In second computer (zeroshell), i have ETH2 – local network. It ip is 192.168.110.15. ETH0 – my ISP, VPN99 – network for VPN (192.168.250.0/255.255.255.0)
ripd.conf
hostname ripd
password zebra
log stdout
!
interface ETH02
ip rip authentication mode text
ip rip authentication string termo
ip rip split-horizon
router rip
redistribute kernel
redistribute connected
redistribute static
network ETH02
Routing table of Zeroshell:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 12.34.567.225 0.0.0.0 UG 0 0 0 ETH00
12.34.567.224 0.0.0.0 255.255.255.248 U 0 0 0 ETH00
192.168.110.0 0.0.0.0 255.255.255.0 U 0 0 0 ETH02
192.168.112.0 192.168.110.180 255.255.255.0 UG 0 0 0 ETH02
192.168.250.0 0.0.0.0 255.255.255.0 U 0 0 0 VPN99
12.34.567.224 – information about ISP network (Zeroshell).
Ok, we receive VPN network from CentOS (192.168.112.0/255.255.255.0). But, look on routing table in Centos:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
22.24.124.227 0.0.0.0 255.255.255.248 U 0 0 0 eth0
12.34.567.224 192.168.110.15 255.255.255.240 UG 0 0 0 eth1
192.168.112.0 0.0.0.0 255.255.255.0 U 0 0 0 tap0
192.168.250.0 192.168.110.15 255.255.255.0 UG 0 0 0 eth1
192.168.110.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
0.0.0.0 22.24.124.225 0.0.0.0 UG 0 0 0 eth0
22.24.124.227 – information about ISP (CentOS) Why I received from zeroshell all networks? In config file, i write:
network ETH02! Not ETH00, Not VPN99, and other. Why, zeroshell return too many networks ? -
AuthorPosts
- You must be logged in to reply to this topic.