LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-27-2014, 10:12 AM   #1
paulus89
LQ Newbie
 
Registered: Jun 2014
Posts: 26

Rep: Reputation: Disabled
how to set Routing and DNS for VLAN?


Dear All,

I have my Eth0+Eth1 (Bond0) bonding as follow:

== bond0
BOOTPROTO=none
NAME=""
BONDING_OPTS=mode=0
NM_CONTROLLED=no
MACADDR=""
IPV6INIT=no
DEVICE=bond0
MTU=""
NETMASK=255.255.255.0
BROADCAST=10.100.100.255
IPADDR=10.100.100.3
NETWORK=10.100.100.0
DNS1=10.100.100.6
USERCTL=no
ONBOOT=yes

== eth0
BOOTPROTO=none
MASTER=bond0
USERCTL=no
ONBOOT=yes
SLAVE=yes
DEVICE=eth0

== eth1
BOOTPROTO=none
MASTER=bond0
USERCTL=no
ONBOOT=yes
SLAVE=yes
DEVICE=eth1

and I also create VLAN in Eth0 as follow:

=== eth0.1
NAME=""
BOOTPROTO=none
MACADDR=""
IPV6INIT=no
DEVICE=eth0.1
MTU=""
NETMASK=255.255.255.192
BROADCAST=192.168.2.63
IPADDR=192.168.2.3
VLAN=yes
NETWORK=192.168.2.0
ONBOOT=yes
USERCTL=no


how to set Routing and DNS for VLAN?

Please help

Thanks

Pau
 
Old 06-27-2014, 10:58 AM   #2
canussie
Member
 
Registered: Jun 2014
Location: Calgary
Posts: 50

Rep: Reputation: 7
In the interface configruation file set "GATEWAY=<your router>"

Put the DNS information in /etc/resolv.conf.
 
Old 06-27-2014, 11:58 AM   #3
paulus89
LQ Newbie
 
Registered: Jun 2014
Posts: 26

Original Poster
Rep: Reputation: Disabled
Thank you..

LAN 192.168.1.0/24 Gateway 192.168.1.1 (Server DHCP, Squid, DNS are in the same box @192.168.1.1)
VLAN 192.168.2.0/24

User on LAN 192.168.1.0/24 are allowed for internet browsing neither do for VLAN User (192.168.2.0/24)

Server and VLAN are in the same Managed Switch and there is a jumper cable to UnManaged Switch to connect LAN Users to the server

Currently, LAN users are unable to do internet browsing.. what's wrong?..
Could you or any body please help..?

Note. I am using Managed Switch HP Switch 1810-8G v2.

Thank you
Pau

Last edited by paulus89; 06-27-2014 at 12:02 PM.
 
  


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
LXer: RCPlive: Inter-VLAN Routing LXer Syndicated Linux News 0 11-19-2013 11:13 PM
shorewall, vlan routing alitabas Linux - Networking 3 09-07-2012 07:23 PM
routing control vlan with shorewall alitabas LinuxQuestions.org Member Intro 0 08-13-2009 10:01 PM
VLAN routing/default gateway ? bala.linux Linux - Networking 8 03-18-2009 04:16 AM
VLAN Routing teamchachi Linux - Networking 0 06-14-2005 09:54 AM

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

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