/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