Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
I am trying to use putty on a win xp home box to control my red hat 9 box.
I have a linksys router connecting the 2 together.
Here is my issue:
I have dial up Internet on the win box so I always get a different ip. Is there a way to set up putty so that I can use it without being on the internet.
The first thing putty wants is an ip of the remote box. Couldn't I use an internal ip?
Someone suggested setting up a user account on the rh box with the same name and pass as the win login but I got knocked of IRC before I could get the rest.
The modem is on the xp box, how does the rh box connect to the internet? Do you internet connection share with your xp box? Dhcp on on the rh box?
The linksys router is the key I think. You maybe use dhcp from it. Try setting a permanent IP on the rh box. Set it outside of the dhcp range of your router. The router probably assigns in the range 192.168.?.2-100 or something, where ? is 0,1,or2. Look in the manual. Then you would set the rh box as 192.168.?.101 with a netmask 255.255.255.0 broadcast 192.168.?.255 abd gateway as 192.168.?.1 (depends upon the router). Finally set the dns either to the router or to some permanent ip you know. Check out /etc/resolv.conf on the rh box before you change anything, you can use the IPs there after the change.
Okay, a litte tiny bit of progress.
I was doing ifconfig before on the rh box and if I wasn't on the internet i could pnly see the ppp modem. But then I did ifconfig eth0 up and then ifconfig showed me the nic.
I was then able to set eth0 to an ip. I chose ifconfig eth0 10.10.10.10
and when i did ifconfig it came up as that ip!!
It's the little victories at first.
Anyway, I don't know jack about networking. I didn't think you could just decide your own ip. I thought it was like a MAC that you were stuck with. Live and learn!
Anyway, the latest thing I am totally confused about is the linksys box. I got it new and it didn't come with any software. So how do I setup anything with it at all if it has no interface? The xp box shows me my workgroup that I created but there are no members yet.
Oh, and Putty wouldn't let me connect to the rh using the 10.10.10.10 ip address. I don't think this is suprising because I didn't set up ssh or dhcp or any other TLA's.
I think I have a lot of work to do still.
Oh one other thing. I have this red hat 7.2 book and they keep talking about a graphical interface called linuxconf. It says i can call it up by entering /sbin/linuxconf as root. This doesn't work for me in rh9. I don't even have a linuxconf file in the dir. Did they change this or something?
Thank you for all of your help so far. Bear with me. I'm actually pretty good in windows as far as software and programming go.
No special software is required for configuring the router other then a web browser. Your manual should explain how to log on i.e. its IP address and password and describe how to change the settings.
You can configure either OS for DHCP which will automatically assign an IP address when you boot either computer. With ony two computers its just as easy to use a static IP address. Make sure its the same subnet as the router
192.168.X.X Check the router manual for details.
AFAIK linuxconf is no longer included because of security issues. Any configuration setttings can be changed using a GUI or command line interface.
I only run a command line version RH and not really familar with any GUI configuration utilities. Check the Redhat website for documentation.
You created a workgroup but did you configure sharing on the XP box yet? Also your RH box will not a part of the workgroup until you install (if not already accomplished) and configure samba.
I think I goofed in my original post. What I have is a switch and not a router. Big difference right?
Sure wish I had that linuxconf. But I see the GUI you are referring to and I think it is getting me where I want to go.
I set up my rh box as 192.168.0.101
my win box is 192.168.0.102
I add those two to the loopback in the host GUI
I modified the hosts.allow and hosts.deny
Now I am going back to win box to set up the net again.
Here is a silly question. If on my rh box I set up this static ip to point at my win box what happens when I dial up and the ISP changes my ip to one they give out? Won't the rh box then be confused?
OK - I think you seem to be missing a vital piece of information - a KVM switch has nothing to do with networking. A network switch or hub does. If you only have 2 computers then you don't even need a switch or hub - you can get away with a crossover cable and 2 ethernet cards.
Currently - how are your computers connected (what type of cable/cables)
I get your point. But in a way a KVM switch does have something to do with networking, here is how:
I have 2 keyboards, 2 mice and 1 monitor. To switch from the win box to the rh box I have to reach around and unplug the monitor plug and switch it to the other box. After a 100 times this is adding some wear and tear to the connector. I tried a hardware data transfer box to just flip between monitors but it made the mointor fuzzy.
So I added a switch (instead of a crossover cable, just for the future network) and Putty and I am proud to say, with much help from folks here, I GOT PUTTY UP AND RUNNING!!!!
Now, no more switching the monitor cable. Also no more rh GUI but that is fine with me.
Dial up will not effect the IP address for eth0. Log on and look at the output of /sbin/ifconfig. You will see a new interface with a different IP address.
It wasn't eth0 that I was concerned about it was the winbox ip. I thought that when I connected to my ISP that they changed my ip on the win box and that eth0 on the rh box would say huh? because it wouldn't be able to find the winxp box at 192.168.0.102
But none of this happened. I don't understand why but that is okay with me for now.
I am on a roll today. I got samba up and configed in rh I was able to edit the smb.conf file and i got the daemon up and running
when i do smbclient i can get at my linux group and it said Domain=[MYGROUP]
I tried some mount commands to add both boxes ( i don't know what im doing here but hey, i was on a roll)
Then when I flipped back to windoze there was MYGroup in the network list!!! Very exciting. My wife can't figure out why i'm happy as a pig in shit.
Anyway, MYgroup is in the list next to the empty network that i setup on the windows side before i had samba. The MyGroup that samba set up is broken though. when i try to select it windows stalls and then comes back with a message about network path not found, group is not accessible.
The other workgroup, that i set up from windows, is empty. I'm wondering which one I should try to get to work and how?
Also where is that MYGROUP setting on rh. Can I change that to something more meaningful.
Your ethernet adapter's IP address won't change when you dial up to the internet-- each Network adapter (dialup or LAN) has its own IP address, unaffected by the actions of the other.
On the Windows box, type cmd to open up a command window. Then, type ipconfig /all to find out the IP address for Local Area Connection. There's your IP address.
For remotely administering either box, I'd recommend VNC when on a LAN. That way, you can do everything you need in Windows and in Linux. SSH's capabilities on a Windows machine are kind of limited, because unlike Linux, you can't really configure everything through the command prompt.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.