.
When I run the command show ip route
in R1
, I get the routing table where there is an outbound static route that seems like this:
S>* 0.0.0.0/0 [210/0] via 10.0.2.2, eth0, weight 1, 00:14:00
It’s the interface eth0
that was set as dhcp
address with the following command:
set interfaces ethernet eth0 address dhcp
R1 have an interface that belongs to the network 10.0.0.8/30. Its a point-to-point network where the .10
IP address belongs to the R1 interface and the .9
is the IP address from the R2 interface. The 192.168.10.0/24
it’s a stub network behind R2.
But when I add other static route in R1 whit the following command:
set protocols static route 192.168.10.0/24 next-hop 10.0.0.9
the outbound static route desapears. It seems that was replace by the static route previous set up:
S>* 192.168.10.0/24 [1/0] via 10.0.0.9, eth2, weight 1, 00:23:35
I had to set up the eth0
interface again in order to the activate the outbound static route.
What can I do to prevent the outbound static route from disappearing whenever I add another static route? Thanks