Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> #SIOCADDRT: File exists, Stopping IP address from working
1080p
post Nov 26 2008, 06:54 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 26-November 08
Member No.: 13,768



Hi guys -

After adding a new IP address in

#/etc/sysconfig/network-scripts/ifcfg-eth0:7

and updating vhost,
when restarting the service

#service network restart

Everything is returned OK, except for the aforementioned flag:

#SIOCADDRT: File exists

Which I believe is restricting the IP address from working correctly; the web folder is only accessible via the IP address and not the domain name resolved to it...

As this is a duplicate error message what can be done about resolving it?
There are a fair few other IP addys working perfectly on the same network.

I've tried removing the IP from ifcfg and vhosts then rebooting, but still no joy any help much appreciated.

All Device lines are written respectively to the ifcfg they are in.

1. vi /etc/sysconfig/network-scripts/ifcfg-eth0:7
====================================
DEVICE=eth0:7
BOOTPROTO=static
IPADDR=192.176.240.190
NETMASK=255.255.252.0
BROADCAST=217.174.243.255
NETWORK=217.174.240.0
ONBOOT=yes
TYPE=Ethernet
2. route -n
========
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.176.240.0 0.0.0.0 255.255.252.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.176.240.1 0.0.0.0 UG 0 0 0 eth0
3. netstat -r
=========
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.176.240.0 * 255.255.252.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default server192-176-2 0.0.0.0 UG 0 0 0 eth0

=========================================================

Are there any other files that I need to be looking at to fix this, other than vhost.conf?

I'm almost certain
#SIOCADDRT: File exists
is to blame, but how to fix!?
Go to the top of the page
 
+Quote Post
michaelk
post Nov 30 2008, 02:31 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,800
Joined: 23-January 03
Member No.: 360



At first glance it appears you are trying to add a host route with the same IP address.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 15th December 2017 - 08:44 PM