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 have two computers connected by a cat5 crossover cable...I want both to be able to access the net at the same time. My XP computer has the modem in it. I have the net word pretty much setup because i used to have windows 98 on the other computer but i switched to DeliLinux 0.5 Beta (slack 7.1 i think its based on if that matters). Alright so I have run the command netconfig about 5 zillion times and messed w/ the TCP/IP properties on the XP computer and can't get anything to happen...I see that the both are talking to eachother because the DeliLinux computer has a little chart in the corner that shoes net connections and it is going in and out but nothing happens. I am using the Dillo web browser and it said unable to solve http://www.linuxquestions.com/. So i gave the TCP/IP properties on my XP machine a DNS IP address i just made up and inserted it as it should be in the netconfig setup stuff. Now it says solving http://www.linuxquestions.com/ then after half a minute or so it says it can't solve it. I really don't care if they can share files or anything at the moment i just want the internet on the linux box. Is there someway to make the XP machine DHCP so i can save some less hassle?
edit: I forgot to mention that after i gave the XP machine a DNS IP address I made up the commant ping in XP no longer works...so i deleted the ping command and it still no longer works. I was going to try to insert an IP address to see if it was just the DNS not working or TCP/IP also
Last edited by vdogvictor; 04-18-2004 at 12:26 AM.
He means that if the Linux box is not getting a DNS Name server address VIA DHCP, then you must give an address(s) to use. You do this by placing lines in the /etc/resolv.conf file. For example, if your ISP's DNS server's address is 186.35.72.148, then you insert the following line in your /etc/resolv.conf file:
Code:
nameserver 186.35.72.148
If you have more than 1 DNS server address, you can add more lines like the one above. Just make sure each entry is on a different line.
A few days ago, I had a working setup with windows as the internet connected pc. (now it's the other way around)
I had the winxp connected ok to internet.
The network card on xp which was connected to the cablemodem (-> internet) and this nic had the ics checked so sharing it's cnx.
The other nic in the winxp machine was connected via crosscable to the linuxbox and had the fixed ip 192.168.0.1
On the linuxbox I had the interface configured to receive an ip adress from the xp machine. In fact, ics means both nat and dhcp as far as I understand. (Problem with ics is that it has no way to be configured manually so it cannot be forced to appoint always the same ip adress to the linux dhcp client.)
don't forget to give the linux nic a default gateway to the winxp machine lan nic. (this should be something like 192.168.0.1)
On my pc, following nic config in linux did the trick to rcv dhcp: "iface eth0 inet dhcp" Normally, when you put this the pc will determine itself the ip from the isp's nameservers thanks to dhcp. (which you can see in resolv.conf)
hope this helps a bit.
rgds,
Lieven
Your isp gives ip and ns to your xp box, it's connected to internet.
The xp needs to run a dhcp server to distribute ip('s) to the machine(s) which is/are on your lan. (the linuxbox) That's ics which does that.
The linux lan machine needs to get an ip and ns which he gets from the winxp dhcp/nat server called ics.
I don't know if there is a way in windows to run only nat so you can give your linux a fixed ip. (thus no need to have the dhcp server running on winxp)
Maybe some program like winroute or other comercial rtr/nat/fw for winxp exists?
Actually, the ICS box does not have to give an IP to the client. If you configure one manually (which I do with my router - yes, ICS is gone!!!! YAY!), you just do it. When you boot up your client machine, it has its IP already and the Windows box sees it. There's only one condition:
You gotta use the same private IP range as it would get one from anyways. That's it.
ICS doles out IPs in the 192.168.x.x range, so you can configure your Slack box to use perhaps 192.168.0.10 and set its default gateway to 192.168.0.1 (which is the IP that is usually assigned as the gateway - check to see its not 192.168.1.1). Your DNS server can be set as the IP of your Windows box, since its getting its DNS info already.
So,
IP:192.168.0.10
Netmask:255.255.255.0
Gateway:192.168.0.1
DNS:192.168.0.1
Be sure that when you configure your network, that you have the Windows firewall turned off. Once you can access the net from your client box, turn the firewall back on.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.