RTNETLINK answers: File exists
Posted: 2010/08/31 18:50:37
I just noticed that DNS is flakey on this one virtual machine.
[code]
[root@virtCent03:~]#:host bsd2
;; connection timed out; no servers could be reached
[root@virtCent03:~]#:ping yahoo.com
ping: unknown host yahoo.com
[root@virtCent03:~]#:ping 192.168.1.44
PING 192.168.1.44 (192.168.1.44) 56(84) bytes of data.
64 bytes from 192.168.1.44: icmp_seq=1 ttl=64 time=0.227 ms
64 bytes from 192.168.1.44: icmp_seq=2 ttl=64 time=0.250 ms
64 bytes from 192.168.1.44: icmp_seq=3 ttl=64 time=0.219 ms
[/code]
I looked at the network settings in setup and everything looks as it should.
[code]
┌─────┤ DNS configuration ├─────┐
│ │
│ │
│ Hostname virtCent03_____ │
│ Primary DNS 192.168.1.44___ │
│ Secondary DNS 123.456.0.12____ │
│ Tertiary DNS 4.2.2.2________ │
│ Search example.com_ │
│ │
│ ┌────┐ ┌────────┐ │
│ │ Ok │ │ Cancel │ │
│ └────┘ └────────┘ │
│ │
│ │
└───────────────────────────────┘
[/code]
but when I bounce the networking service this is what I see.
[code]
[root@virtCent03:~]#:service network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: RTNETLINK answers: File exists
Error adding address 192.168.1.45 for eth0.
[ OK ]
[/code]
The interface was configured with the setup utility and seemed to do a good job of writing the config to the correct scripts...
[code]
[root@virtCent03:~]#:less /etc/sysconfig/network-scripts/ifcfg-eth0
# Xen Virtual Ethernet
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:16:36:58:cf:3c
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.45
GATEWAY=192.168.1.1
TYPE=Ethernet
[/code]
[code]
[root@virtCent03:~]#:less /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=virtCent03
[/code]
Does anyone have any tips on how to get past this point?
[code]
[root@virtCent03:~]#:host bsd2
;; connection timed out; no servers could be reached
[root@virtCent03:~]#:ping yahoo.com
ping: unknown host yahoo.com
[root@virtCent03:~]#:ping 192.168.1.44
PING 192.168.1.44 (192.168.1.44) 56(84) bytes of data.
64 bytes from 192.168.1.44: icmp_seq=1 ttl=64 time=0.227 ms
64 bytes from 192.168.1.44: icmp_seq=2 ttl=64 time=0.250 ms
64 bytes from 192.168.1.44: icmp_seq=3 ttl=64 time=0.219 ms
[/code]
I looked at the network settings in setup and everything looks as it should.
[code]
┌─────┤ DNS configuration ├─────┐
│ │
│ │
│ Hostname virtCent03_____ │
│ Primary DNS 192.168.1.44___ │
│ Secondary DNS 123.456.0.12____ │
│ Tertiary DNS 4.2.2.2________ │
│ Search example.com_ │
│ │
│ ┌────┐ ┌────────┐ │
│ │ Ok │ │ Cancel │ │
│ └────┘ └────────┘ │
│ │
│ │
└───────────────────────────────┘
[/code]
but when I bounce the networking service this is what I see.
[code]
[root@virtCent03:~]#:service network restart
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: RTNETLINK answers: File exists
Error adding address 192.168.1.45 for eth0.
[ OK ]
[/code]
The interface was configured with the setup utility and seemed to do a good job of writing the config to the correct scripts...
[code]
[root@virtCent03:~]#:less /etc/sysconfig/network-scripts/ifcfg-eth0
# Xen Virtual Ethernet
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:16:36:58:cf:3c
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.45
GATEWAY=192.168.1.1
TYPE=Ethernet
[/code]
[code]
[root@virtCent03:~]#:less /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=virtCent03
[/code]
Does anyone have any tips on how to get past this point?