[RULE] Networking with RULE

Rodolfo J. Paiz rpaiz at simpaticus.com
Sun Oct 10 19:01:38 EEST 2004

On Fri, 2004-10-08 at 12:30 -0700, David wrote:
> I know they are  Realtek card but I dont know which model. Is there a
> command that I can issue to find out?

I think "lspci" may do what you want. Also check out the contents of
the /etc/sysconfig/hwconf file and look to see if they've been detected

> > * Which Ethernet card is internal and which is external
> >
> Both cards are internal

No... I meant which one faces the internal network and which one faces
the Internet. Does eth0 go out to the Net, or in to your network? Just
so we know how to help you set it up.

> > * Contents of /etc/modprobe.conf
> >
> There is no /etc/modprobe.conf on  the box (!)

So make one. All you have to have is something like this:

alias eth0 8139too
alias eth1 8139too

Assuming, of course, that this is the right module driver for those
cards, which it might be (it's the newer driver for Realtek 8139 cards).

> > * Contents of /etc/sysconfig/network
> >
> HOSTNAME=digital
> GATEWAY=                             <<<<<  How
> interesting!!!!!!

I strongly suggest setting "GATEWAY=" where appropriate in the SPECIFIC
config file for each interface (the ifcfg-* file), and only using
"GATEWAYDEV=" in this file. It will save you a lot of grief and keep
your configurations simpler. So try this:


> > * Contents of /etc/sysconfig/network-scripts/ifcfg-eth0
> >  
> DEVICE=eth0
> ONBOOT=yes

I'm going to assume that eth0 goes to the Internet since that's acting
as a DHCP client. Hence the GATEWAYDEV= variable above.

> > * Contents of /etc/sysconfig/network-scripts/ifcfg-eth1
> >
> DEVICE=eth1
> ONBOOT=yes
> BOOTPROTO=static

Add your GATEWAY= line to this file.

A small point: while BOOTPROTO=static will work, you should know that
the correct parameter is "none" instead of "static". It means that you
are not using DHCP, BOOTP, PXE, or any other protocol for automatically
getting an IP address.

> > * Output of "ip route show"
> >
> 82.3.210/24 dev eth0 proto kernel scope link scr83.3.210.218
> dev eth1 scope link
> dev eth1 scope link
> dev lol scope link
> default via dev eth1    <<<<< this looks a bit odd????

Your default route is set to the internal network, which is incorrect.
It means that any traffic for any destination that's *not* your internal
network or your ISP (i.e. the rest of the world) will be directed to
your internal interface. This should be set to the external link.

Setting the GATEWAYDEV= line above as I suggested, then restarting the
network with the "service network restart" command, will set the default
route correctly. Very easy and simple.

Do let us know if you've got this working, OK?


Rodolfo J. Paiz <rpaiz at simpaticus.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.hellug.gr/pipermail/rule-list/attachments/20041010/8307c9f3/attachment.pgp>
-------------- next part --------------
Original home page of the RULE project: www.rule-project.org
Rule-list at rule-project.org

This full static mirror of the Run Up to Date Linux Everywhere Project mailing list, originally hosted at http://lists.hellug.gr/mailman/listinfo/rule-list, is kept online by Free Software popularizer, researcher and trainer Marco Fioretti. To know how you can support this archive, and Marco's work in general, please click here