This is really tricky that I spent days without a correct solution, so
I come to you for help.
I have two network/ethernet cards. One is for my home network with
static ip (eth0), another is to the DHCP cable modem (eth1). The
version of Linux is Mandrake 10, kernel: 2.6.3-4mdkenterprise.
I also get "failed" when start up the computer on both of my network
cards, but I can get into the internet normally. Strange!
I cannot ping my home ip which is: 192.168.10.1 from a same machine
(it waits forever).
I can get to the internet (eth1). However, with command: "service
network restart"
Output: failed on the eth1 and success on the eth0. I cannot get into
the internet anymore, but then I can ping 192.168.10.1. Somehow my
two cards are in conflict with each other. Next, I remove the eth1,
then add it back again (using the graphical interface). Next, I log
out and in. Now, I can ping both IP addresses of the machine from the
same machine, but cannot ping to the public internet, or get onto the
internet. However, loggin in, running any GUI apps would take
forever. Restart the machine, and I loose this current settings, and
it goes back to the begining (cannot ping the home-networking/static
ip), and the internet works. Also, there are many errors showing up
during the restart of the machine.
I add a route to my iptable:
route add -host 192.168.10.1 dev eth0
Output: "SIOCADDRT: No such device" error
If I do: route add -host 192.168.10.1 netmask 255.255.255.0 eth0
Output: "route: netmask 000000ff doesn't make sense with host route"
If I do: route add -net 192.168.10.1 netmask 255.255.255.0 eth0
Output: "route: netmask doesn't match route address"
Here is the settings under: /etc/sysconfig/network-scripts
For the eth0 device:
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.10.1
NETMASK=255.255.255.0
NETWORK=192.168.10.0
BROADCAST=192.168.10.255
ONBOOT=yes
MII_NOT_SUPPORTED=no
For the eth1 device:
DEVICE=eth1
BOOTPROTO=dhcp
ONBOOT=yes
Here are some message from "dmesg":
IPv6 over IPv4 tunneling driver
process `named' is using obsolete setsockopt SO_BSDCOMPAT
Installing knfsd (copyright (C) 1996
(E-Mail Removed)).
atkbd.c: Unknown key released (translated set 2, code 0x7a on
isa0060/serio0).
atkbd.c: This is an XFree86 bug. It shouldn't access hardware
directly.
eth1: no IPv6 routers present
eth0: no IPv6 routers present
Here is the ifconfig command outputs (with some data back out):
eth0 Link encap:Ethernet HWaddr 00:0x:xx:xx:xx:xx
inet addr:192.168.10.1 Bcast:192.168.10.255
Mask:255.255.255.0
inet6 addr: xxxx::xxx:xxx:xxxx:xxxx/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:36 dropped:0 overruns:0 carrier:72
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:848 (848.0 b)
Interrupt:21 Base address:0xd400
eth1 Link encap:Ethernet HWaddr 00:0x:xx:xx:xx:xx
inet addr:xx.xxx.xxx.xxx Bcast:255.255.255.255
Mask:255.255.252.0
inet6 addr: xxxx::xxx:xxxx:xxxx:xxxx/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:660276 errors:0 dropped:0 overruns:0 frame:0
TX packets:314 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:47864860 (45.6 Mb) TX bytes:20410 (19.9 Kb)
Interrupt:22 Memory:feaf8000-0
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:3455 errors:0 dropped:0 overruns:0 frame:0
TX packets:3455 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:144312 (140.9 Kb) TX bytes:144312 (140.9 Kb)
Issue command: /sbin/route -n
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0
0 eth0
xxx.xxx.xxx.0 0.0.0.0 255.255.252.0 U 0 0
0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
0 lo
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0
0 eth0
/etc/hosts file:
127.0.0.1 localhost
No Ip comp1.mynet.com comp1
192.168.10.1 comp1.mynet.com comp1
Please give me some helps. Reading the How-Tos, and other tutorial,
but I just cannot get it to work.
I also remove all the configurations many times, and then add them
again (using Mandrake graphical tools and manually).
Thank you very much for your consideration.
VD