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.
I have two computers. One has windows XP and the other one is running linux RH7.2. Now I'm trying to configure my linux so that my winXP can access internet through it.
I have two network cards on my linux and the other one is working fine and I can access Internet. What doesn't work is connection with my linux and winXP. There's no response when I try to ping my winXP from linux.
When I run ifconfig there's a line in eth1:
TX packets:0 errors:4....
What are these TX packets and could it be the reason why my two computers won't communicate? I think I've made everything right but it still doesn't seem to work. Any suggestions?
What IP addr are u using between XP and linux? When u type ifconfig does it give u a IP addr or not? It maybe that your interface is down. Is Linux DHCP server or are the IP fixed? Need more info to help......
My XP has got 192.168.0.2 and linux 192.168.0.1 and both have 255.255.255.0 as netmask. I don't have DHCP, they are fixed.
When I ping from linux to itself (192.168.0.1) to find out if the network card works it responses. Doesn't that mean that at least my network card works fine?
Do you know what might cause the errors on the TX packets?
And if you might need to know I have a cross over RJ-45 cable between the two computers.
Data that is transmitted between computers is called a packet. TX - transmit i.e. the packets that are outgoing by the linux PC. RX - Receive i.e. the packets that are incoming to the linux PC. TX errors would mean they are not be sent correctly.
If you have link lights on your network cards are they illuminated?
If not then check your cable. If yes then check the settings of the card in windows and make sure it is setup for auto mode for link speed and mode.
If the link lights are on then ping the XP box from the linux box. Do you see the transmit lights blink?
In linux the tools are mii-tools or ethtool. Not sure which one RH installs. You should be able to tell what speed and mode the llinux PC is setup for.
Are you running a firewall on your windows PC or linux box? If so try disabling it.
There is a green light on the network card in linux, green and orange on the windows network card. the problem shouldn't be the cable because it's brand new.
> In linux the tools are mii-tools or ethtool. Not sure which one
> RH installs. You should be able to tell what speed and mode
> the llinux PC is setup for.
Couldn't find the tool-programs, maybe it's because I don't have graphical interface installed?
> If yes then check the settings of the card in windows and make
> sure it is setup for auto mode for link speed and mode
How do you do it exactly?
I have firewall on my windows but I tried also by disabling it and it didn't work. I'm not so sure about my linux if it has got a firewall program installed. Is there a way to check it?
Here's the whole ifconfig output (note that I've changed the ip address different "192.168.1.1" that I wrote before "192.168.0.1):
eth0
Link encap:Ethernet HWaddr 00:60:97:29:3C:70
inet addr:195.148.188.41 Bcast:195.148.188.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:0 dropped:0 overruns:0 carrier:32
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:1344 (1.3Kb)
Interrupt:5 Base address:0x280 DMA chan:3
eth1
Link encap:Ethernet HWaddr 00:00:E8:41:A5:FA
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:4 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:480 (480.0 b)
Interrupt:10 Base address:0x300
The problem u have is that there might be a problem with your ip settings. Your IP on XP 192.168.0.2 and your Linux has IP 192.168.1.1. This will never work as they are both represent diffent networks and will not be able to see one another change the linux IP address to 192.168.0.1 with this cmd: ifconfig eth1 192.168.0.1.
I also noticed that u had a second network card installed eth0 remember to connect the cable to the correct NIC in this case eth1
When u ping NIC on XP does it respond? When u ping NIC on Linux does it respond? If in both cases yes then your NIC s are fine it might be problem with the cable and remember to check if the cable is connected to the right NIC on your linux box.
Another option try and remove the eth0 NIC on you linux box and see what happens.
OK, this is what I did. I changed the ip on eth0 to 192.168.1.1 and made the eth1 acces the internet. Now the connection between XP and eth0 in linux works fine and they can ping to each other. The problem seems to be the eth1-card!!? In linux I can ping to my eth1 but it still doesn't seem to send or receive any data, any suggestions??
u are now ping eth1 from your linux box and it does not send or receive anything correct. It may be that your eth1 card is not active try the following cmd ifconfig up to activate the NIC
U said that eth0 has ip 192.168.1.1 and is able to ping XP and everywhere on the internet therefore I assume that it is working the way u want.
what is the ip addr for eth1 ? I remember that in one of the post u said that u had a crossover cable. that means u are only able to connect one NIC at atime therefore if u want to use eth1 then u have to change over your cable from eth0 eth1 for it work please do not flame me for this just trying to help....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.