Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th December 2009, 00:14
gasbie gasbie is offline
Junior Member
 
Join Date: Nov 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Multi-Homed Networking in Linux (CENTOS 5.4)

Guys, please help me out. I'm really stuck on this project.
I'm trying to set up a multi-homed network. Click on the jpeg below to see
my setup diagram. Is that right. I'm using a 8 port netgear switch. port 1-3
is for vlan 100 and port 4-6 is for vlan200. port 7 is for management and port
8 is for printer. Both port 7 and port 8 are members of vlan 1. As you can see,
I have connected each vlan (vlan 100 and vlan 200) to the router so that computers
on these vlan can communicate with each other. But my main problem are as follows:

How do I define the dhcpd.conf scope to include all these networks?
How do I configure the dhcp server to distribute ip address to various networks?
Does eth0 has to be member of the vlan 100 or vlan200 or can I just connect the eth0
cable to vlan1, which is the default?
I created eth0.100 and eth0.200 on interface eth0. Which network should the physical eth0
be in? Do I have to define a network and netmask for the physical eth0 or leave it as default
since it has many other vlan on it?
How can I reroute stuff in and out of these networks?

Please if you have done this setup before, I will appreciate if someone can tutor me through
this project. Thanks
Attached Images
 
Reply With Quote
Sponsored Links
  #2  
Old 16th December 2009, 17:34
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
 
Default

create vlan interfaces for all the vlans you are going to dish out dhcp addresses to on the server, then use pools to assign the dhcp parameters per vlan. look at
Code:
man dhcpd.conf
for details

for the vlans to talk to each other you need to enable ip forwarding on the linux box, you may want to use iptables as well to restrict who talks to who.

if vlan1 is a native vlan then you can just connect the cable as the switch will allow transmission of untagged frames for this vlan.

You really do not have to do any routing as the default gateway for each vlan will be an interface on the linux machine which is directly connected to the other vlan's and has a route for each in its routing table.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unsupported memory accesses after HowTo Installing Xen On An Ubuntu 8.04 petervanbussel HOWTO-Related Questions 10 20th December 2009 20:46
Centos 5.2 + ISPConfig 3 tutorial - Problem with email tanakskool Server Operation 1 3rd June 2009 17:22
Postfix Problems Rocky Installation/Configuration 22 14th September 2006 10:03
Problems installing NForce4 sound drivers Wraithfire Installation/Configuration 21 16th April 2006 18:30
KErnel not showing all my memory Jorem Kernel Questions 8 13th April 2006 13:59


All times are GMT +2. The time now is 22:06.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.