LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Closed Thread
 
Search this Thread
Old 08-17-2005, 04:58 PM   #1
ziggy25
Member
 
Registered: Aug 2005
Distribution: Debian 5.2
Posts: 56

Rep: Reputation: 15
Help me setup this gateway/network


This is my first attempt to set up a network at home. This is my current setup

WinXP machine
IP: 192.168.0.1
Netmask: 255.255.255.0

Linux Machine
IP: 192.168.0.2
Netmask : 255.255.255.0
Gateway@ 192.168.0.1

I would like to get internet access by using the XP machine which is on a dial up connection. Both computers are connected using a hub.

So far i can successfully
- Ping from XP to Linux
- Ping from Linux to XP
- I can access the webpages on the linux box via a browser on the XP box using [192.168.0.2 as the url]
- I cannot access the XP box from linux
- I can access the linux box from XP using PUTTY/SSH.

Even though both i can ping each other, it looks like access to the XP box is restricted from the linux box.

What i would like to do is use the internet connection on my XP box to access the internet from the Linux box.

I have norton antivirus and windows firewall. I have tried disabling both but still cant get the internet on my linux box.

Here are some outputs.


Quote:
/sbin/route -en
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0


Quote:
cat /etc/resolv.conf
search ziggy.com local
# search ziggy.com local ziggy.com local
nameserver 127.0.0.1
nameserver 192.168.0.2

# ppp temp entry


Quote:
cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.2
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
HWADDR=00:10:a4:7a:38:91
MII_NOT_SUPPORTED=no
WIRELESS_ENC_KEY=""

Quote:
ifconfig
eth0 Link encap:Ethernet HWaddr 00:10:A4:7A:38:91
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::210:a4ff:fe7a:3891/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1480 errors:0 dropped:0 overruns:0 frame:0
TX packets:1676 errors:0 dropped:0 overruns:0 carrier:0
collisions:73 txqueuelen:1000
RX bytes:377885 (369.0 Kb) TX bytes:264403 (258.2 Kb)
Interrupt:11 Base address:0x5000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1862 errors:0 dropped:0 overruns:0 frame:0
TX packets:1862 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:138300 (135.0 Kb) TX bytes:138300 (135.0 Kb)

Quote:
Ipconfig from the XP box
C:\Documents and Settings\Ziggy>ipconfig

Windows IP Configuration


Ethernet adapter Local Area Connection 2:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

PPP adapter {A84D7F5A-3644-47DF-B623-47FEDD1ADCC1}:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 172.212.94.223
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 172.212.94.223


Any help would be greatly appreciated. Thanks in advance


Last edited by ziggy25; 08-17-2005 at 05:01 PM.
 
Old 08-17-2005, 05:08 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
You will need to set up ICS Internet Connection Sharing on the XP box..

The built in help files have all the necessary steps to follow..
 
Old 08-17-2005, 05:34 PM   #3
ziggy25
Member
 
Registered: Aug 2005
Distribution: Debian 5.2
Posts: 56

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by peter_robb
You will need to set up ICS Internet Connection Sharing on the XP box..

The built in help files have all the necessary steps to follow..
Thanks that sort of fixed the problem. It looks like i can now access the internet but only via IP addresses, i cant enter a domain name it just says unknown host. Is it possible that i didnt configure it correctly?
 
Old 08-17-2005, 05:42 PM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
Somewhere you need to specify a working dns server for the clients.
It should be an external dns server..
 
Old 08-17-2005, 05:50 PM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Use the "ipconfig" command on the XP computer. It will list the DNS servers that the dialup setup uses. You want to use the same DNS address on the linux box to be able to browse the internet normally ( Using url instead of IP address in the browser ). You can either enter these addresses using YaST, or adding them to your /etc/resolve.conf file manually.
 
Old 08-17-2005, 06:00 PM   #6
ziggy25
Member
 
Registered: Aug 2005
Distribution: Debian 5.2
Posts: 56

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by jschiwal
Use the "ipconfig" command on the XP computer. It will list the DNS servers that the dialup setup uses. You want to use the same DNS address on the linux box to be able to browse the internet normally ( Using url instead of IP address in the browser ). You can either enter these addresses using YaST, or adding them to your /etc/resolve.conf file manually.

Hi, the output to Ipconfig does not show any DNS servers...

Windows IP Configuration


Ethernet adapter Local Area Connection 2:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.0.1
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :

PPP adapter {A84D7F5A-3644-47DF-B623-47FEDD1ADCC1}:

Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 172.212.94.223
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 172.212.94.223

C:\Documents and Settings\Ziggy>^A
 
Old 08-18-2005, 06:15 PM   #7
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Try the command "ipconfig /all".

The DNS Servers should be listed above the information for each interface.

Some Windows versions like Windows 98 also have a "WINIPCFG" graphical program. You need to select the MORE INFO button to display the DNS information.
 
Old 11-15-2005, 08:40 AM   #8
ziggy25
Member
 
Registered: Aug 2005
Distribution: Debian 5.2
Posts: 56

Original Poster
Rep: Reputation: 15
Hi.. apologies for the late response..

i've sorted the problem out.. thanks for the help guys..
 
Old 02-24-2008, 02:35 PM   #9
Shingoshi
Member
 
Registered: Oct 2006
Location: Cochise County, Arizona
Distribution: Gentoo-AMD64 / Slackware64-Current
Posts: 474
Blog Entries: 28

Rep: Reputation: 34
It always helps to share one's solution///

Quote:
Originally Posted by ziggy25 View Post
Hi.. apologies for the late response..

i've sorted the problem out.. thanks for the help guys..
After all the commentary back and forth, the final solution is never given. I do wish that when someone figures something out, even if on their own, that they share that solution in writing, so that others may have access to it.

Shingoshi
 
Old 02-24-2008, 02:41 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
solution or no solution, there's never any point replying to a thread this old. thread closed to prevent any further confusion.
 
  


Closed Thread


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
gateway setting ./network-scripts/ifcfg-eth1 and ./network joshfields Linux - Networking 1 04-29-2012 05:27 AM
NAT/Gateway setup cflyguy Linux - Networking 3 08-12-2005 12:47 AM
Two gateway setup eqxro Linux - Networking 4 12-07-2004 02:32 AM
Want to setup a network gateway usigng Slack 9.1 GeneralmP Linux - Networking 13 10-12-2003 05:10 PM
Gateway setup help! frost33 Linux - Networking 4 05-04-2001 08:55 PM


All times are GMT -5. The time now is 07:53 PM.

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