SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
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?
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Original Poster
Rep:
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.
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Original Poster
Rep:
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.
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....
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Original Poster
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.