New answers tagged

2

Your problem is not ip addr but some process (network manager?) which deletes the IP address. Unfortunately I am not aware of a possibility to determine which process made this access. In case the disturbing process calls ip it should be possible with process accounting (man acct) but not if the configuration is made directly via the NETLINK socket. You ...


0

Since you have not shown your /etc/network/interfaces file this option is valid. Try changing from the static configuration to dhcp and run ping google.com. If it works then maybe another device has already the Ip you requested. run nmap 10.2.0.* and check the available adresses. I had the same issue and I couldn't figure out what the problem was. I ...


3

Your problem comes from the ping command that never exits. You should make a loop that call ping for one test -c 1: while [ true ] ; do if ping -c 1 www.google.com | grep timeout ; then say fail ; fi ; sleep 1 ; done edit I wrote a bash while loop, may be you should adapt it to your shell program (It's been a long time I play with mac os X), I added ...


0

/etc/init.d/iptables stop will disable the iptables chkconfig iptables off


1

google and most other publicly accessed sites are configured to NOT RESPOND to ICMP requests, as it is an attack vector for denial of service type of attacks. But wget is a web browser for all intents and purposes. Hence the website will respond to http and https requests, and probably nothing else. And there is nothing you can do about it.


1

Different implementations, different choices. In iputils-ping (on Linux) the ping is continuous by default while on Solaris you need to use the -s option to get that behaviour. That's useful for monitoring network status continuously. On Solaris ping's default behaviour of exiting successfully after the first returned packet makes it easier to use in ...


2

Imagine you want to establish a route between hosts A and B. On host A, you run ping B. Initially, it won't work. On host B, or on some firewall, you make a change to the network configuration and the moment it is applied you see almost instantly that your change worked. So, it's just very practical that it does that. Otherwise you would have to write ...



Top 50 recent answers are included