FG
💻 Software

How can I ping via an alternate gateway?

Fresh5 days ago
Mar 15, 202664602 views
Confidence Score0%
0%

Problem

Our network has two modems, each one hidden behind a router. The primary router is on 10.1.1.1, the backup router is on 10.1.1.2, and are both configured to the 10.1.1.0/24 subnet. Both routers have their gateway configured to 192.168.0.1. However, the 192.168.0.1 that you see if your gateway is 10…

Error Output

auto eth0
iface eth0 inet static
address 10.1.1.10
netmask 255.255.255.0
gateway 10.1.1.1

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How can I ping via an alternate gateway?

Low Risk

ping [hop... ] destination So you can give ping a number of IPs separated by white space as parameter. The last address will be "pinged"; the previous parameters define the route that ping should take. So in your case: "ping 10.1.1.2 modem" to expli…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment