I cannot speak for other versions of LINUX, however In RedHat 6.2 there are three configuration files: /etc/sysconfig/network /etc/sysconfig/network/network-scripts/ifcfg-eth0 /etc/sysconfig/network/network-scripts/ifcfg-eth1 Check to see if these are set with the correct information. In order for the changes to take affect, reboot the system. -----Original Message----- From: linux-net-owner@vger.kernel.org [mailto:linux-net-owner@vger.kernel.org]On Behalf Of Tony Nugent Sent: Wednesday, April 11, 2001 11:46 AM To: Michal Kolarik Cc: Linux Netorking Email List Subject: Re: default route problem On Mon Apr 09 2001 at 15:38, =?ISO-8859-2?Q?Kola=F8=EDk_Michal?= wrote: > here is my ifconfig & route -n > > eth0 Link encap:Ethernet HWaddr 00:20:AF:CC:1B:15 > inet addr:194.108.144.200 Bcast:194.108.144.255 Mask:255.255.255.128 > UP BROADCAST RUNNING MTU:1500 Metric:1 > RX packets:224 errors:0 dropped:0 overruns:0 frame:0 > TX packets:54 errors:0 dropped:0 overruns:0 carrier:45 > collisions:0 txqueuelen:100 > Interrupt:5 Base address:0x260 > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref Use > Iface > 192.168.1.5 0.0.0.0 255.255.255.255 UH 0 0 0 eth1 > 194.212.70.185 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 Where has this 194.212 address for this host route come from? Delete it: route del host 194.212.70.185 eth0 Hmm, it is likely to have been left over from your old config, that shouldn't have happened. What does "/sbin/ip add sh all" (ip address show all) tell you? > 194.108.144.128 0.0.0.0 255.255.255.128 U 0 0 0 eth0 > 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 > 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo > 0.0.0.0 194.108.144.220 0.0.0.0 UG 0 0 0 eth0 > > If I add default route #route add -net default gw x.x.x.x > > comand seems to be OK, if I run netstat I can see my default route here. > > But I can't ping nothing include my own iterface IP adres, if I delete > > default route -> ping runs. > > This happend when I took my PC at home here I need diferent configuration > > than at work. > > At work everything works OK. > > can anybody help me please? > > RH 6.2 kernel 2.2.19 Cheers Tony Network and Systems Consultant, RHCE LinuxWorks : tony@linuxworks.com.au Consultant for GrowZone OnLine : tony@growzone.com.au - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org