?
Solved

Linux to Cable Modem

Posted on 2003-03-17
10
Medium Priority
?
280 Views
Last Modified: 2010-03-18
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?
0
Comment
Question by:palare98
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 19

Expert Comment

by:Gabriel Orozco
ID: 8168488
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
 

Author Comment

by:palare98
ID: 8169198
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
 
LVL 19

Expert Comment

by:Gabriel Orozco
ID: 8169462
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:palare98
ID: 8170413
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
 
LVL 19

Expert Comment

by:Gabriel Orozco
ID: 8170502
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
 

Author Comment

by:palare98
ID: 8174358
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
 
LVL 19

Expert Comment

by:Gabriel Orozco
ID: 8175008
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
 
LVL 19

Accepted Solution

by:
Gabriel Orozco earned 1600 total points
ID: 8175027
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
 

Author Comment

by:palare98
ID: 8175466
Fair enough...you've been great.  Thanks alot.
0
 

Author Comment

by:palare98
ID: 8175473
Thanks again.
0

Featured Post

Application Discovery Service in AWS

In the era of the cloud, customers migrating away from their existing on-premise infrastructure. This requires lots of planning, strategies, and effort to identify their existing resources and determine how best to migrate.  Datacenter migrations happen in four phases -

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question