
Chapter 6 Interfaces
ZyWALL (ZLD) CLI Reference Guide
67
6.5.1 PPPoE/PPTP Interface Command Examples
The following commands show you how to configure PPPoE/PPTP interface ppp0 with the
following characteristics: base interface ge1, ISP account Hinet, local address 1.1.1.1, remote
address 2.2.2.2, MTU 1200, upstream bandwidth 345, downstream bandwidth 123, description
“I am ppp0”, and dialed only when used.
[no] bind interface_name Specifies the base interface for the PPPoE/PPTP
interface. The
no command removes the base
interface.
[no] connectivity {nail-up | dial-on-
demand}
Specifies whether the specified PPPoE/PPTP
interface is always connected (nail-up) or
connected only when used (dial-on-demand). The
no command sets it to dial-on-demand.
[no] local-address ip Specifies a static IP address for the specified
PPPoE/PPTP interface. The
no command makes
the PPPoE/PPTP interface a DHCP client; the
other computer assigns the IP address.
[no] remote-address ip Specifies the IP address of the PPPoE/PPTP
server. If the PPPoE/PPTP server is not available
at this IP address, no connection is made. The no
command lets the ZyWALL get the IP address of
the PPPoE/PPTP server automatically when it
establishes the connection.
[no] mss <536..1452> Specifies the maximum segment size (MSS) the
interface can use. MSS is the largest amount of
data, specified in bytes, that the interface can
handle in a single, unfragmented piece. The
no
command has the ZyWALL use its default MSS
setting.
mtu <576..1492> Sets the Maximum Transmission Unit in bytes.
show interface ppp system-default Displays system default PPP interfaces (non-
deletable) that come with the ZyWALL.
show interface ppp user-define Displays all PPP interfaces that were manually
configured on the ZyWALL.
Table 26 interface Commands: PPPoE/PPTP Interfaces (continued)
COMMAND DESCRIPTION
Router# configure terminal
Router(config)# interface ppp0
Router(config-if-ppp)# account Hinet
Router(config-if-ppp)# bind ge1
Router(config-if-ppp)# local-address 1.1.1.1
Router(config-if-ppp)# remote-address 2.2.2.2
Router(config-if-ppp)# mtu 1200
Router(config-if-ppp)# upstream 345
Router(config-if-ppp)# downstream 123
Router(config-if-ppp)# connectivity dial-on-demand
Router(config-if-ppp)# description I am ppp0
Router(config-if-ppp)# exit
Komentáře k této Příručce