=?gb2312?B?u9i4tA==?=:Re: have a question,please give me help,thank you very much!!

gudujuan 52079 gudujuan at huawei.com
Tue Apr 15 02:55:28 UTC 2008


hi:
   Thank you very much!
   The real configure is as following. I need 232 "share-network"s, but when i restart the dhcpd service, the wrong information is "interface eth0 mathes multiple shared networks".
why? do i need other configurations to support the multiple shared networks?
thank you very much! 
  


shared-network "gbvddrxxxxm001c76001" {
#gbvddrxxxxm001c76001
   subnet 123.236.248.0 netmask 255.255.248.0 {
      option routers 123.236.248.1;
      option broadcast-address 123.236.255.255;
#
      pool {
         failover peer "BRAS";
         deny dynamic bootp clients;
         range 123.236.248.2 123.236.255.254;
         allow unknown clients;
         deny members of "voip-device";
         deny members of "stb-device";
      }
   }
#gbvddrxxxxm001c76001_IAD
subnet 10.200.0.0 netmask 255.255.255.192 {
      option routers 10.200.0.1;
      default-lease-time 3600;
      max-lease-time 3600;
#
      option broadcast-address 10.200.0.63;
      pool {
         failover peer "BRAS";
         deny dynamic bootp clients;
         range 10.200.0.2 10.200.0.62;
         allow members of "voip-device";
         deny members of "stb-device";
      }
  }
#gbvddrxxxxm001c76001_STB
subnet 10.233.64.0 netmask 255.255.192.0 {
      option routers 10.233.64.1;
      default-lease-time 7776000;
      option broadcast-address 10.233.127.255;
      pool {
         failover peer "BRAS";
         deny dynamic bootp clients;
         range 10.233.64.2 10.233.127.254;
         deny members of "voip-device";
         allow members of "stb-device";
      }
   }
}
shared-network "gcahdbelbgb001c76001" {
#gcahdbelbgb001c76001
   subnet 124.125.252.0 netmask 255.255.254.0 {
      option routers 124.125.252.1;
      option broadcast-address 124.125.253.255;
#
      pool {
         failover peer "BRAS";
         deny dynamic bootp clients;
         range 124.125.252.2 124.125.253.254;
         deny members of "voip-device";
         deny members of "stb-device";
      }
   }
#gcahdbelbgb001c76001_IAD
subnet 10.192.64.0 netmask 255.255.255.192 {
      option routers 10.192.64.1;
      default-lease-time 3600;
      max-lease-time 3600;
#
      option broadcast-address 10.192.64.63;
      pool {
         failover peer "BRAS";
         deny dynamic bootp clients;
         range 10.192.64.2 10.192.64.62;
         allow members of "voip-device";
         deny members of "stb-device";
      }
  }
#gcahdbelbgb001c76001_STB
subnet 10.250.0.0 netmask 255.255.192.0 {
      option routers 10.250.0.1;
      default-lease-time 7776000;
      option broadcast-address 10.250.63.255;
      pool {
         failover peer "BRAS";
         deny dynamic bootp clients;
         range 10.250.0.2 10.250.63.254;
         deny members of "voip-device";
         allow members of "stb-device";
      }
   }
}
shared-network "gcahdbmmngb001c76001" {
#gcahdbmmngb001c76001
   subnet 124.125.156.0  netmask 255.255.254.0 {
      option routers 124.125.156.1;
      option broadcast-address 124.125.157.255;
#
      pool {
         failover peer "BRAS";
         deny dynamic bootp clients;
         range 124.125.156.2 124.125.157.254;
         deny members of "voip-device";
         deny members of "stb-device";
      }
   }
#gcahdbmmngb001c76001_IAD
subnet 10.192.128.0 netmask 255.255.255.192 {
      option routers 10.192.128.1;
      default-lease-time 3600;
      max-lease-time 3600;
#
      option broadcast-address 10.192.128.63;
      pool {
         failover peer "BRAS";
         deny dynamic bootp clients;
         range 10.192.128.2 10.192.128.62;
         allow members of "voip-device";
         deny members of "stb-device";
      }
  }
#gcahdbmmngb001c76001_STB
subnet 10.250.64.0 netmask 255.255.192.0 {
      option routers 10.250.64.1;
      default-lease-time 7776000;
      option broadcast-address 10.250.127.255;
      pool {
         failover peer "BRAS";
         deny dynamic bootp clients;
         range 10.250.64.2 10.250.127.254;
         deny members of "voip-device";
         allow members of "stb-device";
      }
   }
}
.......



******************************************************************************************
 This email and its attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by phone or em
ail immediately and delete it!
 *****************************************************************************************

----- 原邮件 -----
发件人: Simon Hobson <dhcp1 at thehobsons.co.uk>
日期: 星期一, 四月 14日, 2008 下午9:22
主题: Re: have a question,please give me help,thank you very much!!

> gudujuan 52079 wrote:
> 
> >  I'm using dhcpd-3.0pl1-23 in an office environment.
> 
> That is very old, you really should consider an update.
> 
> >I want to configure two shared-network(for exaple as 
> following),but 
> >DHCP failover without shared-network.How to do??
> >
> >
> >
> >
> >shared-network "test1"{
> >subnet 10.0.1.0 netmask 255.255.255.0 {
> >pool {
> >range 10.0.1.1 10.0.1.254;
> >}
> >}
> >}
> >
> >
> >shared-network "test2"{
> >subnet 10.0.2.0 netmask 255.255.255.0 {
> >pool {
> >range 10.0.2.1 10.0.2.254;
> >}
> >}
> >}
> 
> Do you actually need those shared network statements ? In the 
> config 
> you give, they are not actually doing anything as there is only 
> one 
> subnet in each of them.
> 
> If those two subnets are the only ones you have, then you can 
> remove 
> the shared-network declarations.
> 
> As for failover, have you read the docs ? 'man dhcpd.conf' is a 
> good 
> starting point. But if you are going to use failover, then you 
> REALLY 
> need to be upgrading the software as there have been many bug 
> fixes 
> since the version you are using.
> 
> 
> Finally, do yourself a favour and apply some formatting, it makes 
> the 
> config file a lot easier to read, and more importantly, easier to 
> debug :
> 
> shared-network "test1"{
>   subnet 10.0.1.0 netmask 255.255.255.0 {
>     pool {
>       range 10.0.1.1 10.0.1.254;
>     }
>   }
> }
> ^ ^ ^ - see how the indentation makes the nesting easier to see, 
> and 
> would make any mismatch in '{' and '}' easier to find.
> 
> 


More information about the dhcp-users mailing list