public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Network problem with linux server
@ 2011-11-07 11:13 Massimiliano Ziccardi
  2011-11-07 11:24 ` J. Roeleveld
                   ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Massimiliano Ziccardi @ 2011-11-07 11:13 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2533 bytes --]

Hi All.

This problem is not strictly related to gentoo, however I'm sure someone
here will be able to help me in some way: sorry if I bother you!

I'm having a really strange problem: for some reason, everytime I reboot my
server, the default gateway gets attached to the 'lo' interface, even if I
correctly attached it to the eth0 device.

I fixed the problem editing the /etc/sysconfig/network file and adding

GATEWAY=195.75.145.1
GATEWAYDEV=eth0

however I'm not sure this is the solution: I already configured the default
gateway only in the ifcfg-eth0 file!

After this, I have an even worse problem: doing an ssh 195.75.145.1, I get
an answer from my own server like if it was a loopback address !

Here is the output of ifconfig:

eth0      Link encap:Ethernet  HWaddr 5C:F3:FC:55:63:42
          inet addr:195.75.145.122  Bcast:195.75.145.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4281 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4934949 (4.7 MiB)  TX bytes:2133 (2.0 KiB)
          Interrupt:28 Memory:92000000-92012800

eth2      Link encap:Ethernet  HWaddr 00:1B:21:8E:0A:86
          inet addr:192.168.19.95  Bcast:192.168.19.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2049 errors:0 dropped:0 overruns:0 frame:0
          TX packets:917 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:236160 (230.6 KiB)  TX bytes:99635 (97.2 KiB)
          Memory:97d80000-97e00000

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:56 errors:0 dropped:0 overruns:0 frame:0
          TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:7714 (7.5 KiB)  TX bytes:7714 (7.5 KiB)

lo:0      Link encap:Local Loopback
          inet addr:195.75.145.120  Mask:255.255.255.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1

here is the output of ip route

192.168.19.0/24 dev eth2  proto kernel  scope link  src 192.168.19.95
195.75.145.0/24 dev eth0  proto kernel  scope link  src 195.75.145.122
169.254.0.0/16 dev eth0  scope link  metric 1002
169.254.0.0/16 dev eth2  scope link  metric 1004
default via 195.75.145.1 dev eth0

Please!! Do you have any advice?

Thanks,
Massimiliano

[-- Attachment #2: Type: text/html, Size: 3422 bytes --]

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

end of thread, other threads:[~2011-11-08  1:12 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-07 11:13 [gentoo-user] Network problem with linux server Massimiliano Ziccardi
2011-11-07 11:24 ` J. Roeleveld
2011-11-07 11:34   ` Massimiliano Ziccardi
2011-11-07 12:08     ` J. Roeleveld
2011-11-07 12:15       ` Massimiliano Ziccardi
2011-11-07 12:30         ` Michael Schreckenbauer
2011-11-07 12:46           ` Massimiliano Ziccardi
2011-11-07 12:47           ` Massimiliano Ziccardi
2011-11-07 13:03             ` Michael Schreckenbauer
2011-11-07 13:15               ` Massimiliano Ziccardi
2011-11-07 13:28                 ` Michael Schreckenbauer
2011-11-07 13:35                   ` Massimiliano Ziccardi
2011-11-07 13:59                     ` Pandu Poluan
2011-11-07 14:10                       ` Massimiliano Ziccardi
2011-11-07 14:24                         ` Pandu Poluan
2011-11-07 14:14                       ` Massimiliano Ziccardi
2011-11-07 14:20                         ` Massimiliano Ziccardi
2011-11-07 14:30                           ` Michael Schreckenbauer
2011-11-07 14:48                             ` Massimiliano Ziccardi
2011-11-07 15:14                               ` Massimiliano Ziccardi
2011-11-08  1:11                                 ` Pandu Poluan
2011-11-07 14:01                     ` Michael Schreckenbauer
2011-11-07 14:11                       ` Massimiliano Ziccardi
2011-11-07 12:30         ` J. Roeleveld
2011-11-07 11:34 ` Jonas de Buhr
2011-11-07 11:52 ` Michael Schreckenbauer
2011-11-07 12:02   ` Massimiliano Ziccardi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox