You are not logged in.

#1 2013-12-31 12:07:14

str0gg
Member
Registered: 2012-12-01
Posts: 75
Website

[SOLVED]Route connection to specified ip via specified interface

Hello,

I have 2 interfaces eth0 and wlan0

eth0 is connected to network with limited access outside(high bandwidth).
wlan0 is connected to network with unlimited access outside(low bandwidth).

What I want to achieve is to route specified ip via wlan0

I tried to route by "add" but it didn't work.
Please help.


ip route add x.x.153.202 via 192.168.1.73

[root@lukasz-dell7720 lukasz]# ip route list
default via 192.168.10.1 dev enp3s0  metric 202 
default via 192.168.1.1 dev wlp2s0  metric 303 
x.x.153.202 via 192.168.1.73 dev wlp2s0 
192.168.1.0/24 dev wlp2s0  proto kernel  scope link  src 192.168.1.73  metric 303 
192.168.1.73 via 127.0.0.1 dev lo  metric 303 
192.168.10.0/24 dev enp3s0  proto kernel  scope link  src 192.168.10.149  metric 202 
192.168.10.149 via 127.0.0.1 dev lo  metric 202 

Last edited by str0gg (2014-01-02 12:01:23)

Offline

#2 2013-12-31 12:20:56

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,231
Website

Re: [SOLVED]Route connection to specified ip via specified interface

Define "didn't work" -- the route you added is in the route table from what you've posted.

EDIT: Are you sure 192.168.1.73 is the correct gateway? Your other 2 gateways appear to be 192.168.10.1 and 192.168.1.1

Last edited by fukawi2 (2013-12-31 12:21:57)

Offline

#3 2013-12-31 12:33:26

str0gg
Member
Registered: 2012-12-01
Posts: 75
Website

Re: [SOLVED]Route connection to specified ip via specified interface

thanks I realized my mistake.

Offline

Board footer

Powered by FluxBB