vyos -vyatta-config-commit save


/opt/vyatta/config/



vyos@vyos:/opt/vyatta/config/active$ls        

    Vyos 活动的配置

interfaces  service system

vyos@vyos:/opt/vyatta/config/tmp$pwd        

Vyos 正在进行的配置,还没有commit save

/opt/vyatta/config/tmp

vyos@vyos:/opt/vyatta/config/tmp$ 


================================


/opt/vyatta/

bin  config etc  sbin  share tmp  var

 

/opt/vyatta/bin/

 

/opt/vyatta/config/

active  tmp

 

/opt/vyatta/etc/

 

 

/opt/vyatta/sbin/

 

/opt/vyatta/share/

enumeration  man perl5  ppp  vyatta-cfg vyatta-op  xsl

 

/opt/vyatta/share/vyatta-cfg/

functions  templates

 

/opt/vyatta/share/vyatta-cfg/functions/interpreter/

vyatta@site1:/opt/vyatta/share/vyatta-cfg/functions/interpreter$ls -l

total 19

-rw-r--r-- 1 root root 18877 Apr 26 2012 vyatta-cfg-run        -----------------------------------------非常重要的 解释器 vyatta 配置

 

/opt/vyatta/share/vyatta-cfg/templates/       -----------配置模板 配置节点语法文件--syntax

/opt/vyatta/share/vyatta-cfg/templates/interfaces/openvpn/node.tag/local-port/

Node.def

 

 share/vyatta-cfg/templates/interfaces/openvpn/node.tag/local-port      cat node.def

type: u32

help: Local portnumber to accept connections

syntax:expression:$VAR(@) > 0 && $VAR(@) < 65536;

                   "Port must be between 1and 65535"

/opt/vyatta/share/enumeration/existing-interfaces                ----列举已经存在的接口                      

existing-interfaces

 

/opt/vyatta/share/man/man8/nfct.8

 

/opt/vyatta/share/perl5/

 

/opt/vyatta/share/perl5/Vyatta/

 

/opt/vyatta/share/perl5/Vyatta/IpTables$ ls -l                          -----Vyatta--程序语法解释

total 56

-rw-r--r-- 1 rootroot  9087 Apr 25  2012 AddressFilter.pm

-rw-r--r-- 1 rootroot 12515 Apr 25  2012 IpSet.pm

-rw-r--r-- 1 rootroot  8222 Apr 25  2012 Mgr.pm

-rw-r--r-- 1 rootroot 25773 Apr 25  2012 Rule.pm

vyatta@site1:/opt/vyatta/share/perl5/Vyatta/IpTables$

 

/opt/vyatta/share/ppp/network/

att  sc1 verizon

 

/opt/vyatta/share/vyatta-op/

functions  templates

 

 

/opt/vyatta/share/vyatta-op/functions/interpreter/

 

/opt/vyatta/share/vyatta-op/templates/

vyatta@site1:/opt/vyatta/share/vyatta-op/templates$ls

add        connect     force    monitor   release  restart traceroute

clear      copy        format    ping     rename   set      update

clone      delete      generate poweroff  renew    show

configure  disconnect install   reboot    reset   telnet

vyatta@site1:/opt/vyatta/share/vyatta-op/templates$

 

/opt/vyatta/share/vyatta-op/templates/show/users/node.def

vyatta@site1:/opt/vyatta/share/vyatta-op/templates/show/users$ls -l

total 1

-rw-r--r-- 1 rootroot 40 Mar 23  2012 node.def

vyatta@site1:/opt/vyatta/share/vyatta-op/templates/show/users$cat node.def

help: Show userinformation

run: who -H

vyatta@site1:/opt/vyatta/share/vyatta-op/templates/show/users$

 

vyatta@site1:/opt/vyatta/share/vyatta-op/templates/reboot/now$cat node.def

help: Reboot thesystem without confirmation

run: sudo/opt/vyatta/bin/sudo-users/vyatta-reboot.pl --action reboot --now

vyatta@site1:/opt/vyatta/share/vyatta-op/templates/reboot/now$

 

:/opt/vyatta/share/vyatta-op/templates/traceroute/ipv4/node.tag$cat  node.def 

#

# Operational modetemplate for the "traceroute" command

#

 

help:   Track network path to specified<hostname|IPv4 address>

allowed: echo -n'<hostname> <x:x:x:x>'

 

run:

     if/opt/vyatta/sbin/vyatta-validate-type.pl -q ipv4 $3

       then

           /usr/bin/traceroute $3

           echo

       else

           if cat /etc/resolv.conf 2>/dev/null | grep -q nameserver

             then

                 if /usr/bin/host $3 &>/dev/null

                   then

                       /usr/bin/traceroute $3

                   else

                       echo "Invalid IPv4address or host name '$3'"

                 fi

             else

                 echo "Either enter avalid IPv4 address or configure Domain Name Server to resolve host names"

           fi

     fi

vyatta@site1:/opt/vyatta/share/vyatta-op/templates/traceroute/ipv4/node.tag$

/opt/vyatta/share/vyatta-op/templates/traceroute/node.tag$cat node.def

#

# Operational modetemplate for the "traceroute" command

#

 

help:   Track network path to specified node

allowed: echo -n'<hostname> <x.x.x.x> <h:h:h:h:h:h:h:h>'

 

run:/opt/vyatta/bin/vyatta-traceroute $2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值