Linux to Cable Modem

I'm trying to use my Mandrake Linux 9.0 machine as a router for my LAN.  I can always get the LAN functioning, but never the internet.  I am using two Intel ethernet cards and a Motorola SURFboard cable modem.  I have tried different cards and in different slots.  I have tried using a crossover cable and a regular cat5.  I've tried running the wizard for setting up a cable connection as well as tried to use the LAN option.  None of these attempts have yielded any result except Determing IP address from DHCP ... Failed.  Or something close to that.  The cable internet connection is dynamic, so I can't use a static IP address.  And I am trying to connect the internet to eth0.  Does anyone know what I'm leaving out?
palare98Asked:
Who is Participating?
 
Gabriel OrozcoConnect With a Mentor Solution ArchitectCommented:
found something:
http://www.redhat.com/support/resources/howto/sysconfig.html

but... it does not have parameters for that.
this said, you will need to manage everything from /etc/rc.d/rc.local
0
 
Gabriel OrozcoSolution ArchitectCommented:
It's normal:

what happends here is that your ISP will give you DHCP only if they have your Lan Card MAC address registered.

just call them and thell them the MAC of your Lan Card, and afther that, you will be able to issue
dhcpcd eth1  (I Suppose is eth1)
and you will get IP and everything will work now. :)

Regards
0
 
palare98Author Commented:
I have been using my modem through a "web safe" router which allows me to clone the mac address of my cable modem.  Can I assign the same mac address to eth0 that I use for the modem so as not to call my ISP?  I would just try this, but I'm not sitting in front of my machine right now.  I am trying to get away from the hardware firewall.  It is too prohibitive.  If I don't hear back before I am home, I'll just try it and see.  But if you know, it would be great if you could tell me where to make this change.  Instead of me searching for it all night.  Thanks.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
Gabriel OrozcoSolution ArchitectCommented:
normally you cannot fake the mac address.

it's better if you setup your new mac. tell the isp support to do it.


however, if your network card supports it, then use ifconfig. from the "man ifconfig":

hw class address
   Set  the hardware address of this interface, if the device driver supports this opera­tion.  The keyword must be followed by the name of the hardware class and  the  print­able  ASCII  equivalent of the hardware address.  Hardware classes currently supported include ether (Ethernet), ax25 (AMPR AX.25), ARCnet and netrom (AMPR NET/ROM).

so maybe you need to setup your interfase like this (providing it's eth1)
ifconfig eth1 down
ifconfig eth1 hw ether 2c5f1624a6 up
but I don't know if your driver will support it, and if running then the "dhcpcd eth1" will give you an ip address or not.

I think You can just try.

Regards
0
 
palare98Author Commented:
I'm going to give this a whirl when I get home in a couple of hours...if it works, and for some more points, can I change the network file to always load that hardware change or something like that?
0
 
Gabriel OrozcoSolution ArchitectCommented:
yeap. you can edit the settings on /etc/sysconfig/network/eth1, or simply add those changes in /etc/rc.d/rc.local

hope it works :)
0
 
palare98Author Commented:
So far it's working great, but can you tell me exactly what I need to add to the /etc/sysconfig/network/eth0 file.

That's the last question I'll ask.  You've been very helpful.
0
 
Gabriel OrozcoSolution ArchitectCommented:
really I don't know, because I do not have any readhat, I use Slackware :)

let me try surfing the web, to find the correct parameter.

mmhh... it's not trivial. I'll try to help later, ok?
0
 
palare98Author Commented:
Fair enough...you've been great.  Thanks alot.
0
 
palare98Author Commented:
Thanks again.
0
All Courses

From novice to tech pro — start learning today.