Sounds like you might not have the default route setup on the switch pointed to the router ip address.
set routing-options static route 0.0.0.0/0/0 next-hop
192.168.50.1------------------------------
Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
http://puluka.com/home------------------------------
Original Message:
Sent: 10-14-2022 04:27
From: Ali Shirvani
Subject: Problem with routing commands
Hi all, I configured a router and a connected switch to it. I can ping the router IP from the switch and vice versa. Also, I can ping 1.1.1.1 from the router, but I can not ping 1.1.1.1 from the switch. Here is the routing table of the router:
inet.0: 5 destinations, 5 routes (5 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0.0.0.0/0 *[Static/5] 21:05:20
> to 172.89.117.1 via xe-0/1/0.0
172.89.117.0/22 *[Direct/0] 21:08:05
> via xe-0/1/0.0
172.89.117.2/32 *[Local/0] 21:08:05
Local via xe-0/1/0.0
192.168.50.0/24 *[Direct/0] 06:25:54
> via xe-0/1/2.0
192.168.50.1/32 *[Local/0] 06:25:54
Local via xe-0/1/2.0
The router IP addresses are: 172.89.117.2
and 192.168.50.1
and the switch IP address is: 192.168.50.2
I should note that I can ping the router interface from the switch.
I've also added this command but not getting any luck!
set routing-options static route 192.168.1.254/24 next-hop 172.86.177.1
------------------------------
Ali Shirvani
------------------------------