Questions tagged [iproute2]

iproute2 (ip) is a tool used to manipulate network configurations.

The ip command is meant to replace ifconfig/route commands on Linux. This command lets you perform advanced configurations that were not possible with ifconfig/route.

See:

242 questions
0
votes
1 answer

create vpn tunnel at exist interface

guys. I'm testing our company's firewall product.And there have a problem bothers me. "The firewall" works as bridge mode have eth1 interface.I want to simulate a client remote access "the firewall" use an ipip(or others) tunnel. My question is can…
0
votes
1 answer

How to add ip route to route traffic through interface when destination is also that interface

I have been testing keepalived and preparing to roll out on my vps. My setup is: (...) 2: ens4: mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether ab:cd:ef:ab:cd:ef brd ff:ff:ff:ff:ff:ff …
Greg0ry
  • 107
  • 1
  • 12
0
votes
1 answer

Properly manage iptables rules on Docker host

I am using Gentoo and Docker. I have bunch of own iptables rules, and keep them in /var/lib/iptables/rules-save. Docker adding bunch of own rules when start. It seems that iptables is auto-saving each time to rules-save, however I thought this file…
Ural
  • 161
  • 6
0
votes
0 answers

Ubuntu 16.10: source based routing: packets are not redirected

I'm trying to configure source based routing on my ubuntu-machine. As simplest example I'm trying to configure the only one interface on my machine. All configuration taken from here:…
0
votes
3 answers

How do I use the `tc` command to give the 1st queue priority?

Lets say I have 3 queues (# indicates data): Q1: (in)[ ###](out) Q2: (in)[ #####](out) Q3: (in)[ #############](out) Lets say I put all my ICMP packets in Q1 and all the constant downloads in Q3. How do I use the tc command…
Nick Bolton
  • 5,126
  • 12
  • 54
  • 62
0
votes
2 answers

How to make ip route settings persistent in CentOS?

I need to route the outgoing traffic via a virtual ip address. I can do this using the 'ip' tool from the iproute-package. Using ip route I can see which address is used as the source and I can change it using ip route change, but this is temporary…
user3849013
  • 1
  • 1
  • 1
0
votes
1 answer

2 NIC 2 Gateways one router one internet gateway

I have a router with two nets eth0: 192.168.1.0/24, default gateway is 192.168.1.1 eth2: 10.0.88.0/24, default gateway is 10.0.88.1 Both networks use Gateway 192.168.2.1 to the Internet being connected to the router via third interface. All servers…
bringha
  • 1
  • 1
0
votes
1 answer

Ubuntu 16.04 Random outgoing IP

I have several IP address configured as static in my server. I want to route a random IP to any network outgoing request. curl, wget, ping.. etc. How to achieve this with iptables or any other solution?
0
votes
1 answer

routing multiple IPs on a single bond device - debian linux

I'm using linux server with nginx and additional IP-addresses for various web-sites. It has main eth0 device with ipv4 (xx.xxx.210.245) and ipv6 (xxxx:xxxx:xxxx:xxxx:xxxx:ffff:6189:d2f5) and bond0 (xx.xxx.92.134), bond0:1 (xxx.xxx.22.68), bond0:2…
WebSurfer
  • 1
  • 1
0
votes
1 answer

policy routing to guests on other server

After long searching I've found the answer to my challenge, but the last step fails. I have two identical servers that both serve multiple guests. The servers have two interfaces: one for the external IP's I got from my ISP and one for an internal…
user45156
  • 41
  • 2
0
votes
3 answers

Assigning multiple IPs to the same machine with one interface

I have a server with a single physical interface eth0. I intend on running VMs on this server. To that end I have an IPv4 block which is routed to said server. What I'm trying to achieve is to spin-up VMs into a local subnet 10.0.0.0/8 and then…
Simon
  • 193
  • 2
  • 10
0
votes
1 answer

Can not ping from specific vlan tagging interface

On my box I have following interfaces(vlan tagging): eth2.556: 172.16.1.17 eth2.201: 192.168.208.143 All default route via 172.16.1.1 I can ping all other IP using 192.168.208.x, but can not ping outside IP from source 192.168.204.143. In tcpdump, i…
Mr.Hien
  • 71
  • 9
0
votes
1 answer

2 network cards routing

I have 2 network cards with public ips. I am running 2 services. So how do I route the connections. For now only one interface ip is working although both are pingable from internet. My routing table is like this atm: Kernel IP routing…
defiant
  • 121
  • 7
0
votes
1 answer

How to prevent the pppd to remove the default route?

We use multiple providers, one of them to create connection uses pppoe through pppd daemon on ubuntu 14.04. Early without multiple providers pppd manages default route by itself (creating it when connection is established and remove it when pppoe is…
vskubriev
  • 686
  • 9
  • 15
0
votes
0 answers

Auto modify all routes by a specific dev

I have to modify all routes using one specific dev. Not even modify, just append a correct src то the end of a route, like this: x.x.x.x(destination network) via y.y.y.y(MYDEV ip) dev MYDEV(network device) proto zebra To this: x.x.x.x(destination…