가입자를 BNG에서 AGF로 마이그레이션
인터페이스 태그를 사용하여 DHCP 가입자를 BNG에서 AGF로 마이그레이션
Junos OS 23.2R1 이전에는 동적 VLAN을 지원하는 물리적 인터페이스(IFD)에 하나의 DHCP 그룹만 매핑할 수 있었습니다. 이는 동일한 DHCP 요구 사항을 가진 가입자를 지원하는 인터페이스로 제한됩니다. Junos OS 23.2R1부터 인터페이스 태그를 사용하여 단일 동적 VLAN 또는 동적 VLAN 그룹을 다른 DHCP 그룹에 매핑할 수 있습니다. 따라서 하나의 IFD에서 서로 다른 DHCP 요구 사항을 가진 가입자를 지원할 수 있습니다. 디바이스는 인터페이스 태그를 사용하여 프로필의 수신 가입자 VLAN ID를 DHCP 그룹에 매핑합니다. 이 기능을 사용하면 BNG에서 AGF로 사용자를 쉽게 마이그레이션할 수 있습니다.
동일한 물리적 인터페이스에서 여러 DHCP 그룹을 지원하려면:
-
VLAN demux 인터페이스의 동적 프로필에서 을
interface-tag
(를) 구성합니다.-
set dynamic-profiles profile-name interfaces demux0 unit $junos-interface-unit interface-tag interface-tag-name
-
-
동적 VLAN demux(자동 감지) 인터페이스 및 해당 동적 프로필을 구성합니다. 동적 프로파일을 DHCP 그룹에 매핑할 VLAN 범위 하위 집합을 지정합니다.
-
동일한
interface-tag
이름을 지정하여 동적 프로필을 연결된 DHCP 그룹에 매핑합니다. DHCP 로컬 서버 및 DHCP 릴레이 서버 구성에 대한 자세한 내용은 인터페이스 그룹 및 서버 그룹에 대한 공통 DHCP 구성을 참조하십시오.DHCP 릴레이
-
set forwarding-options dhcp-relay group name interface-tag interface-tag-name
-
set forwarding-options dhcp-relay dhcpv6 group name interface-tag interface-tag-name
DHCP 로컬 서버
-
set system services dhcp-local-server group sgroup interface-tag interface-tag-name
-
set system services dhcp-local-server dhcpv6 group sgroup interface-tag interface-tag-name
-
광대역에서 AGF로 마이그레이션하는 가입자는 세션을 종료할 때까지 DHCP 세션을 유지합니다.
마이그레이션할 수 있는 구독자는 DHCP 세션에서 연결된 상태를 유지합니다. 가입자가 로그오프하고 DHCP 세션이 종료되면 라우터는 다음 로그인 성공 시(DHCP 재협상) 가입자를 AGF로 마이그레이션합니다.
인터페이스 태그 정보를 표시하는 옵션과 detail
함께 다음 show dhcp binding 명령을 사용합니다.
-
show dhcp relay binding detail
-
show dhcpv6 relay binding detail
-
show dhcp server binding detail
-
show dhcpv6 server binding detail
BNG 및 AGF에 대한 액세스 지원 구성
다음 예는 BNG 및 AGF 가입자를 모두 지원하기 위해 디바이스에서 물리적 인터페이스(IFD)를 구성하는 방법을 보여줍니다. demux 인터페이스에 두 개의 동적 프로필을 구성합니다(demux0 - BNG 가입자용 프로필 하나와 AGF 가입자용 프로필 하나). 디바이스는 VLAN ID를 사용하여 가입자를 동적 프로필에 매핑합니다. 그런 다음 디바이스는 동적 프로필의 인터페이스 태그를 사용하여 가입자를 DHCP 그룹에 매핑합니다.
-
동적 프로필을 구성하여 demux 인터페이스에서 수신 가입자를 지원합니다. BNG 가입자를 위한 하나의 동적 프로필과 AGF 가입자를 위한 다른 프로필을 구성합니다. 동적 프로파일과 DHCP 그룹 모두에서 동일한 인터페이스 태그 이름을 사용합니다. 이 예에서는 VLAN 범위를 식별하는 인터페이스 태그를 사용합니다.
증권 시세 표시기
set dynamic-profiles BNG_DPROFILE_1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" actual-transit-statistics set dynamic-profiles BNG_DPROFILE_1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" interface-tag IFD_TAG_1_2000 set dynamic-profiles BNG_DPROFILE_1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" proxy-arp set dynamic-profiles BNG_DPROFILE_1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" vlan-id "$junos-vlan-id" set dynamic-profiles BNG_DPROFILE_1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet address 192.168.10.3/32 set dynamic-profiles BNG_DPROFILE_1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" actual-transit-statistics set dynamic-profiles BNG_DPROFILE_1 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet6 address 2001:db8:1/128
증권 시세 표시기
set dynamic-profiles AGF_DPROFILE_2 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" interface-tag IFD_TAG_2001_4000 set dynamic-profiles AGF_DPROFILE_2 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" actual-transit-statistics set dynamic-profiles AGF_DPROFILE_2 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" proxy-arp set dynamic-profiles AGF_DPROFILE_2 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" vlan-id "$junos-vlan-id" set dynamic-profiles AGF_DPROFILE_2 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet address 192.168.10.3/32 set dynamic-profiles AGF_DPROFILE_2 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" actual-transit-statistics set dynamic-profiles AGF_DPROFILE_2 interfaces "$junos-interface-ifd-name" unit "$junos-interface-unit" family inet6 address 2001:db8:3/128
-
두 개의 동적 프로필(BNG_DPROFILE 및 AGF_DPROFILE)로 인터페이스를 구성합니다. DHCP 그룹에 매핑되는 동적 프로필의 VLAN 범위를 지정합니다.
set interfaces xe-1/1/0 description AGF_BNG set interfaces xe-1/1/0 flexible-vlan-tagging set interfaces xe-1/1/0 auto-configure remove-when-no-subscribers
증권 시세 표시기
set interfaces xe-1/1/0 auto-configure stacked-vlan-ranges dynamic-profile BNG_DPROFILE_1 accept inet set interfaces xe-1/1/0 auto-configure stacked-vlan-ranges dynamic-profile BNG_DPROFILE_1 accept pppoe set interfaces xe-1/1/0 auto-configure stacked-vlan-ranges dynamic-profile BNG_DPROFILE_1 ranges 1-2000
증권 시세 표시기
set interfaces xe-1/1/0 auto-configure stacked-vlan-ranges dynamic-profile AGF_DPROFILE_2 accept inet set interfaces xe-1/1/0 auto-configure stacked-vlan-ranges dynamic-profile AGF_DPROFILE_2 accept pppoe set interfaces xe-1/1/0 auto-configure stacked-vlan-ranges dynamic-profile AGF_DPROFILE_2 ranges 2001-4000
-
액세스 인터페이스에 대한 DHCP 릴레이 구성을 구성합니다. DHCP 그룹의 동적 프로필에서 해당 인터페이스 태그 이름을 사용합니다. 추가 VLAN ID가 있는 경우 을
set forwarding-options dhcp-relay group DHCPv4_CLIENT_GROUP_2 interface xe-1/1/0.0
(를) 폴백으로 구성합니다. 라우터는 인터페이스 태그가 인터페이스 문보다 우선합니다.증권 시세 표시기
set forwarding-options dhcp-relay group DHCPv4_CLIENT_GROUP_1 authentication password password set forwarding-options dhcp-relay group DHCPv4_CLIENT_GROUP_1 authentication username-include user-prefix USER2 set forwarding-options dhcp-relay group DHCPv4_CLIENT_GROUP_1 dynamic-profile dhcp-profile set forwarding-options dhcp-relay group DHCPv4_CLIENT_GROUP_1 access-profile legacy_access1 set forwarding-options dhcp-relay group DHCPv4_CLIENT_GROUP_1 overrides trust-option-82 set forwarding-options dhcp-relay group DHCPv4_CLIENT_GROUP_1 relay-option-82 remote-id keep-incoming-remote-id set forwarding-options dhcp-relay group DHCPv4_CLIENT_GROUP_1 interface-tag IFD_TAG_1_2000
증권 시세 표시기
set forwarding-options dhcp-relay group DHCPv4_CLIENT_GROUP_2 authentication password joshua set forwarding-options dhcp-relay group DHCPv4_CLIENT_GROUP_2 authentication username-include user-prefix DEFAULT set forwarding-options dhcp-relay group DHCPv4_CLIENT_GROUP_2 dynamic-profile dhcp-profile set forwarding-options dhcp-relay group DHCPv4_CLIENT_GROUP_2 access-profile agf-access1 set forwarding-options dhcp-relay group DHCPv4_CLIENT_GROUP_2 overrides trust-option-82 set forwarding-options dhcp-relay group DHCPv4_CLIENT_GROUP_2 relay-option-82 remote-id keep-incoming-remote-id set forwarding-options dhcp-relay group DHCPv4_CLIENT_GROUP_2 interface xe-1/1/0.0 set forwarding-options dhcp-relay group DHCPv4_CLIENT_GROUP_2 interface-tag IFD_TAG_2001_4000