LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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


Reply
  Search this Thread
Old 11-29-2003, 07:17 PM   #16
Temujin_12
Member
 
Registered: Sep 2003
Location: Washington
Distribution: Kubuntu Dapper
Posts: 99

Original Poster
Rep: Reputation: 15

I've tried going into the Network configuration and staticly setting 'Address=194.254.0.2' 'Subnet mask=(blank)' and 'Default Gateway Address=255.255.0.0' in Linux. Now when I do a 'route -n' it says:
Destination Gateway Genmask Flags Metric Ref Use Iface
194.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo

And when I try 'ping 169.254.0.1' it outputs:
PING 169.254.0.1 (169.254.0.1) 56(84) bytes of data.
From 169.254.0.2 icmp_seq=1 Destination Host Unreachable
From 169.254.0.2 icmp_seq=2 Destination Host Unreachable
From 169.254.0.2 icmp_seq=3 Destination Host Unreachable
...........etc.

Sorry, but i'm not incredibly network savy. So I'm not sure what exactly needs to be disabled to remove the autoconfiguration on the network.

BTW the light on the hub where the cable from the linux box is going to still isn't on.
Thanks for anyones help.

Last edited by Temujin_12; 11-29-2003 at 07:19 PM.
 
Old 11-29-2003, 07:26 PM   #17
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
I've just noticed you are using very odd IP addressesand you need a mask - try:
Machine 1:
IP: 192.168.1.5
MASK: 255.255.255.0

Machine 2:
IP: 192.168.1.6
MASK: 255.255.255.0

If they aren't conencted to the internet there is no need to specify a gateway. If they are then use the IP address of the computer with the internet connection.
 
Old 11-29-2003, 07:44 PM   #18
Temujin_12
Member
 
Registered: Sep 2003
Location: Washington
Distribution: Kubuntu Dapper
Posts: 99

Original Poster
Rep: Reputation: 15
BTW when i boot up linux it gives me a message window saying:
"Could not look up internet address for localhost. This will prevent GNOME from operating correctly. It may be possible to correct the problem by adding localhost to the file /etc/hosts"

My /etc/hosts file only has two commented out lines in it and that is it.

My 'DNS' and 'Hosts' tabs don't have anything in thier fields in RedHat.

I've set the IP and Masks to what you suggested and both machines have no problem talking to eachother in windows but linux still does even with those settings.

Last edited by Temujin_12; 11-29-2003 at 07:57 PM.
 
Old 11-29-2003, 09:46 PM   #19
gernt
LQ Newbie
 
Registered: Nov 2003
Location: Crossville, Tennessee
Distribution: RedHat 9
Posts: 26

Rep: Reputation: 15
Is that hub light still off? I guess normally you'd think the hub and card would either both be on or off, but if you mistakenly had a crossover cable and the card autodetected... I think I'd try another cable.
 
Old 11-29-2003, 09:55 PM   #20
Temujin_12
Member
 
Registered: Sep 2003
Location: Washington
Distribution: Kubuntu Dapper
Posts: 99

Original Poster
Rep: Reputation: 15
The thing is that cable works just fine when I boot with Windows 98 rather than Linux. I'm beggining to wonder if Linux didn't detect the network card correctly. But I don't get a [FAILED] response in the Linux boot sequence when it loads eth0. Does the fact that the /etc/hosts file is empty have anything to do with it?

Last edited by Temujin_12; 11-29-2003 at 10:30 PM.
 
Old 11-30-2003, 09:20 AM   #21
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
/etc/hosts should have at least:
127.0.0.1 localhost localhost.localdomain
 
Old 11-30-2003, 10:42 AM   #22
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
Temujin_12,

FYI - As david_ross said, you can put the stuff you copy from your terminal within the [ code ] tags to preserve the formatting.

For instance:
[ code ]
whatever you copy and paste goes here
[ /code ]
But, don't put the spaces after the '[' or before the ']'. I did that here just so you could see how they are used.

Example:
Code:
[root@bsl1 root]# route -n
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 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.1.100   0.0.0.0         UG    0      0        0 eth0
 
Old 11-30-2003, 12:37 PM   #23
gernt
LQ Newbie
 
Registered: Nov 2003
Location: Crossville, Tennessee
Distribution: RedHat 9
Posts: 26

Rep: Reputation: 15
I've forgotten what is important, but my /etc/hosts has:

127.0.0.1 localhost.localdomain localhost
192.168.1.nn myname myname.myworkgroup (except with real numbers and names)

The rest of the office is on DHCP, but I'm stuck with a fixed IP because the terminal emulator they use to get to me requires it.
 
Old 11-30-2003, 08:02 PM   #24
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Rep: Reputation: 30
*arg* I just read this thread for the first time and I notice quite a few small problems... I wish I had seen it earlier. Lets start over and combine all the suggestions above.

With regards to your original configuration, you have your machines setup with DHCP but you don't have a DHCP server! *ah* no wonder you don't get an IP back. Microsoft takes the liberty of assigning a 169.254.0.x address when no DHCP server is found where Linux, more appropriately, fails to assign an ip address when no DHCP server is found - this is the cause of your "fail" when starting that adapter.

Secondly, when you setup your computers such that machine 1 is on the 169 network, machine 2 is on the 194 network... they won't talk.

So... before you check anything else, lets get your network configured correctly. Either install a DHCP server into your network -OR- (and a better option for testing) setup your machines with static ip addresses. i.e. Machine 1, 192.168.0.2 & Machine 192.168.0.3 - Notice that they are both on the 192.168.0.0/24 network.

Once that is done... go back to the default routing table. If you have trouble here, let us know and we'll help you sort it out.

Lastly, make sure your firewall isn't being overly restrictive and blocking all communication.

Keep us posted and we'll continue from there!
Cheers,
J.
 
Old 11-30-2003, 08:38 PM   #25
gernt
LQ Newbie
 
Registered: Nov 2003
Location: Crossville, Tennessee
Distribution: RedHat 9
Posts: 26

Rep: Reputation: 15
I don't doubt you a minute, but I still don't understand. ifconfig was used to set a fixed address to match the Windows DHCP defaults, yet it didn't work. And what did any of that have to do with the hub light being off?

BTW, A cheap router between your modem and LAN will demand to assign the addresses, if that is in the forseeable future.

Last edited by gernt; 11-30-2003 at 08:59 PM.
 
Old 11-30-2003, 09:55 PM   #26
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Rep: Reputation: 30
gernt, you are right that the hub light remaining off sounds like a problem. Have you tried plugging the cable into a different port on the hub?

Everything else... well... All those symptoms are indicitive of a network configuration problem. I'm not convinced that his linux box has been configured with the correct info to be on the same network as his Windows machine.

Here's some things we need to look at, please re-post your current...
1. Your ifcfg-eth0 file
2. Your /etc/sysconfig/network file (should include NETWORKING=yes)
3. Results from "ping 127.0.0.1" on your linux box
4. Results from "route -n" on your linux box
5. Results from "iptables -L"

Thanks,
J.
 
Old 11-30-2003, 11:32 PM   #27
Temujin_12
Member
 
Registered: Sep 2003
Location: Washington
Distribution: Kubuntu Dapper
Posts: 99

Original Poster
Rep: Reputation: 15
Ok, here is what I've done.

1) Changed my TCP/IP IP to '192.168.0.2' with a subnet mask of '255.255.255.0' on machine 1.
2) In linux I went to System Tools >> Network Device Control and set it to 'Statically set IP addresses' and set them to: IP address '192.168.0.3' Subnet Mask '255.255.255.0'

Still no light on the hub....
BTW...
And here are my outputs from the commands and files JordanH asked me to post (I'll try to use the [ code ] command)

Code:
OUTPUTS:

[root@localhost root]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
USERCTL=no
PEERDNS=yes
TYPE=Ethernet
DEVICE=eth0
HWADDR=00:00:c0:f7:c6:e3
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.0.3
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
NETMASK=255.255.255.0

[root@localhost root]# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=

[root@localhost root]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo

[root@localhost root]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
RH-Lokkit-0-50-INPUT  all  --  anywhere             anywhere
 
Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
RH-Lokkit-0-50-INPUT  all  --  anywhere             anywhere
 
Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
 
Chain RH-Lokkit-0-50-INPUT (2 references)
target     prot opt source               destination
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:smtp flags:SYN,RST,ACK/SYN
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:http flags:SYN,RST,ACK/SYN
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:ftp flags:SYN,RST,ACK/SYN
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:ssh flags:SYN,RST,ACK/SYN
ACCEPT     udp  --  anywhere             anywhere           udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT     udp  --  anywhere             anywhere           udp spts:bootps:bootpc dpts:bootps:bootpc
ACCEPT     all  --  anywhere             anywhere
REJECT     tcp  --  anywhere             anywhere           tcp dpts:0:1023 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT     tcp  --  anywhere             anywhere           tcp dpt:nfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT     udp  --  anywhere             anywhere           udp dpts:0:1023 reject-with icmp-port-unreachable
REJECT     udp  --  anywhere             anywhere           udp dpt:nfs reject-with icmp-port-unreachable
REJECT     tcp  --  anywhere             anywhere           tcp dpts:x11:6009 flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT     tcp  --  anywhere             anywhere           tcp dpt:xfs flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable

[root@localhost root]# ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.041 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.038 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.037 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.036 ms
... etc ...

Last edited by Temujin_12; 11-30-2003 at 11:50 PM.
 
Old 12-01-2003, 02:17 AM   #28
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
It doesn't sound to me like this network has a DHCP server. Setting one up would be the optimum solution, I would think.
 
Old 12-01-2003, 02:48 PM   #29
gernt
LQ Newbie
 
Registered: Nov 2003
Location: Crossville, Tennessee
Distribution: RedHat 9
Posts: 26

Rep: Reputation: 15
I know this must be exasperating, but if you get ping to work, the rest follows. One thing you can try is to get a crossover cable and connect two computers directly without the hub. (Label the crossover cable clearly - otherwise it isn't obvious and you end up putting it where it shouldn't go). Please be sure the IP address is still OK by doing an ifconfig. It should show eth0 at the expected address. Then you can try to ping 192.168.0.2 from the linux machine, and 192.168.0.3 from the other. If this still fails, maybe your card is not compatible with linux.
 
Old 12-02-2003, 03:01 PM   #30
JordanH
Member
 
Registered: Oct 2003
Location: Toronto, Canada
Distribution: Ubuntu, FC3, RHEL 3-4 AS Retired: SuSE 9.1 Pro, RedHat 6-9, FC1-2
Posts: 360

Rep: Reputation: 30
Your configs look good now.

When you restart your network, does it still fail to bringup the eth0 card?
 
  


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
Network Cable Unplugged on Windows Caused by Linux Redhat 9.0 nader_hos Linux - Networking 8 07-26-2006 03:24 AM
Redhat 9 on a windows network oookiezooo Linux - Newbie 1 04-13-2005 09:34 AM
Redhat Linux 9 as mail relay for Windows Network mediamvp Linux - Networking 1 02-20-2004 03:57 PM
Redhat 9.0 on a Windows NT Network simon190675 Linux - Networking 1 05-30-2003 08:11 AM
Network redhat with windows |=|PRID|=| Linux - Networking 4 05-18-2003 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:14 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
Open Source Consulting | Domain Registration