LinuxQuestions.org
Visit Jeremy's Blog.
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 02-04-2017, 08:04 AM   #1
netguy2000
Member
 
Registered: Oct 2003
Location: Karachi, PAKISTAN
Distribution: Redhat, Fedora, Open BSD, FreeBSD, SlackWare
Posts: 115

Rep: Reputation: 15
Question vlan interface issue


Dear Gurus,
I am in deep problem, which seem weird.
last time when I configured a linux router with Centos 6.8 and make vlan subinterfaces its works fine, but now on second machine when I installed centos 6.8 and try to configure vlan subinterfaces, I face problems, details are as.

main interface "eth0" , ifcfg file as,

DEVICE="eth0"
BOOTPROTO="none"
HWADDR="00:01:6C6:CE:A0"
NM_CONTROLLED="no"
ONBOOT="yes"
TYPE="Ethernet"
USRCTL=no
ARPCHECK=no

sub interface "eth0.1" tagged with VLAN file is as,

VLAN="yes"
DEVICE="eth0.1"
ONBOOT="yes"
NM_CONTROLLED="no"
BOOTPROTO="static"
IPADDR="192.168.8.15"
IPV4_FAILURE_FATAL="yes"
IPV6INIT="no"
NETMASK="255.255.252.0"
USRCTL="no"
ARPCHECK="no"

but when I configure this vlan interface my machine stop responding over network, neither network PC able to ping 192.168.8.15
Please help me in this problem, my old machine with same configuration works fine.
switch behind this machine having trunk is OK and interface attached with eth0 configured as trunk with allowed all vlans.

prompt response shall be highly appreciated.
 
Old 02-04-2017, 06:44 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,819

Rep: Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144Reputation: 1144
Can you show us the defined network interfaces?
Code:
/sbin/ifconfig -a
Then active interfaces only
Code:
/sbin/ifconfig
BTW vlan ID 1 is usually reserved/used for administrative purposes.
 
  


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
Vlan issue - main interface keeps getting an IP address Red Squirrel Linux - Networking 3 09-28-2013 07:19 PM
[SOLVED] Creating a VLAN interface on top of another VLAN interface jbbroccard2 Linux - Networking 1 05-22-2013 01:25 AM
Route non-vlan packet to a vlan interface mic.sed Linux - Networking 2 04-23-2010 02:39 AM
Help in Vlan-Interface Paris Heng Linux - Networking 1 03-02-2009 05:20 PM
Using tcpdump on a sub-interface vlan mikeotieno Linux - Networking 3 09-24-2008 01:32 PM

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

All times are GMT -5. The time now is 08:12 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