华为H3C ar 18-21A路由求帮忙写下配置命令
光纤互联网用,华为路由器后接一个交换机用来上网,固定ip请以0.0.0.0表示,dns是202.100.96.68。命令怎么写,万分感谢。...
光纤互联网用,华为路由器后接一个交换机用来上网,固定ip请以0.0.0.0表示,dns是202.100.96.68。命令怎么写,万分感谢。
展开
1个回答
展开全部
local-user admin
password simple admin
service-type telnet terminal
level 3
#
dhcp server ip-pool 1
network 192.168.100.0 mask 255.255.255.0
gateway-list 192.168.100.1
dns-list 202.100.96.68
#
acl number 3000
rule 0 permit ip source 192.168.100.0 0.0.0.255
#
interface Ethernet1/0
ip address 192.168.100.1 255.255.255.0
#
interface Ethernet1/1
#
interface Ethernet1/2
flow-control
#
interface Ethernet1/3
flow-control
#
interface Ethernet1/4
flow-control
#
interface Ethernet3/0
ip address 1.1.1.1 255.255.255.252 外网ip地址和掩码
nat out 3000
#
ip route-static 0.0.0.0 0.0.0.0 1.1.1.2(外网网关) preference 60
#
user-interface vty 0 4
authentication-mode scheme
#
return
password simple admin
service-type telnet terminal
level 3
#
dhcp server ip-pool 1
network 192.168.100.0 mask 255.255.255.0
gateway-list 192.168.100.1
dns-list 202.100.96.68
#
acl number 3000
rule 0 permit ip source 192.168.100.0 0.0.0.255
#
interface Ethernet1/0
ip address 192.168.100.1 255.255.255.0
#
interface Ethernet1/1
#
interface Ethernet1/2
flow-control
#
interface Ethernet1/3
flow-control
#
interface Ethernet1/4
flow-control
#
interface Ethernet3/0
ip address 1.1.1.1 255.255.255.252 外网ip地址和掩码
nat out 3000
#
ip route-static 0.0.0.0 0.0.0.0 1.1.1.2(外网网关) preference 60
#
user-interface vty 0 4
authentication-mode scheme
#
return
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询