Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - lasirius

#1
Routing and Switching / route command on freebsd
October 30, 2022, 10:28:51 PM

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.