[gentoo-user] Network problem with linux server
November 07th, 2011 - 06:20 am ET by Massimiliano Ziccardi | Report spam
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
GATEWAY5.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
Hi All.<div><br></div><div>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!</div><div><br></div><div>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.</div>
<div><br></div><div>I fixed the problem editing the /etc/sysconfig/network file and adding </div><div><br></div><div><div>GATEWAY=195.75.145.1</div><div>GATEWAYDEV=eth0</div></div><div><br></div><div>however I'm not sure this is the solution: I already configured the default gateway only in the ifcfg-eth0 file!</div>
<div><br></div><div>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 !</div><div><br></div><div>Here is the output of ifconfig:</div>
<div><br></div><div><div>eth0 Link encap:Ethernet HWaddr 5C:F3:FC:55:63:42</div><div> inet addr:195.75.145.122 Bcast:195.75.145.255 Mask:255.255.255.0</div><div> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</div>
<div> RX packets:4281 errors:0 dropped:0 overruns:0 frame:0</div><div> TX packets:25 errors:0 dropped:0 overruns:0 carrier:0</div><div> collisions:0 txqueuelen:1000</div><div> RX bytes:4934949 (4.7 MiB) TX bytes:2133 (2.0 KiB)</div>
<div> Interrupt:28 Memory:92000000-92012800</div><div><br></div><div>eth2 Link encap:Ethernet HWaddr 00:1B:21:8E:0A:86</div><div> inet addr:192.168.19.95 Bcast:192.168.19.255 Mask:255.255.255.0</div>
<div> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1</div><div> RX packets:2049 errors:0 dropped:0 overruns:0 frame:0</div><div> TX packets:917 errors:0 dropped:0 overruns:0 carrier:0</div>
<div>
collisions:0 txqueuelen:1000</div><div> RX bytes:236160 (230.6 KiB) TX bytes:99635 (97.2 KiB)</div><div> Memory:97d80000-97e00000</div><div><br></div><div>lo Link encap:Local Loopback</div>
<div> inet addr:127.0.0.1 Mask:255.0.0.0</div><div> UP LOOPBACK RUNNING MTU:16436 Metric:1</div><div> RX packets:56 errors:0 dropped:0 overruns:0 frame:0</div><div> TX packets:56 errors:0 dropped:0 overruns:0 carrier:0</div>
<div> collisions:0 txqueuelen:0</div><div> RX bytes:7714 (7.5 KiB) TX bytes:7714 (7.5 KiB)</div><div><br></div><div>lo:0 Link encap:Local Loopback</div><div> inet addr:195.75.145.120 Mask:255.255.255.0</div>
<div> UP LOOPBACK RUNNING MTU:16436 Metric:1</div></div><div><br></div><div>here is the output of ip route</div><div><br></div><div><div><a href="http://192.168.19.0/24">192.168.19.0/24</a> dev eth2 proto kernel scope link src 192.168.19.95</div>
<div><a href="http://195.75.145.0/24">195.75.145.0/24</a> dev eth0 proto kernel scope link src 195.75.145.122</div><div><a href="http://169.254.0.0/16">169.254.0.0/16</a> dev eth0 scope link metric 1002</div><div><a href="http://169.254.0.0/16">169.254.0.0/16</a> dev eth2 scope link metric 1004</div>
<div>default via 195.75.145.1 dev eth0</div></div><div><br></div><div>Please!! Do you have any advice?</div><div><br></div><div>Thanks,</div><div>Massimiliano</div>
Similar topics
- [gentoo-user] Network perf tool
- [gentoo-user] Network card failing under load
- [gentoo-user] network scanner not seen by xsane on *some* systems
- [gentoo-user] Weather thingy using up my network, ALL THE TIME.
- [gentoo-user] openconnect and network manager
- [gentoo-user] Slow local network - how to debug?
- [gentoo-user] [way OT] Authenticating in a wireless home network
- [gentoo-user] openrc - network configuration fails - how to debug it
Make your own search :
Tags
Create a new topic
Follow the discussion
26 replies
Make a reply
May 25th, 2013 - 2:06 PM ET
Join now


Replies