|
发表于 2007-8-11 15:02:28
|
显示全部楼层
/ interface ethernet
set ether1 name="ether1" mtu=1500 mac-address=00:10C:74:7A:A9 arp=enabled \
disable-running-check=yes auto-negotiation=yes full-duplex=yes \
cable-settings=default speed=100Mbps comment="" disabled=no
set ether2 name="ether2" mtu=1500 mac-address=00:05:5D:01:09:E6 arp=enabled \
disable-running-check=yes auto-negotiation=yes full-duplex=yes \
cable-settings=default speed=100Mbps comment="" disabled=no
/ interface pppoe-server server
add service-name="service1" interface=ether2 max-mtu=1488 max-mru=1488 \
authentication=pap,chap,mschap1,mschap2 keepalive-timeout=10 \
one-session-per-host=no max-sessions=0 default-profile=profile1 \
disabled=no
/ ip pool
add name="pool1" ranges=10.159.0.2-10.159.0.78
/ ip address
add address=193.168.6.253/24 network=193.168.6.0 broadcast=193.168.6.255 \
interface=ether1 comment="" disabled=no
/ ip route
add dst-address=0.0.0.0/0 gateway=193.168.6.1 scope=255 target-scope=10 \
comment="" disabled=no
/ ip firewall nat
add chain=srcnat out-interface=ether1 src-address=10.159.0.0/16 \
dst-address=0.0.0.0/0 action=masquerade comment="" disabled=no
/ ppp profile
set default name="default" remote-address=pool1 use-compression=default \
use-vj-compression=default use-encryption=default only-one=no \
change-tcp-mss=yes dns-server=202.102.224.68 comment=""
add name="profile1" local-address=2.2.2.2 remote-address=pool1 \
use-compression=default use-vj-compression=default use-encryption=yes \
only-one=default change-tcp-mss=yes rate-limit=512k/200k \
dns-server=202.102.224.68 comment=""
add name="Adminprofile" local-address=1.1.1.1 remote-address=pool1 \
use-compression=default use-vj-compression=default use-encryption=default \
only-one=default change-tcp-mss=default rate-limit=2048k/2048k comment=""
add name="profile2" local-address=12.2.2.2 remote-address=4.4.4.4 \
use-compression=default use-vj-compression=default use-encryption=default \
only-one=default change-tcp-mss=default rate-limit=256k/256k \
dns-server=202.102.224.68,202.102.227.68 comment=""
set default-encryption name="default-encryption" use-compression=default \
use-vj-compression=default use-encryption=yes only-one=default \
change-tcp-mss=yes comment=""
/ ppp secret
add name="101" service=pppoe caller-id="" password="123456789" \
profile=profile1 routes="" limit-bytes-in=0 limit-bytes-out=0 comment="" \
disabled=no |
|