LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-30-2016, 11:15 PM   #1
devUnix
Member
 
Registered: Oct 2010
Posts: 606

Rep: Reputation: 59
Configuring Interfaces to Communicate through Particular VLANs


In an interview with ADOBE, I was asked this question:


There are two VLANs.

There is a Host (Running RHEL 6) has got two interfaces eth0 and eth1. Configure the interfaces such that eth0 will talk through VLAN1 and eht1 through VLAN2 only.

I was/am not sure on that. However, I suggested that it could be done in ifcfg-eth* files for each interface.

Could you please throw some light on it?
 
Old 05-31-2016, 02:11 AM   #2
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
Is there a precondition that eth0 and eth1 were already configured? If yes, do they belong to either VLAN1 or VLAN2 or to any other network? It sounds like just a trick question to me, and the answer would be to configure eth0 and eth1 with an address for VLAN1 and VLAN2, respectively, or using DHCP. And yes, that will be through /etc/sysconfig/network-scripts/ifcfg-eth*.
 
Old 05-31-2016, 02:24 AM   #3
devUnix
Member
 
Registered: Oct 2010
Posts: 606

Original Poster
Rep: Reputation: 59
The interviewer did not say much on that as what I have mentioned in the question is what I got.

However, I asked my Reporting Manager the same question and he says this is not related to configuration on the Linux OS/Server side. This is done on the Switch so it is for Network Operations team. Network Team will tie the MAC of eth0 and eth1 to VLAN1 and VLAN2 respectively on the Switch Ports.

I am not much convinced, though.

Quote:
Originally Posted by ilesterg View Post
Is there a precondition that eth0 and eth1 were already configured? If yes, do they belong to either VLAN1 or VLAN2 or to any other network? It sounds like just a trick question to me, and the answer would be to configure eth0 and eth1 with an address for VLAN1 and VLAN2, respectively, or using DHCP. And yes, that will be through /etc/sysconfig/network-scripts/ifcfg-eth*.
 
Old 05-31-2016, 04:46 AM   #4
ilesterg
Member
 
Registered: Jul 2012
Location: München
Distribution: Debian, CentOS/RHEL
Posts: 587

Rep: Reputation: 72
I think that makes sense. We don't usually configure which address space/network/VLAN the interface belongs to if we were setting up the interface to make use of DHCP, but the network device (such as a switch) can specify the network of the interface and this is where linux would depend on. I think i need to review my networking. lol
 
  


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
KVM guest with 2 network interfaces in diferrent VLANs tklima Linux - Networking 1 07-20-2014 02:26 PM
Communicate between the VLANs in Bridge fails palani.rm Linux - Networking 2 05-28-2014 11:15 AM
Configuring complex network with VLANs and virtual ifaces McGoof Linux - Networking 0 06-26-2011 11:08 PM
the network scripts to create network interfaces for 802.1q VLANs 10 and 11, Lahore Linux - Networking 0 03-18-2009 05:45 AM
Configuring Samba to communicate with an XP machine tubatodd Slackware 20 02-08-2008 07:35 PM

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

All times are GMT -5. The time now is 11:43 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
Open Source Consulting | Domain Registration