LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-11-2012, 12:54 PM   #1
watts3000
Member
 
Registered: Jul 2004
Posts: 58

Rep: Reputation: 15
not able to route vlan traffic cent os 6.2


Guys I'm having a routing problem with Centos 6.2 actually I can't really determine where it's coming from but it seems like routing whenever I try to ping a host on a different subnet I get destination host unreachable. I have a managed Dell Powerconnect 2816 switch where I've gone in and configured a few vlans I have made port 16 the trunk port. I have that port running to a Centos 6.2 box using an Intel Pro 1000 Dual MT nic below is the base config of my ETH0 and sub interfaces off of ETH0. Also I've already went to /etc/sysctl.conf and enabled forwarding I also ran lsmod and it looks like the 802.1q module is loaded.

DEVICE="eth0"
BOOTPROTO=static
HWADDR=00:1B:21:0B:80:56
ONBOOT="yes"
TYPE=Ethernet
NM_CONTROLLED="no"




VLAN=yes
DEVICE="eth0.2"
BOOTPROTO=static
ONBOOT="yes"
TYPE=Ethernet
IPADDR=10.1.2.2
NETMASK=255.255.255.0
NM_CONTROLLED="no"


VLAN=yes
DEVICE="eth0.3"
BOOTPROTO=static
ONBOOT="yes"
TYPE=Ethernet
IPADDR=10.1.3.2
NETMASK=255.255.255.0
NM_CONTROLLED="no"



VLAN=yes
DEVICE="eth0.7"
BOOTPROTO=static
ONBOOT="yes"
TYPE=Ethernet
IPADDR=10.1.1.2
NETMASK=255.255.255.0
NM_CONTROLLED="no"


Module Size Used by
autofs4 26888 3
sunrpc 243758 1
p4_clockmod 20093 1
freq_table 4881 1 p4_clockmod
speedstep_lib 5401 1 p4_clockmod
8021q 23575 0
garp 7344 1 8021q
stp 2173 1 garp
llc 5642 2 garp,stp
ipt_REJECT 2383 2
nf_conntrack_ipv4 9506 2
nf_defrag_ipv4 1483 1 nf_conntrack_ipv4
iptable_filter 2793 1
ip_tables 17831 1 iptable_filter
ip6t_REJECT 4628 2
nf_conntrack_ipv6 8748 2
nf_defrag_ipv6 12182 1 nf_conntrack_ipv6
xt_state 1492 4
nf_conntrack 79453 3 nf_conntrack_ipv4,nf_conntrack_ipv6,xt_state
ip6table_filter 2889 1
ip6_tables 19458 1 ip6table_filter
ipv6 322029 43 ip6t_REJECT,nf_conntrack_ipv6,nf_defrag_ipv6
ppdev 8729 0
parport_pc 22978 0
parport 37265 2 ppdev,parport_pc
e1000 167662 0
microcode 112594 0
dcdbas 9219 0
serio_raw 4818 0
i2c_i801 11231 0
iTCO_wdt 13662 0
iTCO_vendor_support 3088 1 iTCO_wdt
sg 30124 0
tg3 140819 0
ext4 364410 3
mbcache 8144 1 ext4
jbd2 88738 1 ext4
sr_mod 16228 0
cdrom 39771 1 sr_mod
sd_mod 39488 3
crc_t10dif 1541 1 sd_mod
pata_acpi 3701 0
ata_generic 3837 0
ata_piix 22846 0
ahci 40455 2
i915 545870 1
drm_kms_helper 33236 1 i915
drm 230675 2 i915,drm_kms_helper
i2c_algo_bit 5762 1 i915
i2c_core 31276 5 i2c_i801,i915,drm_kms_helper,drm,i2c_algo_bit
video 21032 1 i915
output 2505 1 video
dm_mirror 14101 0
dm_region_hash 12170 1 dm_mirror
dm_log 10122 2 dm_mirror,dm_region_hash
dm_mod 81500 11 dm_mirror,dm_log





Destination Gateway Genmask Flags Metric Ref Use Iface
10.1.1.0 * 255.255.255.0 U 0 0 0 eth1
10.1.1.0 * 255.255.255.0 U 0 0 0 eth0.7
10.1.2.0 * 255.255.255.0 U 0 0 0 eth0.2
10.1.3.0 * 255.255.255.0 U 0 0 0 eth0.3
link-local * 255.255.0.0 U 1003 0 0 eth0
link-local * 255.255.0.0 U 1004 0 0 eth1
link-local * 255.255.0.0 U 1014 0 0 eth0.2
link-local * 255.255.0.0 U 1015 0 0 eth0.3
link-local * 255.255.0.0 U 1016 0 0 eth0.7
 
Old 07-11-2012, 12:57 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Try creating an route-eth* where * is your eth that you are routing. You would want to tell it which gateway to use for the vlan.

So for instance:

10.1.0.0/16 via 10.1.2.1
 
  


Reply



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
mix tagged(vlan) and untagged traffic. Steviepower Linux - Networking 5 04-27-2012 09:17 AM
Route non-vlan packet to a vlan interface mic.sed Linux - Networking 2 04-23-2010 02:39 AM
route from 1 vlan to another deathsfriend99 Linux - Networking 2 07-18-2009 11:03 PM
VLAN, Bridge, Route - Cant get my head around it towme Linux - Networking 1 05-31-2009 05:49 PM
Traffic Control with tc qdiscs and tc filter on VLAN tagged network amandler Linux - Networking 2 10-23-2008 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:46 AM.

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
Open Source Consulting | Domain Registration