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 running FC2 kernel 2.6.9 and wish to access the internet through an XP machine as linux won't recognise the modem I have. The XP machine has no trouble connecting and uses and ISDN line. The two machines are joined by crossover cable.
I have configured the XP machine to have the static address 192.168.0.1 with subnet mask 255.255.255.0. The firewall allows the linux machine access. Can somebody please walk me through setting up the linux end of the connection? I don't know whether I should be setting up an ISDN connection, ethernet connection (which I doubt) or what. Also, for some reason the ISDN modules are not on my linux machine (I think from previously attempting to get the modem working), so they need to be installed and is so, which ones/from where?
sorry Michaelk, it's going to have to be baby steps.
The box for ICS is ticked in XP, the XP box is 192.168.0.1
Using the network configuration tool on the linux box I have edited eth0 as follows:
I've enabled "use static IP addresses", entered 192.168.0.2 as address, 255.255.255.0 as subnet mask and 192.168.0.1 as default gateway address. I have done nothing with the "Route" or "Hardware" tabs of the tool.
The primary DNS of my ISP is 159.134.237.6, secondary DNS is 159.134.248.17. I added these to the /etc/resolve.conf file on separate lines.
Restarted the network service, typed in http://www.google.com to the webbrowser (konqueror) and was told of an error contacting the address. What am I doing wrong? The web connection on the gateway machine was live at the time.
- Can you give me an example of how the DNS nameserver information should be added to the resolve.conf file please?
- In your original post you said the linux box could be set to use DCHP, however, this is disabled when setting a static IP address.
- I have the feeling there's something wrong in the network configuration on the linux box, but I'm not sure what...there are about 3 tabs on the configuration window - what information should be in each?
Distribution: Just about anything... so long as it is Debain based.
Posts: 297
Rep:
One more thing to check...
You might also want to make sure that ICS is set to allow other machines to trigger a dial. Given that you are using ISDN I assume that your lines are not always up.
U don`t need to set up an isdn connection on your linux just the lan side,,,u r correct with ur 192.168.0.1 & 255.255.255.0 whic h is the default after u have ran the ics wizard on your win xp.
So basically u should manually set up your internet on linux using /etc/resolv.conf
adding
nameserver
192.168.0.1
and as u have done in your particular linux internet set up `wizard` u should not have to st up your xp dns servers in linux..... linux is your gateway server.... check some files in /etc/ re network/system :-)
I'm having a very similar problem.
I have a linux box connected to an XP box via a crossover cable. The XP box has a DSL internet connection and is running ZoneAlarm firewall.
I have successfully networked the two machines using Samba, and I can see my Linux shares from the XP box. However, I cannot get internet access from the Linux box.
What I've done so far:
- XP box is assigned a fixed IP of 192.168.0.1 and the Linux box is assigned a fixed IP of 192.168.0.2
- Added the XP box as a default gateway on the Linux box
- Added my ISP DNS IPs to /etc/resolv.conf
- Set up access rights for 192.168.0.2 on the XP firewall
I can ping the Linux box from the XP box, and I can ping the XP box from the Linux box. However, if I try to ping an external IP from the Linux box, I get the message:
"connect: Network is unreachable"
Can anyone help me out, please?
Thanks
Ken
Details of my config:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.0.1 255.255.255.0 UG 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
- the configuration window I'm talking about it is the system-config-network window, also access by clicking "system tools" - "network". It has 4 tabs : "devices", "hardware", "DNS" and "hosts". From before the "DNS" tab has the name of the linux box entered and "hosts" has the XP box address entered (192.168.0.1). In "devices", select eth0 and click on "edit" to bring up a window with "General", "Route" and "Hardware Device" tabs. In the "General" tab I have entered "address" as 192.168.0.2 (linux box address), subnet mask as 255.255.255.0 and Default Gateway as 192.168.0.1 (XP box address).
- I have added the lines nameserver 159.134.237.6
nameserver 159.134.248.17
exactly as typed above to resolv.conf, restarted the network service and attempted to access google both by name and IP address. No joy.
- I have deleted the above and replaced them with nameserver 192.168.0.1
restarted the network service and attempted to reach google by name and IP address. No joy
-ICS is allowing any user trigger a dial.
- I am using ZoneAlarm firewall on the XP box, however it is configured to allow the linux box to access the XP machine. I even disabled Zonealarm to confirm this.
- The file /etc/resolv.conf contains the following: ; generated by /sbin/dhclient-script
Every time I change it to add nameserver <....>
the changes are deleted at each network restart.
- As an experiment, instead of using the static IP address in system-config-network, I enabled the option "automatically obtain IP addresses with DHCP" and added the following in the "route" tab of the edit dialogue for eth0
destination network 159.134.237.6 159.134.248.17
prefix (netmask) 0.0.0.0 0.0.0.0
gateway 192.168.0.1 192.168.0.1
/etc/reolv.conf then contained: ; generated by /sbin/dhclient-script
search mshome.net
nameserver 192.168.0.1
so at least it seems to be trying to do something
I am totally confused and appreciate all the help...
Distribution: Just about anything... so long as it is Debain based.
Posts: 297
Rep:
Default GW is probably the issue
With DHCP enabled you should not enter anything in the routing tab... this will confuse the issue.
With your ISDN lines down, try to ping google from the Linux box. Does that bring your ISDN lines up?
Go to a command line and type route. You should have several lines with the last line being something like this:
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
If you do not, then the gateway is your issue. You must set your XP box as your gateway for the linux routing table to understand that the way to the internet goes through XP.
You can test this by doing the following command as root:
attempted the ping with ISDN lines down - this did NOT trigger a dial on the XP machine. All other times I have tried to access the net from the linux box, the ISDN line has been active.
the response to "route" command was as you said, except that the XP machine name appeared in place of 192.168.0.1. I assume this is because the XP machine name and address are entered in "hosts" in system-config-network
questions:
(1) with a static IP address as above (ie DHCP not enabled), should I or should I not have entries in the "route" tab as described in the last section of my last post?
(2) on the XP box do I need to do anything more than share the internet connection? Is there a folder I should be sharing? Should I mount the filesystem to the linux box with samba?
(3) The "settings" tab of the Internet connection sharing dialogue on the XP machine goes to a list of services which should be shared - NONE of these are currently ticked: should they be??
yes, ICS is enabled. Dial up whenever a computer on the network attempts to access the internet is enabled. Allow other network users to contol or disable the shared internet connection is enabled
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.