How to Send Outbound Traffic With Different IP? in Help

edited June 10 in Help

I have a VM with 2 IPv4 addresses.

Main IP:
Second IP:

> When I do HTTP request, it uses Main IP ( to send outbound traffic.
> I want to route some requests which are sent to specific host with using my second IP (
> I tried to use ip route, but doesn't work. Maybe it caused by the second IP doesn't have a gateway.

This is the command I've tried:
sudo ip route [target_host] via

In here is my second IP address, I think it should be the gateway of the second IP address, but it doesn't have a gateway.

How can I do it?

Please help me, thank you in advance.
Sign In or Register to comment.

Registration Required

A account is required to use the forum. Click here to sign in.

Quick Links