Questions tagged [iproute]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
213 views

Totally isolate two interfaces -Linux

I'm a bit embarrassed but I need your help. I have three interfaces on a virtual machines. I want to completely isolate my interfaces between them. I created one route table for each interface: ...
0 votes
1 answer
307 views

Ubuntu server as both a private NAT router and a public router

I am attempting to do something I've never tried before. I have a Dell PowerEdge 540 that I've installed Ubuntu on. I got a Comcast Business line installed, and have the following physical network ...
0 votes
1 answer
344 views

how to mark connections to route multiple gateways?

hi i am having trouble setting up permanent routes for my network interfaces, i have : os : linux (centos 7) eth0 : IP 172.16.3.6 -- Gateway : 172.16.0.1 eth0:1 : IP 10.1.5.102 -- Gateway : 10.1.5.101 ...
0 votes
1 answer
36 views

CentoOS and IP RULE

I don't understand my situation. I have a network lab like on a picture. I can't ping 192.168.5.1 from 192.168.1.2 then the 192.168.5.1 has 192.168.4.2 like a default gateway. Linux# ip route default ...
1 vote
1 answer
7k views

RTNETLINK answers: Invalid argument when adding route

I wish to add static route for my interface eth1. But Whenever I use route command , I get this annoying error RTNETLINK answers: Invalid argument. Current routing configuration Destination ...
0 votes
0 answers
110 views

Connection Refused - Cent OS7

It seems that the OS is blocking the connection outbound, I'm just not sure if it's because on my config. As I cannot yum install or curl but it shows connection refused. I tried the below commands to ...
0 votes
1 answer
107 views

Ubuntu Routing: Dual Nics with 2 Vlans

I am new to linux routing. I have an architecture similar to this . I realize this network architecture is fundamentally flawed however I am not permitted to change the architecture. I did some ...
2 votes
2 answers
508 views

OpenVPN client lan to reach Server lan

I have OpenVPN Server running in VPC and client running in office network. Have following table on 10.24.11.37 # route -n Kernel IP routing table Destination Gateway Genmask ...
  • 119
1 vote
0 answers
1k views

Static route not working in CentOS 7.6

UPDATE: There was nothing wrong with the OS. The gateway for the static routes had some double NAT rules which caused the traffic to be dropped. I have a simple network setup on a CentOS server. ...
3 votes
2 answers
2k views

Linux GRE - ip tunnel vs ip link

Can someone please explain the difference between linux ip tunnel and ip link command when it comes to configuring tunnels (such as GRE, IPIP, or VXLAN)? I can see that I can configure a GRE tunnel, ...
2 votes
1 answer
7k views

From specific source IP to specific destination IP with ip route or ip tables

Problem I've already created different IP aliases, (each with a different virtual Mac Address too) this way on my shell: ip link add link eth0 address 00:11:11:11:11:11 eth0.1 type macvlan ifconfig ...
  • 23
2 votes
2 answers
2k views

hostapd not working anymore

I had a working hostapd file and a functioning wifi hotspot (device is busybox, iMX6 board). While the hotspot was up and running, I was doing manual routing connected to the device via ssh (I'm able ...
user avatar
2 votes
1 answer
1k views

Why Linux continues to use disconnected ethernet interfaces?

I have a Linux system with two ethernet interfaces, eth0 & eth1, which are used on the same subnet. At times, I see that even when one of the interfaces is disconnected (cable unplugged), Linux ...
0 votes
1 answer
202 views

rhel7 default gateway in the route table

After restarting network/rebooting the server, the default gateway IP address is also getting added as a route Destination in RHEL7. How can I prevent this? We have not specified this setting and not ...
0 votes
1 answer
819 views

Ghost ping on a multi-NIC Linux system

I have a Linux system with 3 NICs & all 3 are on the same subnet. I've setup policy routing on the system with ip rules & ip routes using 3 tables. These are the IPs of the 3 NICs. ETH0: 192....
5 votes
1 answer
2k views

Routing traffic to two NICs on the same network

I have a few linux test boxes on Scaleway, each having 2x NICs that are all connected to the same network 10.0.0.0/8 but each has its own gateway. I want to be able to use both NICs (eth0/eth1) and ...
  • 268
1 vote
1 answer
2k views

OpenVPN with same subnet on two remote sites

i have some issue with an OpenVPN concentrator while using TUN device. The scenario is that: OpenVPN Server VPN Subnet: 10.10.10.1/24 PC1 OpenVPN Client VPN IP: 10.10.10.50 PC Local subnet/IP: 192....
  • 368
1 vote
1 answer
593 views

IP Rules and Tables Confusion

After using openVPN, I have a new TUN device. I also followed some steps online to allow incoming transmissions into my server, however, I don't understand how it's working. ip addr: 1: lo: <...
  • 11
14 votes
2 answers
69k views

Use ip route add to add multicast routes to multiple interfaces

TLDR: Is there a way to use "ip route" to add multicast routes for multiple NICs? We have software that uses two multicast groups to communicate with two different groups of devices on two separate ...
  • 243
0 votes
1 answer
6k views

script exited with error status 127

i wrote some scrip for setting route on specific interface on linux (CentOS 6.0) and put them into Networkmanager script path (/etc/Networkmanager/dispatcher.d) with highest prefix number.(i give ...
0 votes
0 answers
586 views

TWO ISP internet connections on CENTOS6. Can't ping on client

I have two internet connections, from two different ISPs and I need failover host for my local network between the two ISPs. I am using CentOS6. eth0 – ISP 1 eth1 – ISP 2 eth2 – local network ...
2 votes
0 answers
329 views

NAT for multiple servers with iptables over OpenVPN

I have successfully created an OpenVPN Network (server hosted in a VPS) 10.8.0.0/255.255.0.0 for my home needs, and clients that support OpenVPN clients can connect through the server and connect ...
0 votes
1 answer
159 views

how should I divide a network into several smaller vlans on a extreme switch?

I get a C-network from my ISP, and there's a static route in ISP side pointing to one ipaddress(192.168.0.2) in my C-network so that this C-net can be reached from outside world. I use a Extreme X460 ...
-1 votes
1 answer
4k views

SAVE IP ROUTE RULES AFTER REBOOT

I have two internet connections from two different ISPs and I need to balance & failover the traffic originating to and from my network between the two ISPs. My settings: FIRST ISP (eth0): 152....
  • 43
1 vote
0 answers
730 views

Linux: even with route, packets not going over the interface

I apologize but this is a question I jotted down when debugging another problem, so I can't provide any additional information. Anyway: suppose we have no firewall rules, and the following route ...
  • 393
0 votes
2 answers
3k views

Ubuntu Iptables Dual Wan - Forward wan 1 & 2 to an internal server

I'm having problems configuring iptables rules on a double wan setup. The OS is Ubuntu 12.04 LTS. I have 2 Wan connections, both with static IP. Wan-1 is on eth2, Wan-2 is on eth4. I want both of ...
  • 1
3 votes
0 answers
669 views

"ip route get" on Ubuntu returning default instead of static route

We've been trying to solve this seemingly simple routing problem for days. We are trying to route traffic through an OpenVPN tunnel. Specifically, traffic to 10.0.1.136 should be routed through our ...
2 votes
2 answers
2k views

ip route get recognizes address as anycast

# ip route get 1.2.3.4 anycast 1.2.3.4 dev eth0 src 5.6.7.8 and the question is how does it know the address is an anycast ? (which apparently is true). UPDATED: Present as anycast route: root@...
  • 203
0 votes
1 answer
148 views

how to completely quit openvpn, make network work normal

I use a openvpn config file connect to a vpnserver successfully. But after I ctrl + C quit openvpn, ubuntu counld not access network. I think the route table is wrong or openvpn is not shutdown ...
  • 483
0 votes
1 answer
354 views

IP routing Solaris 9 access the internet from local network

I am trying to configure the NICS on the Solaris Sparc server. My problem lies in getting out to the "Internet" from the local network. I have requested the NIC to receive a DHCP server address #...
  • 15
6 votes
3 answers
16k views

Multiples ip address on interface. I want to specify one of them for output

I ran curl on curlmyip.com, and I got the wrong output ip address. My systemd service file is: [Unit] Description=Wired Networking Wants=network.target dibbler-client.service Before=network.target ...
  • 118
0 votes
1 answer
321 views

playing with ip route to connect to VPN and lost local internet

I'm following this tutorial about openVPN, every goes good until this following step on client (just before autostart section from wiki): # ip route add VPNSERVER_IP via LOCALGATEWAY_IP dev eth0 ...
0 votes
1 answer
338 views

Redirect remote desktop traffic with 2 WANs and 1 LAN

Im configuring a linux centos sever for testings and the network configuration for it is: WAN 1= 192.168.1.103/24 eth0 WAN 2= 172.16.1.249/16 eth1 LAN = 192.168.10.1 eth2 server is configured to be ...
1 vote
1 answer
498 views

Selectively route traffic to interface

I have set up a separate routing table (tovpn) #echo 200 tovpn >> /etc/iproute2/rt_tables Now I assign routes to it. Where 10.0.0.1 is the tun2 P-t-P and 10.0.0.2 is the inet #ip ...
-1 votes
1 answer
292 views

ip routing policy in linux

I have a linux system with two network interfaces (eth0 in x.x.x.0 and eth1 in x.x.y.0). Is there any posibility to add some route policy to send all the traffic to network x.x.y.0. I would like even ...
  • 11
1 vote
2 answers
4k views

Is Traffic Control (tc) broken in Fedora 17?

After upgrading from Fedora 16 to Fedora 17, Traffic Control no longer seems to work. Running # tc qdisc show will output: qdisc pfifo_fast 0: dev eth0 root refcnt 2 bands 3 priopmap 1 2 2 2 1 2 0 ...
  • 163
4 votes
1 answer
2k views

Linux: ip alias versus iproute

When setting up a web server with multiple IP-based virtual hosts, I've always used the eth0:x alias notation in /etc/network/interfaces. The wiki on my hosting provider states however that this is ...
6 votes
1 answer
3k views

iproute: disable "tc" command

I'm after running this command to simulate a network latency of 500ms with 100ms std deviation: tc qdisc add dev eth2 root netem delay 500ms 100ms Trouble is, I forget how to cancel this command! My ...
  • 596
0 votes
1 answer
223 views

iproute2 premptive route creation, i think

Firstly: I know could do this the easy way with SSH but I want to learn how to route. I want to route packets back through the same tun0 interface from which they came into my system. I can do it ...
4 votes
2 answers
3k views

Same netmask or /32 for secondary IP on Linux

There appear to be (at least) two ways to add a secondary IP address to an interface on Linux. By secondary, I mean that it'll accept traffic to the IP address, and responses to connections made to ...
  • 1,288