LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-24-2002, 01:51 PM   #1
Nairobi
LQ Newbie
 
Registered: Jun 2002
Posts: 4

Rep: Reputation: 0
Post RH7.2 dhcpcd & MAC address


I have a RH7.2 set-up connecting through a NTL cable modem. Two problems I have are:

1. I set up the networking through the GUI tools and it does correctly get assigned an IP dynamically, however it also gets assigned a hostname e.g. pc2-nora6-0-cust13.ntl.com (or similar). I know that dhcpcd has a switch to change this, but when is dhcpcd called (i.e. what script) during system startup?

2. Helpful NTL will only recognise one MAC per connection. How do I change the MAC for my eth0. I know(?) that ifupdate allows this, but again, when/where is this called during startup?

Any help appreciated. I am new to this so please don't think that I will have tried anything obvious!

Thanks

D
 
Old 06-24-2002, 02:13 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
dhcpd is a server daemon for your pc to serve ip addresses to the network. Pump is the dhcp client which will talk to NTL. It is called from the ifcfg-eth~ script.

2nd... You only have 1 MAC address per card. It is a hardware based number, 1 per card.

And a couple of questions...
Your hostname is only useful if you have a registered DNS. What NTL have given you is what can be found in DNS. If anyone pings that name, they will get your pc. Do you need a different name?
Are you offering information on your pc to the rest of the world?
If not, you may wish to look seriously at a firewall scripts to keep us out...

Regards,
Peter
 
Old 06-24-2002, 03:00 PM   #3
Nairobi
LQ Newbie
 
Registered: Jun 2002
Posts: 4

Original Poster
Rep: Reputation: 0
Hi,

I will stand corrected on this, but dhcpcd is a client, pump is an alternative.

On the question of hostname, by default I have a hostname of localhost, Redhat complains at startup that it doesn't recognise the dynamic hostname I am assigned and suggests adding it to the hosts file, but the name could be different each time the dhcp lease is renewed. I don't really care what my hostname is, I just need to stop it being assigned dynamically through dhcp.

As far as the MAC goes, I need to assign a different MAC to my PC, this can easily be done in Win2k, and also in linux but i'm not sure where. I need to assign my PC NICs MAC to be the same as my laptop so that NTL will think its the same machine, otherwise dhcp refuses to give me a lease (btw the laptop and PC are never connected on a network so the duplicate MAC is not a problem).

Thanks for your help

D
 
Old 06-24-2002, 03:13 PM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Whoops, my reading glasses are drunk... missed a 'c' there...

With dhcp pppd connections, the init scripts take care of the hostname maintenance, including removal once the link is dropped. I'm assuming yours will be up and stay that way, yes? And also that NTL will reissue another lease at regular intervals...

The hostname you are given can be reverse mapped to the ip address if you get a valid dns number assigned from NTL.

The MAC question has got me beat. I've never heard of a MAC changing facility anywhere, but I'm still learning...
Cheeky buggers like me put some old hardware to use as a firewall to keep hardware under control...

Regards,
peter
 
Old 06-24-2002, 03:39 PM   #5
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Thanks for the advice on the MAC address.
The RH Network Config tool certainly shows an ability to select another MAC!!
/usr/bin/neat
I'll be buggered!
I'll have a play now!
Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get ip address, broadcast address, mac address of a machine sumeshstar Programming 2 03-12-2005 04:33 AM
DHCP Server MAC Address found, IP address not assigned wmburke Linux - Wireless Networking 17 11-17-2004 10:33 AM
Slackware 10 dhcpcd MAC address on a laptop questions jtp51 Slackware 12 10-14-2004 12:38 PM
DHCPCD - can we get IP address of it? lintadsl Linux - Networking 5 11-04-2002 11:54 AM
couple C++ questions - mac address & last file access time. BrianK Programming 3 07-17-2002 03:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration