版本:VyATTA6.5R1版
Start: >>VyATTA wiki地址,http://vwiki.co.uk/Vyatta
>>相关命令
#show version 查看系统版本
#commit 提交命令
#set service ssh 开启ssh
$show interfaces pppoe 查看pppoe接口
$show interfaces 查看接口信息
$show interfaces ethernet 查看网卡信息
$show configuration 查看配置信息
$poweroff 关机命令
$reboot 重启命令
$configre 进入配置模式
>>添加管理员
#set system login user <username> admin
#set system login user admin authentication plaintest-password <password>密码
>>#set system host-name VR 设置主机名
#set system time-zone Asia/Chongqing设置时区
#set system ntp server time.windows.com 设置NTP server
#set system gateway address XX.XX.XX.XX
#commit
#save
>>网络设置
#set interfades ethernet eth0 address 10.10.1.240/27 WAN口地址
#set interfaces ethernet eth1 address 192.168.1.1/24 LAN口配置
#commit
#save
>>PPPOE
#set interfaces ethernet eth0 pppoe0 user-id 0991-463500
#set interfaces ethernet eth0 pppoe0 password 123456
#set nat source rule 101 source address 192.168.1.0/24 添加NAT规则
#set nat source rule 101 outbound-interface pppoe0 NAT出口设置
#set nat source rule 101 translation address masquerade 开启masquerade
#commit
#save
>>NAT设置
#set nat source rule 100(1-9999) source address 192.168.1.0/24 添加NAT规则,并设置源地址
#set nat source rule 100(1-9999) outbound-interface eth0 NAT出口设置
#set nat source rule 100(1-9999) translation masquerade 开启masquerade 伪装
#commit
#save
>>DNS设置
#set service dns forwarding cache-size 300
#set service dns forwarding listen-on eth1
#set service dns foewarding name-server 114.114.114.114
#commit
#save
>>DHCP-Server配置
#set service dhcp-server shared-network-name LAN_POOL
#set service dhcp-server shared-network-name LAN_POOL subnet
#set service dhcp-server shared-network-name LAN_POOL subnet start 192.168.1.100 stop 192.168.1.200
#set service dhcp-server shared-network-name LAN_POOL subnet dns-server 114.114.114.114
#set service dhcp-server shared-network-name LAN_POOL subnet default-router
#commit
#save
本文出自 “学习笔记” 博客,请务必保留此出处http://181409299730.blog.51cto.com/10729745/1758690
原文地址:http://181409299730.blog.51cto.com/10729745/1758690