Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Hey guys I need help with a little someting, my computer connects through the other computer we have in order to connect to the internet (ie: the other computer is the gateway and has a shared connection) my computer is SuSE 9.1 just installed and the other computer is Windows XP SP2, i went into YaST and setup all the IPs and stuff for my NIC and i can see the otehr computer's files through smb:/
my computer (suse 9.1):
IP: 192.168.0.2
Gateway: 192.168.0.1
mask: 255.255.255.0
Originally posted by FishBoy I need to know how to configure my computer to connect through the other XP computer which has a shared connection
Personally, I would $NEVER let a windows box act as a router/firewall for a linux box at all.......windows can't be trusted with all the script kiddies in the world today!!
BUT, pppoe........"ppp over ethernet" is the program you might read up on.........
Originally posted by freakyg Personally, I would $NEVER let a windows box act as a router/firewall for a linux box at all.......windows can't be trusted with all the script kiddies in the world today!!
BUT, pppoe........"ppp over ethernet" is the program you might read up on.........
lol sorry i can't coz the main connection is only through the windows box and we'll have to drill another hole to get the main connection to the linux box :s
Quote:
Originally posted by michaelk Is your XP configured for Internet Connection Sharing?
Is the linux PC using a static IP or DHCP?
If using a static IP address you will need to set the gateway address as 192.168.0.1 and add the DNS info from XP to the /etc/resolv.conf file.
If using DHCP then make sure the gateway address is set correctly and the DNS nameserver info is in the /etc/resolv.conf file.
This thread will get better exposure if moved to networking.
yea both computers are static IPs i did specify they IPs above
yea i did set the gateway to 192.168.0.1 on my linux box and i saw a couple of icons starting with 'DNS.....' on YaST can't i configure it from there? or the only way is through the /etc/resolv.conf file?
Yea, he already said that would involve another hole in the wall.
On the windows machine, I'm assuming there are two NICs, one for internet access, one connecting to the linux box? (I did this for a long time before I broke down and bought a wireless router... windows machine = not portable, linux laptop = portable :-/)
Anyway, when you share the connection on the XP machine, you can tell it to act as a DHCP server (I think this is the default setting, but even if it isn't I know there's a way because I had it working.)
Once that's set up you can configure your linux NIC to use automatic DHCP, and the Windows box oughta give you an IP address and recognize you for ICS.
yea the windows machine has 2 adapters one to the internet and one connected to my computer
ok so i went to the internet conection on the windows machine and went to settings under ICS and selected both DHCP boxes and then restarted and then i went to the linux box and i set it to get everything automatically from DHCP and the gateway to 192.168.0.1 and then i added the line 'nameserver 192.168.0.1' to the resolv.conf
i'm just making sure im diong it right because when i open knoqueror it doesn't open anything i still dont get a connection no it, did i do anything wrong? :s
Seems like you did everything ok... after you change the config, try running
dhcpcd -k
dhcpcd eth0
You'll probably have to run these as root, and it should get you a new ip for your NIC. --Simply rebooting might even solve it if you haven't tried that already.. the machine needs time to re-parse the config files
hmm i'll see i'll talk to parents about getting a router coz it does sound a little better and i dont really like how my computer is suposed to connect to the internet, i'll let you guys know what happened thx everyone
oh btw i just tried the 2 commands pokemaster said to use and the dhcpcd -k outputed ******* : dhcpcd not running
and the dhcpcd eth0 game me a new line and the cursor was just sitting htere doing nothing
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.