VLAN configuration not working

Christian Kratzer ck-lists at cksoft.de
Sun Dec 14 13:03:58 UTC 2014


Hi,

you have two distinct networks on two unique interfaces:

> eth1.20   Link encap:Ethernet  HWaddr 00:00:00:00:4a:28
>          inet addr:172.16.254.2  Bcast:172.16.254.255  Mask:255.255.255.0
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:207 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0
>          RX bytes:19682 (19.2 KiB)  TX bytes:1291 (1.2 KiB)
>
> eth1.200  Link encap:Ethernet  HWaddr 00:00:00:00:4a:28
>          inet addr:172.16.100.2  Bcast:172.16.100.255  Mask:255.255.255.0
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0
>          RX bytes:0 (0.0 B)  TX bytes:956 (956.0 B)
>
> lo        Link encap:Local Loopback
>          inet addr:127.0.0.1  Mask:255.0.0.0
>          UP LOOPBACK RUNNING  MTU:16436  Metric:1
>          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0
>          RX bytes:788 (788.0 B)  TX bytes:788 (788.0 B)
>

drop the shared network

> shared-network officenet {
>  subnet 172.16.254.0 netmask 255.255.255.0 {
>    pool {
>          option routers 172.16.254.1;
>          option subnet-mask 255.255.255.0;
>          option nis-domain "office.tld";
>          option domain-name "vlan20.office.tld";
>          option domain-name-servers 8.8.8.8, 8.8.4.4;
>          option ntp-servers 0.pool.ntp.org, 1.pool.ntp.org;
>          range 172.16.254.10 172.16.254.250;
>    }
>  }
>  subnet 172.16.100.0 netmask 255.255.255.0 {
>    pool {
>          option routers 172.16.100.1;
>          option subnet-mask 255.255.255.0;
>          option nis-domain "office.tld";
>          option domain-name "vlan200.office.tld";
>          option domain-name-servers 8.8.8.8, 8.8.4.4;
>          range 172.16.100.10 172.16.100.250;
>    }
>  }
> }


you just need the two subnet declarations without the shared network.

Greetings
Christian

-- 
Christian Kratzer                   CK Software GmbH
Email:   ck at cksoft.de               Wildberger Weg 24/2
Phone:   +49 7032 893 997 - 0       D-71126 Gaeufelden
Fax:     +49 7032 893 997 - 9       HRB 245288, Amtsgericht Stuttgart
Mobile:  +49 171 1947 843           Geschaeftsfuehrer: Christian Kratzer
Web:     http://www.cksoft.de/


More information about the dhcp-users mailing list