Command line tool for manipulating and listing the routing table.
Questions tagged [route]
620 questions
5
votes
2 answers
Making changes to default IPv6 route persistent in CentOS 7
I have several IPv6 addresses on a CentOS 7 server and need to make a specific v6 address the default address used in routing. I have been able to do this by modifying the route table.
ip -6 route del default
ip -6 route add default via…

James White
- 674
- 3
- 18
- 32
5
votes
3 answers
Centos multiple NICs routing issue
I am having trouble setting up permenant routes for my network interfaces,
below my config :
ETH0 :
172.23.137.27 Netmask /25 - 255.255.255.128 Gateway – 192.168.126.126
ETH1 : Trunk VLAN - VLAN ID : 305
172.21.107.123 Netmask /28 - …

L1opardo
- 339
- 2
- 5
- 9
5
votes
1 answer
How can I permanently remove/delete a line in route with CentOS 6
root@new [~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
178.18.23.200 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
178.18.23.0 0.0.0.0 255.255.255.0 …

John
- 51
- 1
- 1
- 2
5
votes
3 answers
How to set which IP to use for a HTTP request?
This is probably a silly question.
I'm doing some http requests using wget from the command line, and I want those connections to be made through one specific IP of the 4 IPs my server has.
Those http requests go to one specific range of IPs so I…

GetFree
- 1,500
- 7
- 23
- 37
5
votes
1 answer
Set source address to use tun device does not work (Debian Squeeze)
There have been similar questions on StackExchange but none of the answers helped me, so I'll try a question of my own.
I have a VPN connection via OpenVPN. By default, all traffic is redirected through the tunnel using OpenVPN's "two more specific…

A. Donda
- 152
- 8
5
votes
1 answer
Wget works, Ping doesn't
There are some anomalies on a Virtuozzo virtualized Debian 4 (I know, I'm gonna upgrade this one asap, but there dependences). We run some Websites on this one. And a view Days ago exmi4 wasnt able to send mails to SOME people. I'll use live.com as…

Harrys Kavan
- 402
- 1
- 5
- 19
4
votes
0 answers
Route QEMU VM traffic through hosts VPN
tl;dr Host connects via VPN to the internet and a VM on this host doesn't go through this VPN (but it should). I think the network config isn't quite correct.
The host
The host (arch Linux) connects to a VPN network using openvpn and a config file,…

theo_retiker
- 41
- 1
- 2
4
votes
3 answers
Connect a computer through VPN with a different network
Hi,
I would like to connect to a computer through a vpn in another network.
My computer (Debian 7.11) is in the network 192.168.2.0/24. My gateway (192.168.2.1) is a VPN router. It connects to another VPN router 192.168.33.1.
From 192.168.2.2 I can…

Sébastien Bonaimé
- 41
- 2
4
votes
1 answer
Routes for two openvpn connections (different hosts) in the same client
Im trying to make multiple tunnels in the same client, and after a successful connection to the openvpn server I've applied some routes for the tunnels created without success. My first tunnel works but the second one does not. Im doing it like…

therealbigpepe
- 153
- 1
- 6
4
votes
1 answer
Route IP from server A to server B
I try to route 137.74.9.193 from server A to server B (Ubuntu 16.04).
If i try to ping 137.74.9.193 from Server A it works as expected, but when i try to ping from my personal computer it doesn't work.
Server A:
Public IP (ens3):…

envoyr
- 43
- 7
4
votes
1 answer
How can I permanently remove a line in route with Debian-based distributions?
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 202 0 0 eth0
default 192.168.43.1 0.0.0.0 UG 303 …

Andrew Volkov
- 41
- 1
- 2
4
votes
1 answer
How to find my VPN gateway?
I'm not a network engineer but I'm trying to configure my linux machine to have internet access while being connected to my VPN.
My current idea to solve this is to connect to my VPN while configuring my machine NOT to re-configure my routes after…

Muhammad Gelbana
- 217
- 4
- 11
4
votes
1 answer
RTNETLINK answers: File exists -- OpenVPN errors
I have a bunch of servers that connect to the world through a "gateway" server that uses a NAT to redirect to the internet.
I am trying to connect the gateway server to a VPN client through an OpenVPN config file. when I connect it returns an error…

Ahmed Fayad
- 41
- 1
- 2
4
votes
2 answers
Use Mikrotik as a switch and route subnets through another router
I've got the following network configuration:
Comtrend 5813 FTTH Router, connected to WAN, let's say in 192.168.50.x (being .1 router's address) and a DHCP server active, giving addresses from .150 to .200
Mikrotik 951G-2HnD connected to the…

F3RD3F
- 155
- 1
- 1
- 6
4
votes
2 answers
NAT a single IP using 2nd WAN Internet
I have a MikroTik RB750 (firmware 6.22) acting as a gateway for my LAN. Here is the basic configuration:
Ether1-WAN1 (1.1.1.10/24)
Ether2-WAN2 (2.2.2.20/24)
Ether5-LAN (192.168.1.1/24)
IP Routes:
AS 0.0.0.0/0 1.1.1.1 reachable on Ether1-WAN1…

Narbeh Davoodian
- 67
- 2
- 8