H3C路由器ADSL路由器配置实例

帐号:
密码:

Saving configuration cf:/startup.cfg. Please wait...
.
Configuration is saved to cf successfully.

dis cu
#
version 5.20, Release 1509P01, Basic
#
sysname H3C
#
domain default enable system
#
vlan 1
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
dhcp server ip-pool 192.168.1.0
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.254
dns-list 222.222.222.222
#
acl number 2000
rule 0 permit
#
interface Aux0
async mode flow
link-protocol ppp
#
interface Dialer1
nat outbound 2000
link-protocol ppp
ppp chap user 0319********
ppp chap password simple 501083
ppp pap local-user 0319******** password simple 501083
ip address ppp-negotiate
dialer user 1
dialer-group 1
dialer bundle 1
#
interface Ethernet0/0
port link-mode route
pppoe-client dial-bundle-number 1
#
interface Ethernet0/1
port link-mode route
description To_LAN
ip address 192.168.1.254 255.255.255.0


sys
System View: return to User View with Ctrl+Z.
[H3C]
[H3C]dhcp ser
[H3C]dhcp server fo
[H3C]dhcp server forbidden-ip 192.168.1.254
[H3C]dhcp server forbidden-ip 192.168.1.1 ?
X.X.X.X High IP address


[H3C]dhcp server forbidden-ip 192.168.1.1 192.168.1.100
[H3C]dis cu
#
version 5.20, Release 1509P01, Basic
#
sysname H3C
#
domain default enable system
#
vlan 1
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
dhcp server ip-pool 192.168.1.0
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.254
dns-list 222.222.222.222
#
acl number 2000
rule 0 permit
#
interface Aux0
async mode flow
link-protocol ppp
#
interface Dialer1
nat outbound 2000
link-protocol ppp
ppp chap user 0319********
ppp chap password simple 501083
ppp pap local-user 0319******** password simple 501083
ip address ppp-negotiate
dialer user 1
dialer-group 1
dialer bundle 1
#
interface Ethernet0/0
port link-mode route
pppoe-client dial-bundle-number 1
#
interface Ethernet0/1
port link-mode route
description To_LAN
ip address 192.168.1.254 255.255.255.0
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 126.99.99.254
#
dhcp server forbidden-ip 192.168.1.254
dhcp server forbidden-ip 192.168.1.1 192.168.1.100
#
dhcp enable
#
user-interface con 0
user-interface aux 0
user-interface vty 0 4
#
return
[H3C]
[H3C]qu
sa
sys
System View: return to User View with Ctrl+Z.
[H3C]int
[H3C]und
[H3C]undo ip rou
[H3C]undo ip route-static 0.0.0.0 0 126.99.99.254
[H3C]
[H3C]
[H3C]ip rou
[H3C]ip route-static 0.0.0.0 0 di
[H3C]ip route-static 0.0.0.0 0 Diale
[H3C]ip route-static 0.0.0.0 0 Dialer 1
[H3C]
[H3C]dis ip int br
*down: administratively down
(s): spoofing
Interface Physical Protocol IP Address
Aux0 dow

n down unassigned
Dialer1 up down unassigned
Ethernet0/0 down down unassigned
Ethernet0/1 down down 192.168.1.254
[H3C]
[H3C]qu
sa
save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[cf:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
cf:/startup.cfg exists, overwrite? [Y/N]:y

Validating file. Please wait...
Now saving current configuration to the device.
Saving configuration cf:/startup.cfg. Please wait...
.
Configuration is saved to cf successfully.
dis cu
#
version 5.20, Release 1509P01, Basic
#
sysname H3C
#
domain default enable system
#
vlan 1
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
dhcp server ip-pool 192.168.1.0
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.254
dns-list 222.222.222.222
#
acl number 2000
rule 0 permit
#
interface Aux0
async mode flow
link-protocol ppp
#
interface Dialer1
nat outbound 2000
link-protocol ppp
ppp chap user 0319********
ppp chap password simple 501083
ppp pap local-user 0319******** password simple 501083
ip address ppp-negotiate
dialer user 1
dialer-group 1
dialer bundle 1
#
interface Ethernet0/0
port link-mode route
pppoe-client dial-bundle-number 1
#
interface Ethernet0/1
port link-mode route
description To_LAN
ip address 192.168.1.254 255.255.255.0
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 Dialer1
#
dhcp server forbidden-ip 192.168.1.254
dhcp server forbidden-ip 192.168.1.1 192.168.1.100
#
dhcp enable
#
user-interface con 0
user-interface aux 0
user-interface vty 0 4
#
return



sys
System View: return to User View with Ctrl+Z.
[H3C]dhcp server ip-pool 192.168.1.0
[H3C-dhcp-pool-192.168.1.0]dis th
#
dhcp server ip-pool 192.168.1.0
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.254
dns-list 222.222.222.222
#
return
[H3C-dhcp-pool-192.168.1.0]dns-
[H3C-dhcp-pool-192.168.1.0]dns-list 202.99.160.68
[H3C-dhcp-pool-192.168.1.0]dns-list 202.99.166.4
[H3C-dhcp-pool-192.168.1.0]dis th
#
dhcp server ip-pool 192.168.1.0
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.254
dns-list 202.99.166.4
#
return
[H3C-dhcp-pool-192.168.1.0]dns-list 202.99.160.68
[H3C-dhcp-pool-192.168.1.0]quit
[H3C]qu
dis cu
#
version 5.20, Release 1509P01, Basic
#
sysname H3C
#
domain default enable system
#
vlan 1
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
dhcp server ip-pool 192.168.1.0
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.254
dns-list 202.99.160.68
#
acl number 2000
rule 0 permit
#
interface Aux0
async mode flow
l

ink-protocol ppp
#
interface Dialer1
nat outbound 2000
link-protocol ppp
ppp chap user 0319********
ppp chap password simple 501083
ppp pap local-user 0319******** password simple 501083
ip address ppp-negotiate
dialer user 1
dialer-group 1
dialer bundle 1
#
interface Ethernet0/0
port link-mode route
pppoe-client dial-bundle-number 1
#
interface Ethernet0/1
port link-mode route
description To_LAN
ip address 192.168.1.254 255.255.255.0
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 Dialer1
#
dhcp server forbidden-ip 192.168.1.254
dhcp server forbidden-ip 192.168.1.1 192.168.1.100
#
dhcp enable
#
user-interface con 0
user-interface aux 0
user-interface vty 0 4
#
return





sa
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[cf:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
cf:/startup.cfg exists, overwrite? [Y/N]:y

Validating file. Please wait...
Now saving current configuration to the device.
Saving configuration cf:/startup.cfg. Please wait...
.
Configuration is saved to cf successfully.
dis cu
#
version 5.20, Release 1509P01, Basic
#
sysname H3C
#
domain default enable system
#
vlan 1
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
dhcp server ip-pool 192.168.1.0
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.254
dns-list 202.99.160.68
#
acl number 2000
rule 0 permit
#
interface Aux0
async mode flow
link-protocol ppp
#
interface Dialer1
nat outbound 2000
link-protocol ppp
ppp chap user 0319********
ppp chap password simple 501083
ppp pap local-user 0319******** password simple 501083
ip address ppp-negotiate
dialer user 1
dialer-group 1
dialer bundle 1
#
interface Ethernet0/0
port link-mode route
pppoe-client dial-bundle-number 1
#
interface Ethernet0/1
port link-mode route
description To_LAN
ip address 192.168.1.254 255.255.255.0
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 Dialer1
#
dhcp server forbidden-ip 192.168.1.254
dhcp server forbidden-ip 192.168.1.1 192.168.1.100
#
dhcp enable
#
user-interface con 0
user-interface aux 0
user-interface vty 0 4
#
return





























sys
System View: return to User View with Ctrl+Z.
[H3C]dhcp server ip-pool 192.168.1.0
[H3C-dhcp-pool-192.168.1.0]dis th
#
dhcp server ip-pool 192.168.1.0
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.254
dns-list 202.99.160.68
#
return
[H3C-dhcp-pool-192.168.1.0]dns-
[H3C-dhcp-pool-192.168.1.0]dns-list 202.99.160.68 202.99.166.4
[H3C-dhcp-pool-192.168.1.0]dis th
#
dhcp server ip-pool 192.168.1.0

network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.254
dns-list 202.99.160.68 202.99.166.4
#
return
[H3C-dhcp-pool-192.168.1.0]qu
[H3C]qu
sa
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[cf:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
cf:/startup.cfg exists, overwrite? [Y/N]:y

Validating file. Please wait...
Now saving current configuration to the device.
Saving configuration cf:/startup.cfg. Please wait...
.
Configuration is saved to cf successfully.
dis cu
#
version 5.20, Release 1509P01, Basic
#
sysname H3C
#
domain default enable system
#
vlan 1
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
dhcp server ip-pool 192.168.1.0
network 192.168.1.0 mask 255.255.255.0
gateway-list 192.168.1.254
dns-list 202.99.160.68 202.99.166.4
#
acl number 2000
rule 0 permit
#
interface Aux0
async mode flow
link-protocol ppp
#
interface Dialer1
nat outbound 2000
link-protocol ppp
ppp chap user 0319********
ppp chap password simple 501083
ppp pap local-user 0319******** password simple 501083
ip address ppp-negotiate
dialer user 1
dialer-group 1
dialer bundle 1
#
interface Ethernet0/0
port link-mode route
pppoe-client dial-bundle-number 1
#
interface Ethernet0/1
port link-mode route
description To_LAN
ip address 192.168.1.254 255.255.255.0
#
interface NULL0
#
ip route-static 0.0.0.0 0.0.0.0 Dialer1
#
dhcp server forbidden-ip 192.168.1.254
dhcp server forbidden-ip 192.168.1.1 192.168.1.100
#
dhcp enable
#
user-interface con 0
user-interface aux 0
user-interface vty 0 4
#
return





相关文档
最新文档