Ubuntu Networking :: Ping From A Specific Interface, Not The Expected Result

Mar 28, 2011

im trying to ping from a specific interface, I have a wired and a wireless connection both going into my laptop.

My wired adaptor eth0 is on the ip 172.16.109.75 my wifi adaptor wlan0 is on the ip 192.168.1.69

when I ping google with my eth0 unplugged with the following command

Code:
conneco@mcr-pc-29334:~$ ping -I wlan0 www.google.co.uk
PING www.l.google.com (74.125.230.115) from 192.168.1.69 wlan0: 56(84) bytes of data.
64 bytes from 74.125.230.115: icmp_seq=1 ttl=51 time=32.7 ms

[Code].....

View 1 Replies


ADVERTISEMENT

Networking :: Can't Ping Outside On Specific IP Address

Oct 14, 2010

Something strange with my firewall i used firestarter I dont know why i cannot ping outside on a specific IP address here is my setup. I have IP from ISP

119.92.56.77 - eth0
192.168.50.1 - eth1

with DHCP features from 192.168.50.1 - 254. my problem is i cannot ping this specific IP address which is 119.93.232.234 if you can try there and pinging is ok but here cannot because that IP address (119.93.232.234) they used that to connect to our openvpn which is the IP is 119.92.56.78 <---- this system linux(centos) or IP has no firewall enabled. meaning i separeted this connection. which my setup is like this for OPenVPN

[code]...

View 1 Replies View Related

Networking :: Disable Ping On One Interface But Allow On Another?

Aug 13, 2010

I have 2 NICs on my computer connected to 2 different networks. On 1 interface i wish to disable the return of ping and on the other interface i wish to still allow ping. Is this possible? Both interfaces need to be able to send and receive data. I know that you can disable ping in /etc/sysctl.conf but is there a way to set the ping value for a specific interface only?

View 2 Replies View Related

Networking :: Cannot Ping Virtual Interface On WAN Card

Feb 1, 2010

I have an ubuntu server that I am using as a gateway router. I have 2 nics in the machine and am using iptables to run the NAT.I now have a need to provide several machines on the inside of the network with their own public IP. So I created a virtual interface on the the WAN card and attempted a 1:1 nat across it, but it's not working. The virtual interface isn't even responding to pings. If I ping the ip of the virtual interface from the outside, it doesn't work. If I run a tcpdump on the interface, I can see ICMP request packets but no replies. Watching the same dump while pinging the non-virtual interface IP results in both request and reply packets. What's stranger the inbound ICMP request packets on the virtual interface seem to be hit or miss. Sometimes when I ping it, I can see the request packets hitting the interface, sometimes I get nothing.

View 1 Replies View Related

Networking :: Ping Hangs When Specifying Interface Option

Feb 10, 2009

I am working on a project that needs to know that an interface is up and has stable connectivity so I am told by higher ups that I am going to use ping to solve this. So I was writing something much like the ping program to send out ping packets to [URL]. The issue comes in the fact that I need to do this for every interface that is currently up. So I mimic the code from iputils version of ping to tie the socket to an interface and everything works well except I don't get any packets returned to me.

So digging further I opened wireshark and indeed my interface is getting the ICMP echo response packets but linux (ubuntu 8.10) isn't passing the packet up. So I tried running "sudo ping -I ppp0 www.google.com" and the exact same behavior happens here too. (also seen but not solved here: [URL]. Also my iptables in empty and I also have a wifi connection which is my default gateway in addition to the 3G ppp0 connection. It is not a routing issues cause when I collect packet on the given interface I see the packets that should be there.

The entry in the routing table for ppp0 is: (dst)68.28.xx.yy (gateway)0.0.0.0 (genmask)255.255.255.255 (flags)UH (metric)0 (ref)0 (use)0 (Iface)ppp0

So I was wondering if anyone would either A) be willing to spend a minute to check and see if they are able to ping with the -I option and if so let me know if their routing has entries for that interface (route -n) or B) if anyone has any ideas on why the system isn't passing the packet up to the socket?

View 3 Replies View Related

Networking :: Route Add With Specific Interface?

Apr 18, 2009

I have an Asterisk-server with 2 interfaces, a WAN-interface (eth1) and a LAN-interface (eth0).

SETUP : IAX-provider(internet) --> firewall --> Asterisk-server --> switch --> clients_on_LAN

So everything coming from the IAX-provider on port 4569 is forwarded to the Asterisk-server's WAN-interface (eth1). This needs then be routed to an internal SIP-phone (an IVR-system will define which one) via eth0. When a call is initiated from an internal SIP-phone (they register to the IP-address assigned to eth0) it needs to be routed via eth1 to the gateway (192.168.4.250). Asterisk will setup an IAX-channel on WAN-interface (eth1) to the IAX-provider (via gateway). So... will this work :

Code:

route add -net ip_IAXprovider netmask 255.255.255.0 gw 192.168.4.250 dev eth1

Code:

route add -net 192.168.4.0 netmask 255.255.255.0 dev eth0 (no gateway needed for the LAN-interface, communications to the gateway need to go via the WAN-interface !)

View 4 Replies View Related

Ubuntu Networking :: Disable IPv6 On Specific Interface?

May 26, 2011

When I run OpenVPN server - tap0 adapter, it breakes Teredo(Miredo) IPv6 address down. I dont need IPv6 on OpenVPN, so is there any way to disable IPv6 on tap0 completely?

View 2 Replies View Related

Ubuntu Networking :: Temporarily Unmanaging A Specific Interface?

Aug 6, 2011

As part of my job, I have to configure a lot of network devices that are configured through web pages. This generally means plugging in to them via ethernet, going to their default IP address and reconfiguring them. I set my IP address using ifconfig, which is much faster than plugging numbers in to networkmanager's GUI. The problem is, NetworkManager seems to take the interface down at random.I could disable NetworkManager but then I don't have a wireless connection.Is there a way to tell NetworkManager to temporarily ignore what is happening on a specific interface or should I just ditch NM altogether when doing this kind of work and use wpa_supplicant to get on my wireless?My co-worker with the Windows machine is looking over my shoulder and chuckling

View 2 Replies View Related

Networking :: Bonded Ethernet Interface Can Ping Internally But Not Externally

Oct 14, 2009

So I keep reading that bonding ethernet devices is supposed to be easy. I have followed several tutorials and tried a few things on my own, and I can't seem to get it right. I currently have a setup that allows me to ping internally on my network, but when I try to ping externally I get the error:
connect: Network is unreachable

Before I bonded the interface my connection worked fine. Here are my config files. I am running centos 5.3 on a virtual machine.
/etc/sysconfig/network-scripts/ifcfg-bond0

Code:
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
NETWORK=192.168.1.0
NETMASK=255.255.255.0
IPADDR=192.168.1.211
USERCTL=no
/etc/sysconfig/network-scripts/ifcfg-eth1

Code:
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
HWADDR=00:0c:29:88:59:47
MASTER=bond0
SLAVE=yes
USERCTL=no
/etc/sysconfig/network-scripts/ifcfg-eth0

Code:
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
HWADDR=00:0c:29:88:59:3d
ONBOOT=yes
/etc/modprobe.conf

Code:
alias eth0 pcnet32
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptspi
alias scsi_hostadapter2 ata_piix
alias eth1 pcnet32

alias bond0 bonding
options bond0 mode=0 miimon=100
output of cat /proc/

Code:
Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 100
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth0
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:88:59:3d

Slave Interface: eth1
MII Status: up
Link Failure Count: 0
Permanent HW addr: 00:0c:29:88:59:47

View 4 Replies View Related

CentOS 5 Networking :: Route Add With Specific Interface?

Apr 19, 2009

I have an Asterisk-server with 2 interfaces, a WAN-interface (eth1) and a LAN-interface (eth0).

SETUP :

IAX-provider(internet) --> firewall --> Asterisk-server --> switch --> clients_on_LAN

So everything coming from the IAX-provider on port 4569 is forwarded to the Asterisk-server's WAN-interface (eth1).
This needs then be routed to an internal SIP-phone (an IVR-system will define which one) via eth0.

When a call is initiated from an internal SIP-phone (they register to the IP-address assigned to eth0) it needs to be routed via eth1 to the gateway (192.168.4.250). Asterisk will setup an IAX-channel on WAN-interface (eth1) to the IAX-provider (via gateway).

So... will this work :

route add -net ip_IAXprovider netmask 255.255.255.0 gw 192.168.4.250 dev eth1

View 9 Replies View Related

Ubuntu Networking :: Forcing An Application To Use Specific Network Interface

Apr 19, 2010

How can I force a Wine application (or Wine itself) to use a specific network interface? I have installed hamachi and am trying to play starcraft over virtual LAN. However, when I run Starcraft with hamachi running, it does not work. I have now determined that hamachi creates a network interface called "ham0". How do I force Wine/Starcraft to use the "ham0" network connection? I have looked into forcebindip but it crashes on wine.

View 1 Replies View Related

Ubuntu Networking :: Forcing An Application To Use Specific Network Interface?

Apr 8, 2011

How can I force a Wine application (or Wine itself) to use a specific network interface? I have installed hamachi and am trying to play starcraft over virtual LAN. However, when I run Starcraft with hamachi running, it does not work. I have now determined that hamachi creates a network interface called "ham0". How do I force Wine/Starcraft to use the "ham0" network connection?I have looked into forcebindip but it crashes on wine .

View 5 Replies View Related

CentOS 5 :: Automatic Reboot On Ping Result?

Feb 15, 2011

Is there any way to reboot my centos 5.2 server automatically once the ping result to my default gateway is continuously greater or equlls to 10 ms.

View 3 Replies View Related

Programming :: Specific Result Of Awk Script

Jan 24, 2010

I'm using the following awk command to find out the users home directory from /etc/passwd file.#grep jeesun /etc/passwd |awk 'BEGIN {FS=":"};{print $6}'But problem is when there are two name like "jeesun" and "jeesunadm" exist the script shows both result not specific one.

View 3 Replies View Related

Networking :: Force TCP Traffic Out Over Specific Interface / When IP Is Bound To Another Local NIC

Aug 12, 2010

I'm hoping some of the Linux network experts can help me with this problem.

Situation: I have a technology which is a WebLogic JEE application that communicates to an Oracle database. Everything is installed in a single Linux virtual machine running in VirtualBox. Traffic from the JEE application goes via JDBC over TCP to the local running database. What I want to do is test a new database firewall server that wants all traffic destined for the database to flow via another virtual machine running the DB Firewall software.So therefore want I need to do is have DB traffic forced out over one interface only to return on another interface on the same VM listening on a different address.

JEE application running in WebLogic bound to 192.168.111.12 (eth1 a VirtualBox hostonly interface). Makes a request for 10.0.111.12 (eth2 a VirtualBox internal interface) which the database is listening on. Because both IPs are on local interfaces, Linux is going to handle the traffic and not route the 10.x traffic via the 192.x interface.I also have running the database firewall server which has a bridge (br0) between the HostOnly network and the Internal network.Both systems are running Oracle Enterprise Linux R5U4, which is basically the same as RedHat.What I want to do is have the request for 10.0.111.12 forced out via 192.168.111.12, bridged over the br0 connection and back into 10.0.111.12 and to the database. My networking knowledge is pretty good, but i'm stuck right now on the right way to do this. I'm pretty sure it is possible, I just need clear advice.

Reason for setup: Ideally I would build the system with the database on a separate machine so that I can easily route the traffic. Unfortunately we have many VirtualBox based demonstration systems with both the application and database installed on the same VM and therefore the amount of work to migrate these two dual VMs is going to be significant, also many of these VMs are demonstrated from laptops which have limited resources and creating a new database VM reduces overall performance. If I can create a way to force the traffic in this manner off and back onto the same VM via the other VM bridge, it would be fantastic.

View 7 Replies View Related

Networking :: Route Traffic From A Single Host Through A Specific Interface?

Aug 21, 2010

I have a linux router with 2 physical ISPs and a VPN tunnel that all my traffic passes through. I would like to setup a rule to redirect all traffic from one internal IP address (10.0.0.x) through the physical link only. My current script is as follows.

iptables -F
iptables -X
echo 1 > /proc/sys/net/ipv4/ip_forward

[code]....

My goal is to do something similar to the mangle on the tor traffic, but for an entire host.

View 2 Replies View Related

CentOS 5 Networking :: Kernel Rpm Install After Error "Bringing Up Interface Eth0: Device Eth0 Has Different MAC Address Than Expected, Ignoring"

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

Networking :: Cannot Ping With Command - Ping IP - Address But Can Ping With - Ping IP -I Eth0

Jul 15, 2011

I am using an virtual machine. where I need to ping from one machine to another. earlier I was able to ping. But after going to google.com once, I cannot ping back to this machine.

But if I gave ping -I eth1 <IP> then I can ping.

I cannot install any package, so tell me solution which includes not installing any package.

View 2 Replies View Related

Ubuntu :: Program To Specific Network Interface?

Mar 23, 2010

Is there a way to make a program use a specific network interface ? When using my laptop at work i may be physicaly connected to multiple networks. i was wondering if i can make sure that certain applications use a specific network interface. I would google around for the answer but i cant figure out how to phrase it correctly for a search.

View 2 Replies View Related

Ubuntu Networking :: Unable To Ping Over Wireless But Can Ping Over Wired?

Jul 24, 2010

I have two machines on this network, one running Ubuntu and the other running Fedora.

When I'm using the Wireless network on the Ubuntu machine, I cannot ping the Fedora machine. Everything else works. I can browse the net fine.

If I switch over to the Wired Network then I can ping the other machine.

I don't understand why ping doesn't work only over the Wireless. I can ping the router so I'm guessing it's getting blocked by the router but I didn't block ICMP traffic.

I tried asking on IRC and they ran out of ideas too to find out where the problem is.

View 7 Replies View Related

General :: Running Web Browser On A Specific Network Interface?

Feb 26, 2011

suppose I have multiple interfaces installed on my machine. The question is how to specify which interface to use while starting a web-browser.What I would like to make possible is something like:Code:browser_name interface addressif it is possible in for any web-browser or via scripts please advise me accordingly.

View 7 Replies View Related

Networking :: Debian 5 - After SysCp Installation And Configure Ping Valure - Ping - Unknown Host

Jul 9, 2010

Ive got a problem on my server ....installed Debian 5 , Webmin and than syscp settung up syscp ready ....

I try to ping "localhost" ansver ping: unknown host
I try to ping "localhost." there is a host with IP 127.0.0.1

I need it to change it in "localhost"

Is that the bind9 maybe?

View 1 Replies View Related

Debian Configuration :: Routng Traffic To A Website Via A Specific Interface

Jul 30, 2011

I am running Debian Squeeze on an old pc (AMD K62-500) which serves as my multiwan router and torrent box. Internet uplink is provided via a dsl line and 2 wireless canopy modules.

Setup has been generally fine except when connecting/downloading as free user from sites like rapidshare, hotfile, filesonic, etc. The problem arises when I am connected to these sites using the wireless uplinks because of the shared public ip. I don't really download that much using direct download methods so I don't really see myself being a premium user from these sites.

If these sites are on a specific ip or ip range, an entry on the static routing table would have been fine but when I tried using ping, a different ip would appear to reply each time.

I wonder if there can be a solution like using iptables where in traffic to and from these sites will only use the NIC connected to the dsl line.

View 1 Replies View Related

Networking :: BIND9 SLOW Ping When Ping By Hostname

Feb 1, 2011

I just installed my first EVER bind DNS server. I am running bind9 on Ubuntu 10.04. Everything seems to be working great except one thing: If I ping a host that I have set up in bind by its HOSTNAME the pings take 5-6 seconds to reply/print to the screen between each echo response. If I ping by the host's IP address, they echo back very quickly.

I have read that IPv6 can cause this, but I have disabled it in /etc/sysctl.conf and the problem still exists.

I know everyone says this can't be a DNS issue, but this never was an issue with dnsmasq (which i was using prior), and it doesn't make sense that the ping are ONLY slow when pinging by hostname and not IP.

Configs below:

Ping by hostname - there is a 5-6 second delay between each one of the responses:

Code:

Ping by IP - the responses come VERY quickly one after the other:

Code:

/etc/resolv.conf:

Code:

Code:

rev.0.168.192.in-addr.arpa:

Code:

View 10 Replies View Related

Networking :: Can't Ping Past Gateway / Can Ping Server From Outside

Apr 29, 2010

So, I have an Virtual Machine running CentOS 5.4. It sits behind a hardware firewall which also does NAT'ing. I've set up plenty of these, so I know for sure the firewall and NAT rules are set up correctly. From the host, I can ping anything in my subnet and the gateway. But I can't ping anything else beyond the gateway. I can perform DNS queries and when I try to ping, it finds the appropriate IP address.But from the outside, I can ping the PUBLIC address (It's a 1 public to 1 private address NAT, not 1 public to multiple private). I've tried it with IPTABLES on and off, with no change.

View 11 Replies View Related

Networking :: Ping Connection To Router OK But No Ping Between Boxes In LAN

May 26, 2010

I have Mandriva One 2009.0 (192.168.1.100) on one box and Mandriva Free 2010.0 (192.168.1.118) on the other. I can ping router (192.168.1.1) from both of these boxes but I can't ping one box to the other and the other way around. What's going on?.

Do I have to change some settings in router?. Or is it firewall issue on those two machines?. Both of these boxes are connected by cable. Symbol of the router: TL-WR340G.

View 2 Replies View Related

SUSE :: ADSL Router (Ping - Kinternet) - Error: Cannot Read Real Interface For Eth-bus-pci-0000:04:00.0

Jul 19, 2010

recently I have installed a suse 10 sp2 on my computer. I have a big problem about connecting to my ADSL Router. The problem is that I can't ping the router at all and the Kinternet log is prompted that

status is: disconnected
trying to connect to smpppd
connect to smpppd
Status is: disconnected
error: cannot read real interface for eth-bus-pci-0000:04:00.0

I can easily open the web page of my router with windows OS but in the suse I can not do that with firefox.

View 6 Replies View Related

Networking :: ATT Uverse DHCP Not Assigning To Red Interface Interface On Smoothwall?

Feb 14, 2010

I just had an ATT Uverse RG installed. However my Smoothwall router that previously worked fine with the ADSL SpeedStream is no longer accepting an address assignment DHCP ip address from this new gateway. (3800HGV-B)Any thoughts ideas or experience working with this hardware? ATT only supports Windows and Mac

View 2 Replies View Related

Networking :: Prevent Auto Up An Interface At /etc/network/interface File ?

Jul 18, 2011

I have a ppp0 entry with post-up options like this

mapping ppp0
map none photon-plus motorola
map timeout: 12

[code]...

View 8 Replies View Related

Fedora Networking :: Xp Can Ping 10 - But Can't Ping Xp

May 21, 2009

I have connected xp and fedora through crossover cable . xp has ip address 192.168.0.1/24 (manually assigned) fedora has 192.168.0.2/24 with default route equal to 192.168.0.1

I can ping fedora from xp computer but i can't able to ping xp from fedora computer.

I have manully edit the /etc/sysconfig/network-scripts/ifcfg-eth0 file with correct subnet mask and ip address because when i tried to give ip address manully in network manager the subnetmask is replaced with gateway address don't know why.

Now i want to share internet through crossover cable . xp is connected to internet through wireless usb adapeter.

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved