Networking Forums

Networking Forums > Computer Networking > Linux Networking > Change Linux VLAN/Gateway Routing to a Layer 3

Reply
Thread Tools Display Modes

Change Linux VLAN/Gateway Routing to a Layer 3

 
 
Jacob
Guest
Posts: n/a

 
      03-10-2006, 04:13 PM
I was hoping I could give a sample config and scenario and some of the
Linux geniuses might be able to assist. Ok here goes... I have a linux
gateway/iptables box that has multiple virtual interfaces for VLAN's
here are a few (MAC's hidden):

eth0.3 Link encap:Ethernet HWaddr 00:C0:9F:4B:77:69
inet addr:10.2.0.1 Bcast:10.2.0.255 Mask:255.255.255.0
inet6 addr: ****::***:****:****:7769/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:833768765 errors:0 dropped:0 overruns:0 frame:0
TX packets:842427306 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3265712298 (3.0 GiB) TX bytes:2767646375 (2.5 GiB)

eth0.100 Link encap:Ethernet HWaddr 00:C0:9F:4B:77:69
inet addr:10.2.100.1 Bcast:10.2.100.255 Mask:255.255.255.0
inet6 addr: ****::***:****:****:7769/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:154709260 errors:0 dropped:0 overruns:0 frame:0
TX packets:535039760 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2551170194 (2.3 GiB) TX bytes:1730995465 (1.6 GiB)

The routing table is basic and looks like the following:

10.2.0.0 * 255.255.255.0 U 0 0 0
eth0.3
10.2.100.0 * 255.255.255.0 U 0 0 0
eth0.100

Lastly, there is a DHCP relay service running on the machine to relay
to a Linux DHCP server:
subnet 10.2.0.0 netmask 255.255.255.0 {
range 10.2.0.50 10.2.0.200;
option routers 10.2.0.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.2.0.255;
option netbios-node-type 8;
default-lease-time 7200;
max-lease-time 14400;
option ntp-servers 10.2.0.1, 10.2.0.2;
}
subnet 10.2.100.0 netmask 255.255.255.0 {
range 10.2.100.50 10.2.100.200;
option routers 10.2.100.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.2.100.255;
option netbios-node-type 8;
default-lease-time 7200;
max-lease-time 14400;
option ntp-servers 10.2.0.1, 10.2.0.2;

So, with that said, what I would really like to do is utilize the layer
3 switch we have here. I have started by assigning IP addresses to the
VLANs on the switch so for example VLAN 100 has the IP of 10.2.100.1.
I also have configured DHCP forwarding to the DHCP server. Is this all
I have to do in order to successfully route and DHCP between subnets?
Please let me know if there is something I may be missing... Thanks!

 
Reply With Quote
 
 
 
Reply

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two Separate gateway same VLan.. Possible? YADER.CELL@gmail.com Linux Networking 3 02-02-2008 01:43 PM
Application Layer Gateway: custom packet treatment Ludovic Felten Windows Networking 0 11-30-2007 04:38 PM
DHCP Renew after VLAN Change MC Windows Networking 6 01-05-2006 06:39 PM
Linux Gateway routing problem KeesS Linux Networking 9 08-19-2005 09:08 AM
linux robust?can build application layer firewall on linux? happy Linux Networking 9 09-19-2004 06:54 PM



1 2 3 4 5 6 7 8 9 10 11