Jump to content

Recommended Posts

Posted (edited)

Помогите плиз разобраться в чем траблы

В сети необходимо раздавать внешние адреса статические по влану и порту, свичи имеют серые адреса всзвязи с чем ISC ругаается что не знает грит подсеть

 

ISC (1.2.3.1) => QTECH (1.2.3.253 , 172.16.2.121) => client

[code}DHCPDISCOVER from 00:0f:ea:16:16:93 via 172.16.2.121: unknown network segment
DHCPDISCOVER from 00:0f:ea:16:16:93 via 172.16.2.121: unknown network segment[/code]
Вот данные
eth0.900  Link encap:Ethernet  HWaddr 00:25:22:3E:1E:89  
          inet addr:1.2.3.1  Bcast1.2.3.255  Mask:255.255.255.0
          inet6 addr: fe80::225:22ff:fe3e:1e89/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2037 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1714 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1611944 (1.5 MiB)  TX bytes:319261 (311.7 KiB)

eth0.900:1 Link encap:Ethernet  HWaddr 00:25:22:3E:1E:89  
          inet addr:192.168.12.4  Bcast:192.168.12.63  Mask:255.255.255.192
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

eth0.900:2 Link encap:Ethernet  HWaddr 00:25:22:3E:1E:89  
          inet addr:172.16.2.15  Bcast:172.16.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

 

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.12.0    0.0.0.0         255.255.255.192 U     0      0        0 eth0.900
1.2.3.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0.900
172.16.2.0      0.0.0.0         255.255.255.0   U     0      0        0 eth0.900
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0.900
0.0.0.0         1.2.3.254   0.0.0.0         UG    0      0        0 eth0.900

 

 cat dhcpd.conf
option domain-name "ns1.test.org";
option domain-name-servers 1.2.4.1, 1.2.5.2;
option broadcast-address 1.2.3.255;
option subnet-mask 255.255.255.0;
server-identifier 1.2.3.1;
default-lease-time 600;
max-lease-time 7200;
not authoritative;
ddns-update-style none;
log-facility local7;

subnet 1.2.3.0 netmask 255.255.255.0 {
    option routers 1.2.3.254;
    class "vlan900:p7" {
    match if(binary-to-ascii (10, 16, "", substring(option agent.circuit-id, 2, 2))="900"
    and binary-to-ascii(10, 8,",", suffix(option agent.circuit-id, 1))="7"
    );
    }
    
    pool {
    range 1.2.3.5;
    allow members of "vlan900:p7";
    }

 

данные с qtech 3900

![DHCP]
dhcp-relay
dhcp-relay hide server-ip
dhcp option82
interface ethernet 0/0/7
dhcp option82 remote-id string qtech
exit
dhcp-server 1 ip 1.2.3.1                                              
interface vlan-interface 900
dhcp-server 1
exit

 

маршрутизация на свиче настраивалась ip route 172.16.2.121 255.255.255.255 1.2.3.253

![IF]
interface vlan-interface 900 
ip address 172.16.2.121 255.255.255.0 
ip address 1.2.3.253 255.255.255.0 
exit

 

 

Опция 82 ловится

 Option: (t=82,l=17) Agent Information Option
        Option: (82) Agent Information Option
        Length: 17
        Value: 0106000403840007020700057174656368
        Agent Circuit ID: 000403840007
        Agent Remote ID: 00057174656368
    End Option

Edited by vlad_odmin
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.