Jump to content

Recommended Posts

Posted (edited)

Народ столкнулся с проблемой

 

есть сеть User <-> Dlink DES3526 <-> Dlink DGS3612G <-> Cisco 7201 <-> DHCP server (isc-dhcpd)

 

на Dlink DES3526 и Dlink DGS3612G включен dhcp relay и в качестве сервера стоит Cisco 7201

 

надо чтоб Cisco 7201 делала relay на DHCP server (isc-dhcpd)

 

настройка на Cisco 7201

 

c7201-core1-1#sh running-config

Building configuration...

 

Current configuration : 2052 bytes

!

! Last configuration change at 14:15:44 UTC Wed Apr 9 2008 by snake

! NVRAM config last updated at 14:10:31 UTC Wed Apr 9 2008 by snake

!

upgrade fpd auto

version 12.2

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

hostname c7201-core1-1

!

boot-start-marker

boot-end-marker

!

enable secret 5 ********

!

aaa new-model

!

!

aaa authentication login default local

aaa authorization exec default local

!

!

!

!

aaa session-id common

ip subnet-zero

ip cef

!

!

ip name-server 77.87.152.9

ip dhcp use vrf connected

!

!

ip dhcp-server xx.yy.152.43

!

!

call rsvp-sync

no scripting tcl init

no scripting tcl encdir

!

!

!

!

!

no file verify auto

username snake secret 5 ****

!

!

!

interface Loopback0

no ip address

!

interface FastEthernet0/0

no ip address

shutdown

speed auto

duplex auto

!

interface GigabitEthernet0/0

no ip address

media-type rj45

speed auto

duplex auto

negotiation auto

!

interface GigabitEthernet0/0.5

description # Uplink from C3560E_SW

encapsulation dot1Q 5

ip address xx.yy.152.66 255.255.255.224

no snmp trap link-status

!

interface GigabitEthernet0/1

no ip address

media-type rj45

speed auto

duplex auto

negotiation auto

!

interface GigabitEthernet0/1.999

description # network iface

encapsulation dot1Q 999

ip address 10.10.10.1 255.255.0.0

ip helper-address xx.yy.152.43

no snmp trap link-status

!

interface GigabitEthernet0/2

no ip address

shutdown

speed auto

duplex auto

negotiation auto

!

interface GigabitEthernet0/3

no ip address

shutdown

speed auto

duplex auto

negotiation auto

!

ip classless

ip route 0.0.0.0 0.0.0.0 xx.yy.152.65

!

no ip http server

!

!

!

!

!

control-plane

!

!

!

dial-peer cor custom

!

!

!

!

gatekeeper

shutdown

!

!

line con 0

stopbits 1

line aux 0

stopbits 1

line vty 0 4

!

ntp clock-period 17180509

ntp server 81.171.98.5

ntp server 80.190.251.105

ntp server 82.133.58.132

end

 

c7201-core1-1#

 

 

на Cisco 7201 включен дебаг

 

c7201-core1-1#

Apr 9 14:17:25.386: DHCPD: Reload workspace interface GigabitEthernet0/1.999 tableid 0.

Apr 9 14:17:25.386: DHCPD: tableid for 10.10.10.1 on GigabitEthernet0/1.999 is 0

Apr 9 14:17:25.386: DHCPD: client's VPN is .

Apr 9 14:17:25.386: DHCPD: Sending notification of DISCOVER:

Apr 9 14:17:25.386: DHCPD: htype 1 chaddr 0013.7731.474e

Apr 9 14:17:25.386: DHCPD: remote id 020a00000a0a0a01010003e7

Apr 9 14:17:25.386: DHCPD: circuit id ffffffff

Apr 9 14:17:25.386: DHCPD: setting giaddr to 10.10.10.1.

Apr 9 14:17:25.386: DHCPD: BOOTREQUEST from 0100.1377.3147.4e forwarded to xx.yy.152.43.

Apr 9 14:17:25.386: DHCPD: Reload workspace interface GigabitEthernet0/1.999 tableid 0.

Apr 9 14:17:25.386: DHCPD: tableid for 10.10.10.1 on GigabitEthernet0/1.999 is 0

Apr 9 14:17:25.386: DHCPD: client's VPN is .

Apr 9 14:17:25.386: DHCPD: Sending notification of DISCOVER:

Apr 9 14:17:25.386: DHCPD: htype 1 chaddr 0013.7731.474e

Apr 9 14:17:25.386: DHCPD: remote id 020a00000a0a0a01010003e7

Apr 9 14:17:25.386: DHCPD: circuit id ffffffff

Apr 9 14:17:25.386: DHCPD: BOOTREQUEST from 0100.1377.3147.4e forwarded to xx.yy.152.43.

Apr 9 14:17:28.386: DHCPD: Reload workspace interface GigabitEthernet0/1.999 tableid 0.

Apr 9 14:17:28.386: DHCPD: tableid for 10.10.10.1 on GigabitEthernet0/1.999 is 0

Apr 9 14:17:28.386: DHCPD: client's VPN is .

Apr 9 14:17:28.386: DHCPD: Sending notification of DISCOVER:

Apr 9 14:17:28.386: DHCPD: htype 1 chaddr 0013.7731.474e

Apr 9 14:17:28.386: DHCPD: remote id 020a00000a0a0a01010003e7

Apr 9 14:17:28.386: DHCPD: circuit id ffffffff

Apr 9 14:17:28.386: DHCPD: setting giaddr to 10.10.10.1.

Apr 9 14:17:28.386: DHCPD: BOOTREQUEST from 0100.1377.3147.4e forwarded to xx.yy.152.43.

Apr 9 14:17:28.386: DHCPD: Reload workspace interface GigabitEthernet0/1.999 tableid 0.

Apr 9 14:17:28.386: DHCPD: tableid for 10.10.10.1 on GigabitEthernet0/1.999 is 0

Apr 9 14:17:28.386: DHCPD: client's VPN is .

Apr 9 14:17:28.386: DHCPD: Sending notification of DISCOVER:

Apr 9 14:17:28.386: DHCPD: htype 1 chaddr 0013.7731.474e

Apr 9 14:17:28.386: DHCPD: remote id 020a00000a0a0a01010003e7

Apr 9 14:17:28.386: DHCPD: circuit id ffffffff

Apr 9 14:17:28.386: DHCPD: BOOTREQUEST from 0100.1377.3147.4e forwarded to xx.yy.152.43.

Apr 9 14:17:36.386: DHCPD: Reload workspace interface GigabitEthernet0/1.999 tableid 0.

Apr 9 14:17:36.386: DHCPD: tableid for 10.10.10.1 on GigabitEthernet0/1.999 is 0

Apr 9 14:17:36.386: DHCPD: client's VPN is .

Apr 9 14:17:36.386: DHCPD: Sending notification of DISCOVER:

Apr 9 14:17:36.386: DHCPD: htype 1 chaddr 0013.7731.474e

Apr 9 14:17:36.386: DHCPD: remote id 020a00000a0a0a01010003e7

Apr 9 14:17:36.386: DHCPD: circuit id ffffffff

Apr 9 14:17:36.386: DHCPD: setting giaddr to 10.10.10.1.

Apr 9 14:17:36.386: DHCPD: BOOTREQUEST from 0100.1377.3147.4e forwarded to xx.yy.152.43.

Apr 9 14:17:36.386: DHCPD: Reload workspace interface GigabitEthernet0/1.999 tableid 0.

Apr 9 14:17:36.386: DHCPD: tableid for 10.10.10.1 on GigabitEthernet0/1.999 is 0

Apr 9 14:17:36.386: DHCPD: client's VPN is .

Apr 9 14:17:36.386: DHCPD: Sending notification of DISCOVER:

Apr 9 14:17:36.386: DHCPD: htype 1 chaddr 0013.7731.474e

Apr 9 14:17:36.386: DHCPD: remote id 020a00000a0a0a01010003e7

Apr 9 14:17:36.386: DHCPD: circuit id ffffffff

Apr 9 14:17:36.386: DHCPD: BOOTREQUEST from 0100.1377.3147.4e forwarded to xx.yy.152.43.

 

 

в чем проблема? кто то знает?

Edited by MrSnaKe
Posted

нет вопрос в том, что конечный пользователь подключен в Dlink DES3526 попадает на Dlink DGS3612G и релеется на Cisco 7201, которая есть дхцп сервером, но проблема в том, что надо, чтоб Cisco 7201 выдавала ИП не со своего пула, а релей делала на DHCP server (isc-dhcpd), который стоит на отдельной машыне на FreBSD. Получается, что к Cisco 7201 приходить не чистой ДХЦП запрос, а уже с опцией 82, и команда ip helper-address здесь не проходит.

 

смотрел здесь

http://www.cisco.com/en/US/docs/ios/ipaddr...cp_rly_agt.html

 

пока что резутьтата нет. Поможешь?

Posted

А если в качестве сервера ставить не 7201?

Не очень понятно - зачем столько релеев...

 

В том же документе:

A DHCP relay agent may receive a message from another DHCP relay agent that already contains relay information. By default, the relay information from the previous relay agent is replaced. If this behavior is not suitable for your network, you can use the ip dhcp relay information policy {drop | keep | replace} global configuration command to change it.

Posted

мне надо чтоб ISG работало, а оно инициюется DHCP дискавером, а вешать маршрутизацию между юзерами на БРАС ето лишняя нагрузка ... вот и по етому так сложно

Posted
Apr 9 14:17:36.386: DHCPD: setting giaddr to 10.10.10.1.

Apr 9 14:17:36.386: DHCPD: BOOTREQUEST from 0100.1377.3147.4e forwarded to xx.yy.152.43.

 

в чем проблема? кто то знает?

Очевидно Cisco делает dhcp-релей, но ответа не получает. Связность между 10.10.10.1 и xx.yy.152.43 имеется? До DHCP-сервера запросы доходят?
Posted
A DHCP relay agent may receive a message from another DHCP relay agent that already contains relay information. By default, the relay information from the previous relay agent is replaced. If this behavior is not suitable for your network, you can use the ip dhcp relay information policy {drop | keep | replace} global configuration command to change it.

DHCP relay agent может получить сообщение от другого DHCP relay agent'а, которое уже содержит дополнительную информацию. По-умолчанию, дополнительная информация от предыдущего relay agent'а заменяется. Если такое поведение не годится для Вашей сети, вы можете использовать команду глобальной конфигурации ip dhcp relay information policy {drop | keep | replace}, чтобы изменить его.

Posted
А оно так вообще будет работать? Разме можно на dhcp пакет навесить две 82 опции?

говорят что будет ... Циско говорит ... но сказать как именно настроить неможет

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 и с Политикой конфиденциальности.