GW1(config-l2tp-class)#? l2tp-class configuration commands: authentication Authenticate the L2TP control connection do To run exec commands in config mode end Exit from configure mode exit Exit from l2tp-class configuration mode hello Set HELLO message interval help Description of the interactive help system hostname Local hostname for control connection authentication no Negate a command or set its defaults password Password for control connection authentication, AVP hiding receive-window Receive window size for the control connection //设置控制连接的接受窗口大小,系统默认值为8 retransmit Control message retransmission parameters //设置控制连接重传参数,系统默认为2 show Show running system information timeout Control connection timeout parameters //设置控制连接可花费的最长时间,默认120
GW1(config-l2tp-class)#? l2tp-class configuration commands: authentication Authenticate the L2TP control connection //要求进行通道身份验证 do To run exec commands in config mode end Exit from configure mode exit Exit from l2tp-class configuration mode hello Set HELLO message interval help Description of the interactive help system hostname Local hostname for control connection authentication //使用控制连接的本地主机名 no Negate a command or set its defaults password Password for control connection authentication, AVP hiding //设置通道口令 receive-window Receive window size for the control connection retransmit Control message retransmission parameters show Show running system information timeout Control connection timeout parameters
GW1(config-pw-class)#? pseudowire-class configuration commands: do To run exec commands in config mode encapsulation Data encapsulation method //设置数据传输封装模式 end Exit from configure mode exit Exit from Pseudowire-class configuration mode help Description of the interactive help system no Negate a command or set its defaults show Show running system information
GW1(config-pw-class)#encapsulation l2tpv2 GW1(config-pw-class)#? pseudowire-class configuration commands: do To run exec commands in config mode encapsulation Data encapsulation method end Exit from configure mode exit Exit from Pseudowire-class configuration mode help Description of the interactive help system ip Specify IP parameters //在这里设置各种传输IP参数,分片、TTL、通道接口等 no Negate a command or set its defaults protocol Signalling protocol to use show Show running system information
GW1(config-pw-class)#
设置L2TP控制连接参数
1 2 3 4 5 6 7 8 9
GW1(config-pw-class)#protocol ? l2tpv2 Use L2TPv2 signalling
GW1(config-pw-class)#protocol l2tpv2 ? WORD L2tp-class name <cr>
GW1(config-if-Virtual-ppp 1)#pseudowire ? A.B.C.D IP address of peer hostname Hostname
GW1(config-if-Virtual-ppp 1)#pseudowire 172.16.0.2 ? <1-4294967295> Enter VC ID value //全局标号
GW1(config-if-Virtual-ppp 1)#pseudowire 172.16.0.2 1 ? encapsulation Data encapsulation method pw-class Pseudowire-class to use for encapsulation and protocol configuration
GW1(config-if-Virtual-ppp 1)#pseudowire 172.16.0.2 1 pw-class ? WORD Pseudowire-class name //引用Pseudowire-class
R2(config)#username Test@123 ? login Set user login mode nopassword No password is required for the user to log in online Set user online amount at the same time password Specify the password for the user permission Grant permission on files or dirs privilege Set user privilege level reject Reject some user behavior secret Specify the secret for the user <cr>
R2(config)#username Test@123 password ? 0 Specifies an UNENCRYPTED password will follow 7 Specifies a HIDDEN password will follow LINE The UNENCRYPTED (cleartext) user password
R2(config)#username Test@123 password 0 ? LINE The UNENCRYPTED (cleartext) user password
R2(config-vpdn)#? vpdn-group configuration commands: accept-dialin VPDN accept-dialin group configuration //允许接受远程客户端拨入 domain VPN domain string end Exit from configure mode exit Exit from vpdn-group configuration mode force-local-chap Force a CHAP challenge to be instigated locally force-local-lcp Force a local lcp negotiation help Description of the interactive help system ip IP settings for tunnel lcp LCP specific commands local Local information, like name no Negate a command or set its defaults show Show running system information source-ip Set Source IP address terminate-from Terminate tunnel from remote peer vpn VPN ID/VRF name
R2(config-vpdn-acc-in)#? VPDN group accept-dialin configuration commands: end Exit from configure mode exit Exit from vpdn-group-acc-in configuration mode help Description of the interactive help system no Negate a command or set its defaults protocol Tunneling protocol to be used //设置协议 show Show running system information
R2(config-vpdn-acc-in)#protocol ? any Use any protocol l2tp Use L2TP pptp Use PPTP