Gentoo Archives: gentoo-user

From: Massimiliano Ziccardi <massimiliano.ziccardi@×××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: [gentoo-user] Network problem with linux server
Date: Mon, 07 Nov 2011 11:15:36
Message-Id: CAET4pLsuHXnhg_Ng2-DVNmt2xc+czwBhYrFW2yTq7pxsHUALrQ@mail.gmail.com
1 Hi All.
2
3 This problem is not strictly related to gentoo, however I'm sure someone
4 here will be able to help me in some way: sorry if I bother you!
5
6 I'm having a really strange problem: for some reason, everytime I reboot my
7 server, the default gateway gets attached to the 'lo' interface, even if I
8 correctly attached it to the eth0 device.
9
10 I fixed the problem editing the /etc/sysconfig/network file and adding
11
12 GATEWAY=195.75.145.1
13 GATEWAYDEV=eth0
14
15 however I'm not sure this is the solution: I already configured the default
16 gateway only in the ifcfg-eth0 file!
17
18 After this, I have an even worse problem: doing an ssh 195.75.145.1, I get
19 an answer from my own server like if it was a loopback address !
20
21 Here is the output of ifconfig:
22
23 eth0 Link encap:Ethernet HWaddr 5C:F3:FC:55:63:42
24 inet addr:195.75.145.122 Bcast:195.75.145.255 Mask:255.255.255.0
25 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
26 RX packets:4281 errors:0 dropped:0 overruns:0 frame:0
27 TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
28 collisions:0 txqueuelen:1000
29 RX bytes:4934949 (4.7 MiB) TX bytes:2133 (2.0 KiB)
30 Interrupt:28 Memory:92000000-92012800
31
32 eth2 Link encap:Ethernet HWaddr 00:1B:21:8E:0A:86
33 inet addr:192.168.19.95 Bcast:192.168.19.255 Mask:255.255.255.0
34 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
35 RX packets:2049 errors:0 dropped:0 overruns:0 frame:0
36 TX packets:917 errors:0 dropped:0 overruns:0 carrier:0
37 collisions:0 txqueuelen:1000
38 RX bytes:236160 (230.6 KiB) TX bytes:99635 (97.2 KiB)
39 Memory:97d80000-97e00000
40
41 lo Link encap:Local Loopback
42 inet addr:127.0.0.1 Mask:255.0.0.0
43 UP LOOPBACK RUNNING MTU:16436 Metric:1
44 RX packets:56 errors:0 dropped:0 overruns:0 frame:0
45 TX packets:56 errors:0 dropped:0 overruns:0 carrier:0
46 collisions:0 txqueuelen:0
47 RX bytes:7714 (7.5 KiB) TX bytes:7714 (7.5 KiB)
48
49 lo:0 Link encap:Local Loopback
50 inet addr:195.75.145.120 Mask:255.255.255.0
51 UP LOOPBACK RUNNING MTU:16436 Metric:1
52
53 here is the output of ip route
54
55 192.168.19.0/24 dev eth2 proto kernel scope link src 192.168.19.95
56 195.75.145.0/24 dev eth0 proto kernel scope link src 195.75.145.122
57 169.254.0.0/16 dev eth0 scope link metric 1002
58 169.254.0.0/16 dev eth2 scope link metric 1004
59 default via 195.75.145.1 dev eth0
60
61 Please!! Do you have any advice?
62
63 Thanks,
64 Massimiliano

Replies

Subject Author
Re: [gentoo-user] Network problem with linux server "J. Roeleveld" <joost@××××××××.org>
Re: [gentoo-user] Network problem with linux server Jonas de Buhr <jonas.de.buhr@×××.net>
Re: [gentoo-user] Network problem with linux server Michael Schreckenbauer <grimlog@×××.de>