Networking :: Pinging Localhost Comes From Source Of Eth0
Jan 13, 2011
I was doing some one-handed-one-fingered typing while talking on the phone. Due to lack of paying attention, I executed the following command: ifconfig eth0 1300 (was meant to be ifconfig eth0 mtu 1300) this of course killed the connection, so I got the box rebooted. This box functions as an openswan/firewall server. everything came up okay, end users are reporting no problems with the vpn or the firewall function. However, one service is failing because the route to localhost seems to be originating from eth0. when I `ping localhost`, the traffic dump shows the ping packet originating from the external address. On all my other boxes, when I ping localhost, the traffic originates from localhost. The reply to my ping behaves normally.
here is a dump of my pinging localhost: fw-ps:~/scripts# tcpdump -n -i lo listening on lo, link-type EN10MB (Ethernet), capture size 65535 bytes 10:00:01.885033 IP 194.246.23.22 > 127.0.0.1: ICMP echo request, id 6893, seq 12, length 64 10:00:01.885068 IP 127.0.0.1 > 127.0.0.1: ICMP echo reply, id 6893, seq 12, length 64
I considered trying to manually add some routes, but since the reply is working, I am not sure that is the problem. I also considered trying to change the default interface, but I don't want external traffic originating from the loopback.
View 4 Replies
ADVERTISEMENT
Feb 26, 2011
I have two network interfaces and their entries are shown as eth0 and eth1... I want to assign them static IPs which I do by
ifconfig eth0 192.168.9.245 netmask 255.255.0.0 up
ifconfig eth1 192.168.8.245 netmask 255.255.0.0 up
But I am not sure if it will ping both the interfaces if I issue a command
ping -I eth0 192.168.9.113 (machine in network)
ping -I eth1 192.168.9.113 (machine in network)
I am getting pings from eth0 but not from eth1
View 10 Replies
View Related
Apr 27, 2011
Ive recently installed lubuntu 10.04 on an old sony vaio. ive been able to connect to the internet (satellite broadband) for a few months then no connection. the connection is fine so its definatly the network on the vaio. ive tried pinging to no avail.
View 5 Replies
View Related
Feb 6, 2010
when i type ping"proxy address" in my command line i get
pinging with 64 bit data while in windows i used to get 32 bit data...
whats the difference between the two??
View 2 Replies
View Related
Jan 30, 2011
I had a router crap out yesterday. I'd been testing out a new one for the last few days and just reconfigured it to be the main. Took the old one down and everything in my house (Windows 7 PC, XP Files server, Ubuntu PC , windows 7 laptop, android tablet, ps3, etc) seems to be working fine whether it be hard wired or wifi. All except my ubuntu 10.04 laptop. It worked fine before the swap so I can't figure out what's going on.
I'm able to connect to the new SSID without issue but I can't resolve any external names and when I try to ping the default gate way every other packet has (DUP!) behind it. If I'm hardwired I don't get the dup! when pinging the default gateway but I still can't resolve any external names. I have provided the results of an ifconfig and the results of a ping to the default gateway below.
cooley@Quigon:~$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=2.98 ms
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=3.04 ms (DUP!)
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=3.50 ms
64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=5.72 ms (DUP!)
64 bytes from 192.168.1.1: icmp_seq=3 ttl=64 time=8.09 ms
[Code]...
View 9 Replies
View Related
Jan 13, 2010
I have an HP BL460c G5 with 5.3 installed fresh
it can ping its own IP address just fine
its a bit slow but constant pinging the switch its connected to
and i get alot of Destination host unreachables(a few do get through) when pinging the gateway
port on the switch is hardcoded to GB/full. and the server itself reads that its connecting at GB/full.
View 10 Replies
View Related
Jan 6, 2010
I'm using kubuntu 9.10 desktop edition as a server and I set the IP statically, what happens is that when I ping it from another machine on the same network, I get intermittent packet loss (up to 80% and sometimes even higher). When I ping any other machine on the local network everything's fine with 0% packet loss. Packets go directly through switch, no router or anything in between.
I suspected wiring issues, but that doesn't seem to be the problem after I changed the wiring. I was connected to wireless and suspected that but no go either. Same thing when I turn wired. I just changed the ethernet card suspecting drivers but that's no good either. Iptables is a cleanslate installation, it's totally empty.
View 9 Replies
View Related
Mar 9, 2009
Installed Fedora 10 with Mozilla-Firefox, I can get out on the internet by pinging outside IP's but Firefox browser returns cannot locate www. does anyone know what package I need so browser connects.
View 7 Replies
View Related
Oct 16, 2010
So I've been reading around a bit, and have found a few fixes for this Resolving Hosts problem, but none of them have fixed mine yet. Basically what happens is all browsers fail to load pages, pinging local network works, but pinging default gateway doesn't. Cannot ping external websites and cannot reach update or upgrade servers for ubuntu. All networking works as normal on all other PCs in house, as well as the windows 7 boot I have on my ubuntu PC.
What I've tried:Disabled IPv6 completely by preventing the module from booting up Manually setting network settings instead of using the router's DHCP server Changing DNS servers from ISP to Google public DNS to OpenDNS Buying a new ethernet card And a few other things I can't remember off the top of my head, none of which worked. From memory, all this just started happening out of the blue. I recently changed from Windows to Ubuntu, and was enjoying the switch but all of a sudden I couldn't get on the internet on Ubuntu.
Now, I'm not sure why, but I decided to ping myself. Not my LAN ip, but our router's WAN ip. It worked, albeit took a little while to return a response the first packet, but each subsequent packet after that was a normal speed (~0.5ms). The strange thing about this was that I found that for a few seconds after pinging myself, I could access the internet. After a few seconds though, it returns to it's resolving hosts self again, which another self-ping would fix.
Consequently, in order to browse, I have an open terminal constantly pinging myself which appears to be working. Not ideal, and certainly not something I would like to keep doing for long, but it works for now. I really like Ubuntu, but if I can't get this net thing fixed, I can't finish moving over from Windows!
View 7 Replies
View Related
Aug 28, 2010
I'm running wicd 1.7.0 on Kubuntu 10.04, with an Actiontec DSL wireless router (with an internal dd-wrt "bridged" router as well;Any idea what "magic" those lines are performing and if it's possible to make wicd do it all the time (instead of just the third time)?Very happy to pursue any debugging if anyone has any ideas, as it's pretty annoying to have to wait an extra couple minutes on every boot until connecting.
View 1 Replies
View Related
Aug 19, 2009
5.10 Breezy configured as machine controller. Works great eth0 is a fixed IP to communicate with controller comms board. Not easy at all to alter - the comms board is hard coded to listen on eth0 for commands.
I can use eth1 as the default gateway and ping google.com, etc. But when I now attempt to communicate with the controller with netcat, e.g.
Code: echo !HH | nc 192.168.1.6 80
I obviously never get an answer since the request is passed via eth1. Using the -g option with netcat doesn't work either. I had a look at iptables but it doesn't seem to be able to do what I want. How I can still use eth0 as my communication port to the controller whilst eth1 is the default gateway?
View 17 Replies
View Related
Jul 1, 2010
I have two servers on a vlan at my datacentre/colocation and previously both servers had public IPs on their eth0 interfaces. The servers are HP ProLiant DL360s - one is a G4 and one is a G5 The newer G5 is now the LAMP server and the G4 has been retired and I want to repurpose it as an iSCSI target using openfiler freenas or similar.
My G5 has public/static IPs lashed to the eth0 physical interface and the eth1 is not configured to do anything yet. The G4 will have both interfaces available - perhaps one for ssh access from one of my static public IPs and the other to be a private IP on the local vlan. Here is what I am trying to get my head around...
The G5
eth0 - Public IP - full LAMP services on two or three virtual interfaces
eth1 - Private IP 192.168.0.1
The G4
eth0 - Public IP for ssh
eth1 - Private IP 192.168.0.2
Because my traffic between eth1 on these boxes is via private IPs on the local private vlan it doesn't add to my quota for bandwidth. How do I go about configuring the routing and gateways and other aspects of this so that I can run a private IP space network between the eth1s and still serve the outside world from the eth0s...
I am afraid that if I assign the private IPs to the eth1 interfaces the routing may either not work or interfere with the access to the production internet facing interfaces (eth0s).
View 10 Replies
View Related
Dec 18, 2010
I'm running a dual boot Ubuntu 10.04/Backtrack 4 (Ubuntu 8.10) system. I can get internet in the BT4 side but not in the Lucid side. In Lucid I can ping my router, and the network manager says I'm good to go, but I can't get to any web sites. It all started when I tried to put my laptop on another network by mimicking the settings of a computer I had just unplugged from the network. MAC address and all.
ifconfig eth0:
Code:
eth0 Link encap:Ethernet HWaddr 00:1f:16:ba:4c:8c
inet addr:10.136.9.147 Bcast:10.136.9.159 Mask:255.255.255.240
inet6 addr: fe80::21f:16ff:feba:4c8c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[code]....
View 3 Replies
View Related
Apr 22, 2011
im trying to setup eth0 with subdevice eth0.0 and eth0.99 to come up at boot
eth0 is dhcp clint
eth0:0 is static ip
eth0.99 is 802.1q vlan interface
/etc/network/interfaces
Code:
auto lo
[Code]....
View 1 Replies
View Related
Dec 26, 2010
i install kernel rpm after i boot that kernel network not working kernel name : kernel-rt-trace-2.6.24.7-132.el5.centos.i686 [URL] error "Bringing up interface eth0: Device eth0 has different MAC address than expected, ignoring."
View 1 Replies
View Related
Jul 30, 2010
I try to generate a server client code. What i try to do is sending video streams from eth0 and eth1 to the other server programs' eth0 and eth1. In order to do that, i decided to use SO_BINDTODEVICE. But the code is not working. Am i misunderstood the usage of SO_BINDTODEVICE.
1-Defining two ports
2-Defining two sockets
3-Assigning host ips on them
[code]....
View 3 Replies
View Related
May 24, 2010
I'm trying to ping another Ubuntu computer on my local network. If I try doing,ping <hostname>then I get the messageping: unknown host <hostname>however, if I doping <hostname>.localthen I get a response back. I was wondering how I can change it so that I can ping without having to append .localI've installed winbind and modified my /etc/nsswitch.conf file but this has made no difference.
View 2 Replies
View Related
Sep 27, 2010
I have a hardware device with two ethernet ports, eth0 and eth1 running Centos 5. Basically my goal is to forward packets from eth0->eth1 and eth1->eth0 as well as get a copy of these packets for analysis. If I set IP routing to do the forwarding then I won't get a copy of the packets for analysis.
View 3 Replies
View Related
Jul 20, 2010
I have three linux pc. assume server-A, server-B and server-C. server-A is connected with server-B trough eth0 (ip:192.168.1.5) and server-B side ip: (eth0)192.168.1.1. Server-B is connected with server-C through eth1 (ip: 10.10.10.1) and server-C side ip (eth0) : 10.10.1.4.
I want to ping between server-A and server-C. what can i do. if it is possible by iptables what is command.
View 1 Replies
View Related
Jan 25, 2010
I did one of the recommended port scans and all ports passed but failed on pinging. How do you turn pinging on & off with GFUW?
View 9 Replies
View Related
Mar 13, 2010
I am starting a project of my own (and learning C++ at the same time. I got my program to successfully scan a custom netmask, but it is REALLY slow. I want my program to do something similar to nmap -sP xxx.xxx.xxx.xxx-xxx. How to speed it up? Such as pinging more than one IP at a time...
Code:
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <sstream>
using namespace std;
int ip42;
string ip1, ip2, ip3, ip4, ipaddr;
int main() {
cout << endl << "Enter part 1: ";
cin >> ip1;
cout << endl << "Enter part 2: ";
cin >> ip2;
cout << endl << "Enter part 3: ";
cin >> ip3;
cout << endl << "Enter part 4: ";
cin >> ip4;
while(ip42 < 255){
ipaddr = string("ping -c 1 ").append(ip1);
ipaddr = string(ipaddr).append(ip2);
ipaddr = string(ipaddr).append(ip3);
ipaddr = string(ipaddr).append(ip4);
system(ipaddr.c_str());
ip42 = atoi(ip4.c_str());
ip42 += 1;
stringstream output;
output << ip42;
output >> ip4; } }
View 2 Replies
View Related
Feb 9, 2010
PVM 3.4.6 cannot add localhost. It says it can't find pvmd3, but why is it even looking for that when that is not part of the installation?
View 2 Replies
View Related
Jun 6, 2010
So i was trying to Wget some files from a server to test how much i know about Wget. Running Karmic.I think it connecting to localhost is wrong right?
View 5 Replies
View Related
Dec 30, 2010
I am running the HTTP server (Jetty) from Eclipse IDE, which listens on port 8888. I can connect to it in the browser with URL [URL] but not with http://192.168.1.100:8888/home, where 192.168.1.100 is my local IP. Not from this PC or any other PC in the LAN. Firewall is disabled. I can successfully ping to 192.168.1.100. I can share from this PC with SAMBA.
All configuration and logs look fine.
View 6 Replies
View Related
May 2, 2010
i am trying to use a local DNS service (unbound), and for that, i want each connection (eth0, wlan0) to first use localhost as DNS (127.0.0.1) and then try the DNSs it gets from the DHCP. this is a laptop so it is not just setting it for a single connection but a system default.
i looked and searched and there does not seem to be a straightforward way of doing it. i am usign gnome with networkmanager, and setting the method as "get IP only" is not suitable, as it omits the DHCP-provided DNSs, and also cannot be set as the default method.
View 1 Replies
View Related
Mar 30, 2010
I tend to forget stuff if I don't work with it for awhile. somehow I struggled through and figured out (with a lot of help) how to set up Ubuntu Intrepid server edition on my computer, and am serving my website from my computer. For times when the free DNS nameserver is 'closed' (often lol) I use localhost and can see/work on my site. Suddenly, when I type localhost into the address bar, I get a blank page, nothing! I'm not sure what to do....can someone please help because am going to use my website to present a class project, and was going to use localhost (bring my computer) in case the nameserver was down, I have to be able to display it.
View 3 Replies
View Related
Apr 26, 2011
When i try to connect to MySQL database with MySQL Workbench using root@localhost i get following message: Failed to Connect to MySQL at localhost:3306 with user root
Access denied for user 'root'@'192.168.0.1' (using pasword: YES) which is ok, becouse 192.168.0.1 is not listed as a host from which MySQL server should accept connections.
I am a little confused, becouse i tell MySQL Workbench to connect using localhost, so server should (at least i think so) receive connection from 127.0.0.1
I think i had similar issue with PostgreSQL some time ago, but i just allowed connections from 192.168.0.1 then.
My host file is:
Code:
127.0.0.1 localhost
127.0.0.1 localhost.localdomain localhost
#::1 ent-pc localhost6.localdomain6 localhost6
127.0.0.1 ent-pc
[Code]...
View 5 Replies
View Related
May 24, 2011
i re-installed ubuntu 11.04 two days ago, to join 2 partitons into 1,anyway i then setup vnc and ssh as normal but now it just times out on both when trying to connect is there a firewall or something in place by default?ports show as open when scanning my external isp address, ubuntu box is in the dmz so no need for ports being forwarded.i also cannot connect via localhost, the above testing i could not connect from my worki can also netcat to my external ip via ssh/vnc ports and read the banners fine?
View 1 Replies
View Related
Mar 8, 2010
If I uncheck and recheck "Enable Networking" in the Network Manager Applet 0.7.996 I would expect the wired network to disconnect (which it does) and reconnect (which it does NOT). So I tried sudo ifdown eth0 and got
Quote:
Ignoring unknown interface eth0=eth0.
ifconfig tells me
Quote:
eth0 Link encap:Ethernet HWaddr 00:25:64:e8:18:2c
inet addr:192.168.0.112 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::225:64ff:fee8:182c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
[code]....
so I am at a loss. How do I stop and restart the network interface short of rebooting the machine?
View 9 Replies
View Related
Mar 3, 2010
I got two IP's in my dedicated server. Both are external IP's. I would like to make connections using 2nd IP address under eth0:0 interface. For example: when using "lynx whatismyip.com" should display my 2nd IP. How to do this using iptables ?
View 1 Replies
View Related