Re: How to get my 2 ethernet cards to work
From: VD (st946tbf_at_drexel.edu)
Date: 05/05/04
- Previous message: KR: "Re: Virtual NICs w/different MAC addresses"
- In reply to: VD: "Re: How to get my 2 ethernet cards to work"
- Next in thread: cainster: "Re: How to get my 2 ethernet cards to work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 4 May 2004 20:29:38 -0700
Here's my /var/log/syslog stuffs that seems relevant:
May 4 21:59:49 xx-xx-xx-xx-xx-xx-xx-xx shorewall: Loading Modules...
May 4 21:59:49 xx-xx-xx-xx-xx-xx-xx-xx shorewall: Determining
Zones...
May 4 21:59:49 xx-xx-xx-xx-xx-xx-xx-xx shorewall: Zones: net
May 4 21:59:49 xx-xx-xx-xx-xx-xx-xx-xx shorewall: Validating
interfaces file...
May 4 21:59:49 xx-xx-xx-xx-xx-xx-xx-xx shorewall: Validating hosts
file...
May 4 21:59:49 xx-xx-xx-xx-xx-xx-xx-xx shorewall: Determining Hosts
in Zones...
May 4 21:59:50 xx-xx-xx-xx-xx-xx-xx-xx shorewall: Net Zone:
eth1:0.0.0.0/0
May 4 21:59:50 xx-xx-xx-xx-xx-xx-xx-xx shorewall: Validating policy
file...
May 4 21:59:50 xx-xx-xx-xx-xx-xx-xx-xx shorewall: Policy for fw to
net is ACCEPT using chain fw2net
May 4 21:59:50 xx-xx-xx-xx-xx-xx-xx-xx shorewall: Policy for net
to fw is DROP using chain net2all
May 4 21:59:50 xx-xx-xx-xx-xx-xx-xx-xx shorewall: Validating rules
file...
May 4 21:59:50 xx-xx-xx-xx-xx-xx-xx-xx shorewall: Error: Undefined
Client Zone in rule "REDIRECT masq 3128 tcp www -"
May 4 21:59:50 xx-xx-xx-xx-xx-xx-xx-xx rc: Starting shorewall:
failed
May 4 21:59:50 xx-xx-xx-xx-xx-xx-xx-xx service_harddrake[925]: ###
Program is starting ###
May 4 21:59:51 xx-xx-xx-xx-xx-xx-xx-xx service_harddrake[925]:
running: /sbin/modprobe hid
May 4 21:59:51 xx-xx-xx-xx-xx-xx-xx-xx harddrake: succeeded
May 4 21:59:51 xx-xx-xx-xx-xx-xx-xx-xx network: Setting network
parameters: succeeded
May 4 21:59:52 xx-xx-xx-xx-xx-xx-xx-xx postfix/postfix-script: fatal:
the Postfix mail system is not running
May 4 21:59:52 xx-xx-xx-xx-xx-xx-xx-xx network: Bringing up loopback
interface: succeeded
May 4 21:59:52 xx-xx-xx-xx-xx-xx-xx-xx ifplugd(eth0)[1066]: ifplugd
0.21b initializing.
May 4 21:59:52 xx-xx-xx-xx-xx-xx-xx-xx ifplugd(eth0)[1066]: Using
interface eth0/xx-xx-xx-xx-xx-xx-xx-xx with driver <tulip> (version:
1.1.13)
May 4 21:59:52 xx-xx-xx-xx-xx-xx-xx-xx ifplugd(eth0)[1066]: Using
detection mode: SIOCGMIIPHY
May 4 21:59:52 xx-xx-xx-xx-xx-xx-xx-xx ifplugd(eth0)[1066]:
Initialization complete, link beat not detected.
May 4 21:59:52 xx-xx-xx-xx-xx-xx-xx-xx network: Bringing up interface
eth0: failed
May 4 21:59:52 xx-xx-xx-xx-xx-xx-xx-xx ifplugd(eth1)[1082]: ifplugd
0.21b initializing.
May 4 21:59:52 xx-xx-xx-xx-xx-xx-xx-xx ifplugd(eth1)[1082]: Using
interface eth1/xx-xx-xx-xx-xx-xx-xx-xx
May 4 21:59:52 xx-xx-xx-xx-xx-xx-xx-xx ifplugd(eth1)[1082]: Failed to
detect plug status of eth1
May 4 21:59:52 xx-xx-xx-xx-xx-xx-xx-xx ifplugd(eth1)[1082]: Executing
'/etc/ifplugd/ifplugd.action eth1 up'.
May 4 21:59:53 xx-xx-xx-xx-xx-xx-xx-xx ifplugd(eth0)[1066]: Link beat
detected.
May 4 21:59:54 xx-xx-xx-xx-xx-xx-xx-xx ifplugd(eth0)[1066]: Link beat
lost.
May 4 21:59:56 xx-xx-xx-xx-xx-xx-xx-xx dhclient: DHCPACK from
10.172.112.1
May 4 21:59:56 xx-xx-xx-xx-xx-xx-xx-xx ifplugd(eth1)[1082]: client:
Determining IP information for eth1... done.
May 4 21:59:56 xx-xx-xx-xx-xx-xx-xx-xx postfix[1187]: warning: My
hostname xx-xx-xx-xx-xx-xx-xx-xx is not a fully qualified name - set
myhostname or mydomain in /etc/postfix/main.cf
May 4 21:59:56 xx-xx-xx-xx-xx-xx-xx-xx postfix/master[1188]: warning:
My hostname xx-xx-xx-xx-xx-xx-xx-xx is not a fully qualified name -
set myhostname or mydomain in /etc/postfix/main.cf
May 4 21:59:56 xx-xx-xx-xx-xx-xx-xx-xx postfix/postfix-script:
warning: My hostname xx-xx-xx-xx-xx-xx-xx-xx is not a fully qualified
name - set myhostname or mydomain in /etc/postfix/main.cf
May 4 21:59:56 xx-xx-xx-xx-xx-xx-xx-xx ifplugd(eth1)[1082]: Program
executed successfully.
May 4 21:59:56 xx-xx-xx-xx-xx-xx-xx-xx ifplugd(eth1)[1082]: Exiting.
May 4 21:59:56 xx-xx-xx-xx-xx-xx-xx-xx network: Bringing up interface
eth1: failed
May 4 21:59:56 xx-xx-xx-xx-xx-xx-xx-xx net_cnx_up: usage: ifup
<device name>
May 4 21:59:56 xx-xx-xx-xx-xx-xx-xx-xx internet: Checking internet
connections to start at boot failed
May 4 21:59:56 xx-xx-xx-xx-xx-xx-xx-xx portmap: portmap startup
succeeded
May 4 21:59:58 xx-xx-xx-xx-xx-xx-xx-xx ifplugd(eth0)[1066]: Link beat
detected.
May 4 21:59:59 xx-xx-xx-xx-xx-xx-xx-xx ifplugd(eth0)[1066]: Link beat
lost.
May 4 22:00:08 xx-xx-xx-xx-xx-xx-xx-xx named[1744]: net.c:66:
unexpected error:
May 4 22:00:08 xx-xx-xx-xx-xx-xx-xx-xx named[1744]: socket() failed:
Socket type not supported
May 4 22:00:08 xx-xx-xx-xx-xx-xx-xx-xx named[1744]: no IPv6
interfaces found
May 4 22:00:08 xx-xx-xx-xx-xx-xx-xx-xx named[1744]: listening on IPv4
interface lo, 127.0.0.1#53
May 4 22:00:08 xx-xx-xx-xx-xx-xx-xx-xx kernel: Disabled Privacy
Extensions on device c03a1020(lo)
May 4 22:00:08 xx-xx-xx-xx-xx-xx-xx-xx named[1744]: listening on IPv4
interface eth1, 24.3.106.54#53
May 4 22:00:08 xx-xx-xx-xx-xx-xx-xx-xx kernel: process `named' is
using obsolete setsockopt SO_BSDCOMPAT
May 4 22:00:08 xx-xx-xx-xx-xx-xx-xx-xx kernel: IPv6 over IPv4
tunneling driver
May 4 22:00:08 xx-xx-xx-xx-xx-xx-xx-xx named[1744]: command channel
listening on 127.0.0.1#953
May 4 22:00:09 xx-xx-xx-xx-xx-xx-xx-xx named[1744]: zone
0.0.127.in-addr.arpa/IN: loaded serial 1997022700
May 4 22:00:09 xx-xx-xx-xx-xx-xx-xx-xx named[1744]: running
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: No subnet declaration
for eth0 (0.0.0.0).
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: ** Ignoring requests on
eth0. If this is not what
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: you want, please
write a subnet declaration
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: in your dhcpd.conf
file for the network segment
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: to which interface
eth0 is attached. **
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: Wrote 0 leases to
leases file.
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd:
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: No subnet declaration
for eth0 (0.0.0.0).
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: ** Ignoring requests on
eth0. If this is not what
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: you want, please
write a subnet declaration
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: in your dhcpd.conf
file for the network segment
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: to which interface
eth0 is attached. **
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd:
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd:
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: Not configured to
listen on any interfaces!
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd:
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: If you did not get this
software from ftp.isc.org, please
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: get the latest from
ftp.isc.org and install that before
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: requesting help.
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd:
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: If you did get this
software from ftp.isc.org and have not
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: yet read the README,
please read it before requesting help.
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: If you intend to
request help from the dhcp-server@isc.org
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: mailing list, please
read the section on the README about
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: submitting bug reports
and requests for help.
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd:
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: Please do not under any
circumstances send requests for
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: help directly to the
authors of this software - please
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: send them to the
appropriate mailing list as described in
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: the README file.
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd:
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: exiting.
May 4 22:00:11 xx-xx-xx-xx-xx-xx-xx-xx dhcpd: dhcpd startup failed
I get rid of the bad lines on the hosts file. The broadcast IP on the
eth1 seems to be correct this time (has same first 2 numbers with the
IP, but the last 2 numbers are not).
Note that even after all these error, I can still surf the net and
response to your helps. However, the eth0 does not work, and there's
alot of these errors to be fixed, before I can run this computer as a
gate way/share point for my 2nd computer.
st946tbf@drexel.edu (VD) wrote in message news:<f4aa172.0405040944.4daf36ff@posting.google.com>...
> Thank you for helping me. Let me response to each of your suggestion
> below.
>
> Dale Dellutri <ddelQQQlutr@panQQQix.com> wrote in message news:<c786rm$j38$1@reader2.panix.com>...
> > On 3 May 2004 22:03:15 -0700, VD <st946tbf@drexel.edu> wrote:
> > > 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!
> >
> > This is an indication of an error in your setup. There should be some
> > error message in /var/log/messages, or dmesg.
>
> The dmesg should be shown in the first post (the part the seems
> relevant, not much info. I'll look at the /var/log/messages, and see
> any thing later).
>
> >
> > > I cannot ping my home ip which is: 192.168.10.1 from a same machine
> > > (it waits forever).
> >
> > I assume you mean "from the machine itself". This is simply a
> > consequence of the "failed" message on both NICs during startup.
> >
>
> Yes, I ping from the same machine itself.
>
> > > I can get to the internet (eth1).
> >
> > Then there must be some process later in the startup that is repairing
> > eth1's setup.
> >
> > > 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.
> >
> > So this causes eth1 startup to fail, but it succeeds on eth0.
> >
> > Something is wrong with the configuration files for eth1 and probably
> > for eth0 also.
> >
>
> So, after looking at the configuration files for each one of them, did
> you see anything wrong?
>
> > >...
> > > 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 okir@monad.swb.de).
> > > 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
> >
> > Why is your system trying IPv6? Is this a standard part of Mandrake's
> > setup, or is this something that you configured. If you can turn it
> > off, since you don't have any IPv6, you should turn it off.
> >
>
> This is the standard Mandrake setups stuff. All of the configuration
> files are also generated by their GUI tools.
>
> > > 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
> > >...
> >
> > I understand that you're not showing the IP address because of
> > security, but, if it's 192.168.10.x, that'll be a problem. What
> > kind of addresses does the DHCP server in the network assign?
> > They must not be in the same subnet as your eth0 IP.
> >
>
> The 192.168.10.x is the intranet one. The address given by the DHCP
> server is 23.xxx.xxx.xx, and it seems normal.
>
> > > lo Link encap:Local Loopback
> > >...
>
> > > /etc/hosts file:
> > > 127.0.0.1 localhost
> > > No Ip comp1.mynet.com comp1
> > > 192.168.10.1 comp1.mynet.com comp1
> >
> > The second line of the hosts file is not formatted correctly.
> > You should remove it.
>
> This was generated stuff too. I'll delete that.
> >
> > >...
> > > I also remove all the configurations many times, and then add them
> > > again (using Mandrake graphical tools and manually).
> >
> > Does this allow you to turn off IPv6?
>
> I don't see an option in the GUI, how do I do that manually?
>
> Again, thank you for your attention.
- Previous message: KR: "Re: Virtual NICs w/different MAC addresses"
- In reply to: VD: "Re: How to get my 2 ethernet cards to work"
- Next in thread: cainster: "Re: How to get my 2 ethernet cards to work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|