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
ADVERTISEMENT
Aug 25, 2009
When I create virtual ethernet interface and do a ping -I <v_int> <host> the outgoing address is the one of the physical interface and NOT the virtual interface.Is there no chance that trafic will go out with virtual interface address??Incoming trafic is done well i.e. responds to the virtual interface have the virtual address.
My problem is that I have 2 modems and want to check both default gw behind the modems.
If I do a "normal" ping both are reachable over default route even the modem which is not the default route will not work because ping goes over the working modem.So I have 2 routing tables and want to route the virtual interface to one modem the other to the other modem
View 3 Replies
View Related
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
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
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
View Related
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
Aug 28, 2010
I've a weird problem about my honeypot project. All start from installation until running process is going smoothly but when I try to ping my honeyd vm from honeyd host it couldnt but it can be ping from other machine inside my local network. I am also usinng arpd for ARP request reply and standard honeyd config.
View 1 Replies
View Related
Mar 24, 2010
My Eth0 has 3 virtual Ethernet (eth0:1, eth0:2, eth0:3)
Eth0 -> 202.1.1.1
Eth0:1 -> 202.1.1.2
Eth0:2 -> 202.1.1.3
Eth0:3 -> 202.1.1.4
I am unable to ping them (202.1.1.2 - 202.1.1.4) from Client's PC.
View 1 Replies
View Related
May 9, 2011
Operating system: Debian Lenny 5.08 (2.6.26-2-amd64 #1 SMP Tue Jan 25 05:59:43 UTC 2011 x86_64 GNU/Linux).
I have a network iface eth0 with 2 virtual IP addresses (117.20.2.111 117.20.2.112). The virtual IP addresses I have setup by simply running:
Code:
ifconfig eth0:1 117.20.2.111 up
This has worked fine for 2 virtual IP's but the third one (117.20.2.133) will not respond to ping's though it does respond to arpping's. There are no firewall iptable rules:
Code:
iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Output of route -n:
Code:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
117.20.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
117.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth0
0.0.0.0 117.20.2.1 0.0.0.0 UG 0 0 0 eth0
Output of ip rou ls:
Code:
117.20.2.0/24 dev eth0 proto kernel scope link src 117.20.2.110
117.0.0.0/8 dev eth0 proto kernel scope link src 117.20.2.111
default via 117.20.2.1 dev eth0
View 2 Replies
View Related
Jun 17, 2011
I have a webserver with 3 virtual interfaces named eth0:1 eth0:3 and eth0:3. Until yesterday all the virtual ip's worked but eth0:1 decided that it just won't work anymore since yesterday. The configs are:
eth0
Code:
DEVICE=eth0
USERCTL=no
ONBOOT=yes
BOOTPROTO=none
BROADCAST=xx.xxx.26.190
NETWORK=xx.xxx.26.160
NETMASK=255.255.255.224
IPADDR=xx.xxx.26.174
GATEWAY=xx.xxx.26.161
eth0:1
Code:
MTU=""
NETMASK=255.255.255.224
ONPARENT=yes
BROADCAST=xx.xxx.26.191
BOOTPROTO=none
NAME=""
IPADDR=xx.xxx.26.175
NETWORK=xx.xxx.26.160
ONBOOT=yes
DEVICE=eth0:1
eth0:3
Code:
MTU=""
NETMASK=255.255.255.224
ONPARENT=yes
BROADCAST=xx.xxx.26.191
BOOTPROTO=none
NAME=""
IPADDR=xx.xxx.26.182
NETWORK=xx.xxx.26.160
ONBOOT=yes
DEVICE=eth0:3
eth0:4
Code:
MTU=""
NETMASK=255.255.255.224
ONPARENT=yes
BROADCAST=xx.xxx.26.191
BOOTPROTO=none
NAME=""
IPADDR=xx.xxx.26.187
NETWORK=xx.xxx.26.160
ONBOOT=yes
DEVICE=eth0:4
route-eth0
Code:
ADDRESS0=0.0.0.0
NETMASK0=0.0.0.0
GATEWAY0=xx.xxx.26.161
eth0:3 and eth0:4 still work, but 2 doesn't
View 4 Replies
View Related
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
Jul 1, 2009
I am applying a virtual interface (eth0:0) which is failing after the system reboots. It actually cause the default interface (eth0) to fail as well, I must manually go in and remove the configuration for the eth:0:0 and restart the network to get it running again. How do I successfully add a Virtual interface to Fedora 11 that will stick when rebooted.
eth0: 192.168.0.200, 255.255.255.0, 192.168.0.1, BROADCAST: 192.168.99.255
eth0:0 192.168.0.98, 255.255.255.0, 192.168.0.1, BROADCAST: 192.168.99.255
View 1 Replies
View Related
Oct 30, 2010
how to do a virtual interface under linux. I'm using for example eth0:1 so ifconfig eth0:1 192.168.0.20 netmask 255.255.255.0 for example.
However if i do eth0:1 hw ether 00:11:22:33:44:55 It changes eth0 as well. Where should i look into for creating a separate virtual interface that's simply bridged with one of the existing interfaces that has a separate ip and hw address that the os handles.
View 1 Replies
View Related
Mar 10, 2009
is it possible to setup a DHCP server using the loopback or a virtual interface? I installed Sun VirtualBox on my fedora system and want to try and kickstart them from within the same box on a virtual network. Is this possible and has anyone done it? I only have a single NIC in the box and it is on my public network.
View 1 Replies
View Related
Jul 14, 2010
I need to make some solution for my home network, I have a linux server which is: Linux Centos 5.5. So, what I need to do is to make a virtual interface for my clients which set its bandwidth up to 1Mb/s shared to them, but my real bandwidth is 2Mb/s. Also, after that, I have two questions:
1. How to set this rate limitation to that interface?
2. How to edit this interface to let it work and route the client data to my ADSL router?
I'm already generate the virtual interface using webmin managment tool, so I need to set its rate and route data.
View 14 Replies
View Related
Apr 14, 2011
I found multiple sites explaining how to add IPs to a network interface as virtual interface like eth0:0. However I can add IPs to an interface as well using the ip command: ip a a 192.168.2.2/24 dev eth0 What I want to know is how I can make this persistent on rhel/centos.
View 2 Replies
View Related
Nov 14, 2009
I have Linux server with VMware Server 1.0.8. When I creating a virtual machine, I can not "send" a PING to the virtual machine. In the virtual machine, I have installed CentOS 5.3 (32bit). In the virtual machine I have defined the addresses IP. So, whey I can't "sent" a ping to the virtual machie? I have to set something on the Linux server?
View 3 Replies
View Related
Jan 10, 2010
I see there is a driver module for network card in my system. I have 2 identical network cards in my system the 1st one works well, but the second one.. My system refuses to create interface on it.... lspci
[Code]...
View 3 Replies
View Related
Jul 19, 2011
I'm having difficulty setting up my desired network infrastructure. Here's the situation:
I'm currently using an Ubuntu box as homeserver to do everything from sharing internet (via NAT), over DHCP & DNS to filesharing and even virtualisation.
However, since my machine is capable of virtualising Astaro Security Gateway properly, I would like to transfer and split up responsibilities.
I want to have my Astaro fully responsible for the internet and act as the gateway, and along with that disconnect my physical box from the internet and put it behind Astaro (basically making it just a member of the internal network).
The difficulty I'm having with this is that Astaro is running virtually on the physical box, and I can't seem to figure out how to configure the external interface. It needs to be up for Astaro to be able to use it, but it should not give the physical machine access to the external network.
I'm thinking I could set it to manual and not give it an ip address, but I'm not sure on this.
View 3 Replies
View Related
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
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
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
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
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
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
Mar 10, 2009
Running Fedora 10, I installed CentOS 5 in Virtualbox, but I can't ping the Virtual Machine...
From within CentOS, I can ping my laptop [known as the host?] but from the laptop I can't ping the CentOS Virtual Machine. I tried turning off the firewall on both too... CentOS was able to access the internet through my laptop right away without any configurations too.
Unless someone has an idea to resolve the above, I am also wondering about something else VirtualBox-related:
To see if it was possible to get around the above issue, I was going to install another CentOS virtual machine to see if I can get them to communicate both ways [if at all], but to do so, I think I have to install CentOS AGAIN on another allocated amount of hard disk space. This will take some time, so I was wondering if anyone knew if it was possible to just create a quick duplicate of the previous installation, if you wanted 2 different virtual installations of the same OS.
View 2 Replies
View Related
Jun 28, 2010
I need to ask about Virtual Interface, as I need to use my ethernet interface to act as two ethernet ports. As I need to give eth0 an IP address and give eth0.5 another ip address, and make some natting and other issues. Can I do that with the same interface?
View 3 Replies
View Related
Aug 12, 2010
I have a server with 14 IP's on eth0. I'm using virtual interfaces to handle the IP's, but the iptables don't seem to work on the virtual interface. It blocks ports that I want open. I'm not that great with iptables, I use what I have because it works for me, but as far as tweaking it, I'm pretty lost.
My iptables:
# Simple Firewall configuration
#
# Set default policies --------
*filter
:INPUT ACCEPT [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
#
# Internal Networks -----------
#-A INPUT -s <private.class.C>/24 -d <private.class.C>/24 -i eth1 -j ACCEPT
#
# Loopback --------------------
-A INPUT -s 0/0 -d 0/0 -i lo -j ACCEPT
#
# Accept established connections
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
#
# Services --------------------
#
# For SSH gateway
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 22 -m state --state NEW -j ACCEPT
#
# For SMTP gateway
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 25 -m state --state NEW -j ACCEPT
#
# For FTP server
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 20 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 21 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 53 -m state --state NEW -j ACCEPT
#
# HTTP services
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 80 -m state --state NEW -j ACCEPT
#
# HTTPS services
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 443 -m state --state NEW -j ACCEPT
#
# POP-3 services
#-A INPUT -p tcp -s 0/0 -d 0/0 --dport 110 -m state --state NEW -j ACCEPT
#
# IMAP services
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 143 -m state --state NEW -j ACCEPT
#
#PLESK
#-A INPUT -p tcp -s 0/0 -d 0/0 --dport 8443 -m state --state NEW -j ACCEPT
#
#Games
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 28960 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 28960 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 27666 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 27666 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 28961 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 28961 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 28962 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 28962 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 27015 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 27015 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 27016 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 27016 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 27017 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 27017 -m state --state NEW -j ACCEPT
-A INPUT -p tcp -s 0/0 -d 0/0 --dport 27020 -m state --state NEW -j ACCEPT
-A INPUT -p udp -s 0/0 -d 0/0 --dport 27020 -m state --state NEW -j ACCEPT
# Disallow fragmented packets
-A INPUT -f -j DROP
#
# Log & Block broadcast packets
-A INPUT -d 255.255.255.255/0.0.0.255 -j LOG
-A INPUT -d 255.255.255.255/0.0.0.255 -j DROP
# Log & Block multicast packets
-A INPUT -d 224.0.0.1 -j LOG
-A INPUT -d 224.0.0.1 -j DROP
#
# Log and drop all other incoming packets
-A INPUT -j LOG
-A INPUT -j DROP
#
COMMIT
View 18 Replies
View Related
Jul 19, 2010
I have followed th given site for HA configuration in my virtualbox but heartbeat is not assigning virtual IP for interface eth0 [URL]...
View 1 Replies
View Related
Nov 7, 2010
I'm looking for a Postfix Management Web interface for user, domains, etc... The problem is I'm not using mysql for domains/users, so I can't use postfixadmin. I use virtual mailboxes as described here: [URL]
Basically all mappings are saved inside an /etc/postfix/vmaps file. The users/passwords files are in /home/vmail/passwd and /home/vmail/shadow. Users are in /home/vmail/$domain/$user
I searched for a web management tool that supports my config for weeks now, and can't seem to find any...
View 7 Replies
View Related