LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2014, 11:09 PM   #1
paulus89
LQ Newbie
 
Registered: Jun 2014
Posts: 26

Rep: Reputation: Disabled
why my VLAN users are unable to ping outside


Dear All,

why my VLAN users are unable to ping outside (ie. ping 8.8.8.8 or ping www.google.com)

Squid box is:

Eth0 10.100.100.6 --> gateway to 202.1.2.3
Eth0.5 192.168.2.6

my physical net is 10.100.100.0/24

and my VLAN is 192.168.2.0/24
my VLAN users gateway to 192.168.2.6

please help

thanks a lot in advance
 
Old 07-22-2014, 05:12 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
You can traceroute and check from where its getting rejected. Also check iptables

Thanks
 
Old 07-22-2014, 10:21 AM   #3
paulus89
LQ Newbie
 
Registered: Jun 2014
Posts: 26

Original Poster
Rep: Reputation: Disabled
Hi..
it is not rejected.. it stays at 192.168.2.6, it seems like it does not know where to go..

need help

thanks
 
Old 07-22-2014, 01:11 PM   #4
lsalab
LQ Newbie
 
Registered: Jan 2009
Posts: 20

Rep: Reputation: 3
Is the forwarding enabled? check the value of /proc/sys/net/ipv4/ip_forward, it should be in 1 for it to work.

Also, check that you are allowing the forwarding of packets via iptables. Maybe you have firewall rule rejecting or dropping the network packages.

as root: # iptables -nvL FORWARD

Finally, if you are forwarding everything, check that you are either masquerading or applying a source nat to the outgoing traffic in your internet interface.

as root: # iptables -t nat -nvL POSTROUTING
 
Old 07-22-2014, 02:49 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 16,489

Rep: Reputation: 2412Reputation: 2412Reputation: 2412Reputation: 2412Reputation: 2412Reputation: 2412Reputation: 2412Reputation: 2412Reputation: 2412Reputation: 2412Reputation: 2412
A vlan tends to be used to secure a connection. What you are now asking it to do is un-vlan it. lsalab may have correct idea or similar solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to ping/ssh/connect channel bonding from different VLAN albie17 Linux - Networking 10 03-01-2011 01:47 AM
RHEL4.5: Can't ping VLAN IP on same network/subnet yujinn Linux - Newbie 1 08-03-2009 06:30 AM
Unable to ping : ping: unknown host PKumar Linux - Networking 4 10-31-2007 12:43 AM
Unable to use wget and unable to ping machine from external source grunshaw Linux - Networking 3 10-24-2006 08:46 AM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM


All times are GMT -5. The time now is 03:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration