Then I start a PPPOE server on the local interface. My routing table now looks like this:Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 AS 0.0.0.0/0 r 192.168.2.1 1 ether1
1 ADC 192.168.2.0/30 192.168.2.2 0 ether1
Thats OK so far. People are surfing good. Unfortunately, packets coming from outside to a destination 192.168.3.x that is NOT connected go back through the default route and come back again until it expires TTL. I thought that OSPF could solve this problem, then I started OSPF for 192.168.3.0/24. Now my routing table looks like this:Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 AS 0.0.0.0/0 r 192.168.2.1 1 ether1
1 ADC 192.168.2.0/30 192.168.2.2 0 ether1
2 ADC 192.168.3.1/32 192.168.2.2 0 <pppoe-client1>
3 ADC 192.168.3.2/32 192.168.2.2 0 <pppoe-client2>
4 ADC 192.168.3.3/32 192.168.2.2 0 <pppoe-client3>
5 ADC 192.168.3.4/32 192.168.2.2 0 <pppoe-client4>
6 ADC 192.168.3.5/32 192.168.2.2 0 <pppoe-client5>
The only way I found to solve this was by assign a IP from that network on the local interface. Now my routing table looks like this and finally there is a ICMP host unreachable for hosts from 192.168.3.0/24 that are NOT there:Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 AS 0.0.0.0/0 r 192.168.2.1 1 ether1
1 ADC 192.168.2.0/30 192.168.2.2 0 ether1
2 ADoU 192.168.3.0/24 110
3 ADC 192.168.3.1/32 192.168.2.2 0 <pppoe-client1>
4 ADC 192.168.3.2/32 192.168.2.2 0 <pppoe-client2>
5 ADC 192.168.3.3/32 192.168.2.2 0 <pppoe-client3>
6 ADC 192.168.3.4/32 192.168.2.2 0 <pppoe-client4>
7 ADC 192.168.3.5/32 192.168.2.2 0 <pppoe-client5>
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 AS 0.0.0.0/0 r 192.168.2.1 1 ether1
1 ADC 192.168.2.0/30 192.168.2.2 0 ether1
2 ADC 192.168.3.0/30 192.168.3.10 0 wlan1
3 ADC 192.168.3.1/32 192.168.2.2 0 <pppoe-client1>
4 ADC 192.168.3.2/32 192.168.2.2 0 <pppoe-client2>
5 ADC 192.168.3.3/32 192.168.2.2 0 <pppoe-client3>
6 ADC 192.168.3.4/32 192.168.2.2 0 <pppoe-client4>
7 ADC 192.168.3.5/32 192.168.2.2 0 <pppoe-client5>
So, here is my questions:
- Why the route number 2 is unreachable via OSPF?
- Is there a way to solve the TTL expire problem other than assign an IP from 192.168.3.x in the local interface?
Thanks in advance.
Ozelo