ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Routing to lo (Loopback interface) failed.. Help me! #2
@ 2005-02-17  9:51 Slobodian Viacheslav
  2005-02-17 10:45 ` Dmytro O. Redchuk
  0 siblings, 1 reply; 4+ messages in thread
From: Slobodian Viacheslav @ 2005-02-17  9:51 UTC (permalink / raw)
  To: community

Система ALT Master 2.4 засизифленная по полной. ;) 
Недавно игрался с разными скриптами для iptables- пробовал разные политики, запрещая то одно, то другое.. 
На следующий день обнаружил, что у меня зависают запросы на localhost. Т.е. ни тебе обращения к CUPS, ни прокси локальной, ни апачи локальной.. 
Такое впечатление, что при опущенном файерволе и включённом в ifconfig интерфейсом lo его "не существует" на самом деле. 
Предполагаю, что где-то поломал роутинг на localhost. 
Как восстановить? 

По совету коллеги попробовал

[root@slava install]# route add 127.0.0.0 netmask 255.0.0.0 dev lo
route: netmask 00ffffff doesn't make sense with host route
и
[root@slava install]# ip route add 127.0.0.0/8 dev lo
RTNETLINK answers: No such device

Куда копать дальше?

Привожу:

[root@slava root]# netstat -rn       
Kernel IP routing table 
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface 
83.97.105.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0 
0.0.0.0         83.97.105.65    0.0.0.0         UG        0 0          0 eth0
---
Т.е. не хватает строки 
127.0.0.0       0.0.0.0      255.0.0.0       U         0 0          0 lo
пытался её добавить через 
[root@slava etc]# route add 127.0.0.0 netmask 0.0.0.0 gw 255.0.0.0   
SIOCADDRT: Network is unreachable
---
[root@slava install]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination  
---
[root@slava install]# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0D:61:4F:3A:1D  
          inet addr:83.97.105.71  Bcast:83.97.105.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:39722 errors:0 dropped:0 overruns:0 frame:0
          TX packets:35810 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:26672169 (25.4 MiB)  TX bytes:4593211 (4.3 MiB)
          Interrupt:19 Base address:0xe000 

lo        Link encap:Local Loopback  
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] Routing to lo (Loopback interface) failed.. Help me! #2
  2005-02-17  9:51 [Comm] Routing to lo (Loopback interface) failed.. Help me! #2 Slobodian Viacheslav
@ 2005-02-17 10:45 ` Dmytro O. Redchuk
  2005-02-17 11:06   ` Slobodian Viacheslav
  0 siblings, 1 reply; 4+ messages in thread
From: Dmytro O. Redchuk @ 2005-02-17 10:45 UTC (permalink / raw)
  To: community

On Thu, Feb 17, 2005 at 12:51:16PM +0300, Slobodian Viacheslav wrote:
> Система ALT Master 2.4 засизифленная по полной. ;) 
                         ^^^^^^^^^^^^^
Оттож...


Как всегда -- cat /etc/sysconfig/network-scripts/ifcfg-{lo,eth0} для
начала ;О)

И rpm -q net-scripts

-- 
  _,-=._              /|_/|
  `-.}   `=._,.-=-._.,  @ @._,
     `._ _,-.   )      _,.-'
        `    G.m-"^m`m'        Dmytro O. Redchuk



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] Routing to lo (Loopback interface) failed.. Help me! #2
  2005-02-17 10:45 ` Dmytro O. Redchuk
@ 2005-02-17 11:06   ` Slobodian Viacheslav
  2005-02-17 11:44     ` Dmytro O. Redchuk
  0 siblings, 1 reply; 4+ messages in thread
From: Slobodian Viacheslav @ 2005-02-17 11:06 UTC (permalink / raw)
  To: community


[root@slava install]# cat /etc/sysconfig/network-scripts/ifcfg-lo
DEVICE=lo
IPADDR=127.0.0.1
NETMASK=255.0.0.0
NETWORK=127.0.0.0

# If you're having problems with gated making 127.0.0.0/8 a martian,
# you can change this to something else (255.255.255.255, for example)
BROADCAST=127.255.255.255
ONBOOT=yes
NAME=loopback


[root@slava install]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=83.97.105.71
NETMASK=255.255.255.0
NETWORK=83.97.105.0
BROADCAST=83.97.105.255
ONBOOT=yes


[root@slava install]# rpm -q net-scripts
net-scripts-0.5.3-alt1


Пока ни к каким выводам сам не пришёл.. Сетевые скрипты изучал и раньше, но найти что-либо "ошибочное" не смог..


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Comm] Routing to lo (Loopback interface) failed.. Help me! #2
  2005-02-17 11:06   ` Slobodian Viacheslav
@ 2005-02-17 11:44     ` Dmytro O. Redchuk
  0 siblings, 0 replies; 4+ messages in thread
From: Dmytro O. Redchuk @ 2005-02-17 11:44 UTC (permalink / raw)
  To: community

On Thu, Feb 17, 2005 at 02:06:43PM +0300, Slobodian Viacheslav wrote:
> 
> [root@slava install]# cat /etc/sysconfig/network-scripts/ifcfg-lo
> DEVICE=lo
> IPADDR=127.0.0.1
> NETMASK=255.0.0.0
> NETWORK=127.0.0.0
> 
> # If you're having problems with gated making 127.0.0.0/8 a martian,
> # you can change this to something else (255.255.255.255, for example)
> BROADCAST=127.255.255.255
> ONBOOT=yes
> NAME=loopback
Добавьте сюда BOOTPROTO=static

Это связано с одним недопатчем одного бага..  My fault, let's say...
https://bugzilla.altlinux.org/show_bug.cgi?id=5891

Вот оттуда:
----------------------------------------------- шмат

------ Additional Comment #5 From Denis Ovsienko  2005-02-16 20:01 [reply] -------

Для истории: правка этого бага приводит к неработоспособности lo без
BOOTPROTO=static в ifcfg-lo. Да здравствует /etc/net!

----------------------------------------------- шмат

-- 
  _,-=._              /|_/|
  `-.}   `=._,.-=-._.,  @ @._,
     `._ _,-.   )      _,.-'
        `    G.m-"^m`m'        Dmytro O. Redchuk



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-02-17 11:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-17  9:51 [Comm] Routing to lo (Loopback interface) failed.. Help me! #2 Slobodian Viacheslav
2005-02-17 10:45 ` Dmytro O. Redchuk
2005-02-17 11:06   ` Slobodian Viacheslav
2005-02-17 11:44     ` Dmytro O. Redchuk

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git