年度 路 DHCPv 年
DHCPv 錄...... 參...... DHCPv 理... DHCPv........ Veval.... TN (FreeBSD.).... NUT (DHCPv ).... DHCPv DHCPv_Self_Test_X-X-X.... DHCPv.... DHCPv..... DHCPv (Client)..... DHCPv (Server)..... DHCPv Relay Agent.... DHCPv.... 行 DHCPv....... 論...
DHCPv 錄 DHCPv ( )... DHCPv ( )... DHCPv ( )... DHCPv ( )... DHCPv... Client/Server... Relay Agent/Server... DHCPv 類 (Message Type)... DHCPv Option 欄... DHCPv Server Client 參數 (Transmission Parameters)... DHCPv... NUT TN 路連... DHCPv Client... DHCPv (Server)... DHCPv Relay Agent......... 流... 說... 錄 DHCPv DHCPv... DCHPv DHCPv Option 類...
DHCPv DHCPv TAHI Project IPv Ready Logo Program DHCPv DHCPv (Serve Relay Agent (Client) [] v..(//) DHCPv (Serve 理 (Relay Agent) (Client) RFC RFC - Dynamic Host Configuration Protocol for IPv(DHCPv) RFC - DNS Configuration options for Dynamic Host Configuration Protocol for IPv(DHCPv) RFC - Stateless Dynamic Host Configuration Protocol(DHCP) Service for IPv 參 [] http://www.ipvready.org/about_phase_test.html [] http://www.ipvready.org/docs/phase_dhcpv_conformance_latest.pdf [] http://www.ipvready.org/docs/phase_dhcpv_interoperability_latest.pdf [] http://www.tahi.org/logo/dhcpv/ [] http://www.tahi.org/release/ [] http://www.tahi.org/logo/dhcpv/script/dhcpv_self_test_p.tgz [] RFC - Dynamic Host Configuration Protocol for IPv(DHCPv) [] RFC - DNS Configuration options for Dynamic Host Configuration Protocol for IPv(DHCPv) [] RFC - Stateless Dynamic Host Configuration Protocol(DHCP) Service for IPv Testing Node(TN) FreeBSD Testing Router(TR) 路 Node Under Test(NUT)
Dynamic Host Configuration Protocol (DHCP) Identity Association(IA) Identifier(ID) 識 DHCP Unique Identifier (DUID) DHCP 識 Duplicate Address Detection (DAD) DHCP Client DHCP DHCP DHCP Relay Agent DHCP 理 DHCP DHCP 路 DHCP Server DHCP DHCP 路 不 路 DHCPv 理 (Dynamic Host Configuration Protocol DHCP) 理 DHCP DHCP (address) ( ) (options) DHCPv 兩 IP Network Link-Local Address + Well-known multicast address Client DHCPv Server DHCPv ( )
DHCPv Relay Agent DHCP Server IP Network Client DHCPv Relay Agent DHCPv ( ) DHCPv 兩 DHCPv ( ) IPv DHCPv ( ) 不 IPv Client Server All_DHCP_Relay_Agents_and Servers Solicit Advertise Choose one Request Reply DHCPv ( )
DHCPv ( ) UDP 來 DHCP DHCPv UDP Port Relay Agent UDP Port DHCPv UDP Port Relay Agent UDP Port DHCPv DHCPv DHCPv Client/Server Client Server Information-Request Reply Client Server Information-Request Reply Data ::: DHCPv header UDP header IP header MAC header Data ::: DHCPv header UDP header IP header MAC header Data ::: Message Data ::: Message Data ::: Data ::: Variable length Options (variable) Transaction-id Message-type Options (variable) Transaction-id Message-type
Message-type Transaction-id Link-address Peer-address Options (variable number and length) Relay Agent/Server DHCPv 類 Message Description References SOLICIT. ADVERTISE. REQUEST. CONFIRM. RENEW. REBIND. REPLY. RELEASE. DECLINE. RECONFIGURE. INFORMATION-REQUEST. RELAY-FORW. RELAY-REPL. RFC RFC RFC RFC RFC RFC RFC RFC RFC RFC RFC RFC RFC DHCPv 類 (Message Type) DHCPv Option 欄 Opti on Refere Opti Description Description nces on OPTION_CLIENTID. OPTION_SERVERID. OPTION_IA_NA. OPTION_IA_TA. OPTION_IAADDR. RFC RFC RFC RFC RFC OPTION_ORO. RFC OPTION_PREFERENCE. RFC OPTION_ELAPSED_TIME. RFC OPTION_RELAY_MSG. RFC OPTION_AUTH. RFC OPTION_UNICAST. RFC OPTION_STATUS_CODE. RFC OPTION_RAPID_COMMIT. OPTION_USER_CLASS. OPTION_VENDOR_CLASS. OPTION_VENDOR_OPTS. OPTION_INTERFACE_ID. OPTION_RECONF_MSG. OPTION_RECONF_ACCEPT. OPTION_SIP_SERVER_D. OPTION_SIP_SERVER_A. OPTION_DNS_SERVERS. OPTION_DOMAIN_LIST. OPTION_IA_PD. OPTION_IAPREFIX. DHCPv Option 欄 Refere nces RFC RFC RFC RFC RFC RFC RFC RFC RFC RFC RFC RFC RFC
DHCPv Server Client 參數 (Transmission Parameters Parameter Default Description Parameter Default Description SOL_MAX_DELAY sec Max delay of first Solicit REB_TIMEOUT secs Initial Rebind timeout SOL_TIMEOUT Sec Initial Solicit timeout REB_MAX_RT secs Max Rebind timeout value SOL_MAX_RT secs Max Solicit timeout value INF_MAX_DELAY sec Max delay of first Information-request REQ_TIMEOUT sec Initial Request timeout INF_TIMEOUT sec Initial Informationrequest timeout REQ_MAX_RT secs Max Request timeout value INF_MAX_RT secs Max Information-request timeout value REQ_MAX_RC Max Request retry attempts REL_TIMEOUT sec Initial Release timeout CNF_MAX_DELAY sec Max delay of first Confirm REL_MAX_RC MAX Release attempts CNF_TIMEOUT sec Initial Confirm timeout DEC_TIMEOUT sec Initial Decline timeout CNF_MAX_RT secs Max Confirm timeout DEC_MAX_RC Max Decline attempts CNF_MAX_RD secs Max Confirm duration REC_TIMEOUT secs Initial Reconfigure timeout REN_TIMEOUT secs Initial Renew timeout REC_MAX_RC Max Reconfigure attempts REN_MAX_RT secs Max Renew timeout value HOP_COUNT_LIMIT Max hop count in a Relay-forward message DHCPv Server Client 參數 (Transmission Parameters) DHCPv DHCPv 流 路 行 錄 Conformance Test Specifications Self-Test P, P Core, IPSec, MIPv, DHCPv Veval Layer, Layer IPv, ICMPv, Ping, Fragmentation FreeBSD.x/.x C/Perl p-expect p-digest-md P-Digest-HMAC DHCPv Veval TAHI IPv 路 Veval IPv Ready Logo Phase I/Phase II Cor IPSec MIPv DHCPv FreeBSD. Perl.. [] IPv Ready Logo Phase II DHCPv []
. DHCPv FreeBSD. Perl.. Perl :Expec IO-Stty IO-Tty Digest-MD Digest-HMAC 連 Internet 便 Perl DNS /etc/resolv.con Perl cd /usr/ports/lang/p-expect make make install cd /usr/ports/security/p-digest-md make make install cd /usr/ports/security/p-digest-hmac (DHCPv only) make make install. Veval Veval [] % tar zxvf veval-...tar.gz % cd veval-.. % make make install Veval /usr/local/veval 錄. TN (FreeBSD.) DHCPv Server/Client 路 DHCPv Relay Agent 兩 路 IPv IPv DNS /etc/resolv.conf IPv 路 IPv 路 IPv 路 IPv routing daemon RA daemon /etc/rc.conf ipv_enable= NO ifconfig_rl= up ifconfig_rl= up ( 若 NUT Relay Agent) devfs_system_ruleset= devfsrules_unhide_bpf (Make bpf special device)
/etc/devfs.rules (For FreeBSD.x/.x/.x release) [devfsrules_unhide_bpf=] add path bpf user root group wheel mode unhide add path bpf user root group wheel mode unhide add path bpf user root group wheel mode unhide add path bpf user root group wheel mode unhide add path bpf user root group wheel mode unhide add path bpf user root group wheel mode unhide add path bpf user root group wheel mode unhide add path bpf user root group wheel mode unhide /etc/group whee wheel /usr/local/veval/etc/tn.def RemoteDevice cuaa <- FreeBSD.x RemoteDevice cuad <- FreeBSD.x/.x RemoteDebug RemoteIntDebug RemoteLog RemoteSpeed RemoteLogout RemoteMethod serial filter ipv <- 濾 IPv Link rl ::::: Link rl ::::: <-Relay Agent Only /usr/local/veval/etc/nut.def System manual TargetName FreeBSD-. HostName target.tahi.org Type router User root Password veval Link fxp :::a:d:f Link fxp :::a:d:f <-Relay Agent Only
. NUT (DHCPv ) DHCPv Server/Client 路 DHCPv Relay Agent 兩 路 IPv IPv IPv DNS /etc/resolv.conf IPv 路 IPv 路 IPv 路 IPv routing daemon RA daemon /etc/rc.conf for DHCPv Server/Client ipv_enable="yes" ifconfig_fxp="up" ipv_network_interfaces="fxp" ipv_default_interface="fxp" /etc/rc.conf for DHCPv Relay Agent ipv_enable="yes" ipv_gateway_enable="yes" ifconfig_fxp="up" ifconfig_fxp="up" ipv_network_interfaces="fxp fxp" ipv_default_interface="fxp" ipv_prefix_fxp="ffe::ffff:" ipv_prefix_fxp="ffe::ffff:". DHCPv DHCPv_Self_Test_X-X-X 行 DHCPv TN Veval.. TN (FreeBSD.) DHCPv_Self_Test_X-X-X.tgz $YOURDIR cd $YOURDIR tar zxvf DHCPv_Self_Test_X-X-X.tgz cd DHCPv_Self_Test_X-X-X $cp remote/manual/* /usr/local/veval/bin/manual/ DHCPv_Self_Test_X-X-X/config.txt ---------------------------------------------------------------------- Configure the advanced functionalities support ----------------------------------------------------------------------
---------------------------------------------------------------------- Following is main Advanced functionalities of DHCPv Logo ---------------------------------------------------------------------- support Addrss assignment by DHCPv zero - NUT does not support non-zero - NUT supports $Address_assignment = ; support DNS configuration in parallel with Address Assignment by DHCPv zero - NUT does not support non-zero - NUT supports $DNS_configuration = ; support Stateless DHCPv for DNS configuration by DHCPv zero - NUT does not support non-zero - NUT supports $Stateless_DHCPv = ; ---------------------------------------------------------------------- Following is Advanced functionalities of DHCPv Logo ---------------------------------------------------------------------- support Interface-ID option (for Server and Relay agent) zero - NUT does not support non-zero - NUT supports $Support_InterfaceID = ; ---------------------------------------------------------------------- Following is necessary configuration of DHCPv Logo test ----------------------------------------------------------------------
DUID configuration (for Clinet, Server and Relay agent) It is required to select one DUID type from following. zero - NUT does not support non-zero - NUT supports $Support_DUID_LLT = ; $Support_DUID_EN = ; $Support_DUID_LL = ; Initial RA configuration (for Clinet and Server) zero - TR doesn't send a RA non-zero - TR sends a RA w/ or w/o M and/or O bit for initialization of NUT $Send_Initial_RA =; ---------------------------------------------------------------------- Following is optional configuration of DHCPv Logo test ---------------------------------------------------------------------- You may want to config the transmission and retransmission parameters. If you want to modify these parameters, you could config in DHCPv_common.pm("RFC recommanded constants" part ) file. But we strongly recommend that you don't modify this part. While in this test, you should use the default values in RFC. return ;
. DHCPv TN(FreeBSD.) NUT(DHCPv ) 路連 Prefix = ffe::ffff:/ Link Ethernet. TN RS NUT Don t use switch between Tester and NUT for ip spoofing avoidance Router test only Link FastEthernet. Prefix = ffe::ffff:/ MAC = ::::d:a IPv = ffe::ffff:::ff:fe:da/ NUT TN 路連. DHCPv.. DHCPv (Client) DHCPv (Client) DHCPv Client.. DHCPv (Server) DHCPv (Server)
DHCPv (Server).. DHCPv Relay Agent DHCPv Relay Agent DHCPv Relay Agent
. DHCPv DHCPv DHCPv DCHPv DHCPv Option 類 Server DHCPv Client DHCPv Relay Agent DHCPv Relay Agent DHCPv DHCPv Message Type DNS configuration Stateless DHCPv in parallel with Address Assignment for DNS Address configuration Assignment Solicit Server/Client Server/Client none Advertise Server/Client Server/Client none Request Server/Client Server/Client none Reply Server/Client Server/Client Server/Client Confirm Server/Client Server/Client none Renew Server/Client Server/Client none Rebind Server/Client Server/Client none Decline Server/Client Server/Client none Release Server/Client Server/Client none Reconfigure omit in first release omit in first release none Information-request none none Server/Client Relay-forward Server/Relay agent Server/Relay agent Server/Relay agent Relay-reply Server/Relay agent Server/Relay agent Server/Relay agent DCHPv DHCPv Option 類 DNS configuration in Stateless Option Type Address assignment parallel with Address DHCPv for DNS Assignment configuration CLIENTID Server/Client Server/Client omit SERVERID Server/Client Server/Client Server/Client IA_NA Server/Client Server/Client none IA_TA omit omit none IAADDR Server/Client Server/Client none ORO none Server/Client Server/Client PREFERENCE omit omit none
ELAPSED_TIME Server/Client Server/Client none RELAY_MSG Server/Relay agent Server/Relay agent Server/Relay agent AUTH omit in first release omit in first release none UNICAST omit omit none STATUS_CODE Server/Client Server/Client Server/Client RAPID_COMMIT omit omit none USER_CLASS Not tested Not tested Not tested VENDOR_CLASS Not tested Not tested Not tested VENDOR_OPTS Not tested Not tested Not tested INTERFACE_ID optional optional optional RECONF_MSG omit in first release omit in first release none RECONF_ACCEPT omit in first release omit in first release none DNS Recursive Server/Client Server/Client none Name List DNS Search List none Server/Client Server/Client. 行 DHCPv 行 cd $YOURDIR/DHCPv_Self_Test_P / make clean make ipvready_p_client (DHCPv Client) make ipvready_p_server (DHCPv Server) make ipvready_p_relay (DHCPv Relay Agent) 行 make AROPT= -s <x> -e <y> ipvready_p_client (DHCPv Client) make AROPT= -s <x> -e <y> ipvready_p_server (DHCPv Server) make AROPT= -s <x> -e <y> ipvready_p_relay (DHCPv Relay Agent) (<x> <y> ). 行 $YOURDIR/DHCPv_Self_Test_P /index.html HTML 列 PASS 綠 Not Yet Supported FAIL Log 欄 X TN NUT
連 流 JUDGEMENT 說 RFC
流 說 論 DHCP 路 PPPoE Link-Local IPv 行 Router Advertisement(RA)(Stateless ) DHCPv(Stateful DNS