yep - that's what I mean. Unfortunately the exception does not include the actual command that failed. Can you look up the log before the exception to find it.

Jun 13, 2017 RTNETLINK answers: Invalid argument - CentOS Mar 25, 2008 configuration - How to set up multiple network interfaces [RTNETLINK answers: File exists] Ask Question Asked 5 years, 10 months ago. Active 5 years, 2 months ago. Viewed 3k times 1. interface file. auto eth0 iface eth0 inet dhcp up route add 192.168.11.2 dev eth0 up route add default gw 192.168.11.2 dev eth0 auto eth1 iface eth1 inet static address 10.95.163.14 netmask 255.255.255.0 up route add 172 RTNETLINK answers: File exists Failed to bring up eth2

'RTNETLINK answers: File exists' This is our script for setting the delay and bandwidth: def exec_bw_config2(ssh, interface, bandwidth, ip, subnetmasklength, delay): clear_bw_config2(ssh, interface) # create a qdisc (queuing discipline), 12 is default class cmd1 = "sudo tc qdisc add dev %s root handle 1: htb default 12" % interface print cmd1

If you have multiple `ip=` arguments, the first gateway is added successfully, but for each *subsequent* interface `ip route ` will fail with: RTNETLINK answers: File exists So if you have multiple NICs, and eth0 has a bad gateway, you'll never be able to get outside your subnet because the default gateway is still via eth0.

Apr 21, 2017

# ifup ethX RTNETLINK answers: File exists Here is the relevant configuration files used.