Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-24-2008, 03:05 PM
|
#1
|
|
Member
Registered: Sep 2007
Location: Chattanooga, TN
Distribution: Ubuntu
Posts: 84
Rep:
|
/etc/init.d/networking restart (ERRORS)
i have two interfaces both assigned static ip addresses. here is /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.102
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.1
auto eth1
iface eth1 inet static
address 192.168.2.1
netmask 255.255.255.0
network 192.168.2.0
gateway 192.168.1.102
eth1 is serving dhcp addresses. here is my subnet declaration in dhcpd.conf
Code:
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.10 192.168.2.50;
option routers 192.168.2.1;
}
when i try to start the network i get the following error:
Code:
root@pandion:/home/leandro# /etc/init.d/networking restart
* Reconfiguring network interfaces...
SIOCADDRT: No such process
Failed to bring up eth1.
[ OK ]
my theory is that i don't think it likes the gateway address for eth1 (which is the ip address of eth0). if i comment the gateway line for eth1 in the interfaces file and then restart networking i get a different error:
Code:
root@pandion:/etc/default# /etc/init.d/networking restart
* Reconfiguring network interfaces...
RTNETLINK answers: No such process
[ OK ]
i'm also doing ip forwarding and internet connection sharing from eth1 to eth0 with syscntl.conf and some iptables rules. this works fine because all my dhcp clients can browse the web and receive leased addresses.
what i don't understand is why i am getting those errors when i restart networking????? is the gateway address wrong???
|
|
|
|
04-24-2008, 03:07 PM
|
#2
|
|
Member
Registered: Mar 2006
Posts: 54
Rep:
|
Interfaces
Hi,
What happens if you try to bring the interfaces with ifconfig ethx ip_address up ?
Anderson
Quote:
Originally Posted by lrt
i have two interfaces both assigned static ip addresses. here is /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.102
netmask 255.255.255.0
network 192.168.1.0
gateway 192.168.1.1
auto eth1
iface eth1 inet static
address 192.168.2.1
netmask 255.255.255.0
network 192.168.2.0
gateway 192.168.1.102
eth1 is serving dhcp addresses. here is my subnet declaration in dhcpd.conf
Code:
subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.10 192.168.2.50;
option routers 192.168.2.1;
}
when i try to start the network i get the following error:
Code:
root@pandion:/home/leandro# /etc/init.d/networking restart
* Reconfiguring network interfaces...
SIOCADDRT: No such process
Failed to bring up eth1.
[ OK ]
my theory is that i don't think it likes the gateway address for eth1 (which is the ip address of eth0). if i comment the gateway line for eth1 in the interfaces file and then restart networking i get a different error:
Code:
root@pandion:/etc/default# /etc/init.d/networking restart
* Reconfiguring network interfaces...
RTNETLINK answers: No such process
[ OK ]
i'm also doing ip forwarding and internet connection sharing from eth1 to eth0 with syscntl.conf and some iptables rules. this works fine because all my dhcp clients can browse the web and receive leased addresses.
what i don't understand is why i am getting those errors when i restart networking????? is the gateway address wrong???
|
|
|
|
|
04-24-2008, 04:30 PM
|
#3
|
|
Member
Registered: Sep 2007
Location: Chattanooga, TN
Distribution: Ubuntu
Posts: 84
Original Poster
Rep:
|
haven't tried that.. however, i won't be able to try until tomorrow... i will update then.. why should that method be any different though??
|
|
|
|
04-25-2008, 09:00 AM
|
#4
|
|
Member
Registered: Sep 2007
Location: Chattanooga, TN
Distribution: Ubuntu
Posts: 84
Original Poster
Rep:
|
ok i tried that and the command completes without errors....
but i'm not sure how that helps me...
|
|
|
|
04-26-2008, 02:08 AM
|
#5
|
|
Member
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806
Rep:
|
your configuration for eth1 is wrong the gateway has to be on the same network. 192.168.1.102 is not on 192.168.2.0/24
|
|
|
|
04-28-2008, 12:35 PM
|
#6
|
|
Member
Registered: Sep 2007
Location: Chattanooga, TN
Distribution: Ubuntu
Posts: 84
Original Poster
Rep:
|
so what does the gateway address for eth1 need to be if i am assigning everything statically???
|
|
|
|
04-28-2008, 12:51 PM
|
#7
|
|
Member
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806
Rep:
|
why do u need multiple default gateways anyway ?
|
|
|
|
04-28-2008, 01:53 PM
|
#8
|
|
Member
Registered: Sep 2007
Location: Chattanooga, TN
Distribution: Ubuntu
Posts: 84
Original Poster
Rep:
|
this >>> post<<< (unfortunately not here) has answered my question pretty thoroughly.. apparently i don't even need a gateway address set for eth1. the only gateway address i need to assign is for eth0.. dhcp clients on the eth1 subnet will receive a gateway address of my eth1 ip address (192.168.2.1). in other words, i don't need multiple gateways (i just wasn't aware of this).
the post was specific to windows 2003 server... but it was a networking question so i assume it still applies to my problem... if anyone could confirm this solution that would be great...
HOWEVER, when i do a /etc/init.d/networking restart, i still get this error message:
Code:
RTNETLINK answers: No such process
i'm not sure what this means, but now i am pretty sure it has nothing to do with my gateway address setting since i know the setting is correct...
any thoughts on this error are welcome. please!!! 
|
|
|
|
04-29-2008, 12:15 AM
|
#9
|
|
Member
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806
Rep:
|
its correct that you need one gateway most times, please look at /var/log/syslog when you restart networking to see what is causing the RTNETLINK error
|
|
|
|
04-29-2008, 10:38 AM
|
#10
|
|
Member
Registered: Jul 2007
Distribution: Ubuntu
Posts: 99
Rep:
|
Usually the error
Code:
RTNETLINK answers: No such process
Comes from the kernel trying to instantiate a route that does not exist. Please post the output of
so we can have a look.
|
|
|
|
03-09-2009, 07:21 PM
|
#11
|
|
Member
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214
Rep:
|
I have the exact same error.
Here is route -n output:
Code:
myuser@myserver:$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 eth1
0.0.0.0 192.168.1.1 0.0.0.0 UG 100 0 0 eth0
myuser@myserver:$
|
|
|
|
03-10-2009, 09:11 AM
|
#12
|
|
Member
Registered: Jul 2007
Distribution: Ubuntu
Posts: 99
Rep:
|
I think that has something to do with having 2 default routes, both the same. What is your desired configuration? What are you attempting to accomplish? Can you also please post the output of ifconfig -a
|
|
|
|
03-10-2009, 10:43 AM
|
#13
|
|
Member
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214
Rep:
|
Thank you. You were right. I removed the gateway designation from the second interface, and now it works.
What is the best configuration for my file server with 2 GigE interfaces? I'd like to maximize the file server's responsiveness to clients on the LAN. The machine has minimal need to communicate with the WAN.
I'm also curious how I would set up a direct connection between this file server and another computer used for backup (say, using a crossover cable) so that when I do the initial backup, all those GB of traffic don't clog up the LAN.
And if I wanted to give one (Linux) client a priority connection (both ways) to the file server, is there an easy way to do that? The client also has 2 GigE interfaces, and one is not used currently.
Thanks.
|
|
|
|
03-10-2009, 10:44 AM
|
#14
|
|
Member
Registered: Nov 2007
Location: A place with no mountains
Distribution: Kubuntu, sidux, openSUSE
Posts: 214
Rep:
|
With the resolution:
Code:
$ ifconfig -a
eth0 Link encap:Ethernet HWaddr xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: xxxxxxxxxxxxxxxxxx/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:78914 errors:0 dropped:0 overruns:0 frame:0
TX packets:40231 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:52699848 (52.6 MB) TX bytes:3980091 (3.9 MB)
eth1 Link encap:Ethernet HWaddr xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fxxxxxxxxxxxxxxxxxxxxxx1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8356 errors:0 dropped:0 overruns:0 frame:0
TX packets:139 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:976698 (976.6 KB) TX bytes:17645 (17.6 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1966 errors:0 dropped:0 overruns:0 frame:0
TX packets:1966 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:156568 (156.5 KB) TX bytes:156568 (156.5 KB)
pan0 Link encap:Ethernet HWaddr xxxxxxxxxxxxxxxxxxxxxx
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:34 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|