LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-16-2007, 03:17 AM   #1
kelsoge
LQ Newbie
 
Registered: May 2007
Posts: 2

Rep: Reputation: 0
Post connect to internet with vista through a ubuntu machine


Hello all

I've recently acquired a second machine made of of spare parts from around campus. I finally decided that I'd set up a server with the machine however I couldn't decide what to run it with. I've settled on the gnome port of Ubuntu 6.10.

Both of my computers are pentium 4's, dual cores, etc.

the specs in my main computer shouldn't matter as it is the one connecting so all it needs to do is connect through the other computer. the ethernet port I'm using is the onboard one, Marvel Yukon
88E8053 PCI-E Gigabit Ethernet controller. This computer is running vista (yes I know). I need it because of the university course I'm doing requires us to have directx10 capabilities.

My second computer, I have know installed Ubuntu on. This machine is the one I'm trying to connect to or through in this case. I have scavenged bits from around campus. It's a pentium 4, former win xp machine. I've got a graphics card and a ethernet card in it from an old pentium 2 in it.

graphics card: I'm having to use as the one built into the mother board has died.
ethernet card: SMC 9432TX I only have it so I have 2 ethernet ports. 1 built into the mother board, the other on the card.
Mother board: Asus. can't really tell anything else

Vista --> Ubuntu --> port in wall which gives me internet
both are connected via cross over cables


I connect to the internet by my colleges internal internet, we're given a dynamic IP in which we connect through. we only have to sign in via a web page and we connect. shouldn't be any problem there.

I honestly haven't tried very much because I don't want to screw up anything.

my vista machine can connect to the internet. my linux one cannot connect to the internet.

if this does not work can you suggest a method in which I can connect the 2 computers together and to the socket. I can't afford any thing else currently.

what I've got (lan-wise):
2 comps with onboard ethernet ports
1 ethernet card
2 crossover cables
 
Old 05-16-2007, 04:20 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
First off, welcome to LQ.

Next, I think it's might strange to have to plug in via a crossover cable into a "wall" but that's just a personal oddity I haven't had to deal with in my travels.

Anyway, connectivity. You'll need to first learn how to walk, then you can run. Hook up the Ubuntu machine and get it working, then you can move onto modifying it's use to become a router.

The important thing to know is whether your onboard NIC is being detected. In Ubuntu you can do this several ways, but the easiest from a troubleshooting point of view is from the command line. Open up a terminal and type:
sudo /sbin/ifconfig

If you get some info about "eth0" and an IP (a set of numbers separated by dots as in 222.222.222.222) then you are connected and the problem is elsewhere. If you don't have any IP or eth0 interface, then you will need to do basic troubleshooting for your particular NIC device.

From there it depends on what of those things "don't work" so I'll stop and let you give those a whirl and post back.

Good luck!

Cool
 
Old 05-17-2007, 12:46 AM   #3
kelsoge
LQ Newbie
 
Registered: May 2007
Posts: 2

Original Poster
Rep: Reputation: 0
it turns out I'm using a desktop version of Ubuntu. I'm going to have to wait a while before I attempt again. a friend is downloading the server edition for me. it's also 7.04 so maybe I'll have better luck.

Oh also some other factors I've found out:
I'm bounce through at least 2 routers before I actually connect to the isp.

The isp is a uniting church run facility. I get 1000meg downloads a month before they start charging me. I do however have infinite uploads

Get this I'm connected via a network directly to the isp. however I still get really *bleeped* speeds. usually around the 7kbs mark when downloading. however web-pages seem to come to me extremely fast.



edit: I went and did something a lot easier. I went and got a 8 port switch. I found a real cheap place in brisbane that sells pretty good quality goods. 8port switch = $43 Australian

problem solved. I'll attempt to get server edition working through that. If I need any more help I will simply put up a different topic. thanks also to master C

Last edited by kelsoge; 05-17-2007 at 02:44 AM.
 
Old 05-17-2007, 04:08 PM   #4
PocketSam
LQ Newbie
 
Registered: Jan 2007
Location: Russia - Novosibirsk
Distribution: Slackware 11
Posts: 10

Rep: Reputation: 0
In advance I'd like to beg your pardon for my English. It's not my native language, so sometimes it's a bit hard to understand some moments. And in fact I'm not sure if I write correctly.

Well.. I've just wanted to create a similar topic, but now it seems to be i have no need.
As I said I've got a similar problem. I've got two PCs. One with Slackware 11(connected to the internet) and one with XP. I would like to organize a little "network" of two computers and to give the second machine an opportunity to connect to the internet thought the fist one.
The connection scheme is like that:
internet---Slackware PC---XP PC

This are the info my ISP gave me:
ip: 172.21.3.39
Subnet Mask: 255.255.255.0
Default Gateway: 172.21.3.1
DNS: 80.64.93.130 and 80.64.94.2

This is my /etc/rc.d/rc.inet1
# Config information for eth1: //as U understand, it connected to the second machine
IPADDR[1]="192.168.1.1"
NETMASK[1]="255.255.255.0"
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""

# Config information for eth2: //to the isp
IPADDR[2]="172.21.3.39"
NETMASK[2]="255.255.255.0"
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""

My ifconfig:
eth1 Link encap:Ethernet HWaddr 00:14:2A:C4:72:2F
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

eth2 Link encap:Ethernet HWaddr 00:11:95:25:71:1D
inet addr:172.21.3.39 Bcast:172.21.3.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26438 errors:0 dropped:0 overruns:0 frame:0
TX packets:9394 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:10133820 (9.6 MiB) TX bytes:1933381 (1.8 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:164 errors:0 dropped:0 overruns:0 frame:0
TX packets:164 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:60518 (59.0 KiB) TX bytes:60518 (59.0 KiB)

My route -n: //seemes to be wrong?
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
172.21.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 172.21.3.1 0.0.0.0 UG 1 0 0 eth2

Else i've configured BIND, but it doesn't work. Unfortunately, as my experience in linux is rather poor yet, I can't exactly understand how to solve this problem. //compile and install the "capability" module? Am I right?

Here is rc.bind restart command:
Stopping BIND: /usr/sbin/rndc stop
Starting BIND: /usr/sbin/named
WARNING: named did not start. Perhaps this is because
the "capability" module required by newer kernels is
not loaded (or built into the kernel)?
Attempting to load security capability module:
/sbin/modprobe capability
Attempting to start named again: /usr/sbin/named
FAILED: Sorry, but even after attempting to load
the "capability" module, named did not start.
There may be a different configuration error that
needs fixing. Good luck!

And else i've minimally configured iptables:
iptables -F; iptables -t nat -F; iptables -t mangle -F
iptables -t nat -A POSTROUTING -o eth2 -j SNAT --to 172.21.3.39

and turned on routing:
echo 1 > /proc/sys/net/ipv4/ip_forward

On the computer with XP I set these settings:
ip: 192.168.1.2
netmask: 255.255.255.0
gateway: 192.168.1.1

I would like to test my suggested settings if they'll work but i can't cause i even can't ping my second PC.. :8`(

I'm new to linux, so sometimes i need help. First I try to do everything by myself - the best way to learn, i think, but already for a week I can't solve this puzzle. I haven't much time to read many linux books or articles in the net, so I would be incredibly glad if you help me!

Best wishes, Sam!

p.s. And one more question. How can I start the LISA daemon for KDE? I didn't find it anywhere. And even KDE Help Center didn't help me. :8$

Last edited by PocketSam; 05-17-2007 at 04:10 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to connect to the internet with ubuntu linux? bugpolo Linux - Newbie 2 06-08-2008 08:17 AM
Live CD Linux Box to connect to Internet via XP machine ? uncle-c Linux - Newbie 5 03-02-2007 10:31 AM
connect to internet in ubuntu nancy25dec Ubuntu 13 05-01-2005 05:24 AM
How to Connect to Remote Red Hat 9 Machine Via Internet? shelldinesh Linux - General 3 10-06-2004 01:13 PM
Connect to the internet through a winXP machine TheRepublican Slackware 8 04-08-2004 04:19 PM


All times are GMT -5. The time now is 07:23 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration