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.
ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:08:A1:1B:67:B5
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:5382 (5.2 Kb)
Interrupt:11 Base address:0x9400
eth0:9 Link encap:Ethernet HWaddr 00:08:A1:1B:67:B5
inet addr:169.254.37.28 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0x9400
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:488 errors:0 dropped:0 overruns:0 frame:0
TX packets:488 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:32312 (31.5 Kb) TX bytes:32312 (31.5 Kb)
And this is the logged stuff after I ran the first script bin/bash posted:
Code:
tail -f /var/log/messages
Nov 15 18:53:07 John modprobe: modprobe: Can't locate module fddi2
Nov 15 18:53:07 John modprobe: modprobe: Can't locate module fddi3
Nov 15 18:53:07 John drakconnect[2360]: changed mode of /etc/sysconfig/network-scripts/drakconnect_conf to 600
Nov 15 18:53:07 John drakconnect[2360]: changed mode of /etc/sysconfig/network-scripts/drakconnect_conf.default to 600
Nov 15 18:53:07 John drakconnect[2360]: changed mode of /etc/sysconfig/network-scripts/net_up.default to 755
Nov 15 18:53:07 John drakconnect[2360]: changed mode of /etc/sysconfig/network-scripts/net_down.default to 755
Nov 15 18:53:07 John drakconnect[2360]: changed mode of /etc/sysconfig/network-scripts/net_prog.default to 755
Nov 15 18:53:07 John drakconnect[2360]: changed mode of /etc/sysconfig/network-scripts/net_resolv.default to 755
Nov 15 18:56:34 John kernel: ip_tables: (C) 2000-2002 Netfilter core team
Nov 15 18:56:34 John kernel: ip_conntrack version 2.1 (3007 buckets, 24056 max) - 320 bytes per conntrack
Just another shot in the dark, I took a quick look at drakconnect - I take it the when you use it in the what connection do you want to configure bit you are choosing LAN Connection and not anything else, probably are but you never know.
I see a couple of things that are strange in your message file. Can you grab more information from it?
In another console type
tail -100f /var/log/messages
And then try
ifdown eth0; sleep 3; ifup eth0
The information you got via tcpdump is interesting because it looks like it's trying to find the gateway (ARP requests for the mac for gateway) but isn't getting a response. Can you ping 192.168.1.156?
Try running tcpdump with the -n option (tcpdump -n -i eth0) so that it doesn't try to resolve names.
The fact that you have eth0:9 (a virtual interface) means that you weren't able to get a dhcp address from your network. Very interesting...
This is your route when you are in windows?
Your ip is 192.168.1.150.
The router is 192.168.1.1.
So what is 192.168.1.212?
It looks to me like maybe your router is really at 192.168.1.212. If that is true then you need to change the GATEWAY=192.168.1.1 to GATEWAY=192.168.1.212.
<edit> Or I think maybe your IP was 192.168.1.212 and not 192.168.1.150?
The thing is you don't need alot of complicated routing tables to ping that router. If you assign an IP to the NIC that is on the same network you should be able to ping the router.
I stop my network and with no routing table at all, I can assign an IP to my NIC and I can ping my router. Maybe this will help you understand better.
Code:
# service network stop
Shutting down interface eth0: [ OK ]
Shutting down interface eth1: [ OK ]
Shutting down loopback interface: [ OK ]
# ifconfig
# ifconfig eth0 192.168.0.2 netmask 255.255.255.0
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:4F:43:C1:FF:FF
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:67668 errors:0 dropped:0 overruns:0 frame:0
TX packets:76854 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:31980441 (30.4 Mb) TX bytes:10527149 (10.0 Mb)
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
# ping -c3 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=1.14 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=0.787 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=0.655 ms
I think you need to look at the router configuration carefully. What about the HW address did it somehow get changed. If your router is set to filter based on HW address this could be the problem.
Just another shot in the dark, I took a quick look at drakconnect - I take it the when you use it in the what connection do you want to configure bit you are choosing LAN Connection and not anything else, probably are but you never know.
Yep, I'm choosing LAN Connection.
Quote:
This is your route when you are in windows?
Your ip is 192.168.1.150.
The router is 192.168.1.1.
So what is 192.168.1.212?
That was my IP a week or two ago; my DHCP lease changes every three days or so.
Quote:
I think you need to look at the router configuration carefully. What about the HW address did it somehow get changed. If your router is set to filter based on HW address this could be the problem.
I'm setting up my network via the method you use; it doesn't work. I'll try removing an entry I made some time back for my NIC to see if it helps, although I doubt it since that entry was made after the problems started.
I'm setting up my network via the method you use; it doesn't work. I'll try removing an entry I made some time back for my NIC to see if it helps, although I doubt it since that entry was made after the problems started.
What does that mean? Exactly what method are you using and what are the results including any error messages.
Try a ping scan of the network:
ifconfig eth0 down
ifconfig eth0 192.168.1.2 netmask 255.255.255.0
nmap -sP 192.168.1.0/24
Does it show any IP's as being up? If so thats probably your router. If not then check your iptables or any other firewall and check the routers configuration.
The only thing that currently stands out is that DHCP_HOSTNAME should in your case be "john" since that's the name of the machine. Did you set this up via the mandrake control panel?
Try making the change to the file by hand - you could just make it blank.
Type the following:
vi /etc/sysconfig/networking-scripts/ifcfg-eth0
5 j 2 w D A john <esc> : w q
ifdown eth0 ; sleep 3 ; ifup eth0
The 5 j will move you down 5 lines, 2 (w)ords, (D)elete until end, (A)ppend at end of line - john - escape key, colon (w)rite (q)uit.
I doubt that's the problem... but lets try that first and we'll test other items afterwords.
When you use dhcp you don't get an IP so I would agree you need to change the DHCP_HOSTNAME=
Anytime you make changes and want to see if it helped do this:
service network restart
If the above does't fix the problem could you post both these one more time:
/etc/sysconfig/network
/etc/sysconfig/network-scripts/ifcfg-eth0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.