route command on freebsd

Started by lasirius, October 30, 2022, 10:28:51 PM

Previous topic - Next topic

lasirius


I am using the route command on the freebsd platform. I have added a new route but I cannot ping the new destination address. Here is the relevant portion of my routing table:

Destination           Gateway              Flags     Netif     Expire
192.168.1.0/24     10.1.0.2               UGS      lan0

I have a router, 'routerA', connected to the Internet on one interface and also configured for another network on a second interface, I also have a second router, 'routerB', configured to access routerA and also configured to access another network.

routerA is configured to access network1, '10.1.0.0/24'. routerB is configured to access 10.1.0.0/24. routerB is also configured to access network2, '192.168.1.0/24'.

I want routerA to access the 192.168.1.0/24 network residing on routerB.

I have used this command to add the above line to routerA's routing table:

route add -net 192.168.1.0/24 10.1.0.2

I want to ping a host configured with the address 192.168.1.166 on the 192.168.1.0/24 network:

routerA@10.1.0.1: ping 192.168.1.166

No response:

7 packets transmitted, 0 packets received, 100.0% packet loss.

Any help would be good. Thank you.



deanwebb

What are the routes on the Router B?
Take a baseball bat and trash all the routers, shout out "IT'S A NETWORK PROBLEM NOW, SUCKERS!" and then peel out of the parking lot in your Ferrari.
"The world could perish if people only worked on things that were easy to handle." -- Vladimir Savchenko
Вопросы есть? Вопросов нет! | BCEB: Belkin Certified Expert Baffler | "Plan B is Plan A with an element of panic." -- John Clarke
Accounting is architecture, remember that!
Air gaps are high-latency Internet connections.