华为26新命令行 最简单配置
2007-02-04 10:26
267 查看
华为26新命令行 最简单配置
acl+nat
[Router]display current
Now create configuration...
Current configuration
!
version 1.74
local-user hr service-type administrator password simple 密码
firewall enable
aaa-enable
login-method authorization-mode telnet default
aaa accounting-scheme optional
!
acl 10 match-order auto
rule normal permit source 192.168.0.0 0.0.255.255
!
acl 102 match-order auto
rule normal permit tcp source any destination any destination-port equal telnet
rule normal permit tcp source any destination any destination-port equal www
rule normal permit tcp source any destination any destination-port equal pop2
rule normal permit tcp source any destination any destination-port equal pop3
rule normal permit tcp source any destination any destination-port equal domain
rule normal permit tcp source any destination any destination-port equal smtp
rule normal permit udp source any destination any destination-port equal dns
rule normal permit icmp source any destination any
rule normal permit tcp source any destination any destination-port equal 9525
rule normal permit tcp source any destination any destination-port equal 9510
rule normal deny ip source any destination any
!
interface Aux0
async mode flow
link-protocol ppp
!
interface Ethernet0
ip address 192.168.8.1 255.255.255.0
firewall packet-filter 102 inbound
!
interface Ethernet1
ip address 218.*.*.74 255.255.255.240
nat outbound 10 interface
!
interface Serial0
link-protocol ppp
!
quit
ip route-static 0.0.0.0 0.0.0.0 218.*.*.65 preference 60
!
return
[Router]save
acl+nat
[Router]display current
Now create configuration...
Current configuration
!
version 1.74
local-user hr service-type administrator password simple 密码
firewall enable
aaa-enable
login-method authorization-mode telnet default
aaa accounting-scheme optional
!
acl 10 match-order auto
rule normal permit source 192.168.0.0 0.0.255.255
!
acl 102 match-order auto
rule normal permit tcp source any destination any destination-port equal telnet
rule normal permit tcp source any destination any destination-port equal www
rule normal permit tcp source any destination any destination-port equal pop2
rule normal permit tcp source any destination any destination-port equal pop3
rule normal permit tcp source any destination any destination-port equal domain
rule normal permit tcp source any destination any destination-port equal smtp
rule normal permit udp source any destination any destination-port equal dns
rule normal permit icmp source any destination any
rule normal permit tcp source any destination any destination-port equal 9525
rule normal permit tcp source any destination any destination-port equal 9510
rule normal deny ip source any destination any
!
interface Aux0
async mode flow
link-protocol ppp
!
interface Ethernet0
ip address 192.168.8.1 255.255.255.0
firewall packet-filter 102 inbound
!
interface Ethernet1
ip address 218.*.*.74 255.255.255.240
nat outbound 10 interface
!
interface Serial0
link-protocol ppp
!
quit
ip route-static 0.0.0.0 0.0.0.0 218.*.*.65 preference 60
!
return
[Router]save
相关文章推荐
- 华为帧中继实验简单配置
- vim配置--命令行简单(文章最后)
- http-server:一个简单的零配置命令行的http服务器
- 华为BFD和NQA的简单配置
- 一个简单的零配置命令行HTTP服务器 - http-server (nodeJs)
- 一个简单的零配置命令行HTTP服务器 - http-server (nodeJs)
- 一个简单的零配置命令行HTTP服务器 - http-server (nodeJs)
- 华为交换机简单配置命令(华为 vlan arp绑定 端口镜像)
- 一个简单的零配置命令行HTTP服务器 - http-server (nodeJs)
- 华为设备的简单配置
- 华为BFD和NQA的简单配置
- 一个简单的零配置命令行HTTP服务器
- OPENWRT设置之命令行下简单配置有线和无线
- 安利一个简单的零配置的命令行http服务器(http-server)
- 一个简单的零配置命令行HTTP服务器 - http-server (nodeJs)
- 华为光猫HG8240的简单配置过程
- 一个简单的零配置命令行HTTP服务器 - http-server (nodeJs)
- 一个简单的wed服务器SHTTPD(1)————命令行和文件配置解析