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!
|