LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-12-2010, 11:26 PM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,546
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Unable to set gateway when second network adapter fitted


Hello

Problem symptoms

When a second network adapter is fitted, the boot script fails to configure the default gateway. Here's from /var/log/messages with DEBUG_ETH_UP="yes" configured for the boot script
Code:
Feb 13 10:22:23 ps1 logger: /etc/rc.d/rc.inet1:  /sbin/route add default gw 191.168.1.1 metric 1
Feb 13 10:22:23 ps1 logger: SIOCADDRT: No such process
After boot the same command failed with the same message when done by root logged in via ssh but succeeded when run from the console

After removing the second network adapter, the boot script is able to configure the gateway.

EDIT: or not. The problem now seems intermittent Now with only the onboard network adapter the same "SIOCADDRT: No such process" error is logged during boot and the "/sbin/route add default gw 191.168.1.1" command fails at the console too. Am experimenting with disabling the onboard adapter and fitting the NIC.

EDIT 2: definitely intermittent. Just rebooted with no hardware changes; same error during boot and route -n showed no default gateway but "/sbin/route add default gw 191.168.1.1" worked.

System details and history
  • Intel D865GSA motherboard with onboard Realtek RTL8100C (maybe -- see lspci output below).
  • Second network adapter is Compex RE100ATX (main chip marked RTL8139D Slackware 13.0 32-bit
lspci -v detail on the adapters:
Code:
02:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
        Subsystem: Intel Corporation Device 0c4a
        Flags: bus master, medium devsel, latency 32, IRQ 23
        I/O ports at b400 [size=256]
        Memory at feaff800 (32-bit, non-prefetchable) [size=256]
        Capabilities: [50] Power Management version 2
        Kernel driver in use: 8139too
        Kernel modules: 8139too, 8139cp

02:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
        Subsystem: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
        Flags: bus master, medium devsel, latency 32, IRQ 22
        I/O ports at b800 [size=256]
        Memory at feaffc00 (32-bit, non-prefetchable) [size=256]
        Expansion ROM at 30000000 [disabled] [size=64K]
        Capabilities: [50] Power Management version 2
        Kernel driver in use: 8139too
        Kernel modules: 8139too, 8139cp
Before booting with the second network adapter fitted, /etc/udev/rules.d/70-persistent-net.rules was deleted and /etc/rc.d/rc.inet1.conf's eth1 stanza changed to:
Code:
# Config information for eth1:
IPADDR[1]="10.0.0.41"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
Best

Charles

Last edited by catkin; 02-13-2010 at 12:24 AM.
 
Old 02-13-2010, 12:59 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,546
Blog Entries: 28

Original Poster
Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Solved.

Mea culpa The gateway in rc.inet1.conf was 191.168.1.0 not 192.168.1.0 and the problem symptoms were compounded by my sometimes erroneously trying to add 192.168.0.0 at the command line.

The lesson (apart from trying to avoid human error) is that the message "SIOCADDRT: No such process" can mean that the gateway being added does not match the network on (any of) the interfaces.
 
  


Reply

Tags
gateway, realtek


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set up laptop as network gateway for HTC Hero kenneho Linux - Networking 3 08-29-2009 11:58 AM
Help to set up Linux Box As a network gateway pbhat Linux - Networking 3 05-17-2009 02:41 AM
Fedora core 6 unable 2 find network adapter ssr_2k6 Linux - Hardware 1 06-14-2007 02:59 PM
lm10.0 gateway is set but when I reboot I have to set the gateway rharvey32 Mandriva 8 02-13-2006 01:35 PM
"unable to set up wireless lan usb adapter" pathak Linux - Hardware 1 04-27-2005 01:01 AM


All times are GMT -5. The time now is 09:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration