LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-10-2007, 07:52 PM   #1
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Question Too good of a job cloning a system


I cloned one of my Slackware machines to another box. I guess I did too good of a job because when I run both of these machines behind the same router they get the same IP address from dhcpcd

Does anybody know how to fix this?

Also does anybody know if there is a way to assign names that are only visible in my network and not visible outside..for example, can I set things up so I have box1 and box2 so I can do a "ssh user@box1" yet if that user browses webpages outside the LAN nobody can see the hostname or whatever field that is indentifying that box inside my network? Or does giving a name automatically mean it's visible whenever the machine is communicating with any other ip address?

Thanks a lot,
Rand
 
Old 01-10-2007, 08:55 PM   #2
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Have you tried running "netconfig" and giving new names to each computer? (Like "First" and "Second") for hostnames?
 
Old 01-10-2007, 10:27 PM   #3
Cpoc
Member
 
Registered: Sep 2005
Distribution: Switched to Debian Lenny
Posts: 69

Rep: Reputation: 15
You can run netconfig or edit the files by hand and restart the network by /etc/rc.d/rc.inet1 restart

The files you need to edit are /etc/rc.d/rc.inet1.conf and /etc/hosts

I would use static ip if the pc is a desktop instead of dhcp.
 
Old 01-11-2007, 07:10 AM   #4
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by cwwilson721
Have you tried running "netconfig" and giving new names to each computer? (Like "First" and "Second") for hostnames?
Hi CW, good to hear from you.

I know I can set hostnames in HOSTNAME. My question is really will this fix the problem, and will this name be visible outside my network? I don't want to assign names that are visible whenever these machines pull web pages etc.
 
Old 01-11-2007, 07:13 AM   #5
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by Cpoc
You can run netconfig or edit the files by hand and restart the network by /etc/rc.d/rc.inet1 restart

The files you need to edit are /etc/rc.d/rc.inet1.conf and /etc/hosts

I would use static ip if the pc is a desktop instead of dhcp.
Hi Cpoc, like I was saying I want to use hostnames only if they're not visible outside my LAN. I don't know much about networks but I think maybe this isn't what I want.

Your idea about not using DHCP may be a good one. I have a lot of systems multibooting on a lot of boxes and it would be a pain in the ass to have to fix up the configs on every machine to always grab the same ip address but I can see that this may be the only way.

Thanks,
Rand
 
Old 01-11-2007, 08:35 AM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
You can block the ident port with iptables.

But netconfig does alot of stuff.

But a quick and dirty way is to use the line in rc.inet1.conf for changing the mac id (its in the wireless section), and putting it in the relative section or the config, with whatever mac address needed.

And ty for saying that. I've been a little busy....
 
Old 01-11-2007, 01:00 PM   #7
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Original Poster
Rep: Reputation: 55
So it sounds like you are saying if I don't run a name server then my host name will not be visible at all, even inside my LAN, but if I do run one I should block the ports? My router is closed so that should do it I think.
 
Old 01-11-2007, 04:09 PM   #8
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Heck, try it, let us know...One more brick, and all that...
 
  


Reply



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
Cloning system to different hardware platform twk Linux - Hardware 1 12-18-2006 01:13 PM
Cloning Linux System from PC->PC ALInux Linux - General 4 07-26-2006 05:09 PM
cloning (somewhat) my lfs system DropSig Linux From Scratch 2 02-11-2006 10:23 PM
disk/system cloning Sharaz Linux - General 2 12-28-2005 03:11 PM
cloning system image gag Linux - Newbie 1 11-24-2003 01:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:23 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